Added support for minor version parameters in bcrypt 2.0 (#25182)

* Updated for bcrypt 2.0

* Added missing @param declaration for minor
This commit is contained in:
dstapleton92
2018-04-27 23:26:44 -07:00
committed by Wesley Wigham
parent 1462bc999b
commit ab7694a033
2 changed files with 26 additions and 5 deletions
+9
View File
@@ -8,15 +8,24 @@ let error: Error;
str = bcrypt.genSaltSync();
str = bcrypt.genSaltSync(num);
str = bcrypt.genSaltSync(num, str);
bcrypt.genSalt(num, (err: Error, salt: string): void => { error = err; str = salt; })
.then(salt => str = salt)
.catch(err => error = err);
bcrypt.genSalt(num, str, (err: Error, salt: string): void => { error = err; str = salt; })
.then(salt => str = salt)
.catch(err => error = err);
bcrypt.genSalt(num)
.then(salt => str = salt)
.catch(err => error = err);
bcrypt.genSalt(num, str)
.then(salt => str = salt)
.catch(err => error = err);
bcrypt.genSalt((err: Error, salt: string): void => { error = err; str = salt; })
.then(salt => str = salt)
.catch(err => error = err);