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

code-push

Package Overview
Dependencies
Maintainers
8
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.11.2-beta to 2.0.0-beta

2

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

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

@@ -0,0 +0,0 @@ # CodePush Management SDK (Node.js)

@@ -31,3 +31,3 @@ var fs = require("fs");

if (!accessKey)
throw new Error("An access key must be specified.");
throw new Error("A token must be specified.");
this._accessKey = accessKey;

@@ -177,4 +177,10 @@ this._customHeaders = customHeaders;

};
AccountManager.prototype.addApp = function (appName) {
var app = { name: appName };
AccountManager.prototype.addApp = function (appName, appOs, appPlatform, manuallyProvisionDeployments) {
if (manuallyProvisionDeployments === void 0) { manuallyProvisionDeployments = false; }
var app = {
name: appName,
os: appOs,
platform: appPlatform,
manuallyProvisionDeployments: manuallyProvisionDeployments
};
return this.post((_a = ["/apps/"], _a.raw = ["/apps/"], urlEncode(_a)), JSON.stringify(app), false)

@@ -462,2 +468,3 @@ .then(function () { return app; });

AccountManager.SERVER_URL = "https://codepush-management.azurewebsites.net";
AccountManager.MOBILE_CENTER_SERVER_URL = "https://mobile.azure.com";
AccountManager.API_VERSION = 2;

@@ -464,0 +471,0 @@ AccountManager.ERROR_GATEWAY_TIMEOUT = 504; // Used if there is a network error

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

var methodsWithErrorHandling = [
manager.addApp.bind(manager, "appName"),
manager.addApp.bind(manager, "appName", "appOs", "appPlatform"),
manager.getApp.bind(manager, "appName"),

@@ -100,3 +100,3 @@ manager.renameApp.bind(manager, "appName", {}),

mockReturn(JSON.stringify({ success: true }), 201, { location: "/appName" });
manager.addApp("appName")
manager.addApp("appName", "iOS", "React-Native")
.done(function (obj) {

@@ -109,3 +109,3 @@ assert.ok(obj);

mockReturn(JSON.stringify({ success: false }), 404, {});
manager.addApp("appName")
manager.addApp("appName", "iOS", "React-Native")
.done(function (obj) {

@@ -112,0 +112,0 @@ throw new Error("Call should not complete successfully");

@@ -0,0 +0,0 @@ // ./superagent-mock-config.js file

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