Comparing version 0.19.0 to 0.19.1
@@ -17,3 +17,2 @@ 'use strict' | ||
type: types.argon2i, | ||
raw: false, | ||
version | ||
@@ -67,13 +66,8 @@ }) | ||
}) | ||
}).then(hash => { | ||
}).then(output => { | ||
if (options.raw) { | ||
return hash | ||
return output.hash | ||
} | ||
const { | ||
type, version, memoryCost: m, timeCost: t, parallelism: p, salt | ||
} = options | ||
return phc.serialize({ | ||
id: type2string[type], version, params: {m, t, p}, salt, hash | ||
}) | ||
return phc.serialize(output) | ||
}) | ||
@@ -114,5 +108,7 @@ } | ||
} | ||
return resolve(value) | ||
return resolve(value.hash) | ||
}) | ||
}).then(expected => expected.equals(hash)) | ||
}).then(expected => { | ||
return expected.equals(hash) | ||
}) | ||
} | ||
@@ -119,0 +115,0 @@ |
{ | ||
"name": "argon2", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"description": "An Argon2 library for Node", | ||
@@ -38,3 +38,3 @@ "main": "argon2.js", | ||
"devDependencies": { | ||
"@types/node": "^9.3.0", | ||
"@types/node": "^10.0.3", | ||
"mocha": "^5.1.1", | ||
@@ -41,0 +41,0 @@ "sandra": "^0.3.0", |
@@ -27,3 +27,2 @@ const assert = require('assert') | ||
type: argon2.argon2i, | ||
raw: false, | ||
version: 0x13 | ||
@@ -30,0 +29,0 @@ }, defaults) |
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
316064
3566