react-native-code-push
Advanced tools
Comparing version 1.1.1-beta to 1.1.2-beta
@@ -97,18 +97,20 @@ 'use strict'; | ||
if (err) { | ||
reject(err); | ||
return reject(err); | ||
} | ||
if (update) { | ||
update = extend(update, packageMixins.remote); | ||
NativeCodePush.isFailedUpdate(update.packageHash) | ||
.then((isFailedHash) => { | ||
update.failedApply = isFailedHash; | ||
resolve(update); | ||
}) | ||
.catch(reject) | ||
.done(); | ||
} else { | ||
resolve(update); | ||
// Ignore updates that require a newer app version, | ||
// since the end-user couldn't reliably apply it | ||
if (!update || update.updateAppVersion) { | ||
return resolve(null); | ||
} | ||
update = extend(update, packageMixins.remote); | ||
NativeCodePush.isFailedUpdate(update.packageHash) | ||
.then((isFailedHash) => { | ||
update.failedApply = isFailedHash; | ||
resolve(update); | ||
}) | ||
.catch(reject) | ||
.done(); | ||
}) | ||
@@ -115,0 +117,0 @@ }); |
{ | ||
"name": "react-native-code-push", | ||
"version": "1.1.1-beta", | ||
"version": "1.1.2-beta", | ||
"description": "React Native plugin for the CodePush service", | ||
@@ -5,0 +5,0 @@ "main": "CodePush.ios.js", |
Sorry, the diff of this file is not supported yet
59174
256