code-push
Advanced tools
Comparing version 3.0.0-beta.2 to 3.0.0-beta.3
{ | ||
"name": "code-push", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-beta.3", | ||
"description": "Management SDK for the CodePush service", | ||
@@ -5,0 +5,0 @@ "main": "script/index.js", |
@@ -12,2 +12,3 @@ /// <reference path="../definitions/harness.d.ts" /> | ||
function AcquisitionManager(httpRequester, configuration) { | ||
this._publicPrefixUrl = "v0.1/public/codepush/"; | ||
this._httpRequester = httpRequester; | ||
@@ -36,3 +37,3 @@ this._serverUrl = configuration.serverUrl; | ||
}; | ||
var requestUrl = this._serverUrl + "v0.1/public/codepush/update_check?" + queryStringify(updateRequest); | ||
var requestUrl = this._serverUrl + this._publicPrefixUrl + "update_check?" + queryStringify(updateRequest); | ||
this._httpRequester.request(0 /* GET */, requestUrl, function (error, response) { | ||
@@ -88,3 +89,3 @@ if (error) { | ||
AcquisitionManager.prototype.reportStatusDeploy = function (deployedPackage, status, previousLabelOrAppVersion, previousDeploymentKey, callback) { | ||
var url = this._serverUrl + "v0.1/public/codepush/report_status/deploy"; | ||
var url = this._serverUrl + this._publicPrefixUrl + "report_status/deploy"; | ||
var body = { | ||
@@ -139,3 +140,3 @@ app_version: this._appVersion, | ||
AcquisitionManager.prototype.reportStatusDownload = function (downloadedPackage, callback) { | ||
var url = this._serverUrl + "v0.1/public/codepush/report_status/download"; | ||
var url = this._serverUrl + this._publicPrefixUrl + "report_status/download"; | ||
var body = { | ||
@@ -142,0 +143,0 @@ client_unique_id: this._clientUniqueId, |
@@ -17,5 +17,6 @@ /// <reference path="../definitions/harness.d.ts" /> | ||
exports.serverUrl = "http://myurl.com"; | ||
var reportStatusDeployUrl = exports.serverUrl + "/v0.1/public/codepush/report_status/deploy"; | ||
var reportStatusDownloadUrl = exports.serverUrl + "/v0.1/public/codepush/report_status/download"; | ||
var updateCheckUrl = exports.serverUrl + "/v0.1/public/codepush/update_check?"; | ||
var publicPrefixUrl = "/v0.1/public/codepush"; | ||
var reportStatusDeployUrl = exports.serverUrl + publicPrefixUrl + "/report_status/deploy"; | ||
var reportStatusDownloadUrl = exports.serverUrl + publicPrefixUrl + "/report_status/download"; | ||
var updateCheckUrl = exports.serverUrl + publicPrefixUrl + "/update_check?"; | ||
var HttpRequester = (function () { | ||
@@ -22,0 +23,0 @@ function HttpRequester() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
192939
1358
0