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

code-push

Package Overview
Dependencies
Maintainers
2
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.5.1-beta to 1.5.2-beta

2

package.json
{
"name": "code-push",
"version": "1.5.1-beta",
"version": "1.5.2-beta",
"description": "Management SDK for the CodePush service",

@@ -5,0 +5,0 @@ "main": "script/index.js",

@@ -77,9 +77,11 @@ /// <reference path="../definitions/harness.d.ts" />

};
AcquisitionManager.prototype.reportStatusDeploy = function (deployedPackage, status, callback) {
AcquisitionManager.prototype.reportStatusDeploy = function (deployedPackage, status, previousLabelOrAppVersion, previousDeploymentKey, callback) {
var url = this._serverUrl + "reportStatus/deploy";
var body = {
appVersion: this._appVersion,
clientUniqueId: this._clientUniqueId,
deploymentKey: this._deploymentKey
};
if (this._clientUniqueId) {
body.clientUniqueId = this._clientUniqueId;
}
if (deployedPackage) {

@@ -105,2 +107,9 @@ body.label = deployedPackage.label;

}
if (previousLabelOrAppVersion) {
body.previousLabelOrAppVersion = previousLabelOrAppVersion;
}
if (previousDeploymentKey) {
body.previousDeploymentKey = previousDeploymentKey;
}
callback = typeof arguments[arguments.length - 1] === "function" && arguments[arguments.length - 1];
this._httpRequester.request(2 /* POST */, url, JSON.stringify(body), function (error, response) {

@@ -107,0 +116,0 @@ if (callback) {

@@ -167,3 +167,3 @@ /// <reference path="../definitions/harness.d.ts" />

var acquisition = new acquisitionSdk.AcquisitionManager(new mockApi.HttpRequester(), configuration);
acquisition.reportStatusDeploy(templateCurrentPackage, acquisitionSdk.AcquisitionStatus.DeploymentFailed, (function (error, parameter) {
acquisition.reportStatusDeploy(templateCurrentPackage, acquisitionSdk.AcquisitionStatus.DeploymentFailed, "1.5.0", mockApi.validDeploymentKey, (function (error, parameter) {
if (error) {

@@ -170,0 +170,0 @@ throw error;

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