File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ module.exports = (NativeCodePush) => {
26
26
// Use the downloaded package info. Native code will save the package info
27
27
// so that the client knows what the current package version is.
28
28
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
+
30
34
reportStatusDownload && reportStatusDownload ( this ) ;
31
35
return { ...downloadedPackage , ...local } ;
32
36
} finally {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-code-push" ,
3
- "version" : " 1.17.3 -beta" ,
3
+ "version" : " 1.17.4 -beta" ,
4
4
"description" : " React Native plugin for the CodePush service" ,
5
5
"main" : " CodePush.js" ,
6
6
"typings" : " typings/react-native-code-push.d.ts" ,
You can’t perform that action at this time.
0 commit comments