Comparing version 1.9.0-beta to 1.9.2-beta
{ | ||
"name": "code-push", | ||
"version": "1.9.0-beta", | ||
"version": "1.9.2-beta", | ||
"description": "Management SDK for the CodePush service", | ||
@@ -5,0 +5,0 @@ "main": "script/index.js", |
@@ -0,0 +0,0 @@ # CodePush Management SDK (Node.js) |
@@ -57,12 +57,4 @@ /// <reference path="../definitions/harness.d.ts" /> | ||
} | ||
else if (updateInfo.updateAppVersion || updateInfo.shouldRunBinaryVersion) { | ||
var returnUpdateInfo = {}; | ||
if (updateInfo.shouldRunBinaryVersion) { | ||
returnUpdateInfo.shouldRunBinaryVersion = true; | ||
} | ||
if (updateInfo.updateAppVersion) { | ||
returnUpdateInfo.updateAppVersion = true; | ||
returnUpdateInfo.appVersion = updateInfo.appVersion; | ||
} | ||
callback(null, returnUpdateInfo); | ||
else if (updateInfo.updateAppVersion) { | ||
callback(null, { updateAppVersion: true, appVersion: updateInfo.appVersion }); | ||
return; | ||
@@ -69,0 +61,0 @@ } |
@@ -77,22 +77,2 @@ /// <reference path="../definitions/harness.d.ts" /> | ||
}); | ||
it("SDK forwards shouldRunBinaryVersion notification", function (done) { | ||
mockApi.latestPackage.shouldRunBinaryVersion = true; | ||
var acquisition = new acquisitionSdk.AcquisitionManager(new mockApi.HttpRequester(), configuration); | ||
acquisition.queryUpdateWithCurrentPackage(clone(templateCurrentPackage), function (error, returnPackage) { | ||
assert.equal(null, error); | ||
assert.deepEqual({ shouldRunBinaryVersion: true }, returnPackage); | ||
done(); | ||
}); | ||
}); | ||
it("Package with lower native version gives update notification together with shouldRunBinaryVersion notification", function (done) { | ||
mockApi.latestPackage.shouldRunBinaryVersion = true; | ||
var lowerAppVersionPackage = clone(templateCurrentPackage); | ||
lowerAppVersionPackage.appVersion = "0.0.1"; | ||
var acquisition = new acquisitionSdk.AcquisitionManager(new mockApi.HttpRequester(), configuration); | ||
acquisition.queryUpdateWithCurrentPackage(lowerAppVersionPackage, function (error, returnPackage) { | ||
assert.equal(null, error); | ||
assert.deepEqual(nativeUpdateResult, returnPackage); | ||
done(); | ||
}); | ||
}); | ||
it("Package with higher native version gives no update", function (done) { | ||
@@ -99,0 +79,0 @@ var higherAppVersionPackage = clone(templateCurrentPackage); |
@@ -0,0 +0,0 @@ // ./superagent-mock-config.js file |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58509
11
1180