Skip to content

Commit 3e6cc4c

Browse files
committed
Update dependencies
1 parent 3beaca9 commit 3e6cc4c

File tree

3 files changed

+223
-256
lines changed

3 files changed

+223
-256
lines changed

argon2.cjs

+10-2
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,22 @@ module.exports.hash = hash;
137137
* @returns {boolean} `true` if the digest parameters do not match the parameters in `options`, otherwise `false`
138138
*/
139139
function needsRehash(digest, options = {}) {
140-
const { memoryCost, timeCost, parallelism, version } = { ...defaults, ...options };
140+
const { memoryCost, timeCost, parallelism, version } = {
141+
...defaults,
142+
...options,
143+
};
141144

142145
const {
143146
version: v,
144147
params: { m, t, p },
145148
} = deserialize(digest);
146149

147-
return +v !== +version || +m !== +memoryCost || +t !== +timeCost || +p !== +parallelism;
150+
return (
151+
+v !== +version ||
152+
+m !== +memoryCost ||
153+
+t !== +timeCost ||
154+
+p !== +parallelism
155+
);
148156
}
149157
module.exports.needsRehash = needsRehash;
150158

0 commit comments

Comments
 (0)