@hot-updater/aws 0.20.0-rc.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iac/index.cjs +59 -60
- package/dist/iac/index.js +59 -60
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -3
- package/dist/lambda/index.cjs +103 -104
- package/package.json +4 -4
package/dist/iac/index.cjs
CHANGED
|
@@ -54,7 +54,7 @@ const __aws_sdk_lib_storage = __toESM(require("@aws-sdk/lib-storage"));
|
|
|
54
54
|
const __aws_sdk_client_ssm = __toESM(require("@aws-sdk/client-ssm"));
|
|
55
55
|
|
|
56
56
|
//#region ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
57
|
-
var require_src = __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
|
|
57
|
+
var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": ((exports, module) => {
|
|
58
58
|
const ESC = "\x1B";
|
|
59
59
|
const CSI = `${ESC}[`;
|
|
60
60
|
const beep = "\x07";
|
|
@@ -107,11 +107,11 @@ var require_src = __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_m
|
|
|
107
107
|
erase,
|
|
108
108
|
beep
|
|
109
109
|
};
|
|
110
|
-
} });
|
|
110
|
+
}) });
|
|
111
111
|
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
114
|
-
var require_picocolors = __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
|
|
114
|
+
var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
|
|
115
115
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
116
116
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
117
117
|
let formatter = (open, close, replace = open) => (input) => {
|
|
@@ -176,12 +176,12 @@ var require_picocolors = __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1
|
|
|
176
176
|
};
|
|
177
177
|
module.exports = createColors();
|
|
178
178
|
module.exports.createColors = createColors;
|
|
179
|
-
} });
|
|
179
|
+
}) });
|
|
180
180
|
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
|
|
183
|
-
var import_src$1 = __toESM(require_src(), 1);
|
|
184
|
-
var import_picocolors$3 = __toESM(require_picocolors(), 1);
|
|
183
|
+
var import_src$1 = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
184
|
+
var import_picocolors$3 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
185
185
|
function J$1({ onlyFirst: t = !1 } = {}) {
|
|
186
186
|
const F$1 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
187
187
|
return new RegExp(F$1, t ? void 0 : "g");
|
|
@@ -426,7 +426,7 @@ const iD = sD(), v = new Set(["\x1B", ""]), CD = 39, w$1 = "\x07", W$1 = "[",
|
|
|
426
426
|
`)];
|
|
427
427
|
for (const [E, a$1] of o$2.entries()) {
|
|
428
428
|
if (e$1 += a$1, v.has(a$1)) {
|
|
429
|
-
const { groups: B$1 } = new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o$2.slice(E).join("")) || { groups: {} };
|
|
429
|
+
const { groups: B$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`)).exec(o$2.slice(E).join("")) || { groups: {} };
|
|
430
430
|
if (B$1.code !== void 0) {
|
|
431
431
|
const p$1 = Number.parseFloat(B$1.code);
|
|
432
432
|
s = p$1 === CD ? void 0 : p$1;
|
|
@@ -819,8 +819,8 @@ var PD = class extends x {
|
|
|
819
819
|
|
|
820
820
|
//#endregion
|
|
821
821
|
//#region ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
|
|
822
|
-
var import_picocolors$2 = __toESM(require_picocolors(), 1);
|
|
823
|
-
var import_src = __toESM(require_src(), 1);
|
|
822
|
+
var import_picocolors$2 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
823
|
+
var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
824
824
|
function ce() {
|
|
825
825
|
return node_process.default.platform !== "win32" ? node_process.default.env.TERM !== "linux" : !!node_process.default.env.CI || !!node_process.default.env.WT_SESSION || !!node_process.default.env.TERMINUS_SUBLIME || node_process.default.env.ConEmuTask === "{cmd::Cmder}" || node_process.default.env.TERM_PROGRAM === "Terminus-Sublime" || node_process.default.env.TERM_PROGRAM === "vscode" || node_process.default.env.TERM === "xterm-256color" || node_process.default.env.TERM === "alacritty" || node_process.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
826
826
|
}
|
|
@@ -2023,10 +2023,10 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
2023
2023
|
|
|
2024
2024
|
//#endregion
|
|
2025
2025
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
2026
|
-
var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
2026
|
+
var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
|
|
2027
2027
|
module.exports = isexe$3;
|
|
2028
2028
|
isexe$3.sync = sync$2;
|
|
2029
|
-
var fs$
|
|
2029
|
+
var fs$5 = require("fs");
|
|
2030
2030
|
function checkPathExt(path$10, options) {
|
|
2031
2031
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
2032
2032
|
if (!pathext) return true;
|
|
@@ -2043,28 +2043,28 @@ var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_mo
|
|
|
2043
2043
|
return checkPathExt(path$10, options);
|
|
2044
2044
|
}
|
|
2045
2045
|
function isexe$3(path$10, options, cb) {
|
|
2046
|
-
fs$
|
|
2046
|
+
fs$5.stat(path$10, function(er, stat) {
|
|
2047
2047
|
cb(er, er ? false : checkStat$1(stat, path$10, options));
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
2050
|
function sync$2(path$10, options) {
|
|
2051
|
-
return checkStat$1(fs$
|
|
2051
|
+
return checkStat$1(fs$5.statSync(path$10), path$10, options);
|
|
2052
2052
|
}
|
|
2053
|
-
} });
|
|
2053
|
+
}) });
|
|
2054
2054
|
|
|
2055
2055
|
//#endregion
|
|
2056
2056
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
2057
|
-
var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
2057
|
+
var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
|
|
2058
2058
|
module.exports = isexe$2;
|
|
2059
2059
|
isexe$2.sync = sync$1;
|
|
2060
|
-
var fs$
|
|
2060
|
+
var fs$4 = require("fs");
|
|
2061
2061
|
function isexe$2(path$10, options, cb) {
|
|
2062
|
-
fs$
|
|
2062
|
+
fs$4.stat(path$10, function(er, stat) {
|
|
2063
2063
|
cb(er, er ? false : checkStat(stat, options));
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
2066
2066
|
function sync$1(path$10, options) {
|
|
2067
|
-
return checkStat(fs$
|
|
2067
|
+
return checkStat(fs$4.statSync(path$10), options);
|
|
2068
2068
|
}
|
|
2069
2069
|
function checkStat(stat, options) {
|
|
2070
2070
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -2082,12 +2082,12 @@ var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modul
|
|
|
2082
2082
|
var ret = mod & o$2 || mod & g$2 && gid === myGid || mod & u$2 && uid === myUid || mod & ug && myUid === 0;
|
|
2083
2083
|
return ret;
|
|
2084
2084
|
}
|
|
2085
|
-
} });
|
|
2085
|
+
}) });
|
|
2086
2086
|
|
|
2087
2087
|
//#endregion
|
|
2088
2088
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
2089
|
-
var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
2090
|
-
|
|
2089
|
+
var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
|
|
2090
|
+
require("fs");
|
|
2091
2091
|
var core;
|
|
2092
2092
|
if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
|
|
2093
2093
|
else core = require_mode();
|
|
@@ -2125,16 +2125,16 @@ var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modu
|
|
|
2125
2125
|
else throw er;
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
|
-
} });
|
|
2128
|
+
}) });
|
|
2129
2129
|
|
|
2130
2130
|
//#endregion
|
|
2131
2131
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
2132
|
-
var require_which = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
2132
|
+
var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
|
|
2133
2133
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
2134
2134
|
const path$9 = require("path");
|
|
2135
2135
|
const COLON = isWindows ? ";" : ":";
|
|
2136
2136
|
const isexe = require_isexe();
|
|
2137
|
-
const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
2137
|
+
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
2138
2138
|
const getPathInfo = (cmd, opt) => {
|
|
2139
2139
|
const colon = opt.colon || COLON;
|
|
2140
2140
|
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
|
|
@@ -2200,11 +2200,11 @@ var require_which = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modu
|
|
|
2200
2200
|
};
|
|
2201
2201
|
module.exports = which$1;
|
|
2202
2202
|
which$1.sync = whichSync;
|
|
2203
|
-
} });
|
|
2203
|
+
}) });
|
|
2204
2204
|
|
|
2205
2205
|
//#endregion
|
|
2206
2206
|
//#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
2207
|
-
var require_path_key = __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
2207
|
+
var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
|
|
2208
2208
|
const pathKey$1 = (options = {}) => {
|
|
2209
2209
|
const environment = options.env || process.env;
|
|
2210
2210
|
const platform$1 = options.platform || process.platform;
|
|
@@ -2213,11 +2213,11 @@ var require_path_key = __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/nod
|
|
|
2213
2213
|
};
|
|
2214
2214
|
module.exports = pathKey$1;
|
|
2215
2215
|
module.exports.default = pathKey$1;
|
|
2216
|
-
} });
|
|
2216
|
+
}) });
|
|
2217
2217
|
|
|
2218
2218
|
//#endregion
|
|
2219
2219
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
2220
|
-
var require_resolveCommand = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
2220
|
+
var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
|
|
2221
2221
|
const path$8 = require("path");
|
|
2222
2222
|
const which = require_which();
|
|
2223
2223
|
const getPathKey = require_path_key();
|
|
@@ -2245,11 +2245,11 @@ var require_resolveCommand = __commonJS({ "../../node_modules/.pnpm/cross-spawn@
|
|
|
2245
2245
|
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
2246
2246
|
}
|
|
2247
2247
|
module.exports = resolveCommand$1;
|
|
2248
|
-
} });
|
|
2248
|
+
}) });
|
|
2249
2249
|
|
|
2250
2250
|
//#endregion
|
|
2251
2251
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
2252
|
-
var require_escape = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
2252
|
+
var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
|
|
2253
2253
|
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
2254
2254
|
function escapeCommand(arg) {
|
|
2255
2255
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
@@ -2266,17 +2266,17 @@ var require_escape = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/no
|
|
|
2266
2266
|
}
|
|
2267
2267
|
module.exports.command = escapeCommand;
|
|
2268
2268
|
module.exports.argument = escapeArgument;
|
|
2269
|
-
} });
|
|
2269
|
+
}) });
|
|
2270
2270
|
|
|
2271
2271
|
//#endregion
|
|
2272
2272
|
//#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
2273
|
-
var require_shebang_regex = __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
2273
|
+
var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
|
|
2274
2274
|
module.exports = /^#!(.*)/;
|
|
2275
|
-
} });
|
|
2275
|
+
}) });
|
|
2276
2276
|
|
|
2277
2277
|
//#endregion
|
|
2278
2278
|
//#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
2279
|
-
var require_shebang_command = __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
2279
|
+
var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
|
|
2280
2280
|
const shebangRegex = require_shebang_regex();
|
|
2281
2281
|
module.exports = (string = "") => {
|
|
2282
2282
|
const match = string.match(shebangRegex);
|
|
@@ -2286,11 +2286,11 @@ var require_shebang_command = __commonJS({ "../../node_modules/.pnpm/shebang-com
|
|
|
2286
2286
|
if (binary === "env") return argument;
|
|
2287
2287
|
return argument ? `${binary} ${argument}` : binary;
|
|
2288
2288
|
};
|
|
2289
|
-
} });
|
|
2289
|
+
}) });
|
|
2290
2290
|
|
|
2291
2291
|
//#endregion
|
|
2292
2292
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
2293
|
-
var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
2293
|
+
var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
|
|
2294
2294
|
const fs$3 = require("fs");
|
|
2295
2295
|
const shebangCommand = require_shebang_command();
|
|
2296
2296
|
function readShebang$1(command) {
|
|
@@ -2305,11 +2305,11 @@ var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0
|
|
|
2305
2305
|
return shebangCommand(buffer.toString());
|
|
2306
2306
|
}
|
|
2307
2307
|
module.exports = readShebang$1;
|
|
2308
|
-
} });
|
|
2308
|
+
}) });
|
|
2309
2309
|
|
|
2310
2310
|
//#endregion
|
|
2311
2311
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
2312
|
-
var require_parse = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
2312
|
+
var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
|
|
2313
2313
|
const path$7 = require("path");
|
|
2314
2314
|
const resolveCommand = require_resolveCommand();
|
|
2315
2315
|
const escape = require_escape();
|
|
@@ -2368,14 +2368,14 @@ var require_parse = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/nod
|
|
|
2368
2368
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
2369
2369
|
}
|
|
2370
2370
|
module.exports = parse$1;
|
|
2371
|
-
} });
|
|
2371
|
+
}) });
|
|
2372
2372
|
|
|
2373
2373
|
//#endregion
|
|
2374
2374
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
2375
|
-
var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
2375
|
+
var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
|
|
2376
2376
|
const isWin = process.platform === "win32";
|
|
2377
2377
|
function notFoundError(original, syscall) {
|
|
2378
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
2378
|
+
return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
|
|
2379
2379
|
code: "ENOENT",
|
|
2380
2380
|
errno: "ENOENT",
|
|
2381
2381
|
syscall: `${syscall} ${original.command}`,
|
|
@@ -2408,11 +2408,11 @@ var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/no
|
|
|
2408
2408
|
verifyENOENTSync,
|
|
2409
2409
|
notFoundError
|
|
2410
2410
|
};
|
|
2411
|
-
} });
|
|
2411
|
+
}) });
|
|
2412
2412
|
|
|
2413
2413
|
//#endregion
|
|
2414
2414
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
2415
|
-
var require_cross_spawn = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
2415
|
+
var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
|
|
2416
2416
|
const cp = require("child_process");
|
|
2417
2417
|
const parse = require_parse();
|
|
2418
2418
|
const enoent = require_enoent();
|
|
@@ -2433,10 +2433,11 @@ var require_cross_spawn = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0
|
|
|
2433
2433
|
module.exports.sync = spawnSync$1;
|
|
2434
2434
|
module.exports._parse = parse;
|
|
2435
2435
|
module.exports._enoent = enoent;
|
|
2436
|
-
} });
|
|
2436
|
+
}) });
|
|
2437
2437
|
|
|
2438
2438
|
//#endregion
|
|
2439
2439
|
//#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
2440
|
+
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
2440
2441
|
function pathKey(options = {}) {
|
|
2441
2442
|
const { env: env$1 = process.env, platform: platform$1 = process.platform } = options;
|
|
2442
2443
|
if (platform$1 !== "win32") return "PATH";
|
|
@@ -3007,7 +3008,7 @@ const throwOnMissingStrict = (isSubprocess) => {
|
|
|
3007
3008
|
const throwOnStrictDisconnect = (isSubprocess) => {
|
|
3008
3009
|
throw new Error(`${getMethodName("sendMessage", isSubprocess)} failed: the ${getOtherProcessName(isSubprocess)} exited without listening to incoming messages.`);
|
|
3009
3010
|
};
|
|
3010
|
-
const getAbortDisconnectError = () => new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);
|
|
3011
|
+
const getAbortDisconnectError = () => /* @__PURE__ */ new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);
|
|
3011
3012
|
const throwOnMissingParent = () => {
|
|
3012
3013
|
throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.");
|
|
3013
3014
|
};
|
|
@@ -3645,7 +3646,6 @@ const fixCwdError = (originalMessage, cwd) => {
|
|
|
3645
3646
|
|
|
3646
3647
|
//#endregion
|
|
3647
3648
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
|
|
3648
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
3649
3649
|
const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
3650
3650
|
rawOptions.cwd = normalizeCwd(rawOptions.cwd);
|
|
3651
3651
|
const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
|
|
@@ -3973,7 +3973,7 @@ const arrayMethods = {
|
|
|
3973
3973
|
async function getStreamAsArrayBuffer(stream, options) {
|
|
3974
3974
|
return getStreamContents$1(stream, arrayBufferMethods, options);
|
|
3975
3975
|
}
|
|
3976
|
-
const initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
|
|
3976
|
+
const initArrayBuffer = () => ({ contents: /* @__PURE__ */ new ArrayBuffer(0) });
|
|
3977
3977
|
const useTextEncoder = (chunk) => textEncoder.encode(chunk);
|
|
3978
3978
|
const textEncoder = new TextEncoder();
|
|
3979
3979
|
const useUint8Array = (chunk) => new Uint8Array(chunk);
|
|
@@ -4322,10 +4322,9 @@ function parseBigint(milliseconds) {
|
|
|
4322
4322
|
}
|
|
4323
4323
|
function parseMilliseconds(milliseconds) {
|
|
4324
4324
|
switch (typeof milliseconds) {
|
|
4325
|
-
case "number":
|
|
4325
|
+
case "number":
|
|
4326
4326
|
if (Number.isFinite(milliseconds)) return parseNumber(milliseconds);
|
|
4327
4327
|
break;
|
|
4328
|
-
}
|
|
4329
4328
|
case "bigint": return parseBigint(milliseconds);
|
|
4330
4329
|
}
|
|
4331
4330
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -4865,10 +4864,10 @@ const getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction,
|
|
|
4865
4864
|
optionName
|
|
4866
4865
|
});
|
|
4867
4866
|
};
|
|
4868
|
-
const getOtherStdioItems = (fileDescriptors, type) => fileDescriptors.flatMap(({ direction, stdioItems }) => stdioItems.filter((stdioItem) => stdioItem.type === type).map((stdioItem) => ({
|
|
4867
|
+
const getOtherStdioItems = (fileDescriptors, type) => fileDescriptors.flatMap(({ direction, stdioItems }) => stdioItems.filter((stdioItem) => stdioItem.type === type).map(((stdioItem) => ({
|
|
4869
4868
|
...stdioItem,
|
|
4870
4869
|
direction
|
|
4871
|
-
})));
|
|
4870
|
+
}))));
|
|
4872
4871
|
const validateDuplicateStreamSync = ({ otherStdioItems, type, value, optionName, direction }) => {
|
|
4873
4872
|
if (SPECIAL_DUPLICATE_TYPES_SYNC.has(type)) getDuplicateStreamInstance({
|
|
4874
4873
|
otherStdioItems,
|
|
@@ -5385,7 +5384,7 @@ const logLine = (line, fdNumber, verboseInfo) => {
|
|
|
5385
5384
|
const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
|
|
5386
5385
|
if (output === null) return { output: Array.from({ length: 3 }) };
|
|
5387
5386
|
const state = {};
|
|
5388
|
-
const outputFiles = new Set([]);
|
|
5387
|
+
const outputFiles = /* @__PURE__ */ new Set([]);
|
|
5389
5388
|
const transformedOutput = output.map((result, fdNumber) => transformOutputResultSync({
|
|
5390
5389
|
result,
|
|
5391
5390
|
fileDescriptors,
|
|
@@ -5947,9 +5946,9 @@ const getHighWaterMark = (streams, objectMode) => {
|
|
|
5947
5946
|
return Math.max(...highWaterMarks);
|
|
5948
5947
|
};
|
|
5949
5948
|
var MergedStream = class extends node_stream.PassThrough {
|
|
5950
|
-
#streams = new Set([]);
|
|
5951
|
-
#ended = new Set([]);
|
|
5952
|
-
#aborted = new Set([]);
|
|
5949
|
+
#streams = /* @__PURE__ */ new Set([]);
|
|
5950
|
+
#ended = /* @__PURE__ */ new Set([]);
|
|
5951
|
+
#aborted = /* @__PURE__ */ new Set([]);
|
|
5953
5952
|
#onFinished;
|
|
5954
5953
|
#unpipeEvent = Symbol("unpipe");
|
|
5955
5954
|
#streamPromises = /* @__PURE__ */ new WeakMap();
|
|
@@ -6548,7 +6547,7 @@ const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ?
|
|
|
6548
6547
|
const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
|
|
6549
6548
|
await (0, node_util.aborted)(unpipeSignal, sourceStream);
|
|
6550
6549
|
await mergedStream.remove(sourceStream);
|
|
6551
|
-
const error = new Error("Pipe canceled by `unpipeSignal` option.");
|
|
6550
|
+
const error = /* @__PURE__ */ new Error("Pipe canceled by `unpipeSignal` option.");
|
|
6552
6551
|
throw createNonCommandError({
|
|
6553
6552
|
error,
|
|
6554
6553
|
fileDescriptors,
|
|
@@ -8316,7 +8315,7 @@ var LambdaEdgeDeployer = class {
|
|
|
8316
8315
|
|
|
8317
8316
|
//#endregion
|
|
8318
8317
|
//#region iac/migrations/migrator.ts
|
|
8319
|
-
var import_picocolors$1 = __toESM(require_picocolors());
|
|
8318
|
+
var import_picocolors$1 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
8320
8319
|
/**
|
|
8321
8320
|
* S3Migration
|
|
8322
8321
|
* Base class that each migration script extends.
|
|
@@ -8852,7 +8851,7 @@ export default HotUpdater.wrap({
|
|
|
8852
8851
|
|
|
8853
8852
|
//#endregion
|
|
8854
8853
|
//#region iac/index.ts
|
|
8855
|
-
var import_picocolors = __toESM(require_picocolors());
|
|
8854
|
+
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
8856
8855
|
const checkIfAwsCliInstalled = async () => {
|
|
8857
8856
|
try {
|
|
8858
8857
|
await execa("aws", ["--version"]);
|
|
@@ -9018,11 +9017,11 @@ const runInit = async ({ build }) => {
|
|
|
9018
9017
|
...mode === "sso" && { HOT_UPDATER_S3_SESSION_TOKEN: credentials.sessionToken },
|
|
9019
9018
|
HOT_UPDATER_CLOUDFRONT_DISTRIBUTION_ID: distributionId
|
|
9020
9019
|
});
|
|
9021
|
-
f.success("Generated '.env' file with AWS settings.");
|
|
9020
|
+
f.success("Generated '.env.hotupdater' file with AWS settings.");
|
|
9022
9021
|
f.success("Generated 'hot-updater.config.ts' file with AWS settings.");
|
|
9023
9022
|
const sourceUrl = `https://${distributionDomain}/api/check-update`;
|
|
9024
9023
|
Me((0, __hot_updater_plugin_core.transformTemplate)(SOURCE_TEMPLATE, { source: sourceUrl }));
|
|
9025
|
-
f.message(`Next step: ${(0, __hot_updater_plugin_core.link)("https://
|
|
9024
|
+
f.message(`Next step: ${(0, __hot_updater_plugin_core.link)("https://hot-updater.dev/guide/providers/3_aws-s3-lambda-edge.html#step-4-changeenv-file-optional")}`);
|
|
9026
9025
|
f.success("Done! 🎉");
|
|
9027
9026
|
};
|
|
9028
9027
|
|