Comparing version 1.5.1-beta to 1.5.2-beta
{ | ||
"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; |
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
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
69251
1669