Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-push

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-push - npm Package Compare versions

Comparing version 1.9.0-beta to 1.9.2-beta

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc