Comparing version 0.8.1 to 0.8.2
@@ -49,3 +49,10 @@ 'use strict'; | ||
return bindings.gen_salt(rounds, crypto.randomBytes(16), cb); | ||
crypto.randomBytes(16, function(error, randomBytes) { | ||
if (error) { | ||
cb(error); | ||
return; | ||
} | ||
bindings.gen_salt(rounds, randomBytes, cb); | ||
}); | ||
}; | ||
@@ -52,0 +59,0 @@ |
@@ -0,1 +1,5 @@ | ||
# 0.8.2 (2015-03-28) | ||
* always use callback for generating random bytes to avoid blocking | ||
# 0.8.1 (2015-01-18) | ||
@@ -2,0 +6,0 @@ * update NaN to 1.5.0 for iojs support |
@@ -14,3 +14,3 @@ { | ||
"main": "./bcrypt", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"author": "Nick Campbell (https://github.com/ncb000gt)", | ||
@@ -36,4 +36,4 @@ "engines": { | ||
"dependencies": { | ||
"bindings": "1.0.0", | ||
"nan": "1.5.0" | ||
"bindings": "1.2.0", | ||
"nan": "1.7.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
79837
542
+ Addedbindings@1.2.0(transitive)
+ Addednan@1.7.0(transitive)
- Removedbindings@1.0.0(transitive)
- Removednan@1.5.0(transitive)
Updatedbindings@1.2.0
Updatednan@1.7.0