1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Merge pull request #59 from geniuslinchao/master

Fix issue #58
This commit is contained in:
sunnylqm 2016-11-23 08:35:13 +08:00 committed by GitHub
commit ad2777c69d

View File

@ -19,7 +19,8 @@ import crypto from 'crypto';
var diff;
try {
diff = require('node-bsdiff');
var bsdiff = require('node-bsdiff');
diff = typeof bsdiff != 'function' ? bsdiff.diff : bsdiff;
} catch(e) {
diff = function() {
console.warn('This function needs "node-bsdiff". Please run "npm i node-bsdiff -S" from your project directory first!');