sha256-uint8array
Advanced tools
Comparing version 0.10.1 to 0.10.3
@@ -94,3 +94,3 @@ "use strict"; | ||
const length = data.length; | ||
offset |= 0; | ||
offset = offset | 0; | ||
while (offset < length) { | ||
@@ -158,3 +158,3 @@ const start = this._size % 64 /* inputBytes */; | ||
let i = 0; | ||
offset |= 0; | ||
offset = offset | 0; | ||
while (i < 16 /* inputWords */) { | ||
@@ -161,0 +161,0 @@ W[i++] = swap32(data[offset++]); |
{ | ||
"name": "sha256-uint8array", | ||
"description": "Fast SHA-256 digest hash based on Uint8Array, pure JavaScript.", | ||
"version": "0.10.1", | ||
"version": "0.10.3", | ||
"author": "Yusuke Kawasaki <u-suke@kawa.net>", | ||
@@ -14,14 +14,15 @@ "bugs": { | ||
"@aws-crypto/sha256-js": "^1.1.0", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^14.14.43", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.6.1", | ||
"browserify": "^17.0.0", | ||
"browserify-sed": "^0.8.0", | ||
"create-hash": "^1.2.0", | ||
"crypto-js": "^4.0.0", | ||
"crypto-js": "^4.1.1", | ||
"hash.js": "^1.1.7", | ||
"jshashes": "^1.0.8", | ||
"jssha": "^3.2.0", | ||
"mocha": "^8.3.2", | ||
"mocha": "^9.0.3", | ||
"sha.js": "^2.4.11", | ||
"terser": "^5.7.0", | ||
"typescript": "^4.2.4" | ||
"terser": "^5.7.1", | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -56,2 +57,3 @@ "files": [ | ||
"mocha": "./node_modules/.bin/mocha -R spec test/*.js", | ||
"prepack": "npm run build-browser && REPEAT=1 npm test", | ||
"test": "npm run mocha" | ||
@@ -58,0 +60,0 @@ }, |
# sha256-uint8array | ||
[![Node.js CI](https://github.com/kawanet/sha256-uint8array/workflows/Node.js%20CI/badge.svg?branch=main)](https://github.com/kawanet/sha256-uint8array/actions/) | ||
[![npm version](https://badge.fury.io/js/sha256-uint8array.svg)](https://www.npmjs.com/package/sha256-uint8array) | ||
[![npm version](https://img.shields.io/npm/v/sha256-uint8array)](https://www.npmjs.com/package/sha256-uint8array) | ||
[![minified size](https://img.shields.io/bundlephobia/min/sha256-uint8array)](https://cdn.jsdelivr.net/npm/sha256-uint8array/dist/sha256-uint8array.min.js) | ||
Fast SHA-256 digest hash based on Uint8Array, pure JavaScript. | ||
@@ -7,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23368
158
14