Replace dependency md5-jkmyiers dependency by md5.js
md5-jkmyiers cannot be built into a JS module due to sloppy code
This commit is contained in:
parent
ec2ce7b75f
commit
115197007d
|
@ -77,11 +77,11 @@ exports.inherits = require('inherits');
|
|||
exports.Promise = Promise;
|
||||
|
||||
var crypto = require('crypto');
|
||||
var md5 = require('md5-jkmyers');
|
||||
var md5 = require('md5.js');
|
||||
exports.MD5 = function (string) {
|
||||
/* istanbul ignore if */
|
||||
if (process.browser) {
|
||||
return md5(string);
|
||||
return new md5().update(string).digest('hex');
|
||||
}
|
||||
return crypto.createHash('md5').update(string).digest('hex');
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"json-stable-stringify": "^1.0.1",
|
||||
"lie": "^2.6.0",
|
||||
"lunr": "0.7.1",
|
||||
"md5-jkmyers": "0.0.1",
|
||||
"md5.js": "^1.3.5",
|
||||
"pouchdb-extend": "^0.1.0",
|
||||
"pouchdb-mapreduce-no-ddocs": "^2.3.2",
|
||||
"pouchdb-promise": "5.4.4",
|
||||
|
|
Loading…
Reference in New Issue