Comparing version 1.11.2-beta to 2.0.0-beta
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
66712
1330