Comparing version 1.1.0 to 1.2.0
@@ -47,3 +47,3 @@ 'use strict' | ||
if (this._finalized) throw new Error('Digest already called') | ||
if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding) | ||
if (!Buffer.isBuffer(data)) data = new Buffer(data, encoding) | ||
@@ -50,0 +50,0 @@ this._state.absorb(data) |
@@ -41,3 +41,3 @@ 'use strict' | ||
if (this._finalized) throw new Error('Squeeze already called') | ||
if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding) | ||
if (!Buffer.isBuffer(data)) data = new Buffer(data, encoding) | ||
@@ -44,0 +44,0 @@ this._state.absorb(data) |
@@ -49,3 +49,3 @@ 'use strict' | ||
var output = Buffer.allocUnsafe(length) | ||
var output = new Buffer(length) | ||
for (var i = 0; i < length; ++i) { | ||
@@ -52,0 +52,0 @@ output[i] = (this.state[~~(this.count / 4)] >>> (8 * (this.count % 4))) & 0xff |
{ | ||
"name": "keccak", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Keccak sponge function family", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"bindings": "^1.2.1", | ||
"inherits": "^2.0.1", | ||
"inherits": "^2.0.3", | ||
"nan": "^2.2.1", | ||
@@ -50,6 +50,6 @@ "prebuild-install": "^2.0.0" | ||
"devDependencies": { | ||
"browserify": "^13.0.0", | ||
"browserify": "^14.1.0", | ||
"nyc": "^10.0.0", | ||
"prebuild": "^6.0.0", | ||
"prebuild-ci": "^1.0.9", | ||
"prebuild-ci": "^2.2.0", | ||
"proxyquire": "^1.7.10", | ||
@@ -60,3 +60,3 @@ "standard": "*", | ||
"engines": { | ||
"node": ">=4.5.0" | ||
"node": ">=4.0.0" | ||
}, | ||
@@ -63,0 +63,0 @@ "gypfile": true, |
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
70721
Updatedinherits@^2.0.3