@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.
|
|
125
|
-
return
|
|
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