@bravemobile/react-native-code-push 9.0.0-alpha.2 → 9.0.0-alpha.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
@@ -121,8 +121,8 @@ async function checkForUpdate(deploymentKey = null, handleBinaryVersionMismatchC
121
121
 
122
122
  if (!updateInfo) {
123
123
  return null;
124
- } else if (updateInfo.update_app_version) {
125
- return { updateAppVersion: true, appVersion: updateInfo.target_binary_range };
124
+ } else if (!updateInfo.download_url) {
125
+ return null;
126
126
  } else if (!updateInfo.is_available) {
127
127
  return null;
128
128
  }
@@ -30,11 +30,6 @@ program.command('release')
30
30
  * @return {void}
31
31
  */
32
32
  .action(async (options) => {
33
- if (SemVer.lte(options.appVersion, options.binaryVersion)) {
34
- console.error('The app version must be greater than the binary version.');
35
- process.exit(1);
36
- }
37
-
38
33
  const config = findAndReadConfigFile(process.cwd(), options.config);
39
34
 
40
35
  await release(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bravemobile/react-native-code-push",
3
- "version": "9.0.0-alpha.2",
3
+ "version": "9.0.0-alpha.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",