forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
10
electron/node_modules/builder-util-runtime/out/uuid.js
generated
vendored
10
electron/node_modules/builder-util-runtime/out/uuid.js
generated
vendored
|
|
@ -2,10 +2,10 @@
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.nil = exports.UUID = void 0;
|
||||
const crypto_1 = require("crypto");
|
||||
const index_1 = require("./index");
|
||||
const error_1 = require("./error");
|
||||
const invalidName = "options.name must be either a string or a Buffer";
|
||||
// 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;
|
||||
// lookup table hex to byte
|
||||
const hex2byte = {};
|
||||
|
|
@ -80,7 +80,7 @@ class UUID {
|
|||
format: "binary",
|
||||
};
|
||||
}
|
||||
throw index_1.newError("Unknown type of uuid", "ERR_UNKNOWN_UUID_TYPE");
|
||||
throw (0, error_1.newError)("Unknown type of uuid", "ERR_UNKNOWN_UUID_TYPE");
|
||||
}
|
||||
// read stringified uuid into a Buffer
|
||||
static parse(input) {
|
||||
|
|
@ -122,10 +122,10 @@ var UuidEncoding;
|
|||
})(UuidEncoding || (UuidEncoding = {}));
|
||||
// v3 + v5
|
||||
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, error_1.newError)(invalidName, "ERR_INVALID_UUID_NAME");
|
||||
}
|
||||
hash.update(namespace);
|
||||
hash.update(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue