File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ module.exports = (NativeCodePush) => {
2626 // Use the downloaded package info. Native code will save the package info
2727 // so that the client knows what the current package version is.
2828 try {
29- const downloadedPackage = await NativeCodePush . downloadUpdate ( this , ! ! downloadProgressCallback ) ;
29+ const updatePackageCopy = Object . assign ( { } , this ) ;
30+ Object . keys ( updatePackageCopy ) . forEach ( ( key ) => ( typeof updatePackageCopy [ key ] === 'function' ) && delete updatePackageCopy [ key ] ) ;
31+
32+ const downloadedPackage = await NativeCodePush . downloadUpdate ( updatePackageCopy , ! ! downloadProgressCallback ) ;
33+
3034 reportStatusDownload && reportStatusDownload ( this ) ;
3135 return { ...downloadedPackage , ...local } ;
3236 } finally {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-code-push" ,
3- "version" : " 1.17.3 -beta" ,
3+ "version" : " 1.17.4 -beta" ,
44 "description" : " React Native plugin for the CodePush service" ,
55 "main" : " CodePush.js" ,
66 "typings" : " typings/react-native-code-push.d.ts" ,
You can’t perform that action at this time.
0 commit comments