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:
parent
85cfc7d81b
commit
3ca4cef4f2
@ -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) {
|
||||
|
@ -13,9 +13,7 @@
|
||||
"author": "Zarmack Tanen",
|
||||
"licence": "MIT",
|
||||
"readmeFilename": "README.md",
|
||||
"dependencies": {
|
||||
"lodash": "^3.10.1"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"vows": "0.7.0"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user