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

code-push

Package Overview
Dependencies
Maintainers
2
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.5.2-beta to 1.6.0-beta

5

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

@@ -18,8 +18,7 @@ "main": "script/index.js",

"base-64": "^0.1.0",
"fs": "0.0.2",
"node-uuid": "^1.4.3",
"q": "^1.4.1",
"superagent": "git://github.com/visionmedia/superagent.git#45a1290b2fe5a56a1d77ca74e0b236178d58d848",
"superagent": "^1.7.2",
"try-json": "^1.0.0"
}
}

@@ -17,2 +17,7 @@ var base64 = require("base-64");

}
var Permissions;
(function (Permissions) {
Permissions.Owner = "Owner";
Permissions.Collaborator = "Collaborator";
})(Permissions = exports.Permissions || (exports.Permissions = {}));
var AccountManager = (function () {

@@ -463,2 +468,113 @@ function AccountManager(serverUrl, userAgent) {

};
AccountManager.prototype.transferApp = function (appId, email) {
var _this = this;
return Promise(function (resolve, reject, notify) {
var requester = (_this._authedAgent ? _this._authedAgent : request);
var req = requester.post(_this.serverUrl + "/apps/" + appId + "/transfer/" + email);
_this.attachCredentials(req, requester);
req.end(function (err, res) {
if (err) {
reject({ message: _this.getErrorMessage(err, res) });
return;
}
if (res.ok) {
resolve(null);
}
else {
var body = tryJSON(res.text);
if (body) {
reject(body);
}
else {
reject({ message: res.text, statusCode: res.status });
}
}
});
});
};
// Collaborators
AccountManager.prototype.getCollaboratorsList = function (appId) {
var _this = this;
return Promise(function (resolve, reject, notify) {
var requester = (_this._authedAgent ? _this._authedAgent : request);
var req = requester.get(_this.serverUrl + "/apps/" + appId + "/collaborators");
_this.attachCredentials(req, requester);
req.end(function (err, res) {
if (err) {
reject({ message: _this.getErrorMessage(err, res) });
return;
}
var body = tryJSON(res.text);
if (res.ok) {
if (body) {
resolve(body.collaborators);
}
else {
reject({ message: "Could not parse response: " + res.text, statusCode: res.status });
}
}
else {
if (body) {
reject(body);
}
else {
reject({ message: res.text, statusCode: res.status });
}
}
});
});
};
AccountManager.prototype.addCollaborator = function (appId, email) {
var _this = this;
return Promise(function (resolve, reject, notify) {
var requester = (_this._authedAgent ? _this._authedAgent : request);
var req = requester.post(_this.serverUrl + "/apps/" + appId + "/collaborators/" + email);
_this.attachCredentials(req, requester);
req.end(function (err, res) {
if (err) {
reject({ message: _this.getErrorMessage(err, res) });
return;
}
if (res.ok) {
resolve(null);
}
else {
var body = tryJSON(res.text);
if (body) {
reject(body);
}
else {
reject({ message: res.text, statusCode: res.status });
}
}
});
});
};
AccountManager.prototype.removeCollaborator = function (app, email) {
var _this = this;
return Promise(function (resolve, reject, notify) {
var id = (typeof app === "string") ? app : app.id;
var requester = (_this._authedAgent ? _this._authedAgent : request);
var req = requester.del(_this.serverUrl + "/apps/" + id + "/collaborators/" + email);
_this.attachCredentials(req, requester);
req.end(function (err, res) {
if (err) {
reject({ message: _this.getErrorMessage(err, res) });
return;
}
if (res.ok) {
resolve(null);
}
else {
var body = tryJSON(res.text);
if (body) {
reject(body);
}
else {
reject({ message: res.text, statusCode: res.status });
}
}
});
});
};
// Deployments

@@ -465,0 +581,0 @@ AccountManager.prototype.addDeployment = function (appId, name) {

plugin.xml

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