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
37
electron/node_modules/@peculiar/utils/build/cjs/legacy/buffer-source-converter.js
generated
vendored
Normal file
37
electron/node_modules/@peculiar/utils/build/cjs/legacy/buffer-source-converter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BufferSourceConverter = void 0;
|
||||
const index_js_1 = require("../bytes/index.js");
|
||||
class BufferSourceConverter {
|
||||
static isArrayBuffer(data) {
|
||||
return (0, index_js_1.isArrayBuffer)(data);
|
||||
}
|
||||
static toArrayBuffer(data) {
|
||||
return (0, index_js_1.toArrayBuffer)(data);
|
||||
}
|
||||
static toUint8Array(data) {
|
||||
return (0, index_js_1.toUint8Array)(data);
|
||||
}
|
||||
static toView(data, type) {
|
||||
return (0, index_js_1.toView)(data, type);
|
||||
}
|
||||
static isBufferSource(data) {
|
||||
return (0, index_js_1.isBufferSource)(data);
|
||||
}
|
||||
static isArrayBufferView(data) {
|
||||
return (0, index_js_1.isArrayBufferView)(data);
|
||||
}
|
||||
static isEqual(a, b) {
|
||||
return (0, index_js_1.equal)(a, b);
|
||||
}
|
||||
static concat(first, second, ...rest) {
|
||||
if (Array.isArray(first)) {
|
||||
return typeof second === "function"
|
||||
? (0, index_js_1.concat)(first, second)
|
||||
: (0, index_js_1.concat)(first);
|
||||
}
|
||||
const buffers = [first, second, ...rest].filter(Boolean);
|
||||
return (0, index_js_1.concat)(buffers);
|
||||
}
|
||||
}
|
||||
exports.BufferSourceConverter = BufferSourceConverter;
|
||||
72
electron/node_modules/@peculiar/utils/build/cjs/legacy/convert.js
generated
vendored
Normal file
72
electron/node_modules/@peculiar/utils/build/cjs/legacy/convert.js
generated
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Convert = void 0;
|
||||
const index_js_1 = require("../converters/index.js");
|
||||
function normalizeTextEncoding(encoding) {
|
||||
return encoding === "ascii" ? "binary" : encoding;
|
||||
}
|
||||
class Convert {
|
||||
static DEFAULT_UTF8_ENCODING = "utf8";
|
||||
static isHex(data) {
|
||||
return index_js_1.convert.isHex(data);
|
||||
}
|
||||
static isBase64(data) {
|
||||
return index_js_1.convert.isBase64(data);
|
||||
}
|
||||
static isBase64Url(data) {
|
||||
return index_js_1.convert.isBase64Url(data);
|
||||
}
|
||||
static ToString(buffer, enc = "utf8") {
|
||||
return index_js_1.convert.toString(buffer, enc);
|
||||
}
|
||||
static FromString(str, enc = "utf8") {
|
||||
if (!str) {
|
||||
return new ArrayBuffer(0);
|
||||
}
|
||||
return index_js_1.convert.fromString(str, enc);
|
||||
}
|
||||
static ToBase64(buffer) {
|
||||
return index_js_1.convert.toBase64(buffer);
|
||||
}
|
||||
static FromBase64(base64) {
|
||||
return index_js_1.convert.fromBase64(base64);
|
||||
}
|
||||
static FromBase64Url(base64url) {
|
||||
return index_js_1.convert.fromBase64Url(base64url);
|
||||
}
|
||||
static ToBase64Url(data) {
|
||||
return index_js_1.convert.toBase64Url(data);
|
||||
}
|
||||
static FromUtf8String(text, encoding = Convert.DEFAULT_UTF8_ENCODING) {
|
||||
return index_js_1.convert.fromString(text, normalizeTextEncoding(encoding));
|
||||
}
|
||||
static ToUtf8String(buffer, encoding = Convert.DEFAULT_UTF8_ENCODING) {
|
||||
return index_js_1.convert.toString(buffer, normalizeTextEncoding(encoding));
|
||||
}
|
||||
static FromBinary(text) {
|
||||
return index_js_1.convert.fromBinary(text);
|
||||
}
|
||||
static ToBinary(buffer) {
|
||||
return index_js_1.convert.toBinary(buffer);
|
||||
}
|
||||
static ToHex(buffer) {
|
||||
return index_js_1.convert.toHex(buffer);
|
||||
}
|
||||
static FromHex(hexString) {
|
||||
return index_js_1.convert.fromHex(hexString);
|
||||
}
|
||||
static ToUtf16String(buffer, littleEndian = false) {
|
||||
return index_js_1.convert.toUtf16String(buffer, littleEndian);
|
||||
}
|
||||
static FromUtf16String(text, littleEndian = false) {
|
||||
return index_js_1.convert.fromUtf16String(text, littleEndian);
|
||||
}
|
||||
static Base64Padding(base64) {
|
||||
const padCount = 4 - (base64.length % 4);
|
||||
return padCount < 4 ? base64 + "=".repeat(padCount) : base64;
|
||||
}
|
||||
static formatString(data) {
|
||||
return index_js_1.convert.formatString(data);
|
||||
}
|
||||
}
|
||||
exports.Convert = Convert;
|
||||
23
electron/node_modules/@peculiar/utils/build/cjs/legacy/functions.js
generated
vendored
Normal file
23
electron/node_modules/@peculiar/utils/build/cjs/legacy/functions.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.assign = assign;
|
||||
exports.combine = combine;
|
||||
exports.isEqual = isEqual;
|
||||
const index_js_1 = require("../bytes/index.js");
|
||||
function assign(target, ...sources) {
|
||||
for (const source of sources) {
|
||||
if (!source) {
|
||||
continue;
|
||||
}
|
||||
for (const prop in source) {
|
||||
target[prop] = source[prop];
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
function combine(...buf) {
|
||||
return (0, index_js_1.concat)(buf);
|
||||
}
|
||||
function isEqual(bytes1, bytes2) {
|
||||
return (0, index_js_1.equal)(bytes1, bytes2);
|
||||
}
|
||||
11
electron/node_modules/@peculiar/utils/build/cjs/legacy/index.js
generated
vendored
Normal file
11
electron/node_modules/@peculiar/utils/build/cjs/legacy/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isEqual = exports.combine = exports.assign = exports.Convert = exports.BufferSourceConverter = void 0;
|
||||
var buffer_source_converter_js_1 = require("./buffer-source-converter.js");
|
||||
Object.defineProperty(exports, "BufferSourceConverter", { enumerable: true, get: function () { return buffer_source_converter_js_1.BufferSourceConverter; } });
|
||||
var convert_js_1 = require("./convert.js");
|
||||
Object.defineProperty(exports, "Convert", { enumerable: true, get: function () { return convert_js_1.Convert; } });
|
||||
var functions_js_1 = require("./functions.js");
|
||||
Object.defineProperty(exports, "assign", { enumerable: true, get: function () { return functions_js_1.assign; } });
|
||||
Object.defineProperty(exports, "combine", { enumerable: true, get: function () { return functions_js_1.combine; } });
|
||||
Object.defineProperty(exports, "isEqual", { enumerable: true, get: function () { return functions_js_1.isEqual; } });
|
||||
Loading…
Add table
Add a link
Reference in a new issue