v1.0.1: Update to newest `scrypt`

master
Sven Slootweg 9 years ago
parent 83d4ec4f81
commit 8c90cf0486

@ -1,6 +1,6 @@
{ {
"name": "scrypt-for-humans", "name": "scrypt-for-humans",
"version": "1.0.0", "version": "1.0.1",
"description": "A human-friendly API wrapper for the Node.js Scrypt bindings.", "description": "A human-friendly API wrapper for the Node.js Scrypt bindings.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -31,6 +31,6 @@
"dependencies": { "dependencies": {
"bluebird": "^2.6.4", "bluebird": "^2.6.4",
"errors": "^0.2.0", "errors": "^0.2.0",
"scrypt": "^3.0.1" "scrypt": "^4.0.7"
} }
} }

@ -23,7 +23,7 @@ Promise.try(function(){
}).then(function(){ }).then(function(){
console.log("Number 2 was correct!"); console.log("Number 2 was correct!");
}).catch(scrypt.PasswordError, function(err){ }).catch(scrypt.PasswordError, function(err){
console.log("Number 2 was wrong!"); console.log("Number 2 was wrong!", err);
}); });
/* Using nodebacks */ /* Using nodebacks */

Loading…
Cancel
Save