We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cd2ef0 commit 56a0f1fCopy full SHA for 56a0f1f
package-mixins.js
@@ -26,7 +26,10 @@ module.exports = (NativeCodePush) => {
26
// Use the downloaded package info. Native code will save the package info
27
// so that the client knows what the current package version is.
28
try {
29
- const downloadedPackage = await NativeCodePush.downloadUpdate(this, !!downloadProgressCallback);
+ 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
reportStatusDownload && reportStatusDownload(this);
34
return { ...downloadedPackage, ...local };
35
} finally {
0 commit comments