Socket
Socket
Sign inDemoInstall

electron-publish

Package Overview
Dependencies
Maintainers
2
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-publish - npm Package Compare versions

Comparing version 23.0.0-alpha.0 to 23.0.0-alpha.1

1

out/gitHubPublisher.d.ts

@@ -30,2 +30,3 @@ /// <reference types="node" />

private doUploadFile;
private doesErrorMeanAlreadyExists;
private createRelease;

@@ -32,0 +33,0 @@ getRelease(): Promise<any>;

@@ -146,3 +146,3 @@ "use strict";

.catch(e => {
if (e.statusCode === 422 && e.description != null && e.description.errors != null && e.description.errors[0].code === "already_exists") {
if (this.doesErrorMeanAlreadyExists(e)) {
return this.overwriteArtifact(fileName, release).then(() => this.doUploadFile(attemptNumber, parsedUrl, fileName, dataLength, requestProcessor, release));

@@ -163,2 +163,10 @@ }

}
doesErrorMeanAlreadyExists(e) {
if (!e.description) {
return false;
}
const desc = e.description;
const descIncludesAlreadyExists = (desc.includes("errors") && desc.includes("already_exists")) || (desc.errors && desc.errors.length >= 1 && desc.errors[0].code === "already_exists");
return e.statusCode === 422 && descIncludesAlreadyExists;
}
createRelease() {

@@ -165,0 +173,0 @@ return this.githubRequest(`/repos/${this.info.owner}/${this.info.repo}/releases`, this.token, {

2

package.json
{
"name": "electron-publish",
"version": "23.0.0-alpha.0",
"version": "23.0.0-alpha.1",
"main": "out/publisher.js",

@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev",

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