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
6
electron/node_modules/app-builder-lib/out/util/macroExpander.js
generated
vendored
6
electron/node_modules/app-builder-lib/out/util/macroExpander.js
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.expandMacro = void 0;
|
||||
exports.expandMacro = expandMacro;
|
||||
const builder_util_1 = require("builder-util");
|
||||
function expandMacro(pattern, arch, appInfo, extra = {}, isProductNameSanitized = true) {
|
||||
if (arch == null) {
|
||||
|
|
@ -45,6 +45,9 @@ function expandMacro(pattern, arch, appInfo, extra = {}, isProductNameSanitized
|
|||
if (envValue == null) {
|
||||
throw new builder_util_1.InvalidConfigurationError(`cannot expand pattern "${pattern}": env ${envName} is not defined`, "ERR_ELECTRON_BUILDER_ENV_NOT_DEFINED");
|
||||
}
|
||||
if (/TOKEN|SECRET|KEY|PASSWORD|CREDENTIAL/i.test(envName)) {
|
||||
builder_util_1.log.warn({ envName, pattern }, "macro expansion includes an env var that may contain a secret — verify this is intentional");
|
||||
}
|
||||
return envValue;
|
||||
}
|
||||
const value = extra[p1];
|
||||
|
|
@ -58,5 +61,4 @@ function expandMacro(pattern, arch, appInfo, extra = {}, isProductNameSanitized
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.expandMacro = expandMacro;
|
||||
//# sourceMappingURL=macroExpander.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue