Skip to content

Commit 77c1546

Browse files
author
max-mironov
committed
Fixed #816
1 parent 212f222 commit 77c1546

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package-mixins.js

+5-1
Original file line numberDiff line numberDiff 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 {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)