crypto-browserify
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,3 +5,3 @@ { | ||
"description": "partial implementation of crypto for the browser", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"homepage": "https://github.com/dominictarr/crypto-browserify", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"sha.js": "1.3.0" | ||
"sha.js": "2.1.0" | ||
}, | ||
@@ -26,3 +26,3 @@ "devDependencies": { | ||
"testling": { | ||
"files": "test/browser.js", | ||
"files": "test/{create-hash,create-hmac,simple}.js", | ||
"browsers": [ | ||
@@ -29,0 +29,0 @@ "ie/8..latest", |
// Original code adapted from Robert Kieffer. | ||
// details at https://github.com/broofa/node-uuid | ||
(function() { | ||
@@ -26,3 +25,3 @@ var _global = this; | ||
var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array | ||
crypto.getRandomValues(bytes); | ||
crypto.getRandomValues(bytes.buffer || bytes); | ||
return bytes; | ||
@@ -29,0 +28,0 @@ } |
@@ -6,3 +6,3 @@ | ||
var data = require('crypto').pseudoRandomBytes(256) | ||
var data = require('crypto').randomBytes(256) | ||
@@ -9,0 +9,0 @@ ;['sha1', 'sha256', 'md5'].forEach(function (alg) { |
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
39429
- Removedbase64-js@0.0.2(transitive)
- Removedbops@0.1.1(transitive)
- Removedsha.js@1.3.0(transitive)
- Removedto-utf8@0.0.1(transitive)
Updatedsha.js@2.1.0