- AMD support.
- support for web worker. #13

Changed
- throw error if input type is incorrect when cSHAKE and KMAC.
- freeze hash after finalize.
This commit is contained in:
Yi-Cyuan Chen
2017-12-01 21:04:32 +08:00
parent c43f9d1d18
commit fb7e6403d9
17 changed files with 2296 additions and 292 deletions
+14 -10
View File
@@ -1,21 +1,20 @@
{
"name": "js-sha3",
"version": "0.6.1",
"version": "0.7.0",
"description": "A simple SHA-3 / Keccak / Shake hash function for JavaScript supports UTF-8 encoding.",
"main": "src/sha3.js",
"typings": "index",
"types": "index.d.ts",
"devDependencies": {
"expect.js": "~0.3.1",
"jscoverage": "~0.5.9",
"mocha": "~2.3.2",
"uglifyjs": "~2.4.10"
"mocha": "~2.3.4",
"nyc": "^11.3.0",
"uglify-js": "^3.1.9",
"webworker-threads": "^0.7.13"
},
"scripts": {
"test": "mocha tests/node-test.js -r jscoverage",
"report": "mocha tests/node-test.js -r jscoverage --covout=html",
"coveralls": "mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls",
"build": "uglifyjs src/sha3.js --compress --mangle --comments --output build/sha3.min.js"
"test": "nyc mocha tests/node-test.js",
"report": "nyc --reporter=html --reporter=text mocha tests/node-test.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"build": "uglifyjs src/sha3.js -c -m --comments --output build/sha3.min.js"
},
"repository": {
"type": "git",
@@ -37,5 +36,10 @@
"homepage": "https://github.com/emn178/js-sha3",
"bugs": {
"url": "https://github.com/emn178/js-sha3/issues"
},
"nyc": {
"exclude": [
"tests"
]
}
}