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
1
electron/node_modules/builder-util-runtime/out/CancellationToken.d.ts
generated
vendored
1
electron/node_modules/builder-util-runtime/out/CancellationToken.d.ts
generated
vendored
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="node" />
|
||||
import { EventEmitter } from "events";
|
||||
export declare class CancellationToken extends EventEmitter {
|
||||
private parentCancelHandler;
|
||||
|
|
|
|||
22
electron/node_modules/builder-util-runtime/out/CancellationToken.js
generated
vendored
22
electron/node_modules/builder-util-runtime/out/CancellationToken.js
generated
vendored
|
|
@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.CancellationError = exports.CancellationToken = void 0;
|
||||
const events_1 = require("events");
|
||||
class CancellationToken extends events_1.EventEmitter {
|
||||
get cancelled() {
|
||||
return this._cancelled || (this._parent != null && this._parent.cancelled);
|
||||
}
|
||||
set parent(value) {
|
||||
this.removeParentCancelHandler();
|
||||
this._parent = value;
|
||||
this.parentCancelHandler = () => this.cancel();
|
||||
this._parent.onCancel(this.parentCancelHandler);
|
||||
}
|
||||
// babel cannot compile ... correctly for super calls
|
||||
constructor(parent) {
|
||||
super();
|
||||
|
|
@ -13,15 +22,6 @@ class CancellationToken extends events_1.EventEmitter {
|
|||
this.parent = parent;
|
||||
}
|
||||
}
|
||||
get cancelled() {
|
||||
return this._cancelled || (this._parent != null && this._parent.cancelled);
|
||||
}
|
||||
set parent(value) {
|
||||
this.removeParentCancelHandler();
|
||||
this._parent = value;
|
||||
this.parentCancelHandler = () => this.cancel();
|
||||
this._parent.onCancel(this.parentCancelHandler);
|
||||
}
|
||||
cancel() {
|
||||
this._cancelled = true;
|
||||
this.emit("cancel");
|
||||
|
|
@ -44,7 +44,7 @@ class CancellationToken extends events_1.EventEmitter {
|
|||
this.removeListener("cancel", cancelHandler);
|
||||
cancelHandler = null;
|
||||
}
|
||||
catch (ignore) {
|
||||
catch (_ignore) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ class CancellationToken extends events_1.EventEmitter {
|
|||
finallyHandler();
|
||||
return it;
|
||||
})
|
||||
.catch(e => {
|
||||
.catch((e) => {
|
||||
finallyHandler();
|
||||
throw e;
|
||||
});
|
||||
|
|
|
|||
2
electron/node_modules/builder-util-runtime/out/CancellationToken.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/CancellationToken.js.map
generated
vendored
File diff suppressed because one or more lines are too long
10
electron/node_modules/builder-util-runtime/out/MemoLazy.d.ts
generated
vendored
Normal file
10
electron/node_modules/builder-util-runtime/out/MemoLazy.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export declare class MemoLazy<S, V> {
|
||||
private selector;
|
||||
private creator;
|
||||
private selected;
|
||||
private _value;
|
||||
constructor(selector: () => S, creator: (selected: S) => Promise<V>);
|
||||
get hasValue(): boolean;
|
||||
get value(): Promise<V>;
|
||||
set value(value: Promise<V>);
|
||||
}
|
||||
42
electron/node_modules/builder-util-runtime/out/MemoLazy.js
generated
vendored
Normal file
42
electron/node_modules/builder-util-runtime/out/MemoLazy.js
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MemoLazy = void 0;
|
||||
class MemoLazy {
|
||||
constructor(selector, creator) {
|
||||
this.selector = selector;
|
||||
this.creator = creator;
|
||||
this.selected = undefined;
|
||||
this._value = undefined;
|
||||
}
|
||||
get hasValue() {
|
||||
return this._value !== undefined;
|
||||
}
|
||||
get value() {
|
||||
const selected = this.selector();
|
||||
if (this._value !== undefined && equals(this.selected, selected)) {
|
||||
// value exists and selected hasn't changed, so return the cached value
|
||||
return this._value;
|
||||
}
|
||||
this.selected = selected;
|
||||
const result = this.creator(selected);
|
||||
this.value = result;
|
||||
return result;
|
||||
}
|
||||
set value(value) {
|
||||
this._value = value;
|
||||
}
|
||||
}
|
||||
exports.MemoLazy = MemoLazy;
|
||||
function equals(firstValue, secondValue) {
|
||||
const isFirstObject = typeof firstValue === "object" && firstValue !== null;
|
||||
const isSecondObject = typeof secondValue === "object" && secondValue !== null;
|
||||
// do a shallow comparison of objects, arrays etc.
|
||||
if (isFirstObject && isSecondObject) {
|
||||
const keys1 = Object.keys(firstValue);
|
||||
const keys2 = Object.keys(secondValue);
|
||||
return keys1.length === keys2.length && keys1.every((key) => equals(firstValue[key], secondValue[key]));
|
||||
}
|
||||
// otherwise just compare the values directly
|
||||
return firstValue === secondValue;
|
||||
}
|
||||
//# sourceMappingURL=MemoLazy.js.map
|
||||
1
electron/node_modules/builder-util-runtime/out/MemoLazy.js.map
generated
vendored
Normal file
1
electron/node_modules/builder-util-runtime/out/MemoLazy.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"MemoLazy.js","sourceRoot":"","sources":["../src/MemoLazy.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;IAInB,YACU,QAAiB,EACjB,OAAoC;QADpC,aAAQ,GAAR,QAAQ,CAAS;QACjB,YAAO,GAAP,OAAO,CAA6B;QALtC,aAAQ,GAAkB,SAAS,CAAA;QACnC,WAAM,GAA2B,SAAS,CAAA;IAK/C,CAAC;IAEJ,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,CAAA;IAClC,CAAC;IAED,IAAI,KAAK;QACP,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;QAChC,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;YACjE,uEAAuE;YACvE,OAAO,IAAI,CAAC,MAAM,CAAA;QACpB,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QACrC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAA;QAEnB,OAAO,MAAM,CAAA;IACf,CAAC;IAED,IAAI,KAAK,CAAC,KAAiB;QACzB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,CAAC;CACF;AA9BD,4BA8BC;AAED,SAAS,MAAM,CAAC,UAAe,EAAE,WAAgB;IAC/C,MAAM,aAAa,GAAG,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI,CAAA;IAC3E,MAAM,cAAc,GAAG,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,KAAK,IAAI,CAAA;IAE9E,kDAAkD;IAClD,IAAI,aAAa,IAAI,cAAc,EAAE,CAAC;QACpC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACrC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAEtC,OAAO,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAC9G,CAAC;IAED,6CAA6C;IAC7C,OAAO,UAAU,KAAK,WAAW,CAAA;AACnC,CAAC","sourcesContent":["export class MemoLazy<S, V> {\n private selected: S | undefined = undefined\n private _value: Promise<V> | undefined = undefined\n\n constructor(\n private selector: () => S,\n private creator: (selected: S) => Promise<V>\n ) {}\n\n get hasValue() {\n return this._value !== undefined\n }\n\n get value(): Promise<V> {\n const selected = this.selector()\n if (this._value !== undefined && equals(this.selected, selected)) {\n // value exists and selected hasn't changed, so return the cached value\n return this._value\n }\n\n this.selected = selected\n const result = this.creator(selected)\n this.value = result\n\n return result\n }\n\n set value(value: Promise<V>) {\n this._value = value\n }\n}\n\nfunction equals(firstValue: any, secondValue: any): boolean {\n const isFirstObject = typeof firstValue === \"object\" && firstValue !== null\n const isSecondObject = typeof secondValue === \"object\" && secondValue !== null\n\n // do a shallow comparison of objects, arrays etc.\n if (isFirstObject && isSecondObject) {\n const keys1 = Object.keys(firstValue)\n const keys2 = Object.keys(secondValue)\n\n return keys1.length === keys2.length && keys1.every((key: any) => equals(firstValue[key], secondValue[key]))\n }\n\n // otherwise just compare the values directly\n return firstValue === secondValue\n}\n"]}
|
||||
1
electron/node_modules/builder-util-runtime/out/ProgressCallbackTransform.d.ts
generated
vendored
1
electron/node_modules/builder-util-runtime/out/ProgressCallbackTransform.d.ts
generated
vendored
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="node" />
|
||||
import { Transform } from "stream";
|
||||
import { CancellationToken } from "./CancellationToken";
|
||||
export interface ProgressInfo {
|
||||
|
|
|
|||
2
electron/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ProgressCallbackTransform.js","sourceRoot":"","sources":["../src/ProgressCallbackTransform.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAWlC,MAAa,yBAA0B,SAAQ,kBAAS;IAOtD,YAA6B,KAAa,EAAmB,iBAAoC,EAAmB,UAAuC;QACzJ,KAAK,EAAE,CAAA;QADoB,UAAK,GAAL,KAAK,CAAQ;QAAmB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAAmB,eAAU,GAAV,UAAU,CAA6B;QANnJ,UAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QAClB,gBAAW,GAAG,CAAC,CAAA;QACf,UAAK,GAAG,CAAC,CAAA;QAET,eAAU,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;IAItC,CAAC;IAED,UAAU,CAAC,KAAU,EAAE,QAAgB,EAAE,QAAa;QACpD,IAAI,IAAI,CAAC,iBAAi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,EAAE,GAAG;YACZ,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;SAClF,CAAC,CAAA;QACF,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;QAEd,QAAQ,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC;CACF;AAtDD,8DAsDC","sourcesContent":["import { Transform } from \"stream\"\nimport { CancellationToken } from \"./CancellationToken\"\n\nexport interface ProgressInfo {\n total: number\n delta: number\n transferred: number\n percent: number\n bytesPerSecond: number\n}\n\nexport class ProgressCallbackTransform extends Transform {\n private start = Date.now()\n private transferred = 0\n private delta = 0\n\n private nextUpdate = this.start + 1000\n\n constructor(private readonly total: number, private readonly cancellationToken: CancellationToken, private readonly onProgress: (info: ProgressInfo) => any) {\n super()\n }\n\n _transform(chunk: any, encoding: string, callback: any) {\n if (this.cancellationToken.cancelled) {\n callback(new Error(\"cancelled\"), null)\n return\n }\n\n this.transferred += chunk.length\n this.delta += chunk.length\n\n const now = Date.now()\n if (now >= this.nextUpdate && this.transferred !== this.total /* will be emitted on _flush */) {\n this.nextUpdate = now + 1000\n\n this.onProgress({\n total: this.total,\n delta: this.delta,\n transferred: this.transferred,\n percent: (this.transferred / this.total) * 100,\n bytesPerSecond: Math.round(this.transferred / ((now - this.start) / 1000)),\n })\n this.delta = 0\n }\n\n callback(null, chunk)\n }\n\n _flush(callback: any): void {\n if (this.cancellationToken.cancelled) {\n callback(new Error(\"cancelled\"))\n return\n }\n\n this.onProgress({\n total: this.total,\n delta: this.delta,\n transferred: this.total,\n percent: 100,\n bytesPerSecond: Math.round(this.transferred / ((Date.now() - this.start) / 1000)),\n })\n this.delta = 0\n\n callback(null)\n }\n}\n"]}
|
||||
{"version":3,"file":"ProgressCallbackTransform.js","sourceRoot":"","sources":["../src/ProgressCallbackTransform.ts"],"names":[],"mapp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CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;aAC3E,CAAC,CAAA;YACF,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;QAChB,CAAC;QAED,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACvB,CAAC;IAED,MAAM,CAAC,QAAa;QAClB,IAAI,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC;YACrC,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;YAChC,OAAM;QACR,CAAC;QAED,IAAI,CAAC,UAAU,CAAC;YACd,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,KAAK;YACvB,OAAO,EAAE,GAAG;YACZ,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;SAClF,CAAC,CAAA;QACF,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;QAEd,QAAQ,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC;CACF;AA1DD,8DA0DC","sourcesContent":["import { Transform } from \"stream\"\nimport { CancellationToken } from \"./CancellationToken\"\n\nexport interface ProgressInfo {\n total: number\n delta: number\n transferred: number\n percent: number\n bytesPerSecond: number\n}\n\nexport class ProgressCallbackTransform extends Transform {\n private start = Date.now()\n private transferred = 0\n private delta = 0\n\n private nextUpdate = this.start + 1000\n\n constructor(\n private readonly total: number,\n private readonly cancellationToken: CancellationToken,\n private readonly onProgress: (info: ProgressInfo) => any\n ) {\n super()\n }\n\n _transform(chunk: any, encoding: string, callback: any) {\n if (this.cancellationToken.cancelled) {\n callback(new Error(\"cancelled\"), null)\n return\n }\n\n this.transferred += chunk.length\n this.delta += chunk.length\n\n const now = Date.now()\n if (now >= this.nextUpdate && this.transferred !== this.total /* will be emitted on _flush */) {\n this.nextUpdate = now + 1000\n\n this.onProgress({\n total: this.total,\n delta: this.delta,\n transferred: this.transferred,\n percent: (this.transferred / this.total) * 100,\n bytesPerSecond: Math.round(this.transferred / ((now - this.start) / 1000)),\n })\n this.delta = 0\n }\n\n callback(null, chunk)\n }\n\n _flush(callback: any): void {\n if (this.cancellationToken.cancelled) {\n callback(new Error(\"cancelled\"))\n return\n }\n\n this.onProgress({\n total: this.total,\n delta: this.delta,\n transferred: this.total,\n percent: 100,\n bytesPerSecond: Math.round(this.transferred / ((Date.now() - this.start) / 1000)),\n })\n this.delta = 0\n\n callback(null)\n }\n}\n"]}
|
||||
1
electron/node_modules/builder-util-runtime/out/error.d.ts
generated
vendored
Normal file
1
electron/node_modules/builder-util-runtime/out/error.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export declare function newError(message: string, code: string): Error;
|
||||
9
electron/node_modules/builder-util-runtime/out/error.js
generated
vendored
Normal file
9
electron/node_modules/builder-util-runtime/out/error.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.newError = newError;
|
||||
function newError(message, code) {
|
||||
const error = new Error(message);
|
||||
error.code = code;
|
||||
return error;
|
||||
}
|
||||
//# sourceMappingURL=error.js.map
|
||||
1
electron/node_modules/builder-util-runtime/out/error.js.map
generated
vendored
Normal file
1
electron/node_modules/builder-util-runtime/out/error.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;AAAA,4BAIC;AAJD,SAAgB,QAAQ,CAAC,OAAe,EAAE,IAAY;IACpD,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAC/B;IAAC,KAA+B,CAAC,IAAI,GAAG,IAAI,CAAA;IAC7C,OAAO,KAAK,CAAA;AACd,CAAC","sourcesContent":["export function newError(message: string, code: string) {\n const error = new Error(message)\n ;(error as NodeJS.ErrnoException).code = code\n return error\n}\n"]}
|
||||
20
electron/node_modules/builder-util-runtime/out/httpExecutor.d.ts
generated
vendored
20
electron/node_modules/builder-util-runtime/out/httpExecutor.d.ts
generated
vendored
|
|
@ -1,12 +1,22 @@
|
|||
/// <reference types="node" />
|
||||
import { BinaryToTextEncoding } from "crypto";
|
||||
import { IncomingMessage, OutgoingHttpHeaders, RequestOptions } from "http";
|
||||
import { IncomingMessage, OutgoingHttpHeader, OutgoingHttpHeaders, RequestOptions } from "http";
|
||||
import { Transform } from "stream";
|
||||
import { URL } from "url";
|
||||
import { CancellationToken } from "./CancellationToken";
|
||||
import { ProgressInfo } from "./ProgressCallbackTransform";
|
||||
/**
|
||||
* Register an additional HTTP header to strip on cross-origin redirects.
|
||||
* Intended for custom publishers (e.g. GenericPublisher with a non-standard auth header).
|
||||
*/
|
||||
export declare function addSensitiveRedirectHeader(header: string): void;
|
||||
/**
|
||||
* Register an additional substring pattern used by {@link safeStringifyJson} to
|
||||
* identify sensitive field names. Input is normalized (lowercased, separators stripped).
|
||||
* Intended for custom publishers that store credentials under non-standard field names.
|
||||
*/
|
||||
export declare function addSensitiveFieldPattern(pattern: string): void;
|
||||
export interface RequestHeaders extends OutgoingHttpHeaders {
|
||||
[key: string]: string;
|
||||
[key: string]: OutgoingHttpHeader | undefined;
|
||||
}
|
||||
export interface DownloadOptions {
|
||||
readonly headers?: OutgoingHttpHeaders | null;
|
||||
|
|
@ -42,6 +52,8 @@ export declare abstract class HttpExecutor<T extends Request> {
|
|||
protected createMaxRedirectError(): Error;
|
||||
private addTimeOutHandler;
|
||||
static prepareRedirectUrlOptions(redirectUrl: string, options: RequestOptions): RequestOptions;
|
||||
private static reconstructOriginalUrl;
|
||||
private static isCrossOriginRedirect;
|
||||
static retryOnServerError(task: () => Promise<any>, maxRetries?: number): Promise<any>;
|
||||
}
|
||||
export interface DownloadCallOptions {
|
||||
|
|
@ -68,5 +80,7 @@ export declare class DigestTransform extends Transform {
|
|||
}
|
||||
export declare function safeGetHeader(response: any, headerKey: string): any;
|
||||
export declare function configureRequestOptions(options: RequestOptions, token?: string | null, method?: "GET" | "DELETE" | "PUT" | "POST"): RequestOptions;
|
||||
export declare function isSensitiveFieldName(name: string): boolean;
|
||||
export declare function hashSensitiveValue(value: string): string;
|
||||
export declare function safeStringifyJson(data: any, skippedNames?: Set<string>): string;
|
||||
export {};
|
||||
|
|
|
|||
220
electron/node_modules/builder-util-runtime/out/httpExecutor.js
generated
vendored
220
electron/node_modules/builder-util-runtime/out/httpExecutor.js
generated
vendored
|
|
@ -1,22 +1,60 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.safeStringifyJson = exports.configureRequestOptions = exports.safeGetHeader = exports.DigestTransform = exports.configureRequestUrl = exports.configureRequestOptionsFromUrl = exports.HttpExecutor = exports.parseJson = exports.HttpError = exports.createHttpError = void 0;
|
||||
exports.DigestTransform = exports.HttpExecutor = exports.HttpError = void 0;
|
||||
exports.addSensitiveRedirectHeader = addSensitiveRedirectHeader;
|
||||
exports.addSensitiveFieldPattern = addSensitiveFieldPattern;
|
||||
exports.createHttpError = createHttpError;
|
||||
exports.parseJson = parseJson;
|
||||
exports.configureRequestOptionsFromUrl = configureRequestOptionsFromUrl;
|
||||
exports.configureRequestUrl = configureRequestUrl;
|
||||
exports.safeGetHeader = safeGetHeader;
|
||||
exports.configureRequestOptions = configureRequestOptions;
|
||||
exports.isSensitiveFieldName = isSensitiveFieldName;
|
||||
exports.hashSensitiveValue = hashSensitiveValue;
|
||||
exports.safeStringifyJson = safeStringifyJson;
|
||||
const crypto_1 = require("crypto");
|
||||
const debug_1 = require("debug");
|
||||
const fs_1 = require("fs");
|
||||
const stream_1 = require("stream");
|
||||
const url_1 = require("url");
|
||||
const CancellationToken_1 = require("./CancellationToken");
|
||||
const index_1 = require("./index");
|
||||
const error_1 = require("./error");
|
||||
const ProgressCallbackTransform_1 = require("./ProgressCallbackTransform");
|
||||
const debug = debug_1.default("electron-builder");
|
||||
const debug = (0, debug_1.default)("electron-builder");
|
||||
// ── Sensitive-data registries ────────────────────────────────────────────────
|
||||
// Normalise a header or field name: lowercase + strip all separators (- and _).
|
||||
// Shared by both registries so lookup is always separator-agnostic.
|
||||
const normalizeName = (name) => name.toLowerCase().replace(/[-_]/g, "");
|
||||
// HTTP header names (normalised) stripped on cross-origin redirects.
|
||||
// Stored normalised; lookup normalises the incoming key with normalizeName().
|
||||
const SENSITIVE_REDIRECT_HEADERS = new Set(["authorization", "proxyauthorization", "privatetoken", "xapikey", "xauthtoken", "xaccesstoken", "xgitlabtoken", "cookie", "xcsrftoken"]);
|
||||
// Substrings: a field name containing any of these (after normalization) is redacted.
|
||||
const SENSITIVE_FIELD_PATTERNS = ["token", "password", "secret", "authorization", "credential", "apikey", "passphrase", "auth"];
|
||||
// Suffixes: a field name ending with any of these (after normalization) is redacted.
|
||||
// Intentionally greedy — "publicKey" is also stripped; over-stripping debug logs is
|
||||
// acceptable, under-stripping a credential is not.
|
||||
const SENSITIVE_FIELD_SUFFIXES = ["key"];
|
||||
/**
|
||||
* Register an additional HTTP header to strip on cross-origin redirects.
|
||||
* Intended for custom publishers (e.g. GenericPublisher with a non-standard auth header).
|
||||
*/
|
||||
function addSensitiveRedirectHeader(header) {
|
||||
SENSITIVE_REDIRECT_HEADERS.add(normalizeName(header));
|
||||
}
|
||||
/**
|
||||
* Register an additional substring pattern used by {@link safeStringifyJson} to
|
||||
* identify sensitive field names. Input is normalized (lowercased, separators stripped).
|
||||
* Intended for custom publishers that store credentials under non-standard field names.
|
||||
*/
|
||||
function addSensitiveFieldPattern(pattern) {
|
||||
SENSITIVE_FIELD_PATTERNS.push(pattern.toLowerCase().replace(/[-_]/g, ""));
|
||||
}
|
||||
function createHttpError(response, description = null) {
|
||||
return new HttpError(response.statusCode || -1, `${response.statusCode} ${response.statusMessage}` +
|
||||
(description == null ? "" : "\n" + JSON.stringify(description, null, " ")) +
|
||||
"\nHeaders: " +
|
||||
safeStringifyJson(response.headers), description);
|
||||
}
|
||||
exports.createHttpError = createHttpError;
|
||||
const HTTP_STATUS_CODES = new Map([
|
||||
[429, "Too many requests"],
|
||||
[400, "Bad request"],
|
||||
|
|
@ -48,7 +86,6 @@ exports.HttpError = HttpError;
|
|||
function parseJson(result) {
|
||||
return result.then(it => (it == null || it.length === 0 ? null : JSON.parse(it)));
|
||||
}
|
||||
exports.parseJson = parseJson;
|
||||
class HttpExecutor {
|
||||
constructor() {
|
||||
this.maxRedirects = 10;
|
||||
|
|
@ -58,7 +95,9 @@ class HttpExecutor {
|
|||
const json = data == null ? undefined : JSON.stringify(data);
|
||||
const encodedData = json ? Buffer.from(json) : undefined;
|
||||
if (encodedData != null) {
|
||||
debug(json);
|
||||
if (debug.enabled) {
|
||||
debug(safeStringifyJson(data));
|
||||
}
|
||||
const { headers, ...opts } = options;
|
||||
options = {
|
||||
method: "post",
|
||||
|
|
@ -74,7 +113,8 @@ class HttpExecutor {
|
|||
}
|
||||
doApiRequest(options, cancellationToken, requestProcessor, redirectCount = 0) {
|
||||
if (debug.enabled) {
|
||||
debug(`Request: ${safeStringifyJson(options)}`);
|
||||
const { headers: _headers, auth: _auth, ...safeOptions } = options;
|
||||
debug(`Request: ${safeStringifyJson(safeOptions)}`);
|
||||
}
|
||||
return cancellationToken.createPromise((resolve, reject, onCancel) => {
|
||||
const request = this.createRequest(options, (response) => {
|
||||
|
|
@ -108,7 +148,8 @@ class HttpExecutor {
|
|||
handleResponse(response, options, cancellationToken, resolve, reject, redirectCount, requestProcessor) {
|
||||
var _a;
|
||||
if (debug.enabled) {
|
||||
debug(`Response: ${response.statusCode} ${response.statusMessage}, request options: ${safeStringifyJson(options)}`);
|
||||
const { headers: _headers, auth: _auth, ...safeOptions } = options;
|
||||
debug(`Response: ${response.statusCode} ${response.statusMessage}, request options: ${safeStringifyJson(safeOptions)}`);
|
||||
}
|
||||
// we handle any other >= 400 error on request end (read detailed message in the response body)
|
||||
if (response.statusCode === 404) {
|
||||
|
|
@ -147,7 +188,7 @@ Please double check that your authentication token is correct. Due to security r
|
|||
reject(createHttpError(response, `method: ${options.method || "GET"} url: ${options.protocol || "https:"}//${options.hostname}${options.port ? `:${options.port}` : ""}${options.path}
|
||||
|
||||
Data:
|
||||
${isJson ? JSON.stringify(JSON.parse(data)) : data}
|
||||
${isJson ? safeStringifyJson(JSON.parse(data)) : data}
|
||||
`));
|
||||
}
|
||||
else {
|
||||
|
|
@ -161,7 +202,7 @@ Please double check that your authentication token is correct. Due to security r
|
|||
}
|
||||
async downloadToBuffer(url, options) {
|
||||
return await options.cancellationToken.createPromise((resolve, reject, onCancel) => {
|
||||
let result = null;
|
||||
const responseChunks = [];
|
||||
const requestOptions = {
|
||||
headers: options.headers || undefined,
|
||||
// because PrivateGitHubProvider requires HttpExecutor.prepareRedirectUrlOptions logic, so, we need to redirect manually
|
||||
|
|
@ -175,49 +216,24 @@ Please double check that your authentication token is correct. Due to security r
|
|||
onCancel,
|
||||
callback: error => {
|
||||
if (error == null) {
|
||||
resolve(result);
|
||||
resolve(Buffer.concat(responseChunks));
|
||||
}
|
||||
else {
|
||||
reject(error);
|
||||
}
|
||||
},
|
||||
responseHandler: (response, callback) => {
|
||||
const contentLength = safeGetHeader(response, "content-length");
|
||||
let position = -1;
|
||||
if (contentLength != null) {
|
||||
const size = parseInt(contentLength, 10);
|
||||
if (size > 0) {
|
||||
if (size > 524288000) {
|
||||
callback(new Error("Maximum allowed size is 500 MB"));
|
||||
return;
|
||||
}
|
||||
result = Buffer.alloc(size);
|
||||
position = 0;
|
||||
}
|
||||
}
|
||||
let receivedLength = 0;
|
||||
response.on("data", (chunk) => {
|
||||
if (position !== -1) {
|
||||
chunk.copy(result, position);
|
||||
position += chunk.length;
|
||||
}
|
||||
else if (result == null) {
|
||||
result = chunk;
|
||||
}
|
||||
else {
|
||||
if (result.length > 524288000) {
|
||||
callback(new Error("Maximum allowed size is 500 MB"));
|
||||
return;
|
||||
}
|
||||
result = Buffer.concat([result, chunk]);
|
||||
receivedLength += chunk.length;
|
||||
if (receivedLength > 524288000) {
|
||||
callback(new Error("Maximum allowed size is 500 MB"));
|
||||
return;
|
||||
}
|
||||
responseChunks.push(chunk);
|
||||
});
|
||||
response.on("end", () => {
|
||||
if (result != null && position !== -1 && position !== result.length) {
|
||||
callback(new Error(`Received data length ${position} is not equal to expected ${result.length}`));
|
||||
}
|
||||
else {
|
||||
callback(null);
|
||||
}
|
||||
callback(null);
|
||||
});
|
||||
},
|
||||
}, 0);
|
||||
|
|
@ -270,21 +286,71 @@ Please double check that your authentication token is correct. Due to security r
|
|||
static prepareRedirectUrlOptions(redirectUrl, options) {
|
||||
const newOptions = configureRequestOptionsFromUrl(redirectUrl, { ...options });
|
||||
const headers = newOptions.headers;
|
||||
if (headers === null || headers === void 0 ? void 0 : headers.authorization) {
|
||||
const parsedNewUrl = new url_1.URL(redirectUrl);
|
||||
if (parsedNewUrl.hostname.endsWith(".amazonaws.com") || parsedNewUrl.searchParams.has("X-Amz-Credential")) {
|
||||
delete headers.authorization;
|
||||
if (headers == null) {
|
||||
return newOptions;
|
||||
}
|
||||
const originalUrl = HttpExecutor.reconstructOriginalUrl(options);
|
||||
const parsedRedirectUrl = parseUrl(redirectUrl, options);
|
||||
if (HttpExecutor.isCrossOriginRedirect(originalUrl, parsedRedirectUrl)) {
|
||||
if (debug.enabled) {
|
||||
debug(`Cross-origin redirect (${originalUrl.host} → ${parsedRedirectUrl.host}): stripping sensitive headers`);
|
||||
}
|
||||
for (const key of Object.keys(headers)) {
|
||||
if (SENSITIVE_REDIRECT_HEADERS.has(normalizeName(key))) {
|
||||
delete headers[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
return newOptions;
|
||||
}
|
||||
static retryOnServerError(task, maxRetries = 3) {
|
||||
static reconstructOriginalUrl(options) {
|
||||
const protocol = options.protocol || "https:";
|
||||
if (!options.hostname) {
|
||||
throw new Error("Missing hostname in request options");
|
||||
}
|
||||
const hostname = options.hostname;
|
||||
const port = options.port ? `:${options.port}` : "";
|
||||
const path = options.path || "/";
|
||||
return new url_1.URL(`${protocol}//${hostname}${port}${path}`);
|
||||
}
|
||||
static isCrossOriginRedirect(originalUrl, redirectUrl) {
|
||||
// Case-insensitive hostname comparison
|
||||
if (originalUrl.hostname.toLowerCase() !== redirectUrl.hostname.toLowerCase()) {
|
||||
return true;
|
||||
}
|
||||
// Special case: allow http -> https redirect on same host with standard ports
|
||||
// This matches the behavior of Python requests library for backward compatibility
|
||||
// url.port returns an empty string if the port is omitted
|
||||
// or explicitly set to the default port for a given protocol.
|
||||
if (originalUrl.protocol === "http:" &&
|
||||
// This can be replaced with `!originalUrl.port`, but for the sake of clarity.
|
||||
["80", ""].includes(originalUrl.port) &&
|
||||
redirectUrl.protocol === "https:" &&
|
||||
// This can be replaced with `!redirectUrl.port`, but for the sake of clarity.
|
||||
["443", ""].includes(redirectUrl.port)) {
|
||||
return false;
|
||||
}
|
||||
// According to RFC 7235, a change in protocol or port constitutes a cross-origin request.
|
||||
// Forwarding authentication headers to a different origin can be a security risk.
|
||||
// For example, https://example.com:443 and http://example.com:80 are different origins.
|
||||
// We only make an exception for HTTP -> HTTPS upgrades on standard ports for backward compatibility.
|
||||
// Strip auth on any other protocol change
|
||||
if (originalUrl.protocol !== redirectUrl.protocol) {
|
||||
return true;
|
||||
}
|
||||
// Strip auth on port change (accounting for default ports)
|
||||
const originalPort = originalUrl.port;
|
||||
const redirectPort = redirectUrl.port;
|
||||
return originalPort !== redirectPort;
|
||||
}
|
||||
static async retryOnServerError(task, maxRetries = 3) {
|
||||
for (let attemptNumber = 0;; attemptNumber++) {
|
||||
try {
|
||||
return task();
|
||||
return await task();
|
||||
}
|
||||
catch (e) {
|
||||
if (attemptNumber < maxRetries && ((e instanceof HttpError && e.isServerError()) || e.code === "EPIPE")) {
|
||||
await new Promise(r => setTimeout(r, 1000 * (attemptNumber + 1)));
|
||||
continue;
|
||||
}
|
||||
throw e;
|
||||
|
|
@ -293,12 +359,26 @@ Please double check that your authentication token is correct. Due to security r
|
|||
}
|
||||
}
|
||||
exports.HttpExecutor = HttpExecutor;
|
||||
function parseUrl(url, options) {
|
||||
try {
|
||||
// Would throw exception if url is not absolute
|
||||
return new url_1.URL(url);
|
||||
}
|
||||
catch {
|
||||
// Relative URL - construct base URL from original options
|
||||
const hostname = options.hostname;
|
||||
const protocol = options.protocol || "https:";
|
||||
const port = options.port ? `:${options.port}` : "";
|
||||
const baseUrl = `${protocol}//${hostname}${port}`;
|
||||
return new url_1.URL(url, baseUrl);
|
||||
}
|
||||
}
|
||||
function configureRequestOptionsFromUrl(url, options) {
|
||||
const result = configureRequestOptions(options);
|
||||
configureRequestUrl(new url_1.URL(url), result);
|
||||
const parsedUrl = parseUrl(url, options);
|
||||
configureRequestUrl(parsedUrl, result);
|
||||
return result;
|
||||
}
|
||||
exports.configureRequestOptionsFromUrl = configureRequestOptionsFromUrl;
|
||||
function configureRequestUrl(url, options) {
|
||||
options.protocol = url.protocol;
|
||||
options.hostname = url.hostname;
|
||||
|
|
@ -310,8 +390,11 @@ function configureRequestUrl(url, options) {
|
|||
}
|
||||
options.path = url.pathname + url.search;
|
||||
}
|
||||
exports.configureRequestUrl = configureRequestUrl;
|
||||
class DigestTransform extends stream_1.Transform {
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
get actual() {
|
||||
return this._actual;
|
||||
}
|
||||
constructor(expected, algorithm = "sha512", encoding = "base64") {
|
||||
super();
|
||||
this.expected = expected;
|
||||
|
|
@ -319,11 +402,7 @@ class DigestTransform extends stream_1.Transform {
|
|||
this.encoding = encoding;
|
||||
this._actual = null;
|
||||
this.isValidateOnEnd = true;
|
||||
this.digester = crypto_1.createHash(algorithm);
|
||||
}
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
get actual() {
|
||||
return this._actual;
|
||||
this.digester = (0, crypto_1.createHash)(algorithm);
|
||||
}
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
_transform(chunk, encoding, callback) {
|
||||
|
|
@ -346,10 +425,10 @@ class DigestTransform extends stream_1.Transform {
|
|||
}
|
||||
validate() {
|
||||
if (this._actual == null) {
|
||||
throw index_1.newError("Not finished yet", "ERR_STREAM_NOT_FINISHED");
|
||||
throw (0, error_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, error_1.newError)(`${this.algorithm} checksum mismatch, expected ${this.expected}, got ${this._actual}`, "ERR_CHECKSUM_MISMATCH");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -375,7 +454,6 @@ function safeGetHeader(response, headerKey) {
|
|||
return value;
|
||||
}
|
||||
}
|
||||
exports.safeGetHeader = safeGetHeader;
|
||||
function configurePipes(options, response) {
|
||||
if (!checkSha2(safeGetHeader(response, "X-Checksum-Sha2"), options.options.sha2, options.callback)) {
|
||||
return;
|
||||
|
|
@ -394,7 +472,7 @@ function configurePipes(options, response) {
|
|||
else if (options.options.sha2 != null) {
|
||||
streams.push(new DigestTransform(options.options.sha2, "sha256", "hex"));
|
||||
}
|
||||
const fileOut = fs_1.createWriteStream(options.destination);
|
||||
const fileOut = (0, fs_1.createWriteStream)(options.destination);
|
||||
streams.push(fileOut);
|
||||
let lastStream = response;
|
||||
for (const stream of streams) {
|
||||
|
|
@ -433,21 +511,19 @@ function configureRequestOptions(options, token, method) {
|
|||
}
|
||||
return options;
|
||||
}
|
||||
exports.configureRequestOptions = configureRequestOptions;
|
||||
function isSensitiveFieldName(name) {
|
||||
const normalized = normalizeName(name);
|
||||
return SENSITIVE_FIELD_PATTERNS.some(p => normalized.includes(p)) || SENSITIVE_FIELD_SUFFIXES.some(s => normalized.endsWith(s));
|
||||
}
|
||||
function hashSensitiveValue(value) {
|
||||
return `${(0, crypto_1.createHash)("sha256").update(value).digest("hex")} (sha256 hash)`;
|
||||
}
|
||||
function safeStringifyJson(data, skippedNames) {
|
||||
return JSON.stringify(data, (name, value) => {
|
||||
if (name.endsWith("Authorization") ||
|
||||
name.endsWith("authorization") ||
|
||||
name.endsWith("Password") ||
|
||||
name.endsWith("PASSWORD") ||
|
||||
name.endsWith("Token") ||
|
||||
name.includes("password") ||
|
||||
name.includes("token") ||
|
||||
(skippedNames != null && skippedNames.has(name))) {
|
||||
return "<stripped sensitive data>";
|
||||
if (isSensitiveFieldName(name) || (skippedNames != null && skippedNames.has(name))) {
|
||||
return typeof value === "string" ? hashSensitiveValue(value) : "<stripped sensitive data>";
|
||||
}
|
||||
return value;
|
||||
}, 2);
|
||||
}
|
||||
exports.safeStringifyJson = safeStringifyJson;
|
||||
//# sourceMappingURL=httpExecutor.js.map
|
||||
2
electron/node_modules/builder-util-runtime/out/httpExecutor.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/httpExecutor.js.map
generated
vendored
File diff suppressed because one or more lines are too long
22
electron/node_modules/builder-util-runtime/out/index.d.ts
generated
vendored
22
electron/node_modules/builder-util-runtime/out/index.d.ts
generated
vendored
|
|
@ -1,13 +1,15 @@
|
|||
export { CancellationToken, CancellationError } from "./CancellationToken";
|
||||
export { HttpError, createHttpError, HttpExecutor, DownloadOptions, DigestTransform, RequestHeaders, safeGetHeader, configureRequestOptions, configureRequestOptionsFromUrl, safeStringifyJson, parseJson, configureRequestUrl, } from "./httpExecutor";
|
||||
export { CustomPublishOptions, GenericServerOptions, GithubOptions, KeygenOptions, BitbucketOptions, SnapStoreOptions, PublishConfiguration, S3Options, SpacesOptions, BaseS3Options, getS3LikeProviderBaseUrl, githubUrl, PublishProvider, AllPublishOptions, } from "./publishOptions";
|
||||
export { UpdateInfo, UpdateFileInfo, WindowsUpdateInfo, BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo } from "./updateInfo";
|
||||
export { parseDn } from "./rfc2253Parser";
|
||||
export { UUID } from "./uuid";
|
||||
export { ProgressCallbackTransform, ProgressInfo } from "./ProgressCallbackTransform";
|
||||
export { parseXml, XElement } from "./xml";
|
||||
export { BlockMap } from "./blockMapApi";
|
||||
export { CancellationError, CancellationToken } from "./CancellationToken";
|
||||
export { newError } from "./error";
|
||||
export { configureRequestOptions, configureRequestOptionsFromUrl, configureRequestUrl, createHttpError, DigestTransform, DownloadOptions, HttpError, hashSensitiveValue, HttpExecutor, isSensitiveFieldName, parseJson, RequestHeaders, safeGetHeader, safeStringifyJson, } from "./httpExecutor";
|
||||
export { MemoLazy } from "./MemoLazy";
|
||||
export { ProgressCallbackTransform, ProgressInfo } from "./ProgressCallbackTransform";
|
||||
export { AllPublishOptions, BaseS3Options, BitbucketOptions, CustomPublishOptions, GenericServerOptions, getS3LikeProviderBaseUrl, GithubOptions, githubUrl, githubTagPrefix, GitlabOptions, KeygenOptions, PublishConfiguration, PublishProvider, S3Options, SnapStoreOptions, SpacesOptions, GitlabReleaseInfo, GitlabReleaseAsset, } from "./publishOptions";
|
||||
export { retry } from "./retry";
|
||||
export { parseDn } from "./rfc2253Parser";
|
||||
export { BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo, UpdateFileInfo, UpdateInfo, WindowsUpdateInfo } from "./updateInfo";
|
||||
export { UUID } from "./uuid";
|
||||
export { parseXml, XElement } from "./xml";
|
||||
export { isValidKey, mapToObject, asArray, Nullish, deepAssign, objectToArgs } from "./objects";
|
||||
export declare const CURRENT_APP_INSTALLER_FILE_NAME = "installer.exe";
|
||||
export declare const CURRENT_APP_PACKAGE_FILE_NAME = "package.7z";
|
||||
export declare function asArray<T>(v: null | undefined | T | Array<T>): Array<T>;
|
||||
export declare function newError(message: string, code: string): Error;
|
||||
|
|
|
|||
55
electron/node_modules/builder-util-runtime/out/index.js
generated
vendored
55
electron/node_modules/builder-util-runtime/out/index.js
generated
vendored
|
|
@ -1,52 +1,49 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.newError = exports.asArray = exports.CURRENT_APP_PACKAGE_FILE_NAME = exports.CURRENT_APP_INSTALLER_FILE_NAME = exports.XElement = exports.parseXml = exports.ProgressCallbackTransform = exports.UUID = exports.parseDn = exports.githubUrl = exports.getS3LikeProviderBaseUrl = exports.configureRequestUrl = exports.parseJson = exports.safeStringifyJson = exports.configureRequestOptionsFromUrl = exports.configureRequestOptions = exports.safeGetHeader = exports.DigestTransform = exports.HttpExecutor = exports.createHttpError = exports.HttpError = exports.CancellationError = exports.CancellationToken = void 0;
|
||||
exports.CURRENT_APP_PACKAGE_FILE_NAME = exports.CURRENT_APP_INSTALLER_FILE_NAME = exports.objectToArgs = exports.deepAssign = exports.asArray = exports.mapToObject = exports.isValidKey = exports.XElement = exports.parseXml = exports.UUID = exports.parseDn = exports.retry = exports.githubTagPrefix = exports.githubUrl = exports.getS3LikeProviderBaseUrl = exports.ProgressCallbackTransform = exports.MemoLazy = exports.safeStringifyJson = exports.safeGetHeader = exports.parseJson = exports.isSensitiveFieldName = exports.HttpExecutor = exports.hashSensitiveValue = exports.HttpError = exports.DigestTransform = exports.createHttpError = exports.configureRequestUrl = exports.configureRequestOptionsFromUrl = exports.configureRequestOptions = exports.newError = exports.CancellationToken = exports.CancellationError = void 0;
|
||||
var CancellationToken_1 = require("./CancellationToken");
|
||||
Object.defineProperty(exports, "CancellationToken", { enumerable: true, get: function () { return CancellationToken_1.CancellationToken; } });
|
||||
Object.defineProperty(exports, "CancellationError", { enumerable: true, get: function () { return CancellationToken_1.CancellationError; } });
|
||||
Object.defineProperty(exports, "CancellationToken", { enumerable: true, get: function () { return CancellationToken_1.CancellationToken; } });
|
||||
var error_1 = require("./error");
|
||||
Object.defineProperty(exports, "newError", { enumerable: true, get: function () { return error_1.newError; } });
|
||||
var httpExecutor_1 = require("./httpExecutor");
|
||||
Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return httpExecutor_1.HttpError; } });
|
||||
Object.defineProperty(exports, "createHttpError", { enumerable: true, get: function () { return httpExecutor_1.createHttpError; } });
|
||||
Object.defineProperty(exports, "HttpExecutor", { enumerable: true, get: function () { return httpExecutor_1.HttpExecutor; } });
|
||||
Object.defineProperty(exports, "DigestTransform", { enumerable: true, get: function () { return httpExecutor_1.DigestTransform; } });
|
||||
Object.defineProperty(exports, "safeGetHeader", { enumerable: true, get: function () { return httpExecutor_1.safeGetHeader; } });
|
||||
Object.defineProperty(exports, "configureRequestOptions", { enumerable: true, get: function () { return httpExecutor_1.configureRequestOptions; } });
|
||||
Object.defineProperty(exports, "configureRequestOptionsFromUrl", { enumerable: true, get: function () { return httpExecutor_1.configureRequestOptionsFromUrl; } });
|
||||
Object.defineProperty(exports, "safeStringifyJson", { enumerable: true, get: function () { return httpExecutor_1.safeStringifyJson; } });
|
||||
Object.defineProperty(exports, "parseJson", { enumerable: true, get: function () { return httpExecutor_1.parseJson; } });
|
||||
Object.defineProperty(exports, "configureRequestUrl", { enumerable: true, get: function () { return httpExecutor_1.configureRequestUrl; } });
|
||||
Object.defineProperty(exports, "createHttpError", { enumerable: true, get: function () { return httpExecutor_1.createHttpError; } });
|
||||
Object.defineProperty(exports, "DigestTransform", { enumerable: true, get: function () { return httpExecutor_1.DigestTransform; } });
|
||||
Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return httpExecutor_1.HttpError; } });
|
||||
Object.defineProperty(exports, "hashSensitiveValue", { enumerable: true, get: function () { return httpExecutor_1.hashSensitiveValue; } });
|
||||
Object.defineProperty(exports, "HttpExecutor", { enumerable: true, get: function () { return httpExecutor_1.HttpExecutor; } });
|
||||
Object.defineProperty(exports, "isSensitiveFieldName", { enumerable: true, get: function () { return httpExecutor_1.isSensitiveFieldName; } });
|
||||
Object.defineProperty(exports, "parseJson", { enumerable: true, get: function () { return httpExecutor_1.parseJson; } });
|
||||
Object.defineProperty(exports, "safeGetHeader", { enumerable: true, get: function () { return httpExecutor_1.safeGetHeader; } });
|
||||
Object.defineProperty(exports, "safeStringifyJson", { enumerable: true, get: function () { return httpExecutor_1.safeStringifyJson; } });
|
||||
var MemoLazy_1 = require("./MemoLazy");
|
||||
Object.defineProperty(exports, "MemoLazy", { enumerable: true, get: function () { return MemoLazy_1.MemoLazy; } });
|
||||
var ProgressCallbackTransform_1 = require("./ProgressCallbackTransform");
|
||||
Object.defineProperty(exports, "ProgressCallbackTransform", { enumerable: true, get: function () { return ProgressCallbackTransform_1.ProgressCallbackTransform; } });
|
||||
var publishOptions_1 = require("./publishOptions");
|
||||
Object.defineProperty(exports, "getS3LikeProviderBaseUrl", { enumerable: true, get: function () { return publishOptions_1.getS3LikeProviderBaseUrl; } });
|
||||
Object.defineProperty(exports, "githubUrl", { enumerable: true, get: function () { return publishOptions_1.githubUrl; } });
|
||||
Object.defineProperty(exports, "githubTagPrefix", { enumerable: true, get: function () { return publishOptions_1.githubTagPrefix; } });
|
||||
var retry_1 = require("./retry");
|
||||
Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_1.retry; } });
|
||||
var rfc2253Parser_1 = require("./rfc2253Parser");
|
||||
Object.defineProperty(exports, "parseDn", { enumerable: true, get: function () { return rfc2253Parser_1.parseDn; } });
|
||||
var uuid_1 = require("./uuid");
|
||||
Object.defineProperty(exports, "UUID", { enumerable: true, get: function () { return uuid_1.UUID; } });
|
||||
var ProgressCallbackTransform_1 = require("./ProgressCallbackTransform");
|
||||
Object.defineProperty(exports, "ProgressCallbackTransform", { enumerable: true, get: function () { return ProgressCallbackTransform_1.ProgressCallbackTransform; } });
|
||||
var xml_1 = require("./xml");
|
||||
Object.defineProperty(exports, "parseXml", { enumerable: true, get: function () { return xml_1.parseXml; } });
|
||||
Object.defineProperty(exports, "XElement", { enumerable: true, get: function () { return xml_1.XElement; } });
|
||||
var objects_1 = require("./objects");
|
||||
Object.defineProperty(exports, "isValidKey", { enumerable: true, get: function () { return objects_1.isValidKey; } });
|
||||
Object.defineProperty(exports, "mapToObject", { enumerable: true, get: function () { return objects_1.mapToObject; } });
|
||||
Object.defineProperty(exports, "asArray", { enumerable: true, get: function () { return objects_1.asArray; } });
|
||||
Object.defineProperty(exports, "deepAssign", { enumerable: true, get: function () { return objects_1.deepAssign; } });
|
||||
Object.defineProperty(exports, "objectToArgs", { enumerable: true, get: function () { return objects_1.objectToArgs; } });
|
||||
// nsis
|
||||
exports.CURRENT_APP_INSTALLER_FILE_NAME = "installer.exe";
|
||||
// nsis-web
|
||||
exports.CURRENT_APP_PACKAGE_FILE_NAME = "package.7z";
|
||||
function asArray(v) {
|
||||
if (v == null) {
|
||||
return [];
|
||||
}
|
||||
else if (Array.isArray(v)) {
|
||||
return v;
|
||||
}
|
||||
else {
|
||||
return [v];
|
||||
}
|
||||
}
|
||||
exports.asArray = asArray;
|
||||
function newError(message, code) {
|
||||
const error = new Error(message);
|
||||
error.code = code;
|
||||
return error;
|
||||
}
|
||||
exports.newError = newError;
|
||||
//# sourceMappingURL=index.js.map
|
||||
2
electron/node_modules/builder-util-runtime/out/index.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,sHAAA,iBAAiB,OAAA;AAC7C,+CAauB;AAZrB,yGAAA,SAAS,OAAA;AACT,+GAAA,eAAe,OAAA;AACf,4GAAA,YAAY,OAAA;AAEZ,+GAAA,eAAe,OAAA;AAEf,6GAAA,aAAa,OAAA;AACb,uHAAA,uBAAuB,OAAA;AACvB,8HAAA,8BAA8B,OAAA;AAC9B,iHAAA,iBAAiB,OAAA;AACjB,yGAAA,SAAS,OAAA;AACT,mHAAA,mBAAmB,OAAA;AAErB,mDAeyB;AAJvB,0HAAA,wBAAwB,OAAA;AACxB,2GAAA,SAAS,OAAA;AAKX,iDAAyC;AAAhC,wGAAA,OAAO,OAAA;AAChB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,yEAAqF;AAA5E,sIAAA,yBAAyB,OAAA;AAClC,6BAA0C;AAAjC,+FAAA,QAAQ,OAAA;AAAE,+FAAA,QAAQ,OAAA;AAG3B,OAAO;AACM,QAAA,+BAA+B,GAAG,eAAe,CAAA;AAC9D,WAAW;AACE,QAAA,6BAA6B,GAAG,YAAY,CAAA;AAEzD,SAAgB,OAAO,CAAI,CAAkC;IAC3D,IAAI,CAAC,IAAI,IAAI,EAAE;QACb,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAC3B,OAAO,CAAC,CAAA;KACT;SAAM;QACL,OAAO,CAAC,CAAC,CAAC,CAAA;KACX;AACH,CAAC;AARD,0BAQC;AAED,SAAgB,QAAQ,CAAC,OAAe,EAAE,IAAY;IACpD,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAC/B;IAAC,KAA+B,CAAC,IAAI,GAAG,IAAI,CAAA;IAC7C,OAAO,KAAK,CAAA;AACd,CAAC;AAJD,4BAIC","sourcesContent":["export { CancellationToken, CancellationError } from \"./CancellationToken\"\nexport {\n HttpError,\n createHttpError,\n HttpExecutor,\n DownloadOptions,\n DigestTransform,\n RequestHeaders,\n safeGetHeader,\n configureRequestOptions,\n configureRequestOptionsFromUrl,\n safeStringifyJson,\n parseJson,\n configureRequestUrl,\n} from \"./httpExecutor\"\nexport {\n CustomPublishOptions,\n GenericServerOptions,\n GithubOptions,\n KeygenOptions,\n BitbucketOptions,\n SnapStoreOptions,\n PublishConfiguration,\n S3Options,\n SpacesOptions,\n BaseS3Options,\n getS3LikeProviderBaseUrl,\n githubUrl,\n PublishProvider,\n AllPublishOptions,\n} from \"./publishOptions\"\nexport { UpdateInfo, UpdateFileInfo, WindowsUpdateInfo, BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo } from \"./updateInfo\"\nexport { parseDn } from \"./rfc2253Parser\"\nexport { UUID } from \"./uuid\"\nexport { ProgressCallbackTransform, ProgressInfo } from \"./ProgressCallbackTransform\"\nexport { parseXml, XElement } from \"./xml\"\nexport { BlockMap } from \"./blockMapApi\"\n\n// nsis\nexport const CURRENT_APP_INSTALLER_FILE_NAME = \"installer.exe\"\n// nsis-web\nexport const CURRENT_APP_PACKAGE_FILE_NAME = \"package.7z\"\n\nexport function asArray<T>(v: null | undefined | T | Array<T>): Array<T> {\n if (v == null) {\n return []\n } else if (Array.isArray(v)) {\n return v\n } else {\n return [v]\n }\n}\n\nexport function newError(message: string, code: string) {\n const error = new Error(message)\n ;(error as NodeJS.ErrnoException).code = code\n return error\n}\n"]}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,yDAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,sHAAA,iBAAiB,OAAA;AAC7C,iCAAkC;AAAzB,iGAAA,QAAQ,OAAA;AACjB,+CAeuB;AAdrB,uHAAA,uBAAuB,OAAA;AACvB,8HAAA,8BAA8B,OAAA;AAC9B,mHAAA,mBAAmB,OAAA;AACnB,+GAAA,eAAe,OAAA;AACf,+GAAA,eAAe,OAAA;AAEf,yGAAA,SAAS,OAAA;AACT,kHAAA,kBAAkB,OAAA;AAClB,4GAAA,YAAY,OAAA;AACZ,oHAAA,oBAAoB,OAAA;AACpB,yGAAA,SAAS,OAAA;AAET,6GAAA,aAAa,OAAA;AACb,iHAAA,iBAAiB,OAAA;AAEnB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,yEAAqF;AAA5E,sIAAA,yBAAyB,OAAA;AAClC,mDAmByB;AAbvB,0HAAA,wBAAwB,OAAA;AAExB,2GAAA,SAAS,OAAA;AACT,iHAAA,eAAe,OAAA;AAWjB,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,iDAAyC;AAAhC,wGAAA,OAAO,OAAA;AAEhB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,6BAA0C;AAAjC,+FAAA,QAAQ,OAAA;AAAE,+FAAA,QAAQ,OAAA;AAC3B,qCAA+F;AAAtF,qGAAA,UAAU,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,kGAAA,OAAO,OAAA;AAAW,qGAAA,UAAU,OAAA;AAAE,uGAAA,YAAY,OAAA;AAE5E,OAAO;AACM,QAAA,+BAA+B,GAAG,eAAe,CAAA;AAC9D,WAAW;AACE,QAAA,6BAA6B,GAAG,YAAY,CAAA","sourcesContent":["export { BlockMap } from \"./blockMapApi\"\nexport { CancellationError, CancellationToken } from \"./CancellationToken\"\nexport { newError } from \"./error\"\nexport {\n configureRequestOptions,\n configureRequestOptionsFromUrl,\n configureRequestUrl,\n createHttpError,\n DigestTransform,\n DownloadOptions,\n HttpError,\n hashSensitiveValue,\n HttpExecutor,\n isSensitiveFieldName,\n parseJson,\n RequestHeaders,\n safeGetHeader,\n safeStringifyJson,\n} from \"./httpExecutor\"\nexport { MemoLazy } from \"./MemoLazy\"\nexport { ProgressCallbackTransform, ProgressInfo } from \"./ProgressCallbackTransform\"\nexport {\n AllPublishOptions,\n BaseS3Options,\n BitbucketOptions,\n CustomPublishOptions,\n GenericServerOptions,\n getS3LikeProviderBaseUrl,\n GithubOptions,\n githubUrl,\n githubTagPrefix,\n GitlabOptions,\n KeygenOptions,\n PublishConfiguration,\n PublishProvider,\n S3Options,\n SnapStoreOptions,\n SpacesOptions,\n GitlabReleaseInfo,\n GitlabReleaseAsset,\n} from \"./publishOptions\"\nexport { retry } from \"./retry\"\nexport { parseDn } from \"./rfc2253Parser\"\nexport { BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo, UpdateFileInfo, UpdateInfo, WindowsUpdateInfo } from \"./updateInfo\"\nexport { UUID } from \"./uuid\"\nexport { parseXml, XElement } from \"./xml\"\nexport { isValidKey, mapToObject, asArray, Nullish, deepAssign, objectToArgs } from \"./objects\"\n\n// nsis\nexport const CURRENT_APP_INSTALLER_FILE_NAME = \"installer.exe\"\n// nsis-web\nexport const CURRENT_APP_PACKAGE_FILE_NAME = \"package.7z\"\n"]}
|
||||
8
electron/node_modules/builder-util-runtime/out/objects.d.ts
generated
vendored
Normal file
8
electron/node_modules/builder-util-runtime/out/objects.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export type Nullish = null | undefined;
|
||||
type RecursiveMap = Map<any, RecursiveMap | any>;
|
||||
export declare function mapToObject(map: RecursiveMap): any;
|
||||
export declare function isValidKey(key: any): boolean;
|
||||
export declare function asArray<T>(v: Nullish | T | Array<T>): Array<T>;
|
||||
export declare function deepAssign<T>(target: T, ...objects: Array<any>): T;
|
||||
export declare function objectToArgs(obj: Record<string, string | null>): readonly string[];
|
||||
export {};
|
||||
106
electron/node_modules/builder-util-runtime/out/objects.js
generated
vendored
Normal file
106
electron/node_modules/builder-util-runtime/out/objects.js
generated
vendored
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.mapToObject = mapToObject;
|
||||
exports.isValidKey = isValidKey;
|
||||
exports.asArray = asArray;
|
||||
exports.deepAssign = deepAssign;
|
||||
exports.objectToArgs = objectToArgs;
|
||||
function mapToObject(map) {
|
||||
const obj = {};
|
||||
for (const [key, value] of map) {
|
||||
if (!isValidKey(key)) {
|
||||
continue;
|
||||
}
|
||||
if (value instanceof Map) {
|
||||
obj[key] = mapToObject(value);
|
||||
}
|
||||
else {
|
||||
obj[key] = value;
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
function isValidKey(key) {
|
||||
const protectedProperties = ["__proto__", "prototype", "constructor"];
|
||||
if (protectedProperties.includes(key)) {
|
||||
return false;
|
||||
}
|
||||
return ["string", "number", "symbol", "boolean"].includes(typeof key) || key === null;
|
||||
}
|
||||
function asArray(v) {
|
||||
if (v == null) {
|
||||
return [];
|
||||
}
|
||||
else if (Array.isArray(v)) {
|
||||
return v;
|
||||
}
|
||||
else {
|
||||
return [v];
|
||||
}
|
||||
}
|
||||
function isObject(x) {
|
||||
if (Array.isArray(x)) {
|
||||
return false;
|
||||
}
|
||||
const type = typeof x;
|
||||
return type === "object" || type === "function";
|
||||
}
|
||||
function assignKey(target, from, key) {
|
||||
const value = from[key];
|
||||
// https://github.com/electron-userland/electron-builder/pull/562
|
||||
if (value === undefined) {
|
||||
return;
|
||||
}
|
||||
const prevValue = target[key];
|
||||
if (prevValue == null || value == null || !isObject(prevValue) || !isObject(value)) {
|
||||
// Merge arrays.
|
||||
if (Array.isArray(prevValue) && Array.isArray(value)) {
|
||||
target[key] = Array.from(new Set(prevValue.concat(value)));
|
||||
}
|
||||
else {
|
||||
target[key] = value;
|
||||
}
|
||||
}
|
||||
else {
|
||||
target[key] = assign(prevValue, value);
|
||||
}
|
||||
}
|
||||
function assign(to, from) {
|
||||
if (to !== from) {
|
||||
for (const key of Object.getOwnPropertyNames(from)) {
|
||||
if (isValidKey(key)) {
|
||||
assignKey(to, from, key);
|
||||
}
|
||||
}
|
||||
}
|
||||
return to;
|
||||
}
|
||||
function deepAssign(target, ...objects) {
|
||||
for (const o of objects) {
|
||||
if (o != null) {
|
||||
assign(target, o);
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
// Flag names must be letters/digits/hyphens only (e.g. "maintainer", "deb-priority").
|
||||
// Anything else could inject extra flags into the argument array.
|
||||
const SAFE_FLAG_NAME_RE = /^[a-zA-Z][a-zA-Z0-9-]*$/;
|
||||
// Null bytes truncate arguments at the C layer; newlines can split arguments in some parsers.
|
||||
const UNSAFE_VALUE_RE = /[\0\r\n]/;
|
||||
function objectToArgs(obj) {
|
||||
const args = Object.entries(obj).reduce((args, [name, value]) => {
|
||||
if (!isValidKey(name) || value == null) {
|
||||
return args;
|
||||
}
|
||||
if (!SAFE_FLAG_NAME_RE.test(name)) {
|
||||
throw new Error(`objectToArgs: unsafe flag name rejected: ${JSON.stringify(name)}`);
|
||||
}
|
||||
if (UNSAFE_VALUE_RE.test(value)) {
|
||||
throw new Error(`objectToArgs: value for --${name} contains a null byte or newline`);
|
||||
}
|
||||
return args.concat([`--${name}`, value]);
|
||||
}, []);
|
||||
return Object.freeze(args);
|
||||
}
|
||||
//# sourceMappingURL=objects.js.map
|
||||
1
electron/node_modules/builder-util-runtime/out/objects.js.map
generated
vendored
Normal file
1
electron/node_modules/builder-util-runtime/out/objects.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
113
electron/node_modules/builder-util-runtime/out/publishOptions.d.ts
generated
vendored
113
electron/node_modules/builder-util-runtime/out/publishOptions.d.ts
generated
vendored
|
|
@ -1,7 +1,6 @@
|
|||
/// <reference types="node" />
|
||||
import { OutgoingHttpHeaders } from "http";
|
||||
export declare type PublishProvider = "github" | "s3" | "spaces" | "generic" | "custom" | "snapStore" | "keygen" | "bitbucket";
|
||||
export declare type AllPublishOptions = string | GithubOptions | S3Options | SpacesOptions | GenericServerOptions | CustomPublishOptions | KeygenOptions | SnapStoreOptions | BitbucketOptions;
|
||||
export type PublishProvider = "github" | "gitlab" | "s3" | "spaces" | "generic" | "custom" | "snapStore" | "keygen" | "bitbucket";
|
||||
export type AllPublishOptions = string | GithubOptions | GitlabOptions | S3Options | SpacesOptions | GenericServerOptions | CustomPublishOptions | KeygenOptions | SnapStoreOptions | BitbucketOptions;
|
||||
export interface PublishConfiguration {
|
||||
/**
|
||||
* The provider.
|
||||
|
|
@ -33,7 +32,7 @@ export interface PublishConfiguration {
|
|||
/**
|
||||
* Request timeout in milliseconds. (Default is 2 minutes; O is ignored)
|
||||
*
|
||||
* @default 60000
|
||||
* @default 120000
|
||||
*/
|
||||
readonly timeout?: number | null;
|
||||
}
|
||||
|
|
@ -71,8 +70,15 @@ export interface GithubOptions extends PublishConfiguration {
|
|||
/**
|
||||
* Whether to use `v`-prefixed tag name.
|
||||
* @default true
|
||||
* @deprecated please use #tagNamePrefix instead.
|
||||
*/
|
||||
readonly vPrefixedTagName?: boolean;
|
||||
/**
|
||||
* If defined, sets the prefix of the tag name that comes before the semver number.
|
||||
* e.g. "v" in "v1.2.3" or "test" of "test1.2.3".
|
||||
* Overrides `vPrefixedTagName`
|
||||
*/
|
||||
readonly tagNamePrefix?: string;
|
||||
/**
|
||||
* The host (including the port if need).
|
||||
* @default github.com
|
||||
|
|
@ -84,11 +90,11 @@ export interface GithubOptions extends PublishConfiguration {
|
|||
*/
|
||||
readonly protocol?: "https" | "http" | null;
|
||||
/**
|
||||
* The access token to support auto-update from private github repositories. Never specify it in the configuration files. Only for [setFeedURL](/auto-update#appupdatersetfeedurloptions).
|
||||
* The access token to support auto-update from private github repositories. Never specify it in the configuration files. Only for [setFeedURL](https://www.electron.build/auto-update#appupdatersetfeedurloptions).
|
||||
*/
|
||||
readonly token?: string | null;
|
||||
/**
|
||||
* Whether to use private github auto-update provider if `GH_TOKEN` environment variable is defined. See [Private GitHub Update Repo](/auto-update#private-github-update-repo).
|
||||
* Whether to use private github auto-update provider if `GH_TOKEN` environment variable is defined. See [Private GitHub Update Repo](https://www.electron.build/auto-update#private-github-update-repo).
|
||||
*/
|
||||
readonly private?: boolean | null;
|
||||
/**
|
||||
|
|
@ -106,9 +112,50 @@ export interface GithubOptions extends PublishConfiguration {
|
|||
}
|
||||
/** @private */
|
||||
export declare function githubUrl(options: GithubOptions, defaultHost?: string): string;
|
||||
export declare function githubTagPrefix(options: GithubOptions): string;
|
||||
/**
|
||||
* [GitLab](https://docs.gitlab.com/ee/user/project/releases/) options.
|
||||
*
|
||||
* GitLab [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) is required for private repositories. You can generate one by going to your GitLab profile settings.
|
||||
* Define `GITLAB_TOKEN` environment variable.
|
||||
*/
|
||||
export interface GitlabOptions extends PublishConfiguration {
|
||||
/**
|
||||
* The provider. Must be `gitlab`.
|
||||
*/
|
||||
readonly provider: "gitlab";
|
||||
/**
|
||||
* The GitLab project ID or path (e.g., "12345678" or "namespace/project").
|
||||
*/
|
||||
readonly projectId?: string | number | null;
|
||||
/**
|
||||
* The GitLab host (including the port if need).
|
||||
* @default gitlab.com
|
||||
*/
|
||||
readonly host?: string | null;
|
||||
/**
|
||||
* The access token to support auto-update from private GitLab repositories. Never specify it in the configuration files.
|
||||
*/
|
||||
readonly token?: string | null;
|
||||
/**
|
||||
* Whether to use `v`-prefixed tag name.
|
||||
* @default true
|
||||
*/
|
||||
readonly vPrefixedTagName?: boolean;
|
||||
/**
|
||||
* The channel.
|
||||
* @default latest
|
||||
*/
|
||||
readonly channel?: string | null;
|
||||
/**
|
||||
* Upload target method. Can be "project_upload" for GitLab project uploads or "generic_package" for GitLab generic packages.
|
||||
* @default "project_upload"
|
||||
*/
|
||||
readonly uploadTarget?: "project_upload" | "generic_package" | null;
|
||||
}
|
||||
/**
|
||||
* Generic (any HTTP(S) server) options.
|
||||
* In all publish options [File Macros](/file-patterns#file-macros) are supported.
|
||||
* In all publish options [File Macros](https://www.electron.build/file-patterns#file-macros) are supported.
|
||||
*/
|
||||
export interface GenericServerOptions extends PublishConfiguration {
|
||||
/**
|
||||
|
|
@ -139,6 +186,11 @@ export interface KeygenOptions extends PublishConfiguration {
|
|||
* The provider. Must be `keygen`.
|
||||
*/
|
||||
readonly provider: "keygen";
|
||||
/**
|
||||
* Keygen host for self-hosted instances
|
||||
* @default "api.keygen.sh"
|
||||
*/
|
||||
readonly host?: string;
|
||||
/**
|
||||
* Keygen account's UUID
|
||||
*/
|
||||
|
|
@ -164,8 +216,8 @@ export interface KeygenOptions extends PublishConfiguration {
|
|||
*
|
||||
* For converting an app password to a usable token, you can utilize this
|
||||
```typescript
|
||||
convertAppPassword(owner: string, token: string) {
|
||||
const base64encodedData = Buffer.from(`${owner}:${token.trim()}`).toString("base64")
|
||||
convertAppPassword(owner: string, appPassword: string) {
|
||||
const base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString("base64")
|
||||
return `Basic ${base64encodedData}`
|
||||
}
|
||||
```
|
||||
|
|
@ -180,7 +232,7 @@ export interface BitbucketOptions extends PublishConfiguration {
|
|||
*/
|
||||
readonly owner: string;
|
||||
/**
|
||||
* The access token to support auto-update from private bitbucket repositories.
|
||||
* The [app password](https://bitbucket.org/account/settings/app-passwords) to support auto-update from private bitbucket repositories.
|
||||
*/
|
||||
readonly token?: string | null;
|
||||
/**
|
||||
|
|
@ -198,7 +250,7 @@ export interface BitbucketOptions extends PublishConfiguration {
|
|||
readonly channel?: string | null;
|
||||
}
|
||||
/**
|
||||
* [Snap Store](https://snapcraft.io/) options.
|
||||
* [Snap Store](https://snapcraft.io/) options. To publish directly to Snapcraft, see <a href="https://snapcraft.io/docs/snapcraft-authentication">Snapcraft authentication options</a> for local or CI/CD authentication options.
|
||||
*/
|
||||
export interface SnapStoreOptions extends PublishConfiguration {
|
||||
/**
|
||||
|
|
@ -236,8 +288,9 @@ export interface BaseS3Options extends PublishConfiguration {
|
|||
/**
|
||||
* [Amazon S3](https://aws.amazon.com/s3/) options.
|
||||
* AWS credentials are required, please see [getting your credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html).
|
||||
* Define `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [environment variables](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html).
|
||||
* Or in the [~/.aws/credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html).
|
||||
* To set credentials define `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [environment variables](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html) directly,
|
||||
* or use [~/.aws/credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html) file,
|
||||
* or use [~/.aws/config](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html) file. For the last method to work you will also need to define `AWS_SDK_LOAD_CONFIG=1` environment variable.
|
||||
*
|
||||
* Example configuration:
|
||||
*
|
||||
|
|
@ -287,6 +340,17 @@ export interface S3Options extends BaseS3Options {
|
|||
* The endpoint should be a string like `https://{service}.{region}.amazonaws.com`.
|
||||
*/
|
||||
readonly endpoint?: string | null;
|
||||
/**
|
||||
* If set to true, this will enable the s3 accelerated endpoint
|
||||
* These endpoints have a particular format of:
|
||||
* ${bucketname}.s3-accelerate.amazonaws.com
|
||||
*/
|
||||
readonly accelerate?: boolean;
|
||||
/**
|
||||
* When true, force a path-style endpoint to be used where the bucket name is part of the path.
|
||||
* [Path-style Access](https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access)
|
||||
*/
|
||||
readonly forcePathStyle?: boolean;
|
||||
}
|
||||
/**
|
||||
* [DigitalOcean Spaces](https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-spaces) options.
|
||||
|
|
@ -306,4 +370,27 @@ export interface SpacesOptions extends BaseS3Options {
|
|||
*/
|
||||
readonly region: string;
|
||||
}
|
||||
export interface GitlabReleaseInfo {
|
||||
name: string;
|
||||
tag_name: string;
|
||||
description: string;
|
||||
created_at: string;
|
||||
released_at: string;
|
||||
upcoming_release: boolean;
|
||||
assets: GitlabReleaseAsset;
|
||||
}
|
||||
export interface GitlabReleaseAsset {
|
||||
count: number;
|
||||
sources: Array<{
|
||||
format: string;
|
||||
url: string;
|
||||
}>;
|
||||
links: Array<{
|
||||
id: number;
|
||||
name: string;
|
||||
url: string;
|
||||
direct_asset_url: string;
|
||||
link_type: string;
|
||||
}>;
|
||||
}
|
||||
export declare function getS3LikeProviderBaseUrl(configuration: PublishConfiguration): string;
|
||||
|
|
|
|||
21
electron/node_modules/builder-util-runtime/out/publishOptions.js
generated
vendored
21
electron/node_modules/builder-util-runtime/out/publishOptions.js
generated
vendored
|
|
@ -1,11 +1,22 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getS3LikeProviderBaseUrl = exports.githubUrl = void 0;
|
||||
exports.githubUrl = githubUrl;
|
||||
exports.githubTagPrefix = githubTagPrefix;
|
||||
exports.getS3LikeProviderBaseUrl = getS3LikeProviderBaseUrl;
|
||||
/** @private */
|
||||
function githubUrl(options, defaultHost = "github.com") {
|
||||
return `${options.protocol || "https"}://${options.host || defaultHost}`;
|
||||
}
|
||||
exports.githubUrl = githubUrl;
|
||||
function githubTagPrefix(options) {
|
||||
var _a;
|
||||
if (options.tagNamePrefix) {
|
||||
return options.tagNamePrefix;
|
||||
}
|
||||
if ((_a = options.vPrefixedTagName) !== null && _a !== void 0 ? _a : true) {
|
||||
return "v";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
function getS3LikeProviderBaseUrl(configuration) {
|
||||
const provider = configuration.provider;
|
||||
if (provider === "s3") {
|
||||
|
|
@ -16,10 +27,12 @@ function getS3LikeProviderBaseUrl(configuration) {
|
|||
}
|
||||
throw new Error(`Not supported provider: ${provider}`);
|
||||
}
|
||||
exports.getS3LikeProviderBaseUrl = getS3LikeProviderBaseUrl;
|
||||
function s3Url(options) {
|
||||
let url;
|
||||
if (options.endpoint != null) {
|
||||
if (options.accelerate == true) {
|
||||
url = `https://${options.bucket}.s3-accelerate.amazonaws.com`;
|
||||
}
|
||||
else if (options.endpoint != null) {
|
||||
url = `${options.endpoint}/${options.bucket}`;
|
||||
}
|
||||
else if (options.bucket.includes(".")) {
|
||||
|
|
|
|||
2
electron/node_modules/builder-util-runtime/out/publishOptions.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/publishOptions.js.map
generated
vendored
File diff suppressed because one or more lines are too long
9
electron/node_modules/builder-util-runtime/out/retry.d.ts
generated
vendored
Normal file
9
electron/node_modules/builder-util-runtime/out/retry.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { CancellationToken } from "./CancellationToken";
|
||||
export declare function retry<T>(task: () => Promise<T>, options: {
|
||||
retries: number;
|
||||
interval: number;
|
||||
backoff?: number;
|
||||
attempt?: number;
|
||||
cancellationToken?: CancellationToken;
|
||||
shouldRetry?: (e: any) => boolean | Promise<boolean>;
|
||||
}): Promise<T>;
|
||||
21
electron/node_modules/builder-util-runtime/out/retry.js
generated
vendored
Normal file
21
electron/node_modules/builder-util-runtime/out/retry.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.retry = retry;
|
||||
const CancellationToken_1 = require("./CancellationToken");
|
||||
async function retry(task, options) {
|
||||
var _a;
|
||||
const { retries: retryCount, interval, backoff = 0, attempt = 0, shouldRetry, cancellationToken = new CancellationToken_1.CancellationToken() } = options;
|
||||
try {
|
||||
return await task();
|
||||
}
|
||||
catch (error) {
|
||||
if ((await Promise.resolve((_a = shouldRetry === null || shouldRetry === void 0 ? void 0 : shouldRetry(error)) !== null && _a !== void 0 ? _a : true)) && retryCount > 0 && !cancellationToken.cancelled) {
|
||||
await new Promise(resolve => setTimeout(resolve, interval + backoff * attempt));
|
||||
return await retry(task, { ...options, retries: retryCount - 1, attempt: attempt + 1 });
|
||||
}
|
||||
else {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=retry.js.map
|
||||
1
electron/node_modules/builder-util-runtime/out/retry.js.map
generated
vendored
Normal file
1
electron/node_modules/builder-util-runtime/out/retry.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":";;AAEA,sBAeC;AAjBD,2DAAuD;AAEhD,KAAK,UAAU,KAAK,CACzB,IAAsB,EACtB,OAA+K;;IAE/K,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,WAAW,EAAE,iBAAiB,GAAG,IAAI,qCAAiB,EAAE,EAAE,GAAG,OAAO,CAAA;IACrI,IAAI,CAAC;QACH,OAAO,MAAM,IAAI,EAAE,CAAA;IACrB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,KAAK,CAAC,mCAAI,IAAI,CAAC,CAAC,IAAI,UAAU,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC;YAC5G,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC,CAAA;YAC/E,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC,EAAE,CAAC,CAAA;QACzF,CAAC;aAAM,CAAC;YACN,MAAM,KAAK,CAAA;QACb,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import { CancellationToken } from \"./CancellationToken\"\n\nexport async function retry<T>(\n task: () => Promise<T>,\n options: { retries: number; interval: number; backoff?: number; attempt?: number; cancellationToken?: CancellationToken; shouldRetry?: (e: any) => boolean | Promise<boolean> }\n): Promise<T> {\n const { retries: retryCount, interval, backoff = 0, attempt = 0, shouldRetry, cancellationToken = new CancellationToken() } = options\n try {\n return await task()\n } catch (error: any) {\n if ((await Promise.resolve(shouldRetry?.(error) ?? true)) && retryCount > 0 && !cancellationToken.cancelled) {\n await new Promise(resolve => setTimeout(resolve, interval + backoff * attempt))\n return await retry(task, { ...options, retries: retryCount - 1, attempt: attempt + 1 })\n } else {\n throw error\n }\n }\n}\n"]}
|
||||
3
electron/node_modules/builder-util-runtime/out/rfc2253Parser.js
generated
vendored
3
electron/node_modules/builder-util-runtime/out/rfc2253Parser.js
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseDn = void 0;
|
||||
exports.parseDn = parseDn;
|
||||
function parseDn(seq) {
|
||||
let quoted = false;
|
||||
let key = null;
|
||||
|
|
@ -77,5 +77,4 @@ function parseDn(seq) {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
exports.parseDn = parseDn;
|
||||
//# sourceMappingURL=rfc2253Parser.js.map
|
||||
2
electron/node_modules/builder-util-runtime/out/rfc2253Parser.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/rfc2253Parser.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"rfc2253Parser.js","sourceRoot":"","sources":["../src/rfc2253Parser.ts"],"names":[],"mappings":";;;AAAA,SAAgB,OAAO,CAAC,GAAW;IACjC,IAAI,MAAM,GAAG,KAAK,CAAA;IAClB,IAAI,GAAG,GAAkB,IAAI,CAAA;IAC7B,IAAI,KAAK,GAAG,EAAE,CAAA;IACd,IAAI,YAAY,GAAG,CAAC,CAAA;IAEpB,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IAChB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAA;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,KAAK,GAAG,CAAC,MAAM,EAAE;YACpB,IAAI,GAAG,KAAK,IAAI,EAAE;gBAChB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;aACvB;YACD,MAAK;SACN;QAED,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAA;QACjB,IAAI,MAAM,EAAE;YACV,IAAI,EAAE,KAAK,GAAG,EAAE;gBACd,MAAM,GAAG,KAAK,CAAA;gBACd,SAAQ;aACT;SACF;aAAM;YACL,IAAI,EAAE,KAAK,GAAG,EAAE;gBACd,MAAM,GAAG,IAAI,CAAA;gBACb,SAAQ;aACT;YAED,IAAI,EAAE,KAAK,IAAI,EAAE;gBACf,CAAC,EAAE,CAAA;gBACH,MAAM,GAAG,G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AAC,YAAY,CAAC,KAAK,GAAG,CAAC;gBAC3C,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,YAAY,CAAC,KAAK,GAAG,CAAC,EAC3C;gBACA,CAAC,GAAG,YAAY,GAAG,CAAC,CAAA;gBACpB,SAAQ;aACT;SACF;QAED,KAAK,IAAI,EAAE,CAAA;KACZ;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AArFD,0BAqFC","sourcesContent":["export function parseDn(seq: string): Map<string, string> {\n let quoted = false\n let key: string | null = null\n let token = \"\"\n let nextNonSpace = 0\n\n seq = seq.trim()\n const result = new Map<string, string>()\n for (let i = 0; i <= seq.length; i++) {\n if (i === seq.length) {\n if (key !== null) {\n result.set(key, token)\n }\n break\n }\n\n const ch = seq[i]\n if (quoted) {\n if (ch === '\"') {\n quoted = false\n continue\n }\n } else {\n if (ch === '\"') {\n quoted = true\n continue\n }\n\n if (ch === \"\\\\\") {\n i++\n const ord = parseInt(seq.slice(i, i + 2), 16)\n if (Number.isNaN(ord)) {\n token += seq[i]\n } else {\n i++\n token += String.fromCharCode(ord)\n }\n continue\n }\n\n if (key === null && ch === \"=\") {\n key = token\n token = \"\"\n continue\n }\n\n if (ch === \",\" || ch === \";\" || ch === \"+\") {\n if (key !== null) {\n result.set(key, token)\n }\n key = null\n token = \"\"\n continue\n }\n }\n\n if (ch === \" \" && !quoted) {\n if (token.length === 0) {\n continue\n }\n\n if (i > nextNonSpace) {\n let j = i\n while (seq[j] === \" \") {\n j++\n }\n nextNonSpace = j\n }\n\n if (\n nextNonSpace >= seq.length ||\n seq[nextNonSpace] === \",\" ||\n seq[nextNonSpace] === \";\" ||\n (key === null && seq[nextNonSpace] === \"=\") ||\n (key !== null && seq[nextNonSpace] === \"+\")\n ) {\n i = nextNonSpace - 1\n continue\n }\n }\n\n token += ch\n }\n\n return result\n}\n"]}
|
||||
{"version":3,"file":"rfc2253Parser.js","sourceRoot":"","sources":["../src/rfc2253Parser.ts"],"names":[],"mappings":";;A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AAG,CAAC,CAAA;gBACpB,SAAQ;YACV,CAAC;QACH,CAAC;QAED,KAAK,IAAI,EAAE,CAAA;IACb,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["export function parseDn(seq: string): Map<string, string> {\n let quoted = false\n let key: string | null = null\n let token = \"\"\n let nextNonSpace = 0\n\n seq = seq.trim()\n const result = new Map<string, string>()\n for (let i = 0; i <= seq.length; i++) {\n if (i === seq.length) {\n if (key !== null) {\n result.set(key, token)\n }\n break\n }\n\n const ch = seq[i]\n if (quoted) {\n if (ch === '\"') {\n quoted = false\n continue\n }\n } else {\n if (ch === '\"') {\n quoted = true\n continue\n }\n\n if (ch === \"\\\\\") {\n i++\n const ord = parseInt(seq.slice(i, i + 2), 16)\n if (Number.isNaN(ord)) {\n token += seq[i]\n } else {\n i++\n token += String.fromCharCode(ord)\n }\n continue\n }\n\n if (key === null && ch === \"=\") {\n key = token\n token = \"\"\n continue\n }\n\n if (ch === \",\" || ch === \";\" || ch === \"+\") {\n if (key !== null) {\n result.set(key, token)\n }\n key = null\n token = \"\"\n continue\n }\n }\n\n if (ch === \" \" && !quoted) {\n if (token.length === 0) {\n continue\n }\n\n if (i > nextNonSpace) {\n let j = i\n while (seq[j] === \" \") {\n j++\n }\n nextNonSpace = j\n }\n\n if (\n nextNonSpace >= seq.length ||\n seq[nextNonSpace] === \",\" ||\n seq[nextNonSpace] === \";\" ||\n (key === null && seq[nextNonSpace] === \"=\") ||\n (key !== null && seq[nextNonSpace] === \"+\")\n ) {\n i = nextNonSpace - 1\n continue\n }\n }\n\n token += ch\n }\n\n return result\n}\n"]}
|
||||
7
electron/node_modules/builder-util-runtime/out/updateInfo.d.ts
generated
vendored
7
electron/node_modules/builder-util-runtime/out/updateInfo.d.ts
generated
vendored
|
|
@ -55,9 +55,14 @@ export interface UpdateInfo {
|
|||
*/
|
||||
releaseDate: string;
|
||||
/**
|
||||
* The [staged rollout](/auto-update#staged-rollouts) percentage, 0-100.
|
||||
* The [staged rollout](https://www.electron.build/auto-update#staged-rollouts) percentage, 0-100.
|
||||
*/
|
||||
readonly stagingPercentage?: number;
|
||||
/**
|
||||
* The minimum version of system required for the app to run. Sample value: macOS `23.1.0`, Windows `10.0.22631`.
|
||||
* Same with os.release() value, this is a kernel version.
|
||||
*/
|
||||
readonly minimumSystemVersion?: string;
|
||||
}
|
||||
export interface WindowsUpdateInfo extends UpdateInfo {
|
||||
packages?: {
|
||||
|
|
|
|||
2
electron/node_modules/builder-util-runtime/out/updateInfo.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/updateInfo.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"updateInfo.js","sourceRoot":"","sources":["../src/updateInfo.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReleaseNoteInfo {\n /**\n * The version.\n */\n readonly version: string\n\n /**\n * The note.\n */\n readonly note: string | null\n}\n\nexport interface BlockMapDataHolder {\n /**\n * The file size. Used to verify downloaded size (save one HTTP request to get length).\n * Also used when block map data is embedded into the file (appimage, windows web installer package).\n */\n size?: number\n\n /**\n * The block map file size. Used when block map data is embedded into the file (appimage, windows web installer package).\n * This information can be obtained from the file itself, but it requires additional HTTP request,\n * so, to reduce request count, block map size is specified in the update metadata too.\n */\n blockMapSize?: number\n\n /**\n * The file checksum.\n */\n readonly sha512: string\n\n readonly isAdminRightsRequired?: boolean\n}\n\nexport interface PackageFileInfo extends BlockMapDataHolder {\n readonly path: string\n}\n\nexport interface UpdateFileInfo extends BlockMapDataHolder {\n url: string\n}\n\nexport interface UpdateInfo {\n /**\n * The version.\n */\n readonly version: string\n\n readonly files: Array<UpdateFileInfo>\n\n /** @deprecated */\n readonly path: string\n\n /** @deprecated */\n readonly sha512: string\n\n /**\n * The release name.\n */\n releaseName?: string | null\n\n /**\n * The release notes. List if `updater.fullChangelog` is set to `true`, `string` otherwise.\n */\n releaseNotes?: string | Array<ReleaseNoteInfo> | null\n\n /**\n * The release date.\n */\n releaseDate: string\n\n /**\n * The [staged rollout](/auto-update#staged-rollouts) percentage, 0-100.\n */\n readonly stagingPercentage?: number\n}\n\nexport interface WindowsUpdateInfo extends UpdateInfo {\n packages?: { [arch: string]: PackageFileInfo } | null\n\n /**\n * @deprecated\n * @private\n */\n sha2?: string\n}\n"]}
|
||||
{"version":3,"file":"updateInfo.js","sourceRoot":"","sources":["../src/updateInfo.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReleaseNoteInfo {\n /**\n * The version.\n */\n readonly version: string\n\n /**\n * The note.\n */\n readonly note: string | null\n}\n\nexport interface BlockMapDataHolder {\n /**\n * The file size. Used to verify downloaded size (save one HTTP request to get length).\n * Also used when block map data is embedded into the file (appimage, windows web installer package).\n */\n size?: number\n\n /**\n * The block map file size. Used when block map data is embedded into the file (appimage, windows web installer package).\n * This information can be obtained from the file itself, but it requires additional HTTP request,\n * so, to reduce request count, block map size is specified in the update metadata too.\n */\n blockMapSize?: number\n\n /**\n * The file checksum.\n */\n readonly sha512: string\n\n readonly isAdminRightsRequired?: boolean\n}\n\nexport interface PackageFileInfo extends BlockMapDataHolder {\n readonly path: string\n}\n\nexport interface UpdateFileInfo extends BlockMapDataHolder {\n url: string\n}\n\nexport interface UpdateInfo {\n /**\n * The version.\n */\n readonly version: string\n\n readonly files: Array<UpdateFileInfo>\n\n /** @deprecated */\n readonly path: string\n\n /** @deprecated */\n readonly sha512: string\n\n /**\n * The release name.\n */\n releaseName?: string | null\n\n /**\n * The release notes. List if `updater.fullChangelog` is set to `true`, `string` otherwise.\n */\n releaseNotes?: string | Array<ReleaseNoteInfo> | null\n\n /**\n * The release date.\n */\n releaseDate: string\n\n /**\n * The [staged rollout](https://www.electron.build/auto-update#staged-rollouts) percentage, 0-100.\n */\n readonly stagingPercentage?: number\n\n /**\n * The minimum version of system required for the app to run. Sample value: macOS `23.1.0`, Windows `10.0.22631`.\n * Same with os.release() value, this is a kernel version.\n */\n readonly minimumSystemVersion?: string\n}\n\nexport interface WindowsUpdateInfo extends UpdateInfo {\n packages?: { [arch: string]: PackageFileInfo } | null\n\n /**\n * @deprecated\n * @private\n */\n sha2?: string\n}\n"]}
|
||||
1
electron/node_modules/builder-util-runtime/out/uuid.d.ts
generated
vendored
1
electron/node_modules/builder-util-runtime/out/uuid.d.ts
generated
vendored
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="node" />
|
||||
export declare class UUID {
|
||||
private ascii;
|
||||
private readonly binary;
|
||||
|
|
|
|||
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);
|
||||
|
|
|
|||
2
electron/node_modules/builder-util-runtime/out/uuid.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/uuid.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
electron/node_modules/builder-util-runtime/out/xml.d.ts
generated
vendored
4
electron/node_modules/builder-util-runtime/out/xml.d.ts
generated
vendored
|
|
@ -1,9 +1,7 @@
|
|||
export declare class XElement {
|
||||
readonly name: string;
|
||||
value: string;
|
||||
attributes: {
|
||||
[key: string]: string;
|
||||
} | null;
|
||||
attributes: Record<string, string> | null;
|
||||
isCData: boolean;
|
||||
elements: Array<XElement> | null;
|
||||
constructor(name: string);
|
||||
|
|
|
|||
14
electron/node_modules/builder-util-runtime/out/xml.js
generated
vendored
14
electron/node_modules/builder-util-runtime/out/xml.js
generated
vendored
|
|
@ -1,8 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseXml = exports.XElement = void 0;
|
||||
exports.XElement = void 0;
|
||||
exports.parseXml = parseXml;
|
||||
const sax = require("sax");
|
||||
const index_1 = require("./index");
|
||||
const error_1 = require("./error");
|
||||
class XElement {
|
||||
constructor(name) {
|
||||
this.name = name;
|
||||
|
|
@ -11,16 +12,16 @@ class XElement {
|
|||
this.isCData = false;
|
||||
this.elements = null;
|
||||
if (!name) {
|
||||
throw index_1.newError("Element name cannot be empty", "ERR_XML_ELEMENT_NAME_EMPTY");
|
||||
throw (0, error_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, error_1.newError)(`Invalid element name: ${name}`, "ERR_XML_ELEMENT_INVALID_NAME");
|
||||
}
|
||||
}
|
||||
attribute(name) {
|
||||
const result = this.attributes === null ? null : this.attributes[name];
|
||||
if (result == null) {
|
||||
throw index_1.newError(`No attribute "${name}"`, "ERR_XML_MISSED_ATTRIBUTE");
|
||||
throw (0, error_1.newError)(`No attribute "${name}"`, "ERR_XML_MISSED_ATTRIBUTE");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -32,7 +33,7 @@ class XElement {
|
|||
element(name, ignoreCase = false, errorIfMissed = null) {
|
||||
const result = this.elementOrNull(name, ignoreCase);
|
||||
if (result === null) {
|
||||
throw index_1.newError(errorIfMissed || `No element "${name}"`, "ERR_XML_MISSED_ELEMENT");
|
||||
throw (0, error_1.newError)(errorIfMissed || `No element "${name}"`, "ERR_XML_MISSED_ELEMENT");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -105,5 +106,4 @@ function parseXml(data) {
|
|||
parser.write(data);
|
||||
return rootElement;
|
||||
}
|
||||
exports.parseXml = parseXml;
|
||||
//# sourceMappingURL=xml.js.map
|
||||
2
electron/node_modules/builder-util-runtime/out/xml.js.map
generated
vendored
2
electron/node_modules/builder-util-runtime/out/xml.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
electron/node_modules/builder-util-runtime/package.json
generated
vendored
2
electron/node_modules/builder-util-runtime/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "builder-util-runtime",
|
||||
"version": "9.1.1",
|
||||
"version": "9.7.0",
|
||||
"main": "out/index.js",
|
||||
"author": "Vladimir Krivosheev",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue