Files
portfolio/node_modules/.cache/babel-loader/ba2d8c9549afdb93740dd1c19bbae403.json
2021-09-20 16:54:47 -04:00

1 line
1.8 KiB
JSON

{"ast":null,"code":"var MAX_ALLOC = Math.pow(2, 30) - 1; // default in iojs\n\nmodule.exports = function (iterations, keylen) {\n if (typeof iterations !== 'number') {\n throw new TypeError('Iterations not a number');\n }\n\n if (iterations < 0) {\n throw new TypeError('Bad iterations');\n }\n\n if (typeof keylen !== 'number') {\n throw new TypeError('Key length not a number');\n }\n\n if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) {\n /* eslint no-self-compare: 0 */\n throw new TypeError('Bad key length');\n }\n};","map":{"version":3,"sources":["/Users/tylerkoenig/Code/personal/react-scss2/node_modules/pbkdf2/lib/precondition.js"],"names":["MAX_ALLOC","Math","pow","module","exports","iterations","keylen","TypeError"],"mappings":"AAAA,IAAIA,SAAS,GAAGC,IAAI,CAACC,GAAL,CAAS,CAAT,EAAY,EAAZ,IAAkB,CAAlC,C,CAAoC;;AAEpCC,MAAM,CAACC,OAAP,GAAiB,UAAUC,UAAV,EAAsBC,MAAtB,EAA8B;AAC7C,MAAI,OAAOD,UAAP,KAAsB,QAA1B,EAAoC;AAClC,UAAM,IAAIE,SAAJ,CAAc,yBAAd,CAAN;AACD;;AAED,MAAIF,UAAU,GAAG,CAAjB,EAAoB;AAClB,UAAM,IAAIE,SAAJ,CAAc,gBAAd,CAAN;AACD;;AAED,MAAI,OAAOD,MAAP,KAAkB,QAAtB,EAAgC;AAC9B,UAAM,IAAIC,SAAJ,CAAc,yBAAd,CAAN;AACD;;AAED,MAAID,MAAM,GAAG,CAAT,IAAcA,MAAM,GAAGN,SAAvB,IAAoCM,MAAM,KAAKA,MAAnD,EAA2D;AAAE;AAC3D,UAAM,IAAIC,SAAJ,CAAc,gBAAd,CAAN;AACD;AACF,CAhBD","sourcesContent":["var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs\n\nmodule.exports = function (iterations, keylen) {\n if (typeof iterations !== 'number') {\n throw new TypeError('Iterations not a number')\n }\n\n if (iterations < 0) {\n throw new TypeError('Bad iterations')\n }\n\n if (typeof keylen !== 'number') {\n throw new TypeError('Key length not a number')\n }\n\n if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) { /* eslint no-self-compare: 0 */\n throw new TypeError('Bad key length')\n }\n}\n"]},"metadata":{},"sourceType":"script"}