Skip to content

Commit

Permalink
Update build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Feb 28, 2024
1 parent 8c44ba5 commit f4e131b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build/input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bytesToHex, randomBytes } from '@noble/hashes/utils';
import { bytesToHex, hexToBytes, concatBytes, utf8ToBytes, randomBytes } from '@noble/hashes/utils';

export { blake2b } from '@noble/hashes/blake2b';
export { blake2s } from '@noble/hashes/blake2s';
Expand All @@ -21,10 +21,10 @@ export {
keccak_512,
} from '@noble/hashes/sha3';
export {
cshake128, cshake256, kmac128, kmac256, k12, m14
cshake128, cshake256, kmac128, kmac256, k12, m14, turboshake128, turboshake256
} from '@noble/hashes/sha3-addons';
export { sha1 } from '@noble/hashes/sha1';
export { argon2id } from '@noble/hashes/argon2';
export { eskdf } from '@noble/hashes/eskdf';

export const utils = { bytesToHex, randomBytes };
export const utils = { bytesToHex, hexToBytes, concatBytes, utf8ToBytes, randomBytes };
6 changes: 3 additions & 3 deletions build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@noble/hashes": "1.3.3",
"esbuild": "0.18.11"
"@noble/hashes": "file:..",
"esbuild": "0.20.1"
},
"scripts": {
"build": "npx esbuild --minify --bundle input.js --outfile=noble-hashes.js --global-name=nobleHashes"
"build": "npx esbuild --bundle input.js --outfile=noble-hashes.js --global-name=nobleHashes"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"bench:all": "node benchmark/index.js",
"bench:install": "cd benchmark && npm install && cd ../../",
"build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json",
"build:release": "cd build; npm i; npm run build",
"build:release": "cd build && npm i && npm run build",
"build:clean": "rm *.{js,d.ts,js.map} esm/*.{js,js.map} 2> /dev/null",
"lint": "prettier --check 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",
"format": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",
Expand Down

0 comments on commit f4e131b

Please sign in to comment.