@bravemobile/react-native-code-push 10.0.0-beta.2 → 10.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CodePush.js CHANGED
@@ -472,7 +472,7 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
472
472
 
473
473
  syncStatusChangeCallback(CodePush.SyncStatus.CHECKING_FOR_UPDATE);
474
474
  const remotePackage = await checkForUpdate(handleBinaryVersionMismatchCallback);
475
- remotePackageLabel = remotePackage.label;
475
+ remotePackageLabel = remotePackage?.label;
476
476
 
477
477
  const doDownloadAndInstall = async () => {
478
478
  syncStatusChangeCallback(CodePush.SyncStatus.DOWNLOADING_PACKAGE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bravemobile/react-native-code-push",
3
- "version": "10.0.0-beta.2",
3
+ "version": "10.0.0-beta.4",
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",
@@ -342,11 +342,9 @@ declare namespace CodePush {
342
342
  /**
343
343
  * Asks the CodePush service whether the configured app deployment has an update available.
344
344
  *
345
- * @param deploymentKey The deployment key to use to query the CodePush server for an update.
346
- *
347
345
  * @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
348
346
  */
349
- function checkForUpdate(deploymentKey?: string, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage | null>;
347
+ function checkForUpdate(handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage | null>;
350
348
 
351
349
  /**
352
350
  * Retrieves the metadata for an installed update (e.g. description, mandatory).