mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-25 17:03:38 +08:00
Update bundle.js
fix import issue of new version node-bsdiff
This commit is contained in:
@@ -19,7 +19,8 @@ import crypto from 'crypto';
|
|||||||
|
|
||||||
var diff;
|
var diff;
|
||||||
try {
|
try {
|
||||||
diff = require('node-bsdiff');
|
var bsdiff = require('node-bsdiff');
|
||||||
|
diff = typeof bsdiff != 'function' ? bsdiff.diff : bsdiff;
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
diff = function() {
|
diff = function() {
|
||||||
console.warn('This function needs "node-bsdiff". Please run "npm i node-bsdiff -S" from your project directory first!');
|
console.warn('This function needs "node-bsdiff". Please run "npm i node-bsdiff -S" from your project directory first!');
|
||||||
|
|||||||
Reference in New Issue
Block a user