Socket
Socket
Sign inDemoInstall

electron-builder-util

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-builder-util - npm Package Compare versions

Comparing version 19.8.0 to 19.11.0

11

out/electron-builder-util.d.ts
declare module "electron-builder-util/out/promise" {
import BluebirdPromise from "bluebird-lst"
export function printErrorAndExit(error: Error): void

@@ -12,8 +11,2 @@

export function all(promises: Array<Promise<any>>): BluebirdPromise<any>
export function throwError(errors: Array<Error>): void
export function asyncAll(tasks: Array<() => Promise<any>>): BluebirdPromise<any[]>
export function orNullIfFileNotExist<T>(promise: Promise<T>): Promise<T | null>

@@ -107,3 +100,3 @@

export function isPullRequest(): boolean | ""
export function isPullRequest(): boolean | "" | undefined

@@ -110,0 +103,0 @@ export function safeStringifyJson(data: any, skippedNames?: Set<string>): string

@@ -14,8 +14,2 @@ "use strict";

var _bluebirdLst2;
function _load_bluebirdLst2() {
return _bluebirdLst2 = _interopRequireDefault(require("bluebird-lst"));
}
// you don't need to handle error in your task - it is passed only indicate status of promise

@@ -49,5 +43,2 @@ let executeFinally = exports.executeFinally = (() => {

exports.printErrorAndExit = printErrorAndExit;
exports.all = all;
exports.throwError = throwError;
exports.asyncAll = asyncAll;
exports.orNullIfFileNotExist = orNullIfFileNotExist;

@@ -62,4 +53,2 @@ exports.orIfFileNotExist = orIfFileNotExist;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function printErrorAndExit(error) {

@@ -75,3 +64,3 @@ console.error((0, (_chalk || _load_chalk()).red)((error.stack || error).toString()));

for (const error of errors) {
const prefix = "Error #" + i++ + " ";
const prefix = `Error #${i++} `;
m += "\n\n" + prefix + "-".repeat(80) + "\n" + error.stack;

@@ -83,16 +72,2 @@ }

exports.NestedError = NestedError;
function all(promises) {
const errors = [];
return (_bluebirdLst2 || _load_bluebirdLst2()).default.all(promises.map(it => it.catch(it => errors.push(it)))).then(() => throwError(errors));
}
function throwError(errors) {
if (errors.length === 1) {
throw errors[0];
} else if (errors.length > 1) {
throw new NestedError(errors, "Cannot cleanup: ");
}
}
function asyncAll(tasks) {
return (_bluebirdLst2 || _load_bluebirdLst2()).default.map(tasks, it => it());
}
function orNullIfFileNotExist(promise) {

@@ -99,0 +74,0 @@ return orIfFileNotExist(promise, null);

24

out/tmp.js

@@ -28,2 +28,8 @@ "use strict";

var _fs;
function _load_fs() {
return _fs = require("./fs");
}
var _log;

@@ -35,8 +41,2 @@

var _promise;
function _load_promise() {
return _promise = require("./promise");
}
var _util;

@@ -110,9 +110,11 @@

this.tempPrefixPromise = null;
return (0, (_promise || _load_promise()).all)(tempFiles.map(it => (0, (_fsExtraP || _load_fsExtraP()).remove)(it).catch(e => {
if (e.code !== "EPERM") {
(0, (_log || _load_log()).warn)(`Cannot delete temporary dir "${it}": ${(e.stack || e).toString()}`);
}
})));
return (_bluebirdLst || _load_bluebirdLst()).default.map(tempFiles, it => {
(0, (_fsExtraP || _load_fsExtraP()).remove)(it).catch(e => {
if (e.code !== "EPERM") {
(0, (_log || _load_log()).warn)(`Cannot delete temporary dir "${it}": ${(e.stack || e).toString()}`);
}
});
}, (_fs || _load_fs()).CONCURRENCY);
}
}
exports.TmpDir = TmpDir; //# sourceMappingURL=tmp.js.map
{
"name": "electron-builder-util",
"version": "19.8.0",
"version": "19.11.0",
"main": "out/util.js",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc