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

@electron-forge/publisher-electron-release-server

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-forge/publisher-electron-release-server - npm Package Compare versions

Comparing version 6.0.0-beta.50 to 6.0.0-beta.51

@@ -30,2 +30,13 @@ "use strict";

const fetchAndCheckStatus = async (url, init) => {
const result = await (0, _nodeFetch.default)(url, init);
if (result.ok) {
// res.status >= 200 && res.status < 300
return result;
}
throw new Error(`ERS publish failed with status code: ${result.status} (${result.url})`);
};
const ersPlatform = (platform, arch) => {

@@ -73,3 +84,3 @@ switch (platform) {

token
} = await (await (0, _nodeFetch.default)(api('api/auth/login'), {
} = await (await fetchAndCheckStatus(api('api/auth/login'), {
method: 'POST',

@@ -85,3 +96,3 @@ body: JSON.stringify({

const authFetch = (apiPath, options) => (0, _nodeFetch.default)(api(apiPath), { ...(options || {}),
const authFetch = (apiPath, options) => fetchAndCheckStatus(api(apiPath), { ...(options || {}),
headers: { ...(options || {}).headers,

@@ -170,2 +181,2 @@ Authorization: `Bearer ${token}`

exports.default = PublisherERS;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9QdWJsaXNoZXJFUlMudHMiXSwibmFtZXMiOlsiZCIsImVyc1BsYXRmb3JtIiwicGxhdGZvcm0iLCJhcmNoIiwiUHVibGlzaGVyRVJTIiwiUHVibGlzaGVyQmFzZSIsInB1Ymxpc2giLCJtYWtlUmVzdWx0cyIsImNvbmZpZyIsImJhc2VVcmwiLCJ1c2VybmFtZSIsInBhc3N3b3JkIiwiRXJyb3IiLCJhcGkiLCJhcGlQYXRoIiwidG9rZW4iLCJtZXRob2QiLCJib2R5IiwiSlNPTiIsInN0cmluZ2lmeSIsImhlYWRlcnMiLCJqc29uIiwiYXV0aEZldGNoIiwib3B0aW9ucyIsIkF1dGhvcml6YXRpb24iLCJ2ZXJzaW9ucyIsIm1ha2VSZ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lYXRlUmVhZFN0cmVhbShhcnRpZmFjdFBhdGgpKTtcbiAgICAgICAgICBhd2FpdCBhdXRoRmV0Y2goJ2FwaS9hc3NldCcsIHtcbiAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgYm9keTogYXJ0aWZhY3RGb3JtLFxuICAgICAgICAgICAgaGVhZGVyczogYXJ0aWZhY3RGb3JtLmdldEhlYWRlcnMoKSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICBkKCd1cGxvYWQgc3VjY2Vzc2Z1bCBmb3IgYXNzZXQ6JywgYXJ0aWZhY3RQYXRoKTtcbiAgICAgICAgICB1cGxvYWRlZCArPSAxO1xuICAgICAgICAgIHVwZGF0ZVNwaW5uZXIoKTtcbiAgICAgICAgfSkpO1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iXX0=
{
"name": "@electron-forge/publisher-electron-release-server",
"version": "6.0.0-beta.50",
"version": "6.0.0-beta.51",
"description": "Electron release server publisher for Electron Forge",

@@ -12,3 +12,5 @@ "repository": "https://github.com/electron-userland/electron-forge",

"chai": "4.2.0",
"mocha": "^7.0.1"
"fetch-mock": "^9.2.1",
"mocha": "^7.1.2",
"proxyquire": "^2.1.3"
},

@@ -19,10 +21,10 @@ "engines": {

"dependencies": {
"@electron-forge/async-ora": "6.0.0-beta.50",
"@electron-forge/publisher-base": "6.0.0-beta.50",
"@electron-forge/shared-types": "6.0.0-beta.50",
"@electron-forge/async-ora": "6.0.0-beta.51",
"@electron-forge/publisher-base": "6.0.0-beta.51",
"@electron-forge/shared-types": "6.0.0-beta.51",
"debug": "^4.1.0",
"form-data": "3.0.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.0",
"node-fetch": "^2.6.0"
}
}