Comparing version 1.5.0-beta to 1.5.1-beta
{ | ||
"name": "code-push", | ||
"version": "1.5.0-beta", | ||
"version": "1.5.1-beta", | ||
"description": "Management SDK for the CodePush service", | ||
@@ -5,0 +5,0 @@ "main": "script/index.js", |
@@ -77,3 +77,3 @@ /// <reference path="../definitions/harness.d.ts" /> | ||
}; | ||
AcquisitionManager.prototype.reportStatusDeploy = function (package, status, callback) { | ||
AcquisitionManager.prototype.reportStatusDeploy = function (deployedPackage, status, callback) { | ||
var url = this._serverUrl + "reportStatus/deploy"; | ||
@@ -85,5 +85,5 @@ var body = { | ||
}; | ||
if (package) { | ||
body.label = package.label; | ||
body.appVersion = package.appVersion; | ||
if (deployedPackage) { | ||
body.label = deployedPackage.label; | ||
body.appVersion = deployedPackage.appVersion; | ||
switch (status) { | ||
@@ -120,3 +120,3 @@ case AcquisitionStatus.DeploymentSucceeded: | ||
}; | ||
AcquisitionManager.prototype.reportStatusDownload = function (package, callback) { | ||
AcquisitionManager.prototype.reportStatusDownload = function (downloadedPackage, callback) { | ||
var url = this._serverUrl + "reportStatus/download"; | ||
@@ -126,3 +126,3 @@ var body = { | ||
deploymentKey: this._deploymentKey, | ||
label: package.label | ||
label: downloadedPackage.label | ||
}; | ||
@@ -129,0 +129,0 @@ this._httpRequester.request(2 /* POST */, url, JSON.stringify(body), function (error, response) { |
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
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
68769