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

code-push

Package Overview
Dependencies
Maintainers
11
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 3.0.0-beta.2 to 3.0.0-beta.3

2

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

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