1
0
mirror of https://github.com/danog/fast-srp.git synced 2024-11-26 20:04:49 +01:00

Deleted lodash package jsbn's dependency

This commit is contained in:
Zarmack Tanen 2015-09-10 12:03:00 +02:00
parent 85cfc7d81b
commit 3ca4cef4f2
2 changed files with 2 additions and 5 deletions

View File

@ -43,7 +43,6 @@
*/
var crypt = require('crypto');
var _ = require('lodash');
// Bits per digit
var dbits;
@ -862,7 +861,7 @@ function bnToBuffer(trimOrSize) {
var res = new Buffer(this.toByteArray());
if (trimOrSize === true && res[0] === 0) {
res = res.slice(1);
} else if (_.isNumber(trimOrSize)) {
} else if (typeof trimOrSize == 'number') {
if (res.length > trimOrSize) {
for (var i = 0; i < res.length - trimOrSize; i++) {
if (res[i] !== 0) {

View File

@ -13,9 +13,7 @@
"author": "Zarmack Tanen",
"licence": "MIT",
"readmeFilename": "README.md",
"dependencies": {
"lodash": "^3.10.1"
},
"dependencies": {},
"devDependencies": {
"vows": "0.7.0"
}