From 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 15:10:37 +0200 Subject: fix build issues and add typedoc --- node_modules/pbkdf2/precondition.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 node_modules/pbkdf2/precondition.js (limited to 'node_modules/pbkdf2/precondition.js') diff --git a/node_modules/pbkdf2/precondition.js b/node_modules/pbkdf2/precondition.js deleted file mode 100644 index 1519b0092..000000000 --- a/node_modules/pbkdf2/precondition.js +++ /dev/null @@ -1,18 +0,0 @@ -var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs -module.exports = function (iterations, keylen) { - if (typeof iterations !== 'number') { - throw new TypeError('Iterations not a number') - } - - if (iterations < 0) { - throw new TypeError('Bad iterations') - } - - if (typeof keylen !== 'number') { - throw new TypeError('Key length not a number') - } - - if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) { /* eslint no-self-compare: 0 */ - throw new TypeError('Bad key length') - } -} -- cgit v1.2.3