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.20.1 to 19.21.0

8

out/binDownload.js

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

// 7z cannot be extracted from the input stream, temp file is required
const tempUnpackDir = _path.join(cachePath, (0, (_util || _load_util()).getTempName)());
const tempUnpackDir = _path.join(cachePath, (0, (_tempFile || _load_tempFile()).getTempName)());
const archiveName = `${tempUnpackDir}.7z`;

@@ -112,2 +112,8 @@ debug(`Download ${name} from ${url} to ${archiveName}`);

var _tempFile;
function _load_tempFile() {
return _tempFile = require("temp-file");
}
var _fs;

@@ -114,0 +120,0 @@

4

out/util.d.ts
/// <reference types="node" />
import { ChildProcess, SpawnOptions } from "child_process";
import "source-map-support/register";
export { TmpDir } from "./tmp";
export { TmpDir } from "temp-file";
export { log, warn, task, subTask } from "./log";

@@ -34,4 +34,2 @@ export { isMacOsSierra } from "./macosVersion";

export declare function debug7zArgs(command: "a" | "x"): Array<string>;
export declare let tmpDirCounter: number;
export declare function getTempName(prefix?: string | null | undefined): string;
export declare function isEmptyOrSpaces(s: string | null | undefined): s is "" | null | undefined;

@@ -38,0 +36,0 @@ export declare function isTokenCharValid(token: string): boolean;

@@ -6,8 +6,8 @@ "use strict";

});
exports.tmpDirCounter = exports.debug7z = exports.debug = exports.archFromString = exports.getArchSuffix = exports.toLinuxArchString = exports.Arch = exports.prepareWindowsExecutableArgs = exports.execWine = exports.isMacOsSierra = exports.subTask = exports.task = exports.warn = exports.log = exports.TmpDir = undefined;
exports.debug7z = exports.debug = exports.archFromString = exports.getArchSuffix = exports.toLinuxArchString = exports.Arch = exports.prepareWindowsExecutableArgs = exports.execWine = exports.isMacOsSierra = exports.subTask = exports.task = exports.warn = exports.log = exports.TmpDir = undefined;
var _tmp;
var _tempFile;
function _load_tmp() {
return _tmp = require("./tmp");
function _load_tempFile() {
return _tempFile = require("temp-file");
}

@@ -18,3 +18,3 @@

get: function () {
return (_tmp || _load_tmp()).TmpDir;
return (_tempFile || _load_tempFile()).TmpDir;
}

@@ -123,3 +123,2 @@ });

exports.debug7zArgs = debug7zArgs;
exports.getTempName = getTempName;
exports.isEmptyOrSpaces = isEmptyOrSpaces;

@@ -198,3 +197,3 @@ exports.isTokenCharValid = isTokenCharValid;

for (const name of Object.keys(process.env)) {
if (process.env[name] !== "") {
if (process.env[name] === options.env[name]) {
delete diffEnv[name];

@@ -304,8 +303,2 @@ }

}
let tmpDirCounter = exports.tmpDirCounter = 0;
// add date to avoid use stale temp dir
const tempDirPrefix = `${process.pid.toString(16)}-${Date.now().toString(16)}`;
function getTempName(prefix) {
return `${prefix == null ? "" : `${prefix}-`}${tempDirPrefix}-${(exports.tmpDirCounter = tmpDirCounter += 1, tmpDirCounter - 1).toString(16)}`;
}
function isEmptyOrSpaces(s) {

@@ -312,0 +305,0 @@ return s == null || s.trim().length === 0;

@@ -106,8 +106,3 @@ "use strict";

path: _path.join(wineDir, "bin/wine"),
env: {
WINEDEBUG: "-all,err+all",
WINEDLLOVERRIDES: "winemenubuilder.exe=d",
WINEPREFIX: _path.join(wineDir, "wine-home"),
DYLD_FALLBACK_LIBRARY_PATH: (0, (_bundledTool || _load_bundledTool()).computeEnv)(process.env.DYLD_FALLBACK_LIBRARY_PATH, [_path.join(wineDir, "lib")])
}
env: Object.assign({}, process.env, { WINEDEBUG: "-all,err+all", WINEDLLOVERRIDES: "winemenubuilder.exe=d", WINEPREFIX: _path.join(wineDir, "wine-home"), DYLD_FALLBACK_LIBRARY_PATH: (0, (_bundledTool || _load_bundledTool()).computeEnv)(process.env.DYLD_FALLBACK_LIBRARY_PATH, [_path.join(wineDir, "lib")]) })
};

@@ -114,0 +109,0 @@ }

{
"name": "electron-builder-util",
"version": "19.20.1",
"version": "19.21.0",
"main": "out/util.js",

@@ -14,3 +14,3 @@ "author": "Vladimir Krivosheev",

"dependencies": {
"async-exit-hook": "^2.0.1",
"temp-file": "^1.0.1",
"fs-extra-p": "^4.4.0",

@@ -24,3 +24,3 @@ "fcopy-pre-bundled": "0.3.4",

"node-emoji": "^1.8.1",
"electron-builder-http": "~19.20.1",
"electron-builder-http": "~19.21.0",
"source-map-support": "^0.4.15",

@@ -27,0 +27,0 @@ "7zip-bin": "^2.1.0",

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc