1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-07 15:35:15 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Update bundle.js

fix import issue of new version node-bsdiff
This commit is contained in:
Linker Guo
2016-11-22 19:06:14 +08:00
committed by GitHub
parent d3ef75eac0
commit 43f6121452

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!');