Socket
Socket
Sign inDemoInstall

builder-util-runtime

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builder-util-runtime - npm Package Compare versions

Comparing version 9.1.1 to 9.1.2-alpha.0

2

out/CancellationToken.js

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

})
.catch(e => {
.catch((e) => {
finallyHandler();

@@ -82,0 +82,0 @@ throw e;

/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { BinaryToTextEncoding } from "crypto";

@@ -3,0 +7,0 @@ import { IncomingMessage, OutgoingHttpHeaders, RequestOptions } from "http";

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

const ProgressCallbackTransform_1 = require("./ProgressCallbackTransform");
const debug = debug_1.default("electron-builder");
const debug = (0, debug_1.default)("electron-builder");
function createHttpError(response, description = null) {

@@ -323,3 +323,3 @@ return new HttpError(response.statusCode || -1, `${response.statusCode} ${response.statusMessage}` +

this.isValidateOnEnd = true;
this.digester = crypto_1.createHash(algorithm);
this.digester = (0, crypto_1.createHash)(algorithm);
}

@@ -351,6 +351,6 @@ // noinspection JSUnusedGlobalSymbols

if (this._actual == null) {
throw index_1.newError("Not finished yet", "ERR_STREAM_NOT_FINISHED");
throw (0, index_1.newError)("Not finished yet", "ERR_STREAM_NOT_FINISHED");
}
if (this._actual !== this.expected) {
throw index_1.newError(`${this.algorithm} checksum mismatch, expected ${this.expected}, got ${this._actual}`, "ERR_CHECKSUM_MISMATCH");
throw (0, index_1.newError)(`${this.algorithm} checksum mismatch, expected ${this.expected}, got ${this._actual}`, "ERR_CHECKSUM_MISMATCH");
}

@@ -400,3 +400,3 @@ return null;

}
const fileOut = fs_1.createWriteStream(options.destination);
const fileOut = (0, fs_1.createWriteStream)(options.destination);
streams.push(fileOut);

@@ -403,0 +403,0 @@ let lastStream = response;

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

// Node ID according to rfc4122#section-4.5
const randomHost = crypto_1.randomBytes(16);
const randomHost = (0, crypto_1.randomBytes)(16);
randomHost[0] = randomHost[0] | 0x01;

@@ -84,3 +84,3 @@ // lookup table hex to byte

}
throw index_1.newError("Unknown type of uuid", "ERR_UNKNOWN_UUID_TYPE");
throw (0, index_1.newError)("Unknown type of uuid", "ERR_UNKNOWN_UUID_TYPE");
}

@@ -127,6 +127,6 @@ // read stringified uuid into a Buffer

function uuidNamed(name, hashMethod, version, namespace, encoding = UuidEncoding.ASCII) {
const hash = crypto_1.createHash(hashMethod);
const hash = (0, crypto_1.createHash)(hashMethod);
const nameIsNotAString = typeof name !== "string";
if (nameIsNotAString && !Buffer.isBuffer(name)) {
throw index_1.newError(invalidName, "ERR_INVALID_UUID_NAME");
throw (0, index_1.newError)(invalidName, "ERR_INVALID_UUID_NAME");
}

@@ -133,0 +133,0 @@ hash.update(namespace);

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

if (!name) {
throw index_1.newError("Element name cannot be empty", "ERR_XML_ELEMENT_NAME_EMPTY");
throw (0, index_1.newError)("Element name cannot be empty", "ERR_XML_ELEMENT_NAME_EMPTY");
}
if (!isValidName(name)) {
throw index_1.newError(`Invalid element name: ${name}`, "ERR_XML_ELEMENT_INVALID_NAME");
throw (0, index_1.newError)(`Invalid element name: ${name}`, "ERR_XML_ELEMENT_INVALID_NAME");
}

@@ -24,3 +24,3 @@ }

if (result == null) {
throw index_1.newError(`No attribute "${name}"`, "ERR_XML_MISSED_ATTRIBUTE");
throw (0, index_1.newError)(`No attribute "${name}"`, "ERR_XML_MISSED_ATTRIBUTE");
}

@@ -37,3 +37,3 @@ return result;

if (result === null) {
throw index_1.newError(errorIfMissed || `No element "${name}"`, "ERR_XML_MISSED_ELEMENT");
throw (0, index_1.newError)(errorIfMissed || `No element "${name}"`, "ERR_XML_MISSED_ELEMENT");
}

@@ -40,0 +40,0 @@ return result;

{
"name": "builder-util-runtime",
"version": "9.1.1",
"version": "9.1.2-alpha.0",
"main": "out/index.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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc