@settlemint/sdk-cli 1.0.9-prf2788482 → 1.0.9-prf4a5beac
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/cli.js +696 -2520
- package/dist/cli.js.map +10 -48
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -202564,24 +202564,24 @@ ${options.prefix}` : `
|
|
|
202564
202564
|
}
|
|
202565
202565
|
filesToStringWorker(writeProjectFileNames, writeFileExplaination, writeFileVersionAndText) {
|
|
202566
202566
|
if (this.initialLoadPending)
|
|
202567
|
-
return
|
|
202567
|
+
return `\tFiles (0) InitialLoadPending
|
|
202568
202568
|
`;
|
|
202569
202569
|
if (!this.program)
|
|
202570
|
-
return
|
|
202570
|
+
return `\tFiles (0) NoProgram
|
|
202571
202571
|
`;
|
|
202572
202572
|
const sourceFiles = this.program.getSourceFiles();
|
|
202573
|
-
let strBuilder =
|
|
202573
|
+
let strBuilder = `\tFiles (${sourceFiles.length})
|
|
202574
202574
|
`;
|
|
202575
202575
|
if (writeProjectFileNames) {
|
|
202576
202576
|
for (const file of sourceFiles) {
|
|
202577
|
-
strBuilder +=
|
|
202577
|
+
strBuilder += `\t${file.fileName}${writeFileVersionAndText ? ` ${file.version} ${JSON.stringify(file.text)}` : ""}
|
|
202578
202578
|
`;
|
|
202579
202579
|
}
|
|
202580
202580
|
if (writeFileExplaination) {
|
|
202581
202581
|
strBuilder += `
|
|
202582
202582
|
|
|
202583
202583
|
`;
|
|
202584
|
-
explainFiles(this.program, (s2) => strBuilder +=
|
|
202584
|
+
explainFiles(this.program, (s2) => strBuilder += `\t${s2}
|
|
202585
202585
|
`);
|
|
202586
202586
|
}
|
|
202587
202587
|
}
|
|
@@ -204716,8 +204716,8 @@ ${options.prefix}` : `
|
|
|
204716
204716
|
this.logger.info("Open files: ");
|
|
204717
204717
|
this.openFiles.forEach((projectRootPath, path5) => {
|
|
204718
204718
|
const info = this.getScriptInfoForPath(path5);
|
|
204719
|
-
this.logger.info(
|
|
204720
|
-
this.logger.info(
|
|
204719
|
+
this.logger.info(`\tFileName: ${info.fileName} ProjectRootPath: ${projectRootPath}`);
|
|
204720
|
+
this.logger.info(`\t\tProjects: ${info.containingProjects.map((p) => p.getProjectName())}`);
|
|
204721
204721
|
});
|
|
204722
204722
|
this.logger.endGroup();
|
|
204723
204723
|
}
|
|
@@ -228191,222 +228191,6 @@ var require_lib12 = __commonJS((exports, module) => {
|
|
|
228191
228191
|
module.exports = MuteStream;
|
|
228192
228192
|
});
|
|
228193
228193
|
|
|
228194
|
-
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
228195
|
-
var signals;
|
|
228196
|
-
var init_signals = __esm(() => {
|
|
228197
|
-
signals = [];
|
|
228198
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
228199
|
-
if (process.platform !== "win32") {
|
|
228200
|
-
signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
228201
|
-
}
|
|
228202
|
-
if (process.platform === "linux") {
|
|
228203
|
-
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
228204
|
-
}
|
|
228205
|
-
});
|
|
228206
|
-
|
|
228207
|
-
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
228208
|
-
class Emitter2 {
|
|
228209
|
-
emitted = {
|
|
228210
|
-
afterExit: false,
|
|
228211
|
-
exit: false
|
|
228212
|
-
};
|
|
228213
|
-
listeners = {
|
|
228214
|
-
afterExit: [],
|
|
228215
|
-
exit: []
|
|
228216
|
-
};
|
|
228217
|
-
count = 0;
|
|
228218
|
-
id = Math.random();
|
|
228219
|
-
constructor() {
|
|
228220
|
-
if (global2[kExitEmitter]) {
|
|
228221
|
-
return global2[kExitEmitter];
|
|
228222
|
-
}
|
|
228223
|
-
ObjectDefineProperty(global2, kExitEmitter, {
|
|
228224
|
-
value: this,
|
|
228225
|
-
writable: false,
|
|
228226
|
-
enumerable: false,
|
|
228227
|
-
configurable: false
|
|
228228
|
-
});
|
|
228229
|
-
}
|
|
228230
|
-
on(ev, fn) {
|
|
228231
|
-
this.listeners[ev].push(fn);
|
|
228232
|
-
}
|
|
228233
|
-
removeListener(ev, fn) {
|
|
228234
|
-
const list3 = this.listeners[ev];
|
|
228235
|
-
const i6 = list3.indexOf(fn);
|
|
228236
|
-
if (i6 === -1) {
|
|
228237
|
-
return;
|
|
228238
|
-
}
|
|
228239
|
-
if (i6 === 0 && list3.length === 1) {
|
|
228240
|
-
list3.length = 0;
|
|
228241
|
-
} else {
|
|
228242
|
-
list3.splice(i6, 1);
|
|
228243
|
-
}
|
|
228244
|
-
}
|
|
228245
|
-
emit(ev, code2, signal) {
|
|
228246
|
-
if (this.emitted[ev]) {
|
|
228247
|
-
return false;
|
|
228248
|
-
}
|
|
228249
|
-
this.emitted[ev] = true;
|
|
228250
|
-
let ret = false;
|
|
228251
|
-
for (const fn of this.listeners[ev]) {
|
|
228252
|
-
ret = fn(code2, signal) === true || ret;
|
|
228253
|
-
}
|
|
228254
|
-
if (ev === "exit") {
|
|
228255
|
-
ret = this.emit("afterExit", code2, signal) || ret;
|
|
228256
|
-
}
|
|
228257
|
-
return ret;
|
|
228258
|
-
}
|
|
228259
|
-
}
|
|
228260
|
-
|
|
228261
|
-
class SignalExitBase2 {
|
|
228262
|
-
}
|
|
228263
|
-
var processOk2 = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function", kExitEmitter, global2, ObjectDefineProperty, signalExitWrap = (handler) => {
|
|
228264
|
-
return {
|
|
228265
|
-
onExit(cb, opts) {
|
|
228266
|
-
return handler.onExit(cb, opts);
|
|
228267
|
-
},
|
|
228268
|
-
load() {
|
|
228269
|
-
return handler.load();
|
|
228270
|
-
},
|
|
228271
|
-
unload() {
|
|
228272
|
-
return handler.unload();
|
|
228273
|
-
}
|
|
228274
|
-
};
|
|
228275
|
-
}, SignalExitFallback2, SignalExit2, process7, onExit, load2, unload;
|
|
228276
|
-
var init_mjs = __esm(() => {
|
|
228277
|
-
init_signals();
|
|
228278
|
-
kExitEmitter = Symbol.for("signal-exit emitter");
|
|
228279
|
-
global2 = globalThis;
|
|
228280
|
-
ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
228281
|
-
SignalExitFallback2 = class SignalExitFallback2 extends SignalExitBase2 {
|
|
228282
|
-
onExit() {
|
|
228283
|
-
return () => {
|
|
228284
|
-
};
|
|
228285
|
-
}
|
|
228286
|
-
load() {
|
|
228287
|
-
}
|
|
228288
|
-
unload() {
|
|
228289
|
-
}
|
|
228290
|
-
};
|
|
228291
|
-
SignalExit2 = class SignalExit2 extends SignalExitBase2 {
|
|
228292
|
-
#hupSig = process7.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
228293
|
-
#emitter = new Emitter2;
|
|
228294
|
-
#process;
|
|
228295
|
-
#originalProcessEmit;
|
|
228296
|
-
#originalProcessReallyExit;
|
|
228297
|
-
#sigListeners = {};
|
|
228298
|
-
#loaded = false;
|
|
228299
|
-
constructor(process7) {
|
|
228300
|
-
super();
|
|
228301
|
-
this.#process = process7;
|
|
228302
|
-
this.#sigListeners = {};
|
|
228303
|
-
for (const sig of signals) {
|
|
228304
|
-
this.#sigListeners[sig] = () => {
|
|
228305
|
-
const listeners = this.#process.listeners(sig);
|
|
228306
|
-
let { count } = this.#emitter;
|
|
228307
|
-
const p6 = process7;
|
|
228308
|
-
if (typeof p6.__signal_exit_emitter__ === "object" && typeof p6.__signal_exit_emitter__.count === "number") {
|
|
228309
|
-
count += p6.__signal_exit_emitter__.count;
|
|
228310
|
-
}
|
|
228311
|
-
if (listeners.length === count) {
|
|
228312
|
-
this.unload();
|
|
228313
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
228314
|
-
const s8 = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
228315
|
-
if (!ret)
|
|
228316
|
-
process7.kill(process7.pid, s8);
|
|
228317
|
-
}
|
|
228318
|
-
};
|
|
228319
|
-
}
|
|
228320
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
228321
|
-
this.#originalProcessEmit = process7.emit;
|
|
228322
|
-
}
|
|
228323
|
-
onExit(cb, opts) {
|
|
228324
|
-
if (!processOk2(this.#process)) {
|
|
228325
|
-
return () => {
|
|
228326
|
-
};
|
|
228327
|
-
}
|
|
228328
|
-
if (this.#loaded === false) {
|
|
228329
|
-
this.load();
|
|
228330
|
-
}
|
|
228331
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
228332
|
-
this.#emitter.on(ev, cb);
|
|
228333
|
-
return () => {
|
|
228334
|
-
this.#emitter.removeListener(ev, cb);
|
|
228335
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
228336
|
-
this.unload();
|
|
228337
|
-
}
|
|
228338
|
-
};
|
|
228339
|
-
}
|
|
228340
|
-
load() {
|
|
228341
|
-
if (this.#loaded) {
|
|
228342
|
-
return;
|
|
228343
|
-
}
|
|
228344
|
-
this.#loaded = true;
|
|
228345
|
-
this.#emitter.count += 1;
|
|
228346
|
-
for (const sig of signals) {
|
|
228347
|
-
try {
|
|
228348
|
-
const fn = this.#sigListeners[sig];
|
|
228349
|
-
if (fn)
|
|
228350
|
-
this.#process.on(sig, fn);
|
|
228351
|
-
} catch (_5) {
|
|
228352
|
-
}
|
|
228353
|
-
}
|
|
228354
|
-
this.#process.emit = (ev, ...a7) => {
|
|
228355
|
-
return this.#processEmit(ev, ...a7);
|
|
228356
|
-
};
|
|
228357
|
-
this.#process.reallyExit = (code2) => {
|
|
228358
|
-
return this.#processReallyExit(code2);
|
|
228359
|
-
};
|
|
228360
|
-
}
|
|
228361
|
-
unload() {
|
|
228362
|
-
if (!this.#loaded) {
|
|
228363
|
-
return;
|
|
228364
|
-
}
|
|
228365
|
-
this.#loaded = false;
|
|
228366
|
-
signals.forEach((sig) => {
|
|
228367
|
-
const listener = this.#sigListeners[sig];
|
|
228368
|
-
if (!listener) {
|
|
228369
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
228370
|
-
}
|
|
228371
|
-
try {
|
|
228372
|
-
this.#process.removeListener(sig, listener);
|
|
228373
|
-
} catch (_5) {
|
|
228374
|
-
}
|
|
228375
|
-
});
|
|
228376
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
228377
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
228378
|
-
this.#emitter.count -= 1;
|
|
228379
|
-
}
|
|
228380
|
-
#processReallyExit(code2) {
|
|
228381
|
-
if (!processOk2(this.#process)) {
|
|
228382
|
-
return 0;
|
|
228383
|
-
}
|
|
228384
|
-
this.#process.exitCode = code2 || 0;
|
|
228385
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
228386
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
228387
|
-
}
|
|
228388
|
-
#processEmit(ev, ...args) {
|
|
228389
|
-
const og = this.#originalProcessEmit;
|
|
228390
|
-
if (ev === "exit" && processOk2(this.#process)) {
|
|
228391
|
-
if (typeof args[0] === "number") {
|
|
228392
|
-
this.#process.exitCode = args[0];
|
|
228393
|
-
}
|
|
228394
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
228395
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
228396
|
-
return ret;
|
|
228397
|
-
} else {
|
|
228398
|
-
return og.call(this.#process, ev, ...args);
|
|
228399
|
-
}
|
|
228400
|
-
}
|
|
228401
|
-
};
|
|
228402
|
-
process7 = globalThis.process;
|
|
228403
|
-
({
|
|
228404
|
-
onExit,
|
|
228405
|
-
load: load2,
|
|
228406
|
-
unload
|
|
228407
|
-
} = signalExitWrap(processOk2(process7) ? new SignalExit2(process7) : new SignalExitFallback2));
|
|
228408
|
-
});
|
|
228409
|
-
|
|
228410
228194
|
// ../../node_modules/ansi-escapes/index.js
|
|
228411
228195
|
var require_ansi_escapes = __commonJS((exports, module) => {
|
|
228412
228196
|
var ansiEscapes = exports;
|
|
@@ -235018,1879 +234802,6 @@ var require_tar = __commonJS((exports) => {
|
|
|
235018
234802
|
exports.types = require_types2();
|
|
235019
234803
|
});
|
|
235020
234804
|
|
|
235021
|
-
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/windows.js
|
|
235022
|
-
var require_windows = __commonJS((exports, module) => {
|
|
235023
|
-
module.exports = isexe;
|
|
235024
|
-
isexe.sync = sync3;
|
|
235025
|
-
var fs3 = __require("fs");
|
|
235026
|
-
function checkPathExt(path6, options) {
|
|
235027
|
-
var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;
|
|
235028
|
-
if (!pathext) {
|
|
235029
|
-
return true;
|
|
235030
|
-
}
|
|
235031
|
-
pathext = pathext.split(";");
|
|
235032
|
-
if (pathext.indexOf("") !== -1) {
|
|
235033
|
-
return true;
|
|
235034
|
-
}
|
|
235035
|
-
for (var i6 = 0;i6 < pathext.length; i6++) {
|
|
235036
|
-
var p6 = pathext[i6].toLowerCase();
|
|
235037
|
-
if (p6 && path6.substr(-p6.length).toLowerCase() === p6) {
|
|
235038
|
-
return true;
|
|
235039
|
-
}
|
|
235040
|
-
}
|
|
235041
|
-
return false;
|
|
235042
|
-
}
|
|
235043
|
-
function checkStat(stat8, path6, options) {
|
|
235044
|
-
if (!stat8.isSymbolicLink() && !stat8.isFile()) {
|
|
235045
|
-
return false;
|
|
235046
|
-
}
|
|
235047
|
-
return checkPathExt(path6, options);
|
|
235048
|
-
}
|
|
235049
|
-
function isexe(path6, options, cb) {
|
|
235050
|
-
fs3.stat(path6, function(er2, stat8) {
|
|
235051
|
-
cb(er2, er2 ? false : checkStat(stat8, path6, options));
|
|
235052
|
-
});
|
|
235053
|
-
}
|
|
235054
|
-
function sync3(path6, options) {
|
|
235055
|
-
return checkStat(fs3.statSync(path6), path6, options);
|
|
235056
|
-
}
|
|
235057
|
-
});
|
|
235058
|
-
|
|
235059
|
-
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/mode.js
|
|
235060
|
-
var require_mode = __commonJS((exports, module) => {
|
|
235061
|
-
module.exports = isexe;
|
|
235062
|
-
isexe.sync = sync3;
|
|
235063
|
-
var fs3 = __require("fs");
|
|
235064
|
-
function isexe(path6, options, cb) {
|
|
235065
|
-
fs3.stat(path6, function(er2, stat8) {
|
|
235066
|
-
cb(er2, er2 ? false : checkStat(stat8, options));
|
|
235067
|
-
});
|
|
235068
|
-
}
|
|
235069
|
-
function sync3(path6, options) {
|
|
235070
|
-
return checkStat(fs3.statSync(path6), options);
|
|
235071
|
-
}
|
|
235072
|
-
function checkStat(stat8, options) {
|
|
235073
|
-
return stat8.isFile() && checkMode(stat8, options);
|
|
235074
|
-
}
|
|
235075
|
-
function checkMode(stat8, options) {
|
|
235076
|
-
var mod = stat8.mode;
|
|
235077
|
-
var uid = stat8.uid;
|
|
235078
|
-
var gid = stat8.gid;
|
|
235079
|
-
var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();
|
|
235080
|
-
var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();
|
|
235081
|
-
var u6 = parseInt("100", 8);
|
|
235082
|
-
var g6 = parseInt("010", 8);
|
|
235083
|
-
var o8 = parseInt("001", 8);
|
|
235084
|
-
var ug = u6 | g6;
|
|
235085
|
-
var ret = mod & o8 || mod & g6 && gid === myGid || mod & u6 && uid === myUid || mod & ug && myUid === 0;
|
|
235086
|
-
return ret;
|
|
235087
|
-
}
|
|
235088
|
-
});
|
|
235089
|
-
|
|
235090
|
-
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/index.js
|
|
235091
|
-
var require_isexe = __commonJS((exports, module) => {
|
|
235092
|
-
var fs3 = __require("fs");
|
|
235093
|
-
var core;
|
|
235094
|
-
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
235095
|
-
core = require_windows();
|
|
235096
|
-
} else {
|
|
235097
|
-
core = require_mode();
|
|
235098
|
-
}
|
|
235099
|
-
module.exports = isexe;
|
|
235100
|
-
isexe.sync = sync3;
|
|
235101
|
-
function isexe(path6, options, cb) {
|
|
235102
|
-
if (typeof options === "function") {
|
|
235103
|
-
cb = options;
|
|
235104
|
-
options = {};
|
|
235105
|
-
}
|
|
235106
|
-
if (!cb) {
|
|
235107
|
-
if (typeof Promise !== "function") {
|
|
235108
|
-
throw new TypeError("callback not provided");
|
|
235109
|
-
}
|
|
235110
|
-
return new Promise(function(resolve7, reject) {
|
|
235111
|
-
isexe(path6, options || {}, function(er2, is) {
|
|
235112
|
-
if (er2) {
|
|
235113
|
-
reject(er2);
|
|
235114
|
-
} else {
|
|
235115
|
-
resolve7(is);
|
|
235116
|
-
}
|
|
235117
|
-
});
|
|
235118
|
-
});
|
|
235119
|
-
}
|
|
235120
|
-
core(path6, options || {}, function(er2, is) {
|
|
235121
|
-
if (er2) {
|
|
235122
|
-
if (er2.code === "EACCES" || options && options.ignoreErrors) {
|
|
235123
|
-
er2 = null;
|
|
235124
|
-
is = false;
|
|
235125
|
-
}
|
|
235126
|
-
}
|
|
235127
|
-
cb(er2, is);
|
|
235128
|
-
});
|
|
235129
|
-
}
|
|
235130
|
-
function sync3(path6, options) {
|
|
235131
|
-
try {
|
|
235132
|
-
return core.sync(path6, options || {});
|
|
235133
|
-
} catch (er2) {
|
|
235134
|
-
if (options && options.ignoreErrors || er2.code === "EACCES") {
|
|
235135
|
-
return false;
|
|
235136
|
-
} else {
|
|
235137
|
-
throw er2;
|
|
235138
|
-
}
|
|
235139
|
-
}
|
|
235140
|
-
}
|
|
235141
|
-
});
|
|
235142
|
-
|
|
235143
|
-
// ../../node_modules/cross-spawn/node_modules/which/which.js
|
|
235144
|
-
var require_which2 = __commonJS((exports, module) => {
|
|
235145
|
-
var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
235146
|
-
var path6 = __require("path");
|
|
235147
|
-
var COLON = isWindows2 ? ";" : ":";
|
|
235148
|
-
var isexe = require_isexe();
|
|
235149
|
-
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
235150
|
-
var getPathInfo2 = (cmd2, opt2) => {
|
|
235151
|
-
const colon = opt2.colon || COLON;
|
|
235152
|
-
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235153
|
-
...isWindows2 ? [process.cwd()] : [],
|
|
235154
|
-
...(opt2.path || process.env.PATH || "").split(colon)
|
|
235155
|
-
];
|
|
235156
|
-
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235157
|
-
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
235158
|
-
if (isWindows2) {
|
|
235159
|
-
if (cmd2.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
235160
|
-
pathExt.unshift("");
|
|
235161
|
-
}
|
|
235162
|
-
return {
|
|
235163
|
-
pathEnv,
|
|
235164
|
-
pathExt,
|
|
235165
|
-
pathExtExe
|
|
235166
|
-
};
|
|
235167
|
-
};
|
|
235168
|
-
var which = (cmd2, opt2, cb) => {
|
|
235169
|
-
if (typeof opt2 === "function") {
|
|
235170
|
-
cb = opt2;
|
|
235171
|
-
opt2 = {};
|
|
235172
|
-
}
|
|
235173
|
-
if (!opt2)
|
|
235174
|
-
opt2 = {};
|
|
235175
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd2, opt2);
|
|
235176
|
-
const found = [];
|
|
235177
|
-
const step = (i6) => new Promise((resolve7, reject) => {
|
|
235178
|
-
if (i6 === pathEnv.length)
|
|
235179
|
-
return opt2.all && found.length ? resolve7(found) : reject(getNotFoundError2(cmd2));
|
|
235180
|
-
const ppRaw = pathEnv[i6];
|
|
235181
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
235182
|
-
const pCmd = path6.join(pathPart, cmd2);
|
|
235183
|
-
const p6 = !pathPart && /^\.[\\\/]/.test(cmd2) ? cmd2.slice(0, 2) + pCmd : pCmd;
|
|
235184
|
-
resolve7(subStep(p6, i6, 0));
|
|
235185
|
-
});
|
|
235186
|
-
const subStep = (p6, i6, ii2) => new Promise((resolve7, reject) => {
|
|
235187
|
-
if (ii2 === pathExt.length)
|
|
235188
|
-
return resolve7(step(i6 + 1));
|
|
235189
|
-
const ext2 = pathExt[ii2];
|
|
235190
|
-
isexe(p6 + ext2, { pathExt: pathExtExe }, (er2, is) => {
|
|
235191
|
-
if (!er2 && is) {
|
|
235192
|
-
if (opt2.all)
|
|
235193
|
-
found.push(p6 + ext2);
|
|
235194
|
-
else
|
|
235195
|
-
return resolve7(p6 + ext2);
|
|
235196
|
-
}
|
|
235197
|
-
return resolve7(subStep(p6, i6, ii2 + 1));
|
|
235198
|
-
});
|
|
235199
|
-
});
|
|
235200
|
-
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
235201
|
-
};
|
|
235202
|
-
var whichSync = (cmd2, opt2) => {
|
|
235203
|
-
opt2 = opt2 || {};
|
|
235204
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd2, opt2);
|
|
235205
|
-
const found = [];
|
|
235206
|
-
for (let i6 = 0;i6 < pathEnv.length; i6++) {
|
|
235207
|
-
const ppRaw = pathEnv[i6];
|
|
235208
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
235209
|
-
const pCmd = path6.join(pathPart, cmd2);
|
|
235210
|
-
const p6 = !pathPart && /^\.[\\\/]/.test(cmd2) ? cmd2.slice(0, 2) + pCmd : pCmd;
|
|
235211
|
-
for (let j3 = 0;j3 < pathExt.length; j3++) {
|
|
235212
|
-
const cur = p6 + pathExt[j3];
|
|
235213
|
-
try {
|
|
235214
|
-
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
235215
|
-
if (is) {
|
|
235216
|
-
if (opt2.all)
|
|
235217
|
-
found.push(cur);
|
|
235218
|
-
else
|
|
235219
|
-
return cur;
|
|
235220
|
-
}
|
|
235221
|
-
} catch (ex) {
|
|
235222
|
-
}
|
|
235223
|
-
}
|
|
235224
|
-
}
|
|
235225
|
-
if (opt2.all && found.length)
|
|
235226
|
-
return found;
|
|
235227
|
-
if (opt2.nothrow)
|
|
235228
|
-
return null;
|
|
235229
|
-
throw getNotFoundError2(cmd2);
|
|
235230
|
-
};
|
|
235231
|
-
module.exports = which;
|
|
235232
|
-
which.sync = whichSync;
|
|
235233
|
-
});
|
|
235234
|
-
|
|
235235
|
-
// ../../node_modules/path-key/index.js
|
|
235236
|
-
var require_path_key = __commonJS((exports, module) => {
|
|
235237
|
-
var pathKey2 = (options = {}) => {
|
|
235238
|
-
const environment = options.env || process.env;
|
|
235239
|
-
const platform2 = options.platform || process.platform;
|
|
235240
|
-
if (platform2 !== "win32") {
|
|
235241
|
-
return "PATH";
|
|
235242
|
-
}
|
|
235243
|
-
return Object.keys(environment).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
|
|
235244
|
-
};
|
|
235245
|
-
module.exports = pathKey2;
|
|
235246
|
-
module.exports.default = pathKey2;
|
|
235247
|
-
});
|
|
235248
|
-
|
|
235249
|
-
// ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
235250
|
-
var require_resolveCommand = __commonJS((exports, module) => {
|
|
235251
|
-
var path6 = __require("path");
|
|
235252
|
-
var which = require_which2();
|
|
235253
|
-
var getPathKey = require_path_key();
|
|
235254
|
-
function resolveCommandAttempt2(parsed, withoutPathExt) {
|
|
235255
|
-
const env2 = parsed.options.env || process.env;
|
|
235256
|
-
const cwd2 = process.cwd();
|
|
235257
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
235258
|
-
const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
|
|
235259
|
-
if (shouldSwitchCwd) {
|
|
235260
|
-
try {
|
|
235261
|
-
process.chdir(parsed.options.cwd);
|
|
235262
|
-
} catch (err) {
|
|
235263
|
-
}
|
|
235264
|
-
}
|
|
235265
|
-
let resolved;
|
|
235266
|
-
try {
|
|
235267
|
-
resolved = which.sync(parsed.command, {
|
|
235268
|
-
path: env2[getPathKey({ env: env2 })],
|
|
235269
|
-
pathExt: withoutPathExt ? path6.delimiter : undefined
|
|
235270
|
-
});
|
|
235271
|
-
} catch (e10) {
|
|
235272
|
-
} finally {
|
|
235273
|
-
if (shouldSwitchCwd) {
|
|
235274
|
-
process.chdir(cwd2);
|
|
235275
|
-
}
|
|
235276
|
-
}
|
|
235277
|
-
if (resolved) {
|
|
235278
|
-
resolved = path6.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
235279
|
-
}
|
|
235280
|
-
return resolved;
|
|
235281
|
-
}
|
|
235282
|
-
function resolveCommand(parsed) {
|
|
235283
|
-
return resolveCommandAttempt2(parsed) || resolveCommandAttempt2(parsed, true);
|
|
235284
|
-
}
|
|
235285
|
-
module.exports = resolveCommand;
|
|
235286
|
-
});
|
|
235287
|
-
|
|
235288
|
-
// ../../node_modules/cross-spawn/lib/util/escape.js
|
|
235289
|
-
var require_escape3 = __commonJS((exports, module) => {
|
|
235290
|
-
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
235291
|
-
function escapeCommand2(arg) {
|
|
235292
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
235293
|
-
return arg;
|
|
235294
|
-
}
|
|
235295
|
-
function escapeArgument2(arg, doubleEscapeMetaChars) {
|
|
235296
|
-
arg = `${arg}`;
|
|
235297
|
-
arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
235298
|
-
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
235299
|
-
arg = `"${arg}"`;
|
|
235300
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
235301
|
-
if (doubleEscapeMetaChars) {
|
|
235302
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
235303
|
-
}
|
|
235304
|
-
return arg;
|
|
235305
|
-
}
|
|
235306
|
-
exports.command = escapeCommand2;
|
|
235307
|
-
exports.argument = escapeArgument2;
|
|
235308
|
-
});
|
|
235309
|
-
|
|
235310
|
-
// ../../node_modules/shebang-regex/index.js
|
|
235311
|
-
var require_shebang_regex = __commonJS((exports, module) => {
|
|
235312
|
-
module.exports = /^#!(.*)/;
|
|
235313
|
-
});
|
|
235314
|
-
|
|
235315
|
-
// ../../node_modules/shebang-command/index.js
|
|
235316
|
-
var require_shebang_command = __commonJS((exports, module) => {
|
|
235317
|
-
var shebangRegex = require_shebang_regex();
|
|
235318
|
-
module.exports = (string = "") => {
|
|
235319
|
-
const match2 = string.match(shebangRegex);
|
|
235320
|
-
if (!match2) {
|
|
235321
|
-
return null;
|
|
235322
|
-
}
|
|
235323
|
-
const [path6, argument] = match2[0].replace(/#! ?/, "").split(" ");
|
|
235324
|
-
const binary = path6.split("/").pop();
|
|
235325
|
-
if (binary === "env") {
|
|
235326
|
-
return argument;
|
|
235327
|
-
}
|
|
235328
|
-
return argument ? `${binary} ${argument}` : binary;
|
|
235329
|
-
};
|
|
235330
|
-
});
|
|
235331
|
-
|
|
235332
|
-
// ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
235333
|
-
var require_readShebang = __commonJS((exports, module) => {
|
|
235334
|
-
var fs3 = __require("fs");
|
|
235335
|
-
var shebangCommand2 = require_shebang_command();
|
|
235336
|
-
function readShebang(command) {
|
|
235337
|
-
const size = 150;
|
|
235338
|
-
const buffer = Buffer.alloc(size);
|
|
235339
|
-
let fd;
|
|
235340
|
-
try {
|
|
235341
|
-
fd = fs3.openSync(command, "r");
|
|
235342
|
-
fs3.readSync(fd, buffer, 0, size, 0);
|
|
235343
|
-
fs3.closeSync(fd);
|
|
235344
|
-
} catch (e10) {
|
|
235345
|
-
}
|
|
235346
|
-
return shebangCommand2(buffer.toString());
|
|
235347
|
-
}
|
|
235348
|
-
module.exports = readShebang;
|
|
235349
|
-
});
|
|
235350
|
-
|
|
235351
|
-
// ../../node_modules/cross-spawn/lib/parse.js
|
|
235352
|
-
var require_parse6 = __commonJS((exports, module) => {
|
|
235353
|
-
var path6 = __require("path");
|
|
235354
|
-
var resolveCommand = require_resolveCommand();
|
|
235355
|
-
var escape2 = require_escape3();
|
|
235356
|
-
var readShebang = require_readShebang();
|
|
235357
|
-
var isWin = process.platform === "win32";
|
|
235358
|
-
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
235359
|
-
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
235360
|
-
function detectShebang(parsed) {
|
|
235361
|
-
parsed.file = resolveCommand(parsed);
|
|
235362
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
235363
|
-
if (shebang) {
|
|
235364
|
-
parsed.args.unshift(parsed.file);
|
|
235365
|
-
parsed.command = shebang;
|
|
235366
|
-
return resolveCommand(parsed);
|
|
235367
|
-
}
|
|
235368
|
-
return parsed.file;
|
|
235369
|
-
}
|
|
235370
|
-
function parseNonShell2(parsed) {
|
|
235371
|
-
if (!isWin) {
|
|
235372
|
-
return parsed;
|
|
235373
|
-
}
|
|
235374
|
-
const commandFile = detectShebang(parsed);
|
|
235375
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
235376
|
-
if (parsed.options.forceShell || needsShell) {
|
|
235377
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
235378
|
-
parsed.command = path6.normalize(parsed.command);
|
|
235379
|
-
parsed.command = escape2.command(parsed.command);
|
|
235380
|
-
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
|
235381
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
235382
|
-
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
235383
|
-
parsed.command = process.env.comspec || "cmd.exe";
|
|
235384
|
-
parsed.options.windowsVerbatimArguments = true;
|
|
235385
|
-
}
|
|
235386
|
-
return parsed;
|
|
235387
|
-
}
|
|
235388
|
-
function parse6(command, args, options) {
|
|
235389
|
-
if (args && !Array.isArray(args)) {
|
|
235390
|
-
options = args;
|
|
235391
|
-
args = null;
|
|
235392
|
-
}
|
|
235393
|
-
args = args ? args.slice(0) : [];
|
|
235394
|
-
options = Object.assign({}, options);
|
|
235395
|
-
const parsed = {
|
|
235396
|
-
command,
|
|
235397
|
-
args,
|
|
235398
|
-
options,
|
|
235399
|
-
file: undefined,
|
|
235400
|
-
original: {
|
|
235401
|
-
command,
|
|
235402
|
-
args
|
|
235403
|
-
}
|
|
235404
|
-
};
|
|
235405
|
-
return options.shell ? parsed : parseNonShell2(parsed);
|
|
235406
|
-
}
|
|
235407
|
-
module.exports = parse6;
|
|
235408
|
-
});
|
|
235409
|
-
|
|
235410
|
-
// ../../node_modules/cross-spawn/lib/enoent.js
|
|
235411
|
-
var require_enoent = __commonJS((exports, module) => {
|
|
235412
|
-
var isWin = process.platform === "win32";
|
|
235413
|
-
function notFoundError2(original, syscall) {
|
|
235414
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
235415
|
-
code: "ENOENT",
|
|
235416
|
-
errno: "ENOENT",
|
|
235417
|
-
syscall: `${syscall} ${original.command}`,
|
|
235418
|
-
path: original.command,
|
|
235419
|
-
spawnargs: original.args
|
|
235420
|
-
});
|
|
235421
|
-
}
|
|
235422
|
-
function hookChildProcess2(cp, parsed) {
|
|
235423
|
-
if (!isWin) {
|
|
235424
|
-
return;
|
|
235425
|
-
}
|
|
235426
|
-
const originalEmit = cp.emit;
|
|
235427
|
-
cp.emit = function(name2, arg1) {
|
|
235428
|
-
if (name2 === "exit") {
|
|
235429
|
-
const err = verifyENOENT2(arg1, parsed);
|
|
235430
|
-
if (err) {
|
|
235431
|
-
return originalEmit.call(cp, "error", err);
|
|
235432
|
-
}
|
|
235433
|
-
}
|
|
235434
|
-
return originalEmit.apply(cp, arguments);
|
|
235435
|
-
};
|
|
235436
|
-
}
|
|
235437
|
-
function verifyENOENT2(status, parsed) {
|
|
235438
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
235439
|
-
return notFoundError2(parsed.original, "spawn");
|
|
235440
|
-
}
|
|
235441
|
-
return null;
|
|
235442
|
-
}
|
|
235443
|
-
function verifyENOENTSync2(status, parsed) {
|
|
235444
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
235445
|
-
return notFoundError2(parsed.original, "spawnSync");
|
|
235446
|
-
}
|
|
235447
|
-
return null;
|
|
235448
|
-
}
|
|
235449
|
-
module.exports = {
|
|
235450
|
-
hookChildProcess: hookChildProcess2,
|
|
235451
|
-
verifyENOENT: verifyENOENT2,
|
|
235452
|
-
verifyENOENTSync: verifyENOENTSync2,
|
|
235453
|
-
notFoundError: notFoundError2
|
|
235454
|
-
};
|
|
235455
|
-
});
|
|
235456
|
-
|
|
235457
|
-
// ../../node_modules/cross-spawn/index.js
|
|
235458
|
-
var require_cross_spawn = __commonJS((exports, module) => {
|
|
235459
|
-
var cp = __require("child_process");
|
|
235460
|
-
var parse6 = require_parse6();
|
|
235461
|
-
var enoent = require_enoent();
|
|
235462
|
-
function spawn3(command, args, options) {
|
|
235463
|
-
const parsed = parse6(command, args, options);
|
|
235464
|
-
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
235465
|
-
enoent.hookChildProcess(spawned, parsed);
|
|
235466
|
-
return spawned;
|
|
235467
|
-
}
|
|
235468
|
-
function spawnSync2(command, args, options) {
|
|
235469
|
-
const parsed = parse6(command, args, options);
|
|
235470
|
-
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
235471
|
-
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
235472
|
-
return result;
|
|
235473
|
-
}
|
|
235474
|
-
module.exports = spawn3;
|
|
235475
|
-
module.exports.spawn = spawn3;
|
|
235476
|
-
module.exports.sync = spawnSync2;
|
|
235477
|
-
module.exports._parse = parse6;
|
|
235478
|
-
module.exports._enoent = enoent;
|
|
235479
|
-
});
|
|
235480
|
-
|
|
235481
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/strip-final-newline/index.js
|
|
235482
|
-
function stripFinalNewline(input) {
|
|
235483
|
-
const LF = typeof input === "string" ? `
|
|
235484
|
-
` : `
|
|
235485
|
-
`.charCodeAt();
|
|
235486
|
-
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
235487
|
-
if (input[input.length - 1] === LF) {
|
|
235488
|
-
input = input.slice(0, -1);
|
|
235489
|
-
}
|
|
235490
|
-
if (input[input.length - 1] === CR) {
|
|
235491
|
-
input = input.slice(0, -1);
|
|
235492
|
-
}
|
|
235493
|
-
return input;
|
|
235494
|
-
}
|
|
235495
|
-
|
|
235496
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/npm-run-path/node_modules/path-key/index.js
|
|
235497
|
-
function pathKey2(options = {}) {
|
|
235498
|
-
const {
|
|
235499
|
-
env: env2 = process.env,
|
|
235500
|
-
platform: platform2 = process.platform
|
|
235501
|
-
} = options;
|
|
235502
|
-
if (platform2 !== "win32") {
|
|
235503
|
-
return "PATH";
|
|
235504
|
-
}
|
|
235505
|
-
return Object.keys(env2).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
|
|
235506
|
-
}
|
|
235507
|
-
|
|
235508
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/npm-run-path/index.js
|
|
235509
|
-
import process8 from "node:process";
|
|
235510
|
-
import path6 from "node:path";
|
|
235511
|
-
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
235512
|
-
var npmRunPath = ({
|
|
235513
|
-
cwd: cwd2 = process8.cwd(),
|
|
235514
|
-
path: pathOption = process8.env[pathKey2()],
|
|
235515
|
-
preferLocal = true,
|
|
235516
|
-
execPath = process8.execPath,
|
|
235517
|
-
addExecPath = true
|
|
235518
|
-
} = {}) => {
|
|
235519
|
-
const cwdString = cwd2 instanceof URL ? fileURLToPath5(cwd2) : cwd2;
|
|
235520
|
-
const cwdPath = path6.resolve(cwdString);
|
|
235521
|
-
const result = [];
|
|
235522
|
-
if (preferLocal) {
|
|
235523
|
-
applyPreferLocal2(result, cwdPath);
|
|
235524
|
-
}
|
|
235525
|
-
if (addExecPath) {
|
|
235526
|
-
applyExecPath2(result, execPath, cwdPath);
|
|
235527
|
-
}
|
|
235528
|
-
return [...result, pathOption].join(path6.delimiter);
|
|
235529
|
-
}, applyPreferLocal2 = (result, cwdPath) => {
|
|
235530
|
-
let previous;
|
|
235531
|
-
while (previous !== cwdPath) {
|
|
235532
|
-
result.push(path6.join(cwdPath, "node_modules/.bin"));
|
|
235533
|
-
previous = cwdPath;
|
|
235534
|
-
cwdPath = path6.resolve(cwdPath, "..");
|
|
235535
|
-
}
|
|
235536
|
-
}, applyExecPath2 = (result, execPath, cwdPath) => {
|
|
235537
|
-
const execPathString = execPath instanceof URL ? fileURLToPath5(execPath) : execPath;
|
|
235538
|
-
result.push(path6.resolve(cwdPath, execPathString, ".."));
|
|
235539
|
-
}, npmRunPathEnv2 = ({ env: env2 = process8.env, ...options } = {}) => {
|
|
235540
|
-
env2 = { ...env2 };
|
|
235541
|
-
const pathName = pathKey2({ env: env2 });
|
|
235542
|
-
options.path = env2[pathName];
|
|
235543
|
-
env2[pathName] = npmRunPath(options);
|
|
235544
|
-
return env2;
|
|
235545
|
-
};
|
|
235546
|
-
var init_npm_run_path = () => {
|
|
235547
|
-
};
|
|
235548
|
-
|
|
235549
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/onetime/node_modules/mimic-fn/index.js
|
|
235550
|
-
function mimicFunction2(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
235551
|
-
const { name: name2 } = to;
|
|
235552
|
-
for (const property of Reflect.ownKeys(from)) {
|
|
235553
|
-
copyProperty2(to, from, property, ignoreNonConfigurable);
|
|
235554
|
-
}
|
|
235555
|
-
changePrototype(to, from);
|
|
235556
|
-
changeToString(to, from, name2);
|
|
235557
|
-
return to;
|
|
235558
|
-
}
|
|
235559
|
-
var copyProperty2 = (to, from, property, ignoreNonConfigurable) => {
|
|
235560
|
-
if (property === "length" || property === "prototype") {
|
|
235561
|
-
return;
|
|
235562
|
-
}
|
|
235563
|
-
if (property === "arguments" || property === "caller") {
|
|
235564
|
-
return;
|
|
235565
|
-
}
|
|
235566
|
-
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
235567
|
-
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
235568
|
-
if (!canCopyProperty2(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
|
|
235569
|
-
return;
|
|
235570
|
-
}
|
|
235571
|
-
Object.defineProperty(to, property, fromDescriptor);
|
|
235572
|
-
}, canCopyProperty2 = function(toDescriptor, fromDescriptor) {
|
|
235573
|
-
return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
235574
|
-
}, changePrototype = (to, from) => {
|
|
235575
|
-
const fromPrototype = Object.getPrototypeOf(from);
|
|
235576
|
-
if (fromPrototype === Object.getPrototypeOf(to)) {
|
|
235577
|
-
return;
|
|
235578
|
-
}
|
|
235579
|
-
Object.setPrototypeOf(to, fromPrototype);
|
|
235580
|
-
}, wrappedToString2 = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
235581
|
-
${fromBody}`, toStringDescriptor, toStringName, changeToString = (to, from, name2) => {
|
|
235582
|
-
const withName = name2 === "" ? "" : `with ${name2.trim()}() `;
|
|
235583
|
-
const newToString = wrappedToString2.bind(null, withName, from.toString());
|
|
235584
|
-
Object.defineProperty(newToString, "name", toStringName);
|
|
235585
|
-
Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
|
|
235586
|
-
};
|
|
235587
|
-
var init_mimic_fn = __esm(() => {
|
|
235588
|
-
toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
235589
|
-
toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
235590
|
-
});
|
|
235591
|
-
|
|
235592
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/onetime/index.js
|
|
235593
|
-
var calledFunctions, onetime2 = (function_, options = {}) => {
|
|
235594
|
-
if (typeof function_ !== "function") {
|
|
235595
|
-
throw new TypeError("Expected a function");
|
|
235596
|
-
}
|
|
235597
|
-
let returnValue;
|
|
235598
|
-
let callCount = 0;
|
|
235599
|
-
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
235600
|
-
const onetime3 = function(...arguments_4) {
|
|
235601
|
-
calledFunctions.set(onetime3, ++callCount);
|
|
235602
|
-
if (callCount === 1) {
|
|
235603
|
-
returnValue = function_.apply(this, arguments_4);
|
|
235604
|
-
function_ = null;
|
|
235605
|
-
} else if (options.throw === true) {
|
|
235606
|
-
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
235607
|
-
}
|
|
235608
|
-
return returnValue;
|
|
235609
|
-
};
|
|
235610
|
-
mimicFunction2(onetime3, function_);
|
|
235611
|
-
calledFunctions.set(onetime3, callCount);
|
|
235612
|
-
return onetime3;
|
|
235613
|
-
}, onetime_default;
|
|
235614
|
-
var init_onetime = __esm(() => {
|
|
235615
|
-
init_mimic_fn();
|
|
235616
|
-
calledFunctions = new WeakMap;
|
|
235617
|
-
onetime2.callCount = (function_) => {
|
|
235618
|
-
if (!calledFunctions.has(function_)) {
|
|
235619
|
-
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
235620
|
-
}
|
|
235621
|
-
return calledFunctions.get(function_);
|
|
235622
|
-
};
|
|
235623
|
-
onetime_default = onetime2;
|
|
235624
|
-
});
|
|
235625
|
-
|
|
235626
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/realtime.js
|
|
235627
|
-
var getRealtimeSignals = () => {
|
|
235628
|
-
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
235629
|
-
return Array.from({ length }, getRealtimeSignal2);
|
|
235630
|
-
}, getRealtimeSignal2 = (value4, index) => ({
|
|
235631
|
-
name: `SIGRT${index + 1}`,
|
|
235632
|
-
number: SIGRTMIN + index,
|
|
235633
|
-
action: "terminate",
|
|
235634
|
-
description: "Application-specific signal (realtime)",
|
|
235635
|
-
standard: "posix"
|
|
235636
|
-
}), SIGRTMIN = 34, SIGRTMAX = 64;
|
|
235637
|
-
|
|
235638
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/core.js
|
|
235639
|
-
var SIGNALS;
|
|
235640
|
-
var init_core = __esm(() => {
|
|
235641
|
-
SIGNALS = [
|
|
235642
|
-
{
|
|
235643
|
-
name: "SIGHUP",
|
|
235644
|
-
number: 1,
|
|
235645
|
-
action: "terminate",
|
|
235646
|
-
description: "Terminal closed",
|
|
235647
|
-
standard: "posix"
|
|
235648
|
-
},
|
|
235649
|
-
{
|
|
235650
|
-
name: "SIGINT",
|
|
235651
|
-
number: 2,
|
|
235652
|
-
action: "terminate",
|
|
235653
|
-
description: "User interruption with CTRL-C",
|
|
235654
|
-
standard: "ansi"
|
|
235655
|
-
},
|
|
235656
|
-
{
|
|
235657
|
-
name: "SIGQUIT",
|
|
235658
|
-
number: 3,
|
|
235659
|
-
action: "core",
|
|
235660
|
-
description: "User interruption with CTRL-\\",
|
|
235661
|
-
standard: "posix"
|
|
235662
|
-
},
|
|
235663
|
-
{
|
|
235664
|
-
name: "SIGILL",
|
|
235665
|
-
number: 4,
|
|
235666
|
-
action: "core",
|
|
235667
|
-
description: "Invalid machine instruction",
|
|
235668
|
-
standard: "ansi"
|
|
235669
|
-
},
|
|
235670
|
-
{
|
|
235671
|
-
name: "SIGTRAP",
|
|
235672
|
-
number: 5,
|
|
235673
|
-
action: "core",
|
|
235674
|
-
description: "Debugger breakpoint",
|
|
235675
|
-
standard: "posix"
|
|
235676
|
-
},
|
|
235677
|
-
{
|
|
235678
|
-
name: "SIGABRT",
|
|
235679
|
-
number: 6,
|
|
235680
|
-
action: "core",
|
|
235681
|
-
description: "Aborted",
|
|
235682
|
-
standard: "ansi"
|
|
235683
|
-
},
|
|
235684
|
-
{
|
|
235685
|
-
name: "SIGIOT",
|
|
235686
|
-
number: 6,
|
|
235687
|
-
action: "core",
|
|
235688
|
-
description: "Aborted",
|
|
235689
|
-
standard: "bsd"
|
|
235690
|
-
},
|
|
235691
|
-
{
|
|
235692
|
-
name: "SIGBUS",
|
|
235693
|
-
number: 7,
|
|
235694
|
-
action: "core",
|
|
235695
|
-
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
235696
|
-
standard: "bsd"
|
|
235697
|
-
},
|
|
235698
|
-
{
|
|
235699
|
-
name: "SIGEMT",
|
|
235700
|
-
number: 7,
|
|
235701
|
-
action: "terminate",
|
|
235702
|
-
description: "Command should be emulated but is not implemented",
|
|
235703
|
-
standard: "other"
|
|
235704
|
-
},
|
|
235705
|
-
{
|
|
235706
|
-
name: "SIGFPE",
|
|
235707
|
-
number: 8,
|
|
235708
|
-
action: "core",
|
|
235709
|
-
description: "Floating point arithmetic error",
|
|
235710
|
-
standard: "ansi"
|
|
235711
|
-
},
|
|
235712
|
-
{
|
|
235713
|
-
name: "SIGKILL",
|
|
235714
|
-
number: 9,
|
|
235715
|
-
action: "terminate",
|
|
235716
|
-
description: "Forced termination",
|
|
235717
|
-
standard: "posix",
|
|
235718
|
-
forced: true
|
|
235719
|
-
},
|
|
235720
|
-
{
|
|
235721
|
-
name: "SIGUSR1",
|
|
235722
|
-
number: 10,
|
|
235723
|
-
action: "terminate",
|
|
235724
|
-
description: "Application-specific signal",
|
|
235725
|
-
standard: "posix"
|
|
235726
|
-
},
|
|
235727
|
-
{
|
|
235728
|
-
name: "SIGSEGV",
|
|
235729
|
-
number: 11,
|
|
235730
|
-
action: "core",
|
|
235731
|
-
description: "Segmentation fault",
|
|
235732
|
-
standard: "ansi"
|
|
235733
|
-
},
|
|
235734
|
-
{
|
|
235735
|
-
name: "SIGUSR2",
|
|
235736
|
-
number: 12,
|
|
235737
|
-
action: "terminate",
|
|
235738
|
-
description: "Application-specific signal",
|
|
235739
|
-
standard: "posix"
|
|
235740
|
-
},
|
|
235741
|
-
{
|
|
235742
|
-
name: "SIGPIPE",
|
|
235743
|
-
number: 13,
|
|
235744
|
-
action: "terminate",
|
|
235745
|
-
description: "Broken pipe or socket",
|
|
235746
|
-
standard: "posix"
|
|
235747
|
-
},
|
|
235748
|
-
{
|
|
235749
|
-
name: "SIGALRM",
|
|
235750
|
-
number: 14,
|
|
235751
|
-
action: "terminate",
|
|
235752
|
-
description: "Timeout or timer",
|
|
235753
|
-
standard: "posix"
|
|
235754
|
-
},
|
|
235755
|
-
{
|
|
235756
|
-
name: "SIGTERM",
|
|
235757
|
-
number: 15,
|
|
235758
|
-
action: "terminate",
|
|
235759
|
-
description: "Termination",
|
|
235760
|
-
standard: "ansi"
|
|
235761
|
-
},
|
|
235762
|
-
{
|
|
235763
|
-
name: "SIGSTKFLT",
|
|
235764
|
-
number: 16,
|
|
235765
|
-
action: "terminate",
|
|
235766
|
-
description: "Stack is empty or overflowed",
|
|
235767
|
-
standard: "other"
|
|
235768
|
-
},
|
|
235769
|
-
{
|
|
235770
|
-
name: "SIGCHLD",
|
|
235771
|
-
number: 17,
|
|
235772
|
-
action: "ignore",
|
|
235773
|
-
description: "Child process terminated, paused or unpaused",
|
|
235774
|
-
standard: "posix"
|
|
235775
|
-
},
|
|
235776
|
-
{
|
|
235777
|
-
name: "SIGCLD",
|
|
235778
|
-
number: 17,
|
|
235779
|
-
action: "ignore",
|
|
235780
|
-
description: "Child process terminated, paused or unpaused",
|
|
235781
|
-
standard: "other"
|
|
235782
|
-
},
|
|
235783
|
-
{
|
|
235784
|
-
name: "SIGCONT",
|
|
235785
|
-
number: 18,
|
|
235786
|
-
action: "unpause",
|
|
235787
|
-
description: "Unpaused",
|
|
235788
|
-
standard: "posix",
|
|
235789
|
-
forced: true
|
|
235790
|
-
},
|
|
235791
|
-
{
|
|
235792
|
-
name: "SIGSTOP",
|
|
235793
|
-
number: 19,
|
|
235794
|
-
action: "pause",
|
|
235795
|
-
description: "Paused",
|
|
235796
|
-
standard: "posix",
|
|
235797
|
-
forced: true
|
|
235798
|
-
},
|
|
235799
|
-
{
|
|
235800
|
-
name: "SIGTSTP",
|
|
235801
|
-
number: 20,
|
|
235802
|
-
action: "pause",
|
|
235803
|
-
description: 'Paused using CTRL-Z or "suspend"',
|
|
235804
|
-
standard: "posix"
|
|
235805
|
-
},
|
|
235806
|
-
{
|
|
235807
|
-
name: "SIGTTIN",
|
|
235808
|
-
number: 21,
|
|
235809
|
-
action: "pause",
|
|
235810
|
-
description: "Background process cannot read terminal input",
|
|
235811
|
-
standard: "posix"
|
|
235812
|
-
},
|
|
235813
|
-
{
|
|
235814
|
-
name: "SIGBREAK",
|
|
235815
|
-
number: 21,
|
|
235816
|
-
action: "terminate",
|
|
235817
|
-
description: "User interruption with CTRL-BREAK",
|
|
235818
|
-
standard: "other"
|
|
235819
|
-
},
|
|
235820
|
-
{
|
|
235821
|
-
name: "SIGTTOU",
|
|
235822
|
-
number: 22,
|
|
235823
|
-
action: "pause",
|
|
235824
|
-
description: "Background process cannot write to terminal output",
|
|
235825
|
-
standard: "posix"
|
|
235826
|
-
},
|
|
235827
|
-
{
|
|
235828
|
-
name: "SIGURG",
|
|
235829
|
-
number: 23,
|
|
235830
|
-
action: "ignore",
|
|
235831
|
-
description: "Socket received out-of-band data",
|
|
235832
|
-
standard: "bsd"
|
|
235833
|
-
},
|
|
235834
|
-
{
|
|
235835
|
-
name: "SIGXCPU",
|
|
235836
|
-
number: 24,
|
|
235837
|
-
action: "core",
|
|
235838
|
-
description: "Process timed out",
|
|
235839
|
-
standard: "bsd"
|
|
235840
|
-
},
|
|
235841
|
-
{
|
|
235842
|
-
name: "SIGXFSZ",
|
|
235843
|
-
number: 25,
|
|
235844
|
-
action: "core",
|
|
235845
|
-
description: "File too big",
|
|
235846
|
-
standard: "bsd"
|
|
235847
|
-
},
|
|
235848
|
-
{
|
|
235849
|
-
name: "SIGVTALRM",
|
|
235850
|
-
number: 26,
|
|
235851
|
-
action: "terminate",
|
|
235852
|
-
description: "Timeout or timer",
|
|
235853
|
-
standard: "bsd"
|
|
235854
|
-
},
|
|
235855
|
-
{
|
|
235856
|
-
name: "SIGPROF",
|
|
235857
|
-
number: 27,
|
|
235858
|
-
action: "terminate",
|
|
235859
|
-
description: "Timeout or timer",
|
|
235860
|
-
standard: "bsd"
|
|
235861
|
-
},
|
|
235862
|
-
{
|
|
235863
|
-
name: "SIGWINCH",
|
|
235864
|
-
number: 28,
|
|
235865
|
-
action: "ignore",
|
|
235866
|
-
description: "Terminal window size changed",
|
|
235867
|
-
standard: "bsd"
|
|
235868
|
-
},
|
|
235869
|
-
{
|
|
235870
|
-
name: "SIGIO",
|
|
235871
|
-
number: 29,
|
|
235872
|
-
action: "terminate",
|
|
235873
|
-
description: "I/O is available",
|
|
235874
|
-
standard: "other"
|
|
235875
|
-
},
|
|
235876
|
-
{
|
|
235877
|
-
name: "SIGPOLL",
|
|
235878
|
-
number: 29,
|
|
235879
|
-
action: "terminate",
|
|
235880
|
-
description: "Watched event",
|
|
235881
|
-
standard: "other"
|
|
235882
|
-
},
|
|
235883
|
-
{
|
|
235884
|
-
name: "SIGINFO",
|
|
235885
|
-
number: 29,
|
|
235886
|
-
action: "ignore",
|
|
235887
|
-
description: "Request for process information",
|
|
235888
|
-
standard: "other"
|
|
235889
|
-
},
|
|
235890
|
-
{
|
|
235891
|
-
name: "SIGPWR",
|
|
235892
|
-
number: 30,
|
|
235893
|
-
action: "terminate",
|
|
235894
|
-
description: "Device running out of power",
|
|
235895
|
-
standard: "systemv"
|
|
235896
|
-
},
|
|
235897
|
-
{
|
|
235898
|
-
name: "SIGSYS",
|
|
235899
|
-
number: 31,
|
|
235900
|
-
action: "core",
|
|
235901
|
-
description: "Invalid system call",
|
|
235902
|
-
standard: "other"
|
|
235903
|
-
},
|
|
235904
|
-
{
|
|
235905
|
-
name: "SIGUNUSED",
|
|
235906
|
-
number: 31,
|
|
235907
|
-
action: "terminate",
|
|
235908
|
-
description: "Invalid system call",
|
|
235909
|
-
standard: "other"
|
|
235910
|
-
}
|
|
235911
|
-
];
|
|
235912
|
-
});
|
|
235913
|
-
|
|
235914
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/signals.js
|
|
235915
|
-
import { constants } from "node:os";
|
|
235916
|
-
var getSignals2 = () => {
|
|
235917
|
-
const realtimeSignals = getRealtimeSignals();
|
|
235918
|
-
const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal2);
|
|
235919
|
-
return signals2;
|
|
235920
|
-
}, normalizeSignal2 = ({
|
|
235921
|
-
name: name2,
|
|
235922
|
-
number: defaultNumber,
|
|
235923
|
-
description,
|
|
235924
|
-
action,
|
|
235925
|
-
forced = false,
|
|
235926
|
-
standard
|
|
235927
|
-
}) => {
|
|
235928
|
-
const {
|
|
235929
|
-
signals: { [name2]: constantSignal }
|
|
235930
|
-
} = constants;
|
|
235931
|
-
const supported = constantSignal !== undefined;
|
|
235932
|
-
const number = supported ? constantSignal : defaultNumber;
|
|
235933
|
-
return { name: name2, number, description, supported, action, forced, standard };
|
|
235934
|
-
};
|
|
235935
|
-
var init_signals2 = __esm(() => {
|
|
235936
|
-
init_core();
|
|
235937
|
-
});
|
|
235938
|
-
|
|
235939
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/main.js
|
|
235940
|
-
import { constants as constants2 } from "node:os";
|
|
235941
|
-
var getSignalsByName = () => {
|
|
235942
|
-
const signals2 = getSignals2();
|
|
235943
|
-
return Object.fromEntries(signals2.map(getSignalByName2));
|
|
235944
|
-
}, getSignalByName2 = ({
|
|
235945
|
-
name: name2,
|
|
235946
|
-
number,
|
|
235947
|
-
description,
|
|
235948
|
-
supported,
|
|
235949
|
-
action,
|
|
235950
|
-
forced,
|
|
235951
|
-
standard
|
|
235952
|
-
}) => [name2, { name: name2, number, description, supported, action, forced, standard }], signalsByName, getSignalsByNumber = () => {
|
|
235953
|
-
const signals2 = getSignals2();
|
|
235954
|
-
const length = SIGRTMAX + 1;
|
|
235955
|
-
const signalsA = Array.from({ length }, (value4, number) => getSignalByNumber2(number, signals2));
|
|
235956
|
-
return Object.assign({}, ...signalsA);
|
|
235957
|
-
}, getSignalByNumber2 = (number, signals2) => {
|
|
235958
|
-
const signal = findSignalByNumber2(number, signals2);
|
|
235959
|
-
if (signal === undefined) {
|
|
235960
|
-
return {};
|
|
235961
|
-
}
|
|
235962
|
-
const { name: name2, description, supported, action, forced, standard } = signal;
|
|
235963
|
-
return {
|
|
235964
|
-
[number]: {
|
|
235965
|
-
name: name2,
|
|
235966
|
-
number,
|
|
235967
|
-
description,
|
|
235968
|
-
supported,
|
|
235969
|
-
action,
|
|
235970
|
-
forced,
|
|
235971
|
-
standard
|
|
235972
|
-
}
|
|
235973
|
-
};
|
|
235974
|
-
}, findSignalByNumber2 = (number, signals2) => {
|
|
235975
|
-
const signal = signals2.find(({ name: name2 }) => constants2.signals[name2] === number);
|
|
235976
|
-
if (signal !== undefined) {
|
|
235977
|
-
return signal;
|
|
235978
|
-
}
|
|
235979
|
-
return signals2.find((signalA) => signalA.number === number);
|
|
235980
|
-
}, signalsByNumber;
|
|
235981
|
-
var init_main = __esm(() => {
|
|
235982
|
-
init_signals2();
|
|
235983
|
-
signalsByName = getSignalsByName();
|
|
235984
|
-
signalsByNumber = getSignalsByNumber();
|
|
235985
|
-
});
|
|
235986
|
-
|
|
235987
|
-
// ../../node_modules/nypm/node_modules/execa/lib/error.js
|
|
235988
|
-
import process9 from "node:process";
|
|
235989
|
-
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode: exitCode2, isCanceled }) => {
|
|
235990
|
-
if (timedOut) {
|
|
235991
|
-
return `timed out after ${timeout} milliseconds`;
|
|
235992
|
-
}
|
|
235993
|
-
if (isCanceled) {
|
|
235994
|
-
return "was canceled";
|
|
235995
|
-
}
|
|
235996
|
-
if (errorCode !== undefined) {
|
|
235997
|
-
return `failed with ${errorCode}`;
|
|
235998
|
-
}
|
|
235999
|
-
if (signal !== undefined) {
|
|
236000
|
-
return `was killed with ${signal} (${signalDescription})`;
|
|
236001
|
-
}
|
|
236002
|
-
if (exitCode2 !== undefined) {
|
|
236003
|
-
return `failed with exit code ${exitCode2}`;
|
|
236004
|
-
}
|
|
236005
|
-
return "failed";
|
|
236006
|
-
}, makeError2 = ({
|
|
236007
|
-
stdout,
|
|
236008
|
-
stderr,
|
|
236009
|
-
all,
|
|
236010
|
-
error: error5,
|
|
236011
|
-
signal,
|
|
236012
|
-
exitCode: exitCode2,
|
|
236013
|
-
command,
|
|
236014
|
-
escapedCommand,
|
|
236015
|
-
timedOut,
|
|
236016
|
-
isCanceled,
|
|
236017
|
-
killed,
|
|
236018
|
-
parsed: { options: { timeout, cwd: cwd2 = process9.cwd() } }
|
|
236019
|
-
}) => {
|
|
236020
|
-
exitCode2 = exitCode2 === null ? undefined : exitCode2;
|
|
236021
|
-
signal = signal === null ? undefined : signal;
|
|
236022
|
-
const signalDescription = signal === undefined ? undefined : signalsByName[signal].description;
|
|
236023
|
-
const errorCode = error5 && error5.code;
|
|
236024
|
-
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode: exitCode2, isCanceled });
|
|
236025
|
-
const execaMessage = `Command ${prefix}: ${command}`;
|
|
236026
|
-
const isError = Object.prototype.toString.call(error5) === "[object Error]";
|
|
236027
|
-
const shortMessage = isError ? `${execaMessage}
|
|
236028
|
-
${error5.message}` : execaMessage;
|
|
236029
|
-
const message = [shortMessage, stderr, stdout].filter(Boolean).join(`
|
|
236030
|
-
`);
|
|
236031
|
-
if (isError) {
|
|
236032
|
-
error5.originalMessage = error5.message;
|
|
236033
|
-
error5.message = message;
|
|
236034
|
-
} else {
|
|
236035
|
-
error5 = new Error(message);
|
|
236036
|
-
}
|
|
236037
|
-
error5.shortMessage = shortMessage;
|
|
236038
|
-
error5.command = command;
|
|
236039
|
-
error5.escapedCommand = escapedCommand;
|
|
236040
|
-
error5.exitCode = exitCode2;
|
|
236041
|
-
error5.signal = signal;
|
|
236042
|
-
error5.signalDescription = signalDescription;
|
|
236043
|
-
error5.stdout = stdout;
|
|
236044
|
-
error5.stderr = stderr;
|
|
236045
|
-
error5.cwd = cwd2;
|
|
236046
|
-
if (all !== undefined) {
|
|
236047
|
-
error5.all = all;
|
|
236048
|
-
}
|
|
236049
|
-
if ("bufferedData" in error5) {
|
|
236050
|
-
delete error5.bufferedData;
|
|
236051
|
-
}
|
|
236052
|
-
error5.failed = true;
|
|
236053
|
-
error5.timedOut = Boolean(timedOut);
|
|
236054
|
-
error5.isCanceled = isCanceled;
|
|
236055
|
-
error5.killed = killed && !timedOut;
|
|
236056
|
-
return error5;
|
|
236057
|
-
};
|
|
236058
|
-
var init_error = __esm(() => {
|
|
236059
|
-
init_main();
|
|
236060
|
-
});
|
|
236061
|
-
|
|
236062
|
-
// ../../node_modules/nypm/node_modules/execa/lib/stdio.js
|
|
236063
|
-
var aliases, hasAlias = (options) => aliases.some((alias) => options[alias] !== undefined), normalizeStdio2 = (options) => {
|
|
236064
|
-
if (!options) {
|
|
236065
|
-
return;
|
|
236066
|
-
}
|
|
236067
|
-
const { stdio } = options;
|
|
236068
|
-
if (stdio === undefined) {
|
|
236069
|
-
return aliases.map((alias) => options[alias]);
|
|
236070
|
-
}
|
|
236071
|
-
if (hasAlias(options)) {
|
|
236072
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
236073
|
-
}
|
|
236074
|
-
if (typeof stdio === "string") {
|
|
236075
|
-
return stdio;
|
|
236076
|
-
}
|
|
236077
|
-
if (!Array.isArray(stdio)) {
|
|
236078
|
-
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
236079
|
-
}
|
|
236080
|
-
const length = Math.max(stdio.length, aliases.length);
|
|
236081
|
-
return Array.from({ length }, (value4, index) => stdio[index]);
|
|
236082
|
-
}, normalizeStdioNode = (options) => {
|
|
236083
|
-
const stdio = normalizeStdio2(options);
|
|
236084
|
-
if (stdio === "ipc") {
|
|
236085
|
-
return "ipc";
|
|
236086
|
-
}
|
|
236087
|
-
if (stdio === undefined || typeof stdio === "string") {
|
|
236088
|
-
return [stdio, stdio, stdio, "ipc"];
|
|
236089
|
-
}
|
|
236090
|
-
if (stdio.includes("ipc")) {
|
|
236091
|
-
return stdio;
|
|
236092
|
-
}
|
|
236093
|
-
return [...stdio, "ipc"];
|
|
236094
|
-
};
|
|
236095
|
-
var init_stdio = __esm(() => {
|
|
236096
|
-
aliases = ["stdin", "stdout", "stderr"];
|
|
236097
|
-
});
|
|
236098
|
-
|
|
236099
|
-
// ../../node_modules/nypm/node_modules/execa/lib/kill.js
|
|
236100
|
-
import os from "node:os";
|
|
236101
|
-
var DEFAULT_FORCE_KILL_TIMEOUT, spawnedKill2 = (kill, signal = "SIGTERM", options = {}) => {
|
|
236102
|
-
const killResult = kill(signal);
|
|
236103
|
-
setKillTimeout2(kill, signal, options, killResult);
|
|
236104
|
-
return killResult;
|
|
236105
|
-
}, setKillTimeout2 = (kill, signal, options, killResult) => {
|
|
236106
|
-
if (!shouldForceKill2(signal, options, killResult)) {
|
|
236107
|
-
return;
|
|
236108
|
-
}
|
|
236109
|
-
const timeout = getForceKillAfterTimeout2(options);
|
|
236110
|
-
const t8 = setTimeout(() => {
|
|
236111
|
-
kill("SIGKILL");
|
|
236112
|
-
}, timeout);
|
|
236113
|
-
if (t8.unref) {
|
|
236114
|
-
t8.unref();
|
|
236115
|
-
}
|
|
236116
|
-
}, shouldForceKill2 = (signal, { forceKillAfterTimeout }, killResult) => isSigterm2(signal) && forceKillAfterTimeout !== false && killResult, isSigterm2 = (signal) => signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM", getForceKillAfterTimeout2 = ({ forceKillAfterTimeout = true }) => {
|
|
236117
|
-
if (forceKillAfterTimeout === true) {
|
|
236118
|
-
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
236119
|
-
}
|
|
236120
|
-
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
236121
|
-
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
236122
|
-
}
|
|
236123
|
-
return forceKillAfterTimeout;
|
|
236124
|
-
}, spawnedCancel2 = (spawned, context) => {
|
|
236125
|
-
const killResult = spawned.kill();
|
|
236126
|
-
if (killResult) {
|
|
236127
|
-
context.isCanceled = true;
|
|
236128
|
-
}
|
|
236129
|
-
}, timeoutKill = (spawned, signal, reject) => {
|
|
236130
|
-
spawned.kill(signal);
|
|
236131
|
-
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
236132
|
-
}, setupTimeout2 = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
236133
|
-
if (timeout === 0 || timeout === undefined) {
|
|
236134
|
-
return spawnedPromise;
|
|
236135
|
-
}
|
|
236136
|
-
let timeoutId;
|
|
236137
|
-
const timeoutPromise = new Promise((resolve7, reject) => {
|
|
236138
|
-
timeoutId = setTimeout(() => {
|
|
236139
|
-
timeoutKill(spawned, killSignal, reject);
|
|
236140
|
-
}, timeout);
|
|
236141
|
-
});
|
|
236142
|
-
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
236143
|
-
clearTimeout(timeoutId);
|
|
236144
|
-
});
|
|
236145
|
-
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
236146
|
-
}, validateTimeout2 = ({ timeout }) => {
|
|
236147
|
-
if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
236148
|
-
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
236149
|
-
}
|
|
236150
|
-
}, setExitHandler2 = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
236151
|
-
if (!cleanup || detached) {
|
|
236152
|
-
return timedPromise;
|
|
236153
|
-
}
|
|
236154
|
-
const removeExitHandler = onExit(() => {
|
|
236155
|
-
spawned.kill();
|
|
236156
|
-
});
|
|
236157
|
-
return timedPromise.finally(() => {
|
|
236158
|
-
removeExitHandler();
|
|
236159
|
-
});
|
|
236160
|
-
};
|
|
236161
|
-
var init_kill = __esm(() => {
|
|
236162
|
-
init_mjs();
|
|
236163
|
-
DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;
|
|
236164
|
-
});
|
|
236165
|
-
|
|
236166
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/is-stream/index.js
|
|
236167
|
-
function isStream4(stream2) {
|
|
236168
|
-
return stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
|
|
236169
|
-
}
|
|
236170
|
-
function isWritableStream2(stream2) {
|
|
236171
|
-
return isStream4(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
|
|
236172
|
-
}
|
|
236173
|
-
|
|
236174
|
-
// ../../node_modules/nypm/node_modules/execa/lib/pipe.js
|
|
236175
|
-
import { createWriteStream } from "node:fs";
|
|
236176
|
-
import { ChildProcess } from "node:child_process";
|
|
236177
|
-
var isExecaChildProcess = (target) => target instanceof ChildProcess && typeof target.then === "function", pipeToTarget2 = (spawned, streamName, target) => {
|
|
236178
|
-
if (typeof target === "string") {
|
|
236179
|
-
spawned[streamName].pipe(createWriteStream(target));
|
|
236180
|
-
return spawned;
|
|
236181
|
-
}
|
|
236182
|
-
if (isWritableStream2(target)) {
|
|
236183
|
-
spawned[streamName].pipe(target);
|
|
236184
|
-
return spawned;
|
|
236185
|
-
}
|
|
236186
|
-
if (!isExecaChildProcess(target)) {
|
|
236187
|
-
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
236188
|
-
}
|
|
236189
|
-
if (!isWritableStream2(target.stdin)) {
|
|
236190
|
-
throw new TypeError("The target child process's stdin must be available.");
|
|
236191
|
-
}
|
|
236192
|
-
spawned[streamName].pipe(target.stdin);
|
|
236193
|
-
return target;
|
|
236194
|
-
}, addPipeMethods2 = (spawned) => {
|
|
236195
|
-
if (spawned.stdout !== null) {
|
|
236196
|
-
spawned.pipeStdout = pipeToTarget2.bind(undefined, spawned, "stdout");
|
|
236197
|
-
}
|
|
236198
|
-
if (spawned.stderr !== null) {
|
|
236199
|
-
spawned.pipeStderr = pipeToTarget2.bind(undefined, spawned, "stderr");
|
|
236200
|
-
}
|
|
236201
|
-
if (spawned.all !== undefined) {
|
|
236202
|
-
spawned.pipeAll = pipeToTarget2.bind(undefined, spawned, "all");
|
|
236203
|
-
}
|
|
236204
|
-
};
|
|
236205
|
-
var init_pipe = () => {
|
|
236206
|
-
};
|
|
236207
|
-
|
|
236208
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/contents.js
|
|
236209
|
-
var getStreamContents2 = async (stream2, { init: init2, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
236210
|
-
if (!isAsyncIterable2(stream2)) {
|
|
236211
|
-
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
236212
|
-
}
|
|
236213
|
-
const state = init2();
|
|
236214
|
-
state.length = 0;
|
|
236215
|
-
try {
|
|
236216
|
-
for await (const chunk of stream2) {
|
|
236217
|
-
const chunkType = getChunkType2(chunk);
|
|
236218
|
-
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
236219
|
-
appendChunk2({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
236220
|
-
}
|
|
236221
|
-
appendFinalChunk2({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
|
|
236222
|
-
return finalize(state);
|
|
236223
|
-
} catch (error5) {
|
|
236224
|
-
error5.bufferedData = finalize(state);
|
|
236225
|
-
throw error5;
|
|
236226
|
-
}
|
|
236227
|
-
}, appendFinalChunk2 = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
|
|
236228
|
-
const convertedChunk = getFinalChunk(state);
|
|
236229
|
-
if (convertedChunk !== undefined) {
|
|
236230
|
-
appendChunk2({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
236231
|
-
}
|
|
236232
|
-
}, appendChunk2 = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
|
|
236233
|
-
const chunkSize = getSize(convertedChunk);
|
|
236234
|
-
const newLength = state.length + chunkSize;
|
|
236235
|
-
if (newLength <= maxBuffer) {
|
|
236236
|
-
addNewChunk2(convertedChunk, state, addChunk, newLength);
|
|
236237
|
-
return;
|
|
236238
|
-
}
|
|
236239
|
-
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
236240
|
-
if (truncatedChunk !== undefined) {
|
|
236241
|
-
addNewChunk2(truncatedChunk, state, addChunk, maxBuffer);
|
|
236242
|
-
}
|
|
236243
|
-
throw new MaxBufferError2;
|
|
236244
|
-
}, addNewChunk2 = (convertedChunk, state, addChunk, newLength) => {
|
|
236245
|
-
state.contents = addChunk(convertedChunk, state, newLength);
|
|
236246
|
-
state.length = newLength;
|
|
236247
|
-
}, isAsyncIterable2 = (stream2) => typeof stream2 === "object" && stream2 !== null && typeof stream2[Symbol.asyncIterator] === "function", getChunkType2 = (chunk) => {
|
|
236248
|
-
const typeOfChunk = typeof chunk;
|
|
236249
|
-
if (typeOfChunk === "string") {
|
|
236250
|
-
return "string";
|
|
236251
|
-
}
|
|
236252
|
-
if (typeOfChunk !== "object" || chunk === null) {
|
|
236253
|
-
return "others";
|
|
236254
|
-
}
|
|
236255
|
-
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
236256
|
-
return "buffer";
|
|
236257
|
-
}
|
|
236258
|
-
const prototypeName = objectToString.call(chunk);
|
|
236259
|
-
if (prototypeName === "[object ArrayBuffer]") {
|
|
236260
|
-
return "arrayBuffer";
|
|
236261
|
-
}
|
|
236262
|
-
if (prototypeName === "[object DataView]") {
|
|
236263
|
-
return "dataView";
|
|
236264
|
-
}
|
|
236265
|
-
if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
|
|
236266
|
-
return "typedArray";
|
|
236267
|
-
}
|
|
236268
|
-
return "others";
|
|
236269
|
-
}, objectToString, MaxBufferError2;
|
|
236270
|
-
var init_contents = __esm(() => {
|
|
236271
|
-
({ toString: objectToString } = Object.prototype);
|
|
236272
|
-
MaxBufferError2 = class MaxBufferError2 extends Error {
|
|
236273
|
-
name = "MaxBufferError";
|
|
236274
|
-
constructor() {
|
|
236275
|
-
super("maxBuffer exceeded");
|
|
236276
|
-
}
|
|
236277
|
-
};
|
|
236278
|
-
});
|
|
236279
|
-
|
|
236280
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/utils.js
|
|
236281
|
-
var identity2 = (value4) => value4, noop2 = () => {
|
|
236282
|
-
return;
|
|
236283
|
-
}, getContentsProp = ({ contents }) => contents, throwObjectStream2 = (chunk) => {
|
|
236284
|
-
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
236285
|
-
}, getLengthProp2 = (convertedChunk) => convertedChunk.length;
|
|
236286
|
-
|
|
236287
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/array.js
|
|
236288
|
-
var init_array = __esm(() => {
|
|
236289
|
-
init_contents();
|
|
236290
|
-
});
|
|
236291
|
-
|
|
236292
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/array-buffer.js
|
|
236293
|
-
async function getStreamAsArrayBuffer(stream2, options) {
|
|
236294
|
-
return getStreamContents2(stream2, arrayBufferMethods, options);
|
|
236295
|
-
}
|
|
236296
|
-
var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) }), useTextEncoder = (chunk) => textEncoder.encode(chunk), textEncoder, useUint8Array2 = (chunk) => new Uint8Array(chunk), useUint8ArrayWithOffset2 = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength), truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize), addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
|
|
236297
|
-
const newContents = hasArrayBufferResize2() ? resizeArrayBuffer2(contents, length) : resizeArrayBufferSlow2(contents, length);
|
|
236298
|
-
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
236299
|
-
return newContents;
|
|
236300
|
-
}, resizeArrayBufferSlow2 = (contents, length) => {
|
|
236301
|
-
if (length <= contents.byteLength) {
|
|
236302
|
-
return contents;
|
|
236303
|
-
}
|
|
236304
|
-
const arrayBuffer = new ArrayBuffer(getNewContentsLength2(length));
|
|
236305
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
236306
|
-
return arrayBuffer;
|
|
236307
|
-
}, resizeArrayBuffer2 = (contents, length) => {
|
|
236308
|
-
if (length <= contents.maxByteLength) {
|
|
236309
|
-
contents.resize(length);
|
|
236310
|
-
return contents;
|
|
236311
|
-
}
|
|
236312
|
-
const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength2(length) });
|
|
236313
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
236314
|
-
return arrayBuffer;
|
|
236315
|
-
}, getNewContentsLength2 = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR)), SCALE_FACTOR = 2, finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize2() ? contents : contents.slice(0, length), hasArrayBufferResize2 = () => ("resize" in ArrayBuffer.prototype), arrayBufferMethods;
|
|
236316
|
-
var init_array_buffer = __esm(() => {
|
|
236317
|
-
init_contents();
|
|
236318
|
-
textEncoder = new TextEncoder;
|
|
236319
|
-
arrayBufferMethods = {
|
|
236320
|
-
init: initArrayBuffer,
|
|
236321
|
-
convertChunk: {
|
|
236322
|
-
string: useTextEncoder,
|
|
236323
|
-
buffer: useUint8Array2,
|
|
236324
|
-
arrayBuffer: useUint8Array2,
|
|
236325
|
-
dataView: useUint8ArrayWithOffset2,
|
|
236326
|
-
typedArray: useUint8ArrayWithOffset2,
|
|
236327
|
-
others: throwObjectStream2
|
|
236328
|
-
},
|
|
236329
|
-
getSize: getLengthProp2,
|
|
236330
|
-
truncateChunk: truncateArrayBufferChunk,
|
|
236331
|
-
addChunk: addArrayBufferChunk,
|
|
236332
|
-
getFinalChunk: noop2,
|
|
236333
|
-
finalize: finalizeArrayBuffer
|
|
236334
|
-
};
|
|
236335
|
-
});
|
|
236336
|
-
|
|
236337
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/buffer.js
|
|
236338
|
-
async function getStreamAsBuffer2(stream2, options) {
|
|
236339
|
-
if (!("Buffer" in globalThis)) {
|
|
236340
|
-
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
236341
|
-
}
|
|
236342
|
-
try {
|
|
236343
|
-
return arrayBufferToNodeBuffer2(await getStreamAsArrayBuffer(stream2, options));
|
|
236344
|
-
} catch (error5) {
|
|
236345
|
-
if (error5.bufferedData !== undefined) {
|
|
236346
|
-
error5.bufferedData = arrayBufferToNodeBuffer2(error5.bufferedData);
|
|
236347
|
-
}
|
|
236348
|
-
throw error5;
|
|
236349
|
-
}
|
|
236350
|
-
}
|
|
236351
|
-
var arrayBufferToNodeBuffer2 = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
|
|
236352
|
-
var init_buffer = __esm(() => {
|
|
236353
|
-
init_array_buffer();
|
|
236354
|
-
});
|
|
236355
|
-
|
|
236356
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/string.js
|
|
236357
|
-
async function getStreamAsString(stream2, options) {
|
|
236358
|
-
return getStreamContents2(stream2, stringMethods, options);
|
|
236359
|
-
}
|
|
236360
|
-
var initString = () => ({ contents: "", textDecoder: new TextDecoder }), useTextDecoder2 = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true }), addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk, truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize), getFinalStringChunk = ({ textDecoder }) => {
|
|
236361
|
-
const finalChunk = textDecoder.decode();
|
|
236362
|
-
return finalChunk === "" ? undefined : finalChunk;
|
|
236363
|
-
}, stringMethods;
|
|
236364
|
-
var init_string = __esm(() => {
|
|
236365
|
-
init_contents();
|
|
236366
|
-
stringMethods = {
|
|
236367
|
-
init: initString,
|
|
236368
|
-
convertChunk: {
|
|
236369
|
-
string: identity2,
|
|
236370
|
-
buffer: useTextDecoder2,
|
|
236371
|
-
arrayBuffer: useTextDecoder2,
|
|
236372
|
-
dataView: useTextDecoder2,
|
|
236373
|
-
typedArray: useTextDecoder2,
|
|
236374
|
-
others: throwObjectStream2
|
|
236375
|
-
},
|
|
236376
|
-
getSize: getLengthProp2,
|
|
236377
|
-
truncateChunk: truncateStringChunk,
|
|
236378
|
-
addChunk: addStringChunk,
|
|
236379
|
-
getFinalChunk: getFinalStringChunk,
|
|
236380
|
-
finalize: getContentsProp
|
|
236381
|
-
};
|
|
236382
|
-
});
|
|
236383
|
-
|
|
236384
|
-
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/index.js
|
|
236385
|
-
var init_source = __esm(() => {
|
|
236386
|
-
init_array();
|
|
236387
|
-
init_array_buffer();
|
|
236388
|
-
init_buffer();
|
|
236389
|
-
init_string();
|
|
236390
|
-
init_contents();
|
|
236391
|
-
});
|
|
236392
|
-
|
|
236393
|
-
// ../../node_modules/merge-stream/index.js
|
|
236394
|
-
var require_merge_stream = __commonJS((exports, module) => {
|
|
236395
|
-
var { PassThrough } = __require("stream");
|
|
236396
|
-
module.exports = function() {
|
|
236397
|
-
var sources = [];
|
|
236398
|
-
var output = new PassThrough({ objectMode: true });
|
|
236399
|
-
output.setMaxListeners(0);
|
|
236400
|
-
output.add = add;
|
|
236401
|
-
output.isEmpty = isEmpty2;
|
|
236402
|
-
output.on("unpipe", remove);
|
|
236403
|
-
Array.prototype.slice.call(arguments).forEach(add);
|
|
236404
|
-
return output;
|
|
236405
|
-
function add(source) {
|
|
236406
|
-
if (Array.isArray(source)) {
|
|
236407
|
-
source.forEach(add);
|
|
236408
|
-
return this;
|
|
236409
|
-
}
|
|
236410
|
-
sources.push(source);
|
|
236411
|
-
source.once("end", remove.bind(null, source));
|
|
236412
|
-
source.once("error", output.emit.bind(output, "error"));
|
|
236413
|
-
source.pipe(output, { end: false });
|
|
236414
|
-
return this;
|
|
236415
|
-
}
|
|
236416
|
-
function isEmpty2() {
|
|
236417
|
-
return sources.length == 0;
|
|
236418
|
-
}
|
|
236419
|
-
function remove(source) {
|
|
236420
|
-
sources = sources.filter(function(it2) {
|
|
236421
|
-
return it2 !== source;
|
|
236422
|
-
});
|
|
236423
|
-
if (!sources.length && output.readable) {
|
|
236424
|
-
output.end();
|
|
236425
|
-
}
|
|
236426
|
-
}
|
|
236427
|
-
};
|
|
236428
|
-
});
|
|
236429
|
-
|
|
236430
|
-
// ../../node_modules/nypm/node_modules/execa/lib/stream.js
|
|
236431
|
-
import { createReadStream, readFileSync } from "node:fs";
|
|
236432
|
-
import { setTimeout as setTimeout2 } from "node:timers/promises";
|
|
236433
|
-
var import_merge_stream, validateInputOptions = (input) => {
|
|
236434
|
-
if (input !== undefined) {
|
|
236435
|
-
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
236436
|
-
}
|
|
236437
|
-
}, getInputSync = ({ input, inputFile }) => {
|
|
236438
|
-
if (typeof inputFile !== "string") {
|
|
236439
|
-
return input;
|
|
236440
|
-
}
|
|
236441
|
-
validateInputOptions(input);
|
|
236442
|
-
return readFileSync(inputFile);
|
|
236443
|
-
}, handleInputSync = (options) => {
|
|
236444
|
-
const input = getInputSync(options);
|
|
236445
|
-
if (isStream4(input)) {
|
|
236446
|
-
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
236447
|
-
}
|
|
236448
|
-
return input;
|
|
236449
|
-
}, getInput2 = ({ input, inputFile }) => {
|
|
236450
|
-
if (typeof inputFile !== "string") {
|
|
236451
|
-
return input;
|
|
236452
|
-
}
|
|
236453
|
-
validateInputOptions(input);
|
|
236454
|
-
return createReadStream(inputFile);
|
|
236455
|
-
}, handleInput2 = (spawned, options) => {
|
|
236456
|
-
const input = getInput2(options);
|
|
236457
|
-
if (input === undefined) {
|
|
236458
|
-
return;
|
|
236459
|
-
}
|
|
236460
|
-
if (isStream4(input)) {
|
|
236461
|
-
input.pipe(spawned.stdin);
|
|
236462
|
-
} else {
|
|
236463
|
-
spawned.stdin.end(input);
|
|
236464
|
-
}
|
|
236465
|
-
}, makeAllStream2 = (spawned, { all }) => {
|
|
236466
|
-
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
236467
|
-
return;
|
|
236468
|
-
}
|
|
236469
|
-
const mixed = import_merge_stream.default();
|
|
236470
|
-
if (spawned.stdout) {
|
|
236471
|
-
mixed.add(spawned.stdout);
|
|
236472
|
-
}
|
|
236473
|
-
if (spawned.stderr) {
|
|
236474
|
-
mixed.add(spawned.stderr);
|
|
236475
|
-
}
|
|
236476
|
-
return mixed;
|
|
236477
|
-
}, getBufferedData2 = async (stream2, streamPromise) => {
|
|
236478
|
-
if (!stream2 || streamPromise === undefined) {
|
|
236479
|
-
return;
|
|
236480
|
-
}
|
|
236481
|
-
await setTimeout2(0);
|
|
236482
|
-
stream2.destroy();
|
|
236483
|
-
try {
|
|
236484
|
-
return await streamPromise;
|
|
236485
|
-
} catch (error5) {
|
|
236486
|
-
return error5.bufferedData;
|
|
236487
|
-
}
|
|
236488
|
-
}, getStreamPromise2 = (stream2, { encoding, buffer, maxBuffer }) => {
|
|
236489
|
-
if (!stream2 || !buffer) {
|
|
236490
|
-
return;
|
|
236491
|
-
}
|
|
236492
|
-
if (encoding === "utf8" || encoding === "utf-8") {
|
|
236493
|
-
return getStreamAsString(stream2, { maxBuffer });
|
|
236494
|
-
}
|
|
236495
|
-
if (encoding === null || encoding === "buffer") {
|
|
236496
|
-
return getStreamAsBuffer2(stream2, { maxBuffer });
|
|
236497
|
-
}
|
|
236498
|
-
return applyEncoding2(stream2, maxBuffer, encoding);
|
|
236499
|
-
}, applyEncoding2 = async (stream2, maxBuffer, encoding) => {
|
|
236500
|
-
const buffer = await getStreamAsBuffer2(stream2, { maxBuffer });
|
|
236501
|
-
return buffer.toString(encoding);
|
|
236502
|
-
}, getSpawnedResult2 = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
236503
|
-
const stdoutPromise = getStreamPromise2(stdout, { encoding, buffer, maxBuffer });
|
|
236504
|
-
const stderrPromise = getStreamPromise2(stderr, { encoding, buffer, maxBuffer });
|
|
236505
|
-
const allPromise = getStreamPromise2(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
236506
|
-
try {
|
|
236507
|
-
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
236508
|
-
} catch (error5) {
|
|
236509
|
-
return Promise.all([
|
|
236510
|
-
{ error: error5, signal: error5.signal, timedOut: error5.timedOut },
|
|
236511
|
-
getBufferedData2(stdout, stdoutPromise),
|
|
236512
|
-
getBufferedData2(stderr, stderrPromise),
|
|
236513
|
-
getBufferedData2(all, allPromise)
|
|
236514
|
-
]);
|
|
236515
|
-
}
|
|
236516
|
-
};
|
|
236517
|
-
var init_stream = __esm(() => {
|
|
236518
|
-
init_source();
|
|
236519
|
-
import_merge_stream = __toESM(require_merge_stream(), 1);
|
|
236520
|
-
});
|
|
236521
|
-
|
|
236522
|
-
// ../../node_modules/nypm/node_modules/execa/lib/promise.js
|
|
236523
|
-
var nativePromisePrototype, descriptors, mergePromise2 = (spawned, promise) => {
|
|
236524
|
-
for (const [property, descriptor] of descriptors) {
|
|
236525
|
-
const value4 = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
236526
|
-
Reflect.defineProperty(spawned, property, { ...descriptor, value: value4 });
|
|
236527
|
-
}
|
|
236528
|
-
}, getSpawnedPromise2 = (spawned) => new Promise((resolve7, reject) => {
|
|
236529
|
-
spawned.on("exit", (exitCode2, signal) => {
|
|
236530
|
-
resolve7({ exitCode: exitCode2, signal });
|
|
236531
|
-
});
|
|
236532
|
-
spawned.on("error", (error5) => {
|
|
236533
|
-
reject(error5);
|
|
236534
|
-
});
|
|
236535
|
-
if (spawned.stdin) {
|
|
236536
|
-
spawned.stdin.on("error", (error5) => {
|
|
236537
|
-
reject(error5);
|
|
236538
|
-
});
|
|
236539
|
-
}
|
|
236540
|
-
});
|
|
236541
|
-
var init_promise = __esm(() => {
|
|
236542
|
-
nativePromisePrototype = (async () => {
|
|
236543
|
-
})().constructor.prototype;
|
|
236544
|
-
descriptors = ["then", "catch", "finally"].map((property) => [
|
|
236545
|
-
property,
|
|
236546
|
-
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
236547
|
-
]);
|
|
236548
|
-
});
|
|
236549
|
-
|
|
236550
|
-
// ../../node_modules/nypm/node_modules/execa/lib/command.js
|
|
236551
|
-
import { Buffer as Buffer2 } from "node:buffer";
|
|
236552
|
-
import { ChildProcess as ChildProcess2 } from "node:child_process";
|
|
236553
|
-
var normalizeArgs2 = (file, args = []) => {
|
|
236554
|
-
if (!Array.isArray(args)) {
|
|
236555
|
-
return [file];
|
|
236556
|
-
}
|
|
236557
|
-
return [file, ...args];
|
|
236558
|
-
}, NO_ESCAPE_REGEXP, escapeArg = (arg) => {
|
|
236559
|
-
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
236560
|
-
return arg;
|
|
236561
|
-
}
|
|
236562
|
-
return `"${arg.replaceAll('"', "\\\"")}"`;
|
|
236563
|
-
}, joinCommand2 = (file, args) => normalizeArgs2(file, args).join(" "), getEscapedCommand2 = (file, args) => normalizeArgs2(file, args).map((arg) => escapeArg(arg)).join(" "), SPACES_REGEXP, parseCommand = (command) => {
|
|
236564
|
-
const tokens = [];
|
|
236565
|
-
for (const token of command.trim().split(SPACES_REGEXP)) {
|
|
236566
|
-
const previousToken = tokens.at(-1);
|
|
236567
|
-
if (previousToken && previousToken.endsWith("\\")) {
|
|
236568
|
-
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
|
236569
|
-
} else {
|
|
236570
|
-
tokens.push(token);
|
|
236571
|
-
}
|
|
236572
|
-
}
|
|
236573
|
-
return tokens;
|
|
236574
|
-
}, parseExpression = (expression) => {
|
|
236575
|
-
const typeOfExpression = typeof expression;
|
|
236576
|
-
if (typeOfExpression === "string") {
|
|
236577
|
-
return expression;
|
|
236578
|
-
}
|
|
236579
|
-
if (typeOfExpression === "number") {
|
|
236580
|
-
return String(expression);
|
|
236581
|
-
}
|
|
236582
|
-
if (typeOfExpression === "object" && expression !== null && !(expression instanceof ChildProcess2) && "stdout" in expression) {
|
|
236583
|
-
const typeOfStdout = typeof expression.stdout;
|
|
236584
|
-
if (typeOfStdout === "string") {
|
|
236585
|
-
return expression.stdout;
|
|
236586
|
-
}
|
|
236587
|
-
if (Buffer2.isBuffer(expression.stdout)) {
|
|
236588
|
-
return expression.stdout.toString();
|
|
236589
|
-
}
|
|
236590
|
-
throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
|
|
236591
|
-
}
|
|
236592
|
-
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
236593
|
-
}, concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
|
|
236594
|
-
...tokens.slice(0, -1),
|
|
236595
|
-
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
236596
|
-
...nextTokens.slice(1)
|
|
236597
|
-
], parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
236598
|
-
const templateString = template ?? templates.raw[index];
|
|
236599
|
-
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
236600
|
-
const newTokens = concatTokens(tokens, templateTokens, templateString.startsWith(" "));
|
|
236601
|
-
if (index === expressions.length) {
|
|
236602
|
-
return newTokens;
|
|
236603
|
-
}
|
|
236604
|
-
const expression = expressions[index];
|
|
236605
|
-
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
236606
|
-
return concatTokens(newTokens, expressionTokens, templateString.endsWith(" "));
|
|
236607
|
-
}, parseTemplates = (templates, expressions) => {
|
|
236608
|
-
let tokens = [];
|
|
236609
|
-
for (const [index, template] of templates.entries()) {
|
|
236610
|
-
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
236611
|
-
}
|
|
236612
|
-
return tokens;
|
|
236613
|
-
};
|
|
236614
|
-
var init_command = __esm(() => {
|
|
236615
|
-
NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
236616
|
-
SPACES_REGEXP = / +/g;
|
|
236617
|
-
});
|
|
236618
|
-
|
|
236619
|
-
// ../../node_modules/nypm/node_modules/execa/lib/verbose.js
|
|
236620
|
-
import { debuglog } from "node:util";
|
|
236621
|
-
import process10 from "node:process";
|
|
236622
|
-
var verboseDefault, padField2 = (field2, padding) => String(field2).padStart(padding, "0"), getTimestamp = () => {
|
|
236623
|
-
const date = new Date;
|
|
236624
|
-
return `${padField2(date.getHours(), 2)}:${padField2(date.getMinutes(), 2)}:${padField2(date.getSeconds(), 2)}.${padField2(date.getMilliseconds(), 3)}`;
|
|
236625
|
-
}, logCommand2 = (escapedCommand, { verbose }) => {
|
|
236626
|
-
if (!verbose) {
|
|
236627
|
-
return;
|
|
236628
|
-
}
|
|
236629
|
-
process10.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
236630
|
-
`);
|
|
236631
|
-
};
|
|
236632
|
-
var init_verbose = __esm(() => {
|
|
236633
|
-
verboseDefault = debuglog("execa").enabled;
|
|
236634
|
-
});
|
|
236635
|
-
|
|
236636
|
-
// ../../node_modules/nypm/node_modules/execa/index.js
|
|
236637
|
-
var exports_execa = {};
|
|
236638
|
-
__export(exports_execa, {
|
|
236639
|
-
execaSync: () => execaSync,
|
|
236640
|
-
execaNode: () => execaNode,
|
|
236641
|
-
execaCommandSync: () => execaCommandSync,
|
|
236642
|
-
execaCommand: () => execaCommand,
|
|
236643
|
-
execa: () => execa2,
|
|
236644
|
-
$: () => $4
|
|
236645
|
-
});
|
|
236646
|
-
import { Buffer as Buffer3 } from "node:buffer";
|
|
236647
|
-
import path7 from "node:path";
|
|
236648
|
-
import childProcess from "node:child_process";
|
|
236649
|
-
import process11 from "node:process";
|
|
236650
|
-
function execa2(file, args, options) {
|
|
236651
|
-
const parsed = handleArguments2(file, args, options);
|
|
236652
|
-
const command = joinCommand2(file, args);
|
|
236653
|
-
const escapedCommand = getEscapedCommand2(file, args);
|
|
236654
|
-
logCommand2(escapedCommand, parsed.options);
|
|
236655
|
-
validateTimeout2(parsed.options);
|
|
236656
|
-
let spawned;
|
|
236657
|
-
try {
|
|
236658
|
-
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
236659
|
-
} catch (error5) {
|
|
236660
|
-
const dummySpawned = new childProcess.ChildProcess;
|
|
236661
|
-
const errorPromise = Promise.reject(makeError2({
|
|
236662
|
-
error: error5,
|
|
236663
|
-
stdout: "",
|
|
236664
|
-
stderr: "",
|
|
236665
|
-
all: "",
|
|
236666
|
-
command,
|
|
236667
|
-
escapedCommand,
|
|
236668
|
-
parsed,
|
|
236669
|
-
timedOut: false,
|
|
236670
|
-
isCanceled: false,
|
|
236671
|
-
killed: false
|
|
236672
|
-
}));
|
|
236673
|
-
mergePromise2(dummySpawned, errorPromise);
|
|
236674
|
-
return dummySpawned;
|
|
236675
|
-
}
|
|
236676
|
-
const spawnedPromise = getSpawnedPromise2(spawned);
|
|
236677
|
-
const timedPromise = setupTimeout2(spawned, parsed.options, spawnedPromise);
|
|
236678
|
-
const processDone = setExitHandler2(spawned, parsed.options, timedPromise);
|
|
236679
|
-
const context = { isCanceled: false };
|
|
236680
|
-
spawned.kill = spawnedKill2.bind(null, spawned.kill.bind(spawned));
|
|
236681
|
-
spawned.cancel = spawnedCancel2.bind(null, spawned, context);
|
|
236682
|
-
const handlePromise = async () => {
|
|
236683
|
-
const [{ error: error5, exitCode: exitCode2, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult2(spawned, parsed.options, processDone);
|
|
236684
|
-
const stdout = handleOutput2(parsed.options, stdoutResult);
|
|
236685
|
-
const stderr = handleOutput2(parsed.options, stderrResult);
|
|
236686
|
-
const all = handleOutput2(parsed.options, allResult);
|
|
236687
|
-
if (error5 || exitCode2 !== 0 || signal !== null) {
|
|
236688
|
-
const returnedError = makeError2({
|
|
236689
|
-
error: error5,
|
|
236690
|
-
exitCode: exitCode2,
|
|
236691
|
-
signal,
|
|
236692
|
-
stdout,
|
|
236693
|
-
stderr,
|
|
236694
|
-
all,
|
|
236695
|
-
command,
|
|
236696
|
-
escapedCommand,
|
|
236697
|
-
parsed,
|
|
236698
|
-
timedOut,
|
|
236699
|
-
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
236700
|
-
killed: spawned.killed
|
|
236701
|
-
});
|
|
236702
|
-
if (!parsed.options.reject) {
|
|
236703
|
-
return returnedError;
|
|
236704
|
-
}
|
|
236705
|
-
throw returnedError;
|
|
236706
|
-
}
|
|
236707
|
-
return {
|
|
236708
|
-
command,
|
|
236709
|
-
escapedCommand,
|
|
236710
|
-
exitCode: 0,
|
|
236711
|
-
stdout,
|
|
236712
|
-
stderr,
|
|
236713
|
-
all,
|
|
236714
|
-
failed: false,
|
|
236715
|
-
timedOut: false,
|
|
236716
|
-
isCanceled: false,
|
|
236717
|
-
killed: false
|
|
236718
|
-
};
|
|
236719
|
-
};
|
|
236720
|
-
const handlePromiseOnce = onetime_default(handlePromise);
|
|
236721
|
-
handleInput2(spawned, parsed.options);
|
|
236722
|
-
spawned.all = makeAllStream2(spawned, parsed.options);
|
|
236723
|
-
addPipeMethods2(spawned);
|
|
236724
|
-
mergePromise2(spawned, handlePromiseOnce);
|
|
236725
|
-
return spawned;
|
|
236726
|
-
}
|
|
236727
|
-
function execaSync(file, args, options) {
|
|
236728
|
-
const parsed = handleArguments2(file, args, options);
|
|
236729
|
-
const command = joinCommand2(file, args);
|
|
236730
|
-
const escapedCommand = getEscapedCommand2(file, args);
|
|
236731
|
-
logCommand2(escapedCommand, parsed.options);
|
|
236732
|
-
const input = handleInputSync(parsed.options);
|
|
236733
|
-
let result;
|
|
236734
|
-
try {
|
|
236735
|
-
result = childProcess.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
236736
|
-
} catch (error5) {
|
|
236737
|
-
throw makeError2({
|
|
236738
|
-
error: error5,
|
|
236739
|
-
stdout: "",
|
|
236740
|
-
stderr: "",
|
|
236741
|
-
all: "",
|
|
236742
|
-
command,
|
|
236743
|
-
escapedCommand,
|
|
236744
|
-
parsed,
|
|
236745
|
-
timedOut: false,
|
|
236746
|
-
isCanceled: false,
|
|
236747
|
-
killed: false
|
|
236748
|
-
});
|
|
236749
|
-
}
|
|
236750
|
-
const stdout = handleOutput2(parsed.options, result.stdout, result.error);
|
|
236751
|
-
const stderr = handleOutput2(parsed.options, result.stderr, result.error);
|
|
236752
|
-
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
236753
|
-
const error5 = makeError2({
|
|
236754
|
-
stdout,
|
|
236755
|
-
stderr,
|
|
236756
|
-
error: result.error,
|
|
236757
|
-
signal: result.signal,
|
|
236758
|
-
exitCode: result.status,
|
|
236759
|
-
command,
|
|
236760
|
-
escapedCommand,
|
|
236761
|
-
parsed,
|
|
236762
|
-
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
236763
|
-
isCanceled: false,
|
|
236764
|
-
killed: result.signal !== null
|
|
236765
|
-
});
|
|
236766
|
-
if (!parsed.options.reject) {
|
|
236767
|
-
return error5;
|
|
236768
|
-
}
|
|
236769
|
-
throw error5;
|
|
236770
|
-
}
|
|
236771
|
-
return {
|
|
236772
|
-
command,
|
|
236773
|
-
escapedCommand,
|
|
236774
|
-
exitCode: 0,
|
|
236775
|
-
stdout,
|
|
236776
|
-
stderr,
|
|
236777
|
-
failed: false,
|
|
236778
|
-
timedOut: false,
|
|
236779
|
-
isCanceled: false,
|
|
236780
|
-
killed: false
|
|
236781
|
-
};
|
|
236782
|
-
}
|
|
236783
|
-
function create$(options) {
|
|
236784
|
-
function $4(templatesOrOptions, ...expressions) {
|
|
236785
|
-
if (!Array.isArray(templatesOrOptions)) {
|
|
236786
|
-
return create$({ ...options, ...templatesOrOptions });
|
|
236787
|
-
}
|
|
236788
|
-
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
236789
|
-
return execa2(file, args, normalizeScriptOptions(options));
|
|
236790
|
-
}
|
|
236791
|
-
$4.sync = (templates, ...expressions) => {
|
|
236792
|
-
if (!Array.isArray(templates)) {
|
|
236793
|
-
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
236794
|
-
}
|
|
236795
|
-
const [file, ...args] = parseTemplates(templates, expressions);
|
|
236796
|
-
return execaSync(file, args, normalizeScriptOptions(options));
|
|
236797
|
-
};
|
|
236798
|
-
return $4;
|
|
236799
|
-
}
|
|
236800
|
-
function execaCommand(command, options) {
|
|
236801
|
-
const [file, ...args] = parseCommand(command);
|
|
236802
|
-
return execa2(file, args, options);
|
|
236803
|
-
}
|
|
236804
|
-
function execaCommandSync(command, options) {
|
|
236805
|
-
const [file, ...args] = parseCommand(command);
|
|
236806
|
-
return execaSync(file, args, options);
|
|
236807
|
-
}
|
|
236808
|
-
function execaNode(scriptPath, args, options = {}) {
|
|
236809
|
-
if (args && !Array.isArray(args) && typeof args === "object") {
|
|
236810
|
-
options = args;
|
|
236811
|
-
args = [];
|
|
236812
|
-
}
|
|
236813
|
-
const stdio = normalizeStdioNode(options);
|
|
236814
|
-
const defaultExecArgv = process11.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
|
236815
|
-
const {
|
|
236816
|
-
nodePath = process11.execPath,
|
|
236817
|
-
nodeOptions = defaultExecArgv
|
|
236818
|
-
} = options;
|
|
236819
|
-
return execa2(nodePath, [
|
|
236820
|
-
...nodeOptions,
|
|
236821
|
-
scriptPath,
|
|
236822
|
-
...Array.isArray(args) ? args : []
|
|
236823
|
-
], {
|
|
236824
|
-
...options,
|
|
236825
|
-
stdin: undefined,
|
|
236826
|
-
stdout: undefined,
|
|
236827
|
-
stderr: undefined,
|
|
236828
|
-
stdio,
|
|
236829
|
-
shell: false
|
|
236830
|
-
});
|
|
236831
|
-
}
|
|
236832
|
-
var import_cross_spawn, DEFAULT_MAX_BUFFER, getEnv2 = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
236833
|
-
const env2 = extendEnv ? { ...process11.env, ...envOption } : envOption;
|
|
236834
|
-
if (preferLocal) {
|
|
236835
|
-
return npmRunPathEnv2({ env: env2, cwd: localDir, execPath });
|
|
236836
|
-
}
|
|
236837
|
-
return env2;
|
|
236838
|
-
}, handleArguments2 = (file, args, options = {}) => {
|
|
236839
|
-
const parsed = import_cross_spawn.default._parse(file, args, options);
|
|
236840
|
-
file = parsed.command;
|
|
236841
|
-
args = parsed.args;
|
|
236842
|
-
options = parsed.options;
|
|
236843
|
-
options = {
|
|
236844
|
-
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
236845
|
-
buffer: true,
|
|
236846
|
-
stripFinalNewline: true,
|
|
236847
|
-
extendEnv: true,
|
|
236848
|
-
preferLocal: false,
|
|
236849
|
-
localDir: options.cwd || process11.cwd(),
|
|
236850
|
-
execPath: process11.execPath,
|
|
236851
|
-
encoding: "utf8",
|
|
236852
|
-
reject: true,
|
|
236853
|
-
cleanup: true,
|
|
236854
|
-
all: false,
|
|
236855
|
-
windowsHide: true,
|
|
236856
|
-
verbose: verboseDefault,
|
|
236857
|
-
...options
|
|
236858
|
-
};
|
|
236859
|
-
options.env = getEnv2(options);
|
|
236860
|
-
options.stdio = normalizeStdio2(options);
|
|
236861
|
-
if (process11.platform === "win32" && path7.basename(file, ".exe") === "cmd") {
|
|
236862
|
-
args.unshift("/q");
|
|
236863
|
-
}
|
|
236864
|
-
return { file, args, options, parsed };
|
|
236865
|
-
}, handleOutput2 = (options, value4, error5) => {
|
|
236866
|
-
if (typeof value4 !== "string" && !Buffer3.isBuffer(value4)) {
|
|
236867
|
-
return error5 === undefined ? undefined : "";
|
|
236868
|
-
}
|
|
236869
|
-
if (options.stripFinalNewline) {
|
|
236870
|
-
return stripFinalNewline(value4);
|
|
236871
|
-
}
|
|
236872
|
-
return value4;
|
|
236873
|
-
}, normalizeScriptStdin = ({ input, inputFile, stdio }) => input === undefined && inputFile === undefined && stdio === undefined ? { stdin: "inherit" } : {}, normalizeScriptOptions = (options = {}) => ({
|
|
236874
|
-
preferLocal: true,
|
|
236875
|
-
...normalizeScriptStdin(options),
|
|
236876
|
-
...options
|
|
236877
|
-
}), $4;
|
|
236878
|
-
var init_execa = __esm(() => {
|
|
236879
|
-
import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
236880
|
-
init_npm_run_path();
|
|
236881
|
-
init_onetime();
|
|
236882
|
-
init_error();
|
|
236883
|
-
init_stdio();
|
|
236884
|
-
init_kill();
|
|
236885
|
-
init_pipe();
|
|
236886
|
-
init_stream();
|
|
236887
|
-
init_promise();
|
|
236888
|
-
init_command();
|
|
236889
|
-
init_verbose();
|
|
236890
|
-
DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;
|
|
236891
|
-
$4 = create$();
|
|
236892
|
-
});
|
|
236893
|
-
|
|
236894
234805
|
// ../../node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
|
|
236895
234806
|
var require_node_fetch_native_DhEqb06g = __commonJS((exports) => {
|
|
236896
234807
|
var l3 = Object.defineProperty;
|
|
@@ -236921,7 +234832,7 @@ var require_multipart_parser = __commonJS((exports) => {
|
|
|
236921
234832
|
var A5 = 97;
|
|
236922
234833
|
var Z4 = 122;
|
|
236923
234834
|
var lower = c3((_5) => _5 | 32, "lower");
|
|
236924
|
-
var
|
|
234835
|
+
var noop2 = c3(() => {
|
|
236925
234836
|
}, "noop");
|
|
236926
234837
|
|
|
236927
234838
|
class MultipartParser {
|
|
@@ -236929,7 +234840,7 @@ var require_multipart_parser = __commonJS((exports) => {
|
|
|
236929
234840
|
c3(this, "MultipartParser");
|
|
236930
234841
|
}
|
|
236931
234842
|
constructor(a7) {
|
|
236932
|
-
this.index = 0, this.flags = 0, this.onHeaderEnd =
|
|
234843
|
+
this.index = 0, this.flags = 0, this.onHeaderEnd = noop2, this.onHeaderField = noop2, this.onHeadersEnd = noop2, this.onHeaderValue = noop2, this.onPartBegin = noop2, this.onPartData = noop2, this.onPartEnd = noop2, this.boundaryChars = {}, a7 = `\r
|
|
236933
234844
|
--` + a7;
|
|
236934
234845
|
const t8 = new Uint8Array(a7.length);
|
|
236935
234846
|
for (let n6 = 0;n6 < a7.length; n6++)
|
|
@@ -237209,15 +235120,15 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237209
235120
|
}
|
|
237210
235121
|
return se4(n6);
|
|
237211
235122
|
}, "_queueMicrotask");
|
|
237212
|
-
function $
|
|
235123
|
+
function $4(n6, o8, a7) {
|
|
237213
235124
|
if (typeof n6 != "function")
|
|
237214
235125
|
throw new TypeError("Argument is not a function");
|
|
237215
235126
|
return Function.prototype.apply.call(n6, o8, a7);
|
|
237216
235127
|
}
|
|
237217
|
-
u6($
|
|
235128
|
+
u6($4, "reflectCall");
|
|
237218
235129
|
function N6(n6, o8, a7) {
|
|
237219
235130
|
try {
|
|
237220
|
-
return W4($
|
|
235131
|
+
return W4($4(n6, o8, a7));
|
|
237221
235132
|
} catch (p6) {
|
|
237222
235133
|
return T4(p6);
|
|
237223
235134
|
}
|
|
@@ -237569,7 +235480,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237569
235480
|
a7 = at2(n6, Symbol.iterator);
|
|
237570
235481
|
if (a7 === undefined)
|
|
237571
235482
|
throw new TypeError("The object is not iterable");
|
|
237572
|
-
const p6 = $
|
|
235483
|
+
const p6 = $4(a7, n6, []);
|
|
237573
235484
|
if (!b4(p6))
|
|
237574
235485
|
throw new TypeError("The iterator method must return an object");
|
|
237575
235486
|
const g6 = p6.next;
|
|
@@ -237577,7 +235488,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237577
235488
|
}
|
|
237578
235489
|
u6(Lr2, "GetIterator");
|
|
237579
235490
|
function Gn(n6) {
|
|
237580
|
-
const o8 = $
|
|
235491
|
+
const o8 = $4(n6.nextMethod, n6.iterator, []);
|
|
237581
235492
|
if (!b4(o8))
|
|
237582
235493
|
throw new TypeError("The iterator.next() method must return an object");
|
|
237583
235494
|
return o8;
|
|
@@ -238218,7 +236129,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
238218
236129
|
}
|
|
238219
236130
|
u6(go, "convertUnderlyingSinkCloseCallback");
|
|
238220
236131
|
function _o(n6, o8, a7) {
|
|
238221
|
-
return X4(n6, a7), (p6) => $
|
|
236132
|
+
return X4(n6, a7), (p6) => $4(n6, o8, [p6]);
|
|
238222
236133
|
}
|
|
238223
236134
|
u6(_o, "convertUnderlyingSinkStartCallback");
|
|
238224
236135
|
function So(n6, o8, a7) {
|
|
@@ -239158,7 +237069,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239158
237069
|
return W4(undefined);
|
|
239159
237070
|
let P4;
|
|
239160
237071
|
try {
|
|
239161
|
-
P4 = $
|
|
237072
|
+
P4 = $4(q5, C4, [S4]);
|
|
239162
237073
|
} catch (O6) {
|
|
239163
237074
|
return T4(O6);
|
|
239164
237075
|
}
|
|
@@ -239218,7 +237129,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239218
237129
|
}
|
|
239219
237130
|
u6(li, "convertUnderlyingSourcePullCallback");
|
|
239220
237131
|
function fi(n6, o8, a7) {
|
|
239221
|
-
return X4(n6, a7), (p6) => $
|
|
237132
|
+
return X4(n6, a7), (p6) => $4(n6, o8, [p6]);
|
|
239222
237133
|
}
|
|
239223
237134
|
u6(fi, "convertUnderlyingSourceStartCallback");
|
|
239224
237135
|
function ci(n6, o8) {
|
|
@@ -239469,7 +237380,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239469
237380
|
}
|
|
239470
237381
|
u6(mi, "convertTransformerFlushCallback");
|
|
239471
237382
|
function yi(n6, o8, a7) {
|
|
239472
|
-
return X4(n6, a7), (p6) => $
|
|
237383
|
+
return X4(n6, a7), (p6) => $4(n6, o8, [p6]);
|
|
239473
237384
|
}
|
|
239474
237385
|
u6(yi, "convertTransformerStartCallback");
|
|
239475
237386
|
function gi(n6, o8, a7) {
|
|
@@ -239893,7 +237804,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239893
237804
|
var f6 = u6((c3, l3, d6) => (c3 += "", /^(Blob|File)$/.test(l3 && l3[t$12]) ? [(d6 = d6 !== undefined ? d6 + "" : l3[t$12] == "File" ? l3.name : "blob", c3), l3.name !== d6 || l3[t$12] == "blob" ? new File2([l3], d6, l3) : l3] : [c3, l3 + ""]), "f");
|
|
239894
237805
|
var e$12 = u6((c3, l3) => (l3 ? c3 : c3.replace(/\r?\n|\r/g, `\r
|
|
239895
237806
|
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1");
|
|
239896
|
-
var
|
|
237807
|
+
var x7 = u6((c3, l3, d6) => {
|
|
239897
237808
|
if (l3.length < d6)
|
|
239898
237809
|
throw new TypeError(`Failed to execute '${c3}' on 'FormData': ${d6} arguments required, but only ${l3.length} present.`);
|
|
239899
237810
|
}, "x");
|
|
@@ -239916,31 +237827,31 @@ var require_node3 = __commonJS((exports) => {
|
|
|
239916
237827
|
return l3 && typeof l3 == "object" && l3[t$12] === "FormData" && !m6.some((d6) => typeof l3[d6] != "function");
|
|
239917
237828
|
}
|
|
239918
237829
|
append(...l3) {
|
|
239919
|
-
|
|
237830
|
+
x7("append", arguments, 2), this.#e.push(f6(...l3));
|
|
239920
237831
|
}
|
|
239921
237832
|
delete(l3) {
|
|
239922
|
-
|
|
237833
|
+
x7("delete", arguments, 1), l3 += "", this.#e = this.#e.filter(([d6]) => d6 !== l3);
|
|
239923
237834
|
}
|
|
239924
237835
|
get(l3) {
|
|
239925
|
-
|
|
237836
|
+
x7("get", arguments, 1), l3 += "";
|
|
239926
237837
|
for (var d6 = this.#e, y4 = d6.length, b4 = 0;b4 < y4; b4++)
|
|
239927
237838
|
if (d6[b4][0] === l3)
|
|
239928
237839
|
return d6[b4][1];
|
|
239929
237840
|
return null;
|
|
239930
237841
|
}
|
|
239931
237842
|
getAll(l3, d6) {
|
|
239932
|
-
return
|
|
237843
|
+
return x7("getAll", arguments, 1), d6 = [], l3 += "", this.#e.forEach((y4) => y4[0] === l3 && d6.push(y4[1])), d6;
|
|
239933
237844
|
}
|
|
239934
237845
|
has(l3) {
|
|
239935
|
-
return
|
|
237846
|
+
return x7("has", arguments, 1), l3 += "", this.#e.some((d6) => d6[0] === l3);
|
|
239936
237847
|
}
|
|
239937
237848
|
forEach(l3, d6) {
|
|
239938
|
-
|
|
237849
|
+
x7("forEach", arguments, 1);
|
|
239939
237850
|
for (var [y4, b4] of this)
|
|
239940
237851
|
l3.call(d6, b4, y4, this);
|
|
239941
237852
|
}
|
|
239942
237853
|
set(...l3) {
|
|
239943
|
-
|
|
237854
|
+
x7("set", arguments, 2);
|
|
239944
237855
|
var d6 = [], y4 = true;
|
|
239945
237856
|
l3 = f6(...l3), this.#e.forEach((b4) => {
|
|
239946
237857
|
b4[0] === l3[0] ? y4 && (y4 = !d6.push(l3)) : d6.push(b4);
|
|
@@ -240541,13 +238452,13 @@ Content-Type: ${R5.type || "application/octet-stream"}\r
|
|
|
240541
238452
|
T4.setTimeout(0);
|
|
240542
238453
|
const Z4 = fromRawHeaders(E6.rawHeaders);
|
|
240543
238454
|
if (isRedirect(E6.statusCode)) {
|
|
240544
|
-
const $
|
|
238455
|
+
const $4 = Z4.get("Location");
|
|
240545
238456
|
let N6 = null;
|
|
240546
238457
|
try {
|
|
240547
|
-
N6 = $
|
|
238458
|
+
N6 = $4 === null ? null : new URL($4, b4.url);
|
|
240548
238459
|
} catch {
|
|
240549
238460
|
if (b4.redirect !== "manual") {
|
|
240550
|
-
y4(new FetchError(`uri requested responds with an invalid redirect URL: ${$
|
|
238461
|
+
y4(new FetchError(`uri requested responds with an invalid redirect URL: ${$4}`, "invalid-redirect")), D3();
|
|
240551
238462
|
return;
|
|
240552
238463
|
}
|
|
240553
238464
|
}
|
|
@@ -240584,8 +238495,8 @@ Content-Type: ${R5.type || "application/octet-stream"}\r
|
|
|
240584
238495
|
F3 && E6.once("end", () => {
|
|
240585
238496
|
F3.removeEventListener("abort", W4);
|
|
240586
238497
|
});
|
|
240587
|
-
let M5 = Stream3.pipeline(E6, new Stream3.PassThrough, ($
|
|
240588
|
-
$
|
|
238498
|
+
let M5 = Stream3.pipeline(E6, new Stream3.PassThrough, ($4) => {
|
|
238499
|
+
$4 && y4($4);
|
|
240589
238500
|
});
|
|
240590
238501
|
process.version < "v12.10" && E6.on("aborted", W4);
|
|
240591
238502
|
const U4 = { url: b4.url, status: E6.statusCode, statusText: E6.statusMessage, headers: Z4, size: b4.size, counter: b4.counter, highWaterMark: b4.highWaterMark }, K4 = Z4.get("Content-Encoding");
|
|
@@ -240595,29 +238506,29 @@ Content-Type: ${R5.type || "application/octet-stream"}\r
|
|
|
240595
238506
|
}
|
|
240596
238507
|
const se4 = { flush: zlib__default.Z_SYNC_FLUSH, finishFlush: zlib__default.Z_SYNC_FLUSH };
|
|
240597
238508
|
if (K4 === "gzip" || K4 === "x-gzip") {
|
|
240598
|
-
M5 = Stream3.pipeline(M5, zlib__default.createGunzip(se4), ($
|
|
240599
|
-
$
|
|
238509
|
+
M5 = Stream3.pipeline(M5, zlib__default.createGunzip(se4), ($4) => {
|
|
238510
|
+
$4 && y4($4);
|
|
240600
238511
|
}), B4 = new Response(M5, U4), d6(B4);
|
|
240601
238512
|
return;
|
|
240602
238513
|
}
|
|
240603
238514
|
if (K4 === "deflate" || K4 === "x-deflate") {
|
|
240604
|
-
const $
|
|
238515
|
+
const $4 = Stream3.pipeline(E6, new Stream3.PassThrough, (N6) => {
|
|
240605
238516
|
N6 && y4(N6);
|
|
240606
238517
|
});
|
|
240607
|
-
$
|
|
238518
|
+
$4.once("data", (N6) => {
|
|
240608
238519
|
(N6[0] & 15) === 8 ? M5 = Stream3.pipeline(M5, zlib__default.createInflate(), (V5) => {
|
|
240609
238520
|
V5 && y4(V5);
|
|
240610
238521
|
}) : M5 = Stream3.pipeline(M5, zlib__default.createInflateRaw(), (V5) => {
|
|
240611
238522
|
V5 && y4(V5);
|
|
240612
238523
|
}), B4 = new Response(M5, U4), d6(B4);
|
|
240613
|
-
}), $
|
|
238524
|
+
}), $4.once("end", () => {
|
|
240614
238525
|
B4 || (B4 = new Response(M5, U4), d6(B4));
|
|
240615
238526
|
});
|
|
240616
238527
|
return;
|
|
240617
238528
|
}
|
|
240618
238529
|
if (K4 === "br") {
|
|
240619
|
-
M5 = Stream3.pipeline(M5, zlib__default.createBrotliDecompress(), ($
|
|
240620
|
-
$
|
|
238530
|
+
M5 = Stream3.pipeline(M5, zlib__default.createBrotliDecompress(), ($4) => {
|
|
238531
|
+
$4 && y4($4);
|
|
240621
238532
|
}), B4 = new Response(M5, U4), d6(B4);
|
|
240622
238533
|
return;
|
|
240623
238534
|
}
|
|
@@ -241664,10 +239575,10 @@ var require_proxy = __commonJS((exports) => {
|
|
|
241664
239575
|
return L4 && typeof L4 == "object" && typeof L4.append == "function" && typeof L4.delete == "function" && typeof L4.get == "function" && typeof L4.getAll == "function" && typeof L4.has == "function" && typeof L4.set == "function" && L4[Symbol.toStringTag] === "FormData";
|
|
241665
239576
|
}
|
|
241666
239577
|
e10(nA, "isFormDataLike");
|
|
241667
|
-
function $
|
|
239578
|
+
function $4(L4, AA) {
|
|
241668
239579
|
return "addEventListener" in L4 ? (L4.addEventListener("abort", AA, { once: true }), () => L4.removeEventListener("abort", AA)) : (L4.addListener("abort", AA), () => L4.removeListener("abort", AA));
|
|
241669
239580
|
}
|
|
241670
|
-
e10($
|
|
239581
|
+
e10($4, "addAbortListener");
|
|
241671
239582
|
const sA = typeof String.prototype.toWellFormed == "function", BA = typeof String.prototype.isWellFormed == "function";
|
|
241672
239583
|
function dA(L4) {
|
|
241673
239584
|
return sA ? `${L4}`.toWellFormed() : u6.toUSVString(L4);
|
|
@@ -241744,7 +239655,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
241744
239655
|
const ZA = Object.create(null);
|
|
241745
239656
|
ZA.enumerable = true;
|
|
241746
239657
|
const PA = { delete: "DELETE", DELETE: "DELETE", get: "GET", GET: "GET", head: "HEAD", HEAD: "HEAD", options: "OPTIONS", OPTIONS: "OPTIONS", post: "POST", POST: "POST", put: "PUT", PUT: "PUT" }, oA = { ...PA, patch: "patch", PATCH: "PATCH" };
|
|
241747
|
-
return Object.setPrototypeOf(PA, null), Object.setPrototypeOf(oA, null), util$7 = { kEnumerableProperty: ZA, nop: J4, isDisturbed: UA, isErrored: QA, isReadable: eA, toUSVString: dA, isUSVString: CA, isBlobLike: H4, parseOrigin: F3, parseURL: i6, getServerName: D3, isStream: V5, isIterable: q5, isAsyncIterable: W4, isDestroyed: P4, headerNameToString: fA, bufferToLowerCasedHeaderName: uA, addListener: GA, removeAllListeners: NA, errorRequest: KA, parseRawHeaders: RA, parseHeaders: pA, parseKeepAliveTimeout: EA, destroy: Z4, bodyLength: O6, deepClone: S4, ReadableStreamFrom: YA, isBuffer: DA, validateHandler: TA, getSocketInfo: lA, isFormDataLike: nA, buildURL: h7, addAbortListener: $
|
|
239658
|
+
return Object.setPrototypeOf(PA, null), Object.setPrototypeOf(oA, null), util$7 = { kEnumerableProperty: ZA, nop: J4, isDisturbed: UA, isErrored: QA, isReadable: eA, toUSVString: dA, isUSVString: CA, isBlobLike: H4, parseOrigin: F3, parseURL: i6, getServerName: D3, isStream: V5, isIterable: q5, isAsyncIterable: W4, isDestroyed: P4, headerNameToString: fA, bufferToLowerCasedHeaderName: uA, addListener: GA, removeAllListeners: NA, errorRequest: KA, parseRawHeaders: RA, parseHeaders: pA, parseKeepAliveTimeout: EA, destroy: Z4, bodyLength: O6, deepClone: S4, ReadableStreamFrom: YA, isBuffer: DA, validateHandler: TA, getSocketInfo: lA, isFormDataLike: nA, buildURL: h7, addAbortListener: $4, isValidHTTPToken: xA, isValidHeaderValue: WA, isTokenCharCode: mA, parseRangeHeader: LA, normalizedMethodRecordsBase: PA, normalizedMethodRecords: oA, isValidPort: I5, isHttpOrHttpsPrefixed: k5, nodeMajor: d6, nodeMinor: N6, safeHTTPMethods: ["GET", "HEAD", "OPTIONS", "TRACE"], wrapRequestBody: Y4 }, util$7;
|
|
241748
239659
|
}
|
|
241749
239660
|
e10(requireUtil$7, "requireUtil$7");
|
|
241750
239661
|
var diagnostics;
|
|
@@ -243078,7 +240989,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
243078
240989
|
const T4 = YA(j3);
|
|
243079
240990
|
if (T4 === "no metadata" || T4.length === 0)
|
|
243080
240991
|
return true;
|
|
243081
|
-
const X4 = nA(T4), K4 = $
|
|
240992
|
+
const X4 = nA(T4), K4 = $4(T4, X4);
|
|
243082
240993
|
for (const _5 of K4) {
|
|
243083
240994
|
const { algo: gA, hash: tA } = _5;
|
|
243084
240995
|
let hA = J4.createHash(gA).update(G4).digest("base64");
|
|
@@ -243121,7 +241032,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
243121
241032
|
return j3;
|
|
243122
241033
|
}
|
|
243123
241034
|
e10(nA, "getStrongestMetadata");
|
|
243124
|
-
function $
|
|
241035
|
+
function $4(G4, j3) {
|
|
243125
241036
|
if (G4.length === 1)
|
|
243126
241037
|
return G4;
|
|
243127
241038
|
let T4 = 0;
|
|
@@ -243129,7 +241040,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
243129
241040
|
G4[X4].algo === j3 && (G4[T4++] = G4[X4]);
|
|
243130
241041
|
return G4.length = T4, G4;
|
|
243131
241042
|
}
|
|
243132
|
-
e10($
|
|
241043
|
+
e10($4, "filterMetadataListByAlgorithm");
|
|
243133
241044
|
function sA(G4, j3) {
|
|
243134
241045
|
if (G4.length !== j3.length)
|
|
243135
241046
|
return false;
|
|
@@ -243747,8 +241658,8 @@ Content-Type: ${BA.type || "application/octet-stream"}\r
|
|
|
243747
241658
|
`);
|
|
243748
241659
|
lA.push(dA, BA, YA), typeof BA.size == "number" ? pA += dA.byteLength + BA.size + YA.byteLength : nA = true;
|
|
243749
241660
|
}
|
|
243750
|
-
const $
|
|
243751
|
-
lA.push($
|
|
241661
|
+
const $4 = V5.encode(`--${TA}--`);
|
|
241662
|
+
lA.push($4), pA += $4.byteLength, nA && (pA = null), uA = Z4, fA = e10(async function* () {
|
|
243752
241663
|
for (const sA of lA)
|
|
243753
241664
|
sA.stream ? yield* sA.stream() : yield sA;
|
|
243754
241665
|
}, "action"), RA = `multipart/form-data; boundary=${TA}`;
|
|
@@ -243875,7 +241786,7 @@ Content-Type: ${BA.type || "application/octet-stream"}\r
|
|
|
243875
241786
|
if (hasRequiredClientH1)
|
|
243876
241787
|
return clientH1;
|
|
243877
241788
|
hasRequiredClientH1 = 1;
|
|
243878
|
-
const A5 = require$$0__default, p6 = requireUtil$7(), { channels: c3 } = requireDiagnostics(), E6 = requireTimers(), { RequestContentLengthMismatchError: t8, ResponseContentLengthMismatchError: B4, RequestAbortedError: f6, HeadersTimeoutError: l3, HeadersOverflowError: Q4, SocketError: u6, InformationalError: n6, BodyTimeoutError: r6, HTTPParserError: o8, ResponseExceededMaxSizeError: a7 } = requireErrors(), { kUrl: g6, kReset: d6, kClient: N6, kParser: M5, kBlocking: Y4, kRunning: J4, kPending: V5, kSize: H4, kWriting: h7, kQueue: I5, kNoRef: k5, kKeepAliveDefaultTimeout: i6, kHostHeader: F3, kPendingIdx: m6, kRunningIdx: D3, kError: S4, kPipelining: W4, kSocket: q5, kKeepAliveTimeoutValue: O6, kMaxHeadersSize: P4, kKeepAliveMaxTimeout: Z4, kKeepAliveTimeoutThreshold: cA, kHeadersTimeout: EA, kBodyTimeout: fA, kStrictContentLength: uA, kMaxRequests: pA, kCounter: RA, kMaxResponseSize: DA, kOnError: TA, kResume: UA, kHTTPContext: QA } = requireSymbols$4(), eA = requireConstants$3(), lA = Buffer.alloc(0), YA = Buffer[Symbol.species], nA = p6.addListener, $
|
|
241789
|
+
const A5 = require$$0__default, p6 = requireUtil$7(), { channels: c3 } = requireDiagnostics(), E6 = requireTimers(), { RequestContentLengthMismatchError: t8, ResponseContentLengthMismatchError: B4, RequestAbortedError: f6, HeadersTimeoutError: l3, HeadersOverflowError: Q4, SocketError: u6, InformationalError: n6, BodyTimeoutError: r6, HTTPParserError: o8, ResponseExceededMaxSizeError: a7 } = requireErrors(), { kUrl: g6, kReset: d6, kClient: N6, kParser: M5, kBlocking: Y4, kRunning: J4, kPending: V5, kSize: H4, kWriting: h7, kQueue: I5, kNoRef: k5, kKeepAliveDefaultTimeout: i6, kHostHeader: F3, kPendingIdx: m6, kRunningIdx: D3, kError: S4, kPipelining: W4, kSocket: q5, kKeepAliveTimeoutValue: O6, kMaxHeadersSize: P4, kKeepAliveMaxTimeout: Z4, kKeepAliveTimeoutThreshold: cA, kHeadersTimeout: EA, kBodyTimeout: fA, kStrictContentLength: uA, kMaxRequests: pA, kCounter: RA, kMaxResponseSize: DA, kOnError: TA, kResume: UA, kHTTPContext: QA } = requireSymbols$4(), eA = requireConstants$3(), lA = Buffer.alloc(0), YA = Buffer[Symbol.species], nA = p6.addListener, $4 = p6.removeAllListeners;
|
|
243879
241790
|
let sA;
|
|
243880
241791
|
async function BA() {
|
|
243881
241792
|
const kA = process.env.JEST_WORKER_ID ? requireLlhttpWasm() : undefined;
|
|
@@ -243998,7 +241909,7 @@ Content-Type: ${BA.type || "application/octet-stream"}\r
|
|
|
243998
241909
|
const { upgrade: iA, client: rA, socket: aA, headers: yA, statusCode: SA } = this;
|
|
243999
241910
|
A5(iA), A5(rA[q5] === aA), A5(!aA.destroyed), A5(!this.paused), A5((yA.length & 1) === 0);
|
|
244000
241911
|
const vA = rA[I5][rA[D3]];
|
|
244001
|
-
A5(vA), A5(vA.upgrade || vA.method === "CONNECT"), this.statusCode = null, this.statusText = "", this.shouldKeepAlive = null, this.headers = [], this.headersSize = 0, aA.unshift(z5), aA[M5].destroy(), aA[M5] = null, aA[N6] = null, aA[S4] = null, $
|
|
241912
|
+
A5(vA), A5(vA.upgrade || vA.method === "CONNECT"), this.statusCode = null, this.statusText = "", this.shouldKeepAlive = null, this.headers = [], this.headersSize = 0, aA.unshift(z5), aA[M5].destroy(), aA[M5] = null, aA[N6] = null, aA[S4] = null, $4(aA), rA[q5] = null, rA[QA] = null, rA[I5][rA[D3]++] = null, rA.emit("disconnect", rA[g6], [rA], new n6("upgrade"));
|
|
244002
241913
|
try {
|
|
244003
241914
|
vA.onUpgrade(SA, yA, aA);
|
|
244004
241915
|
} catch (G4) {
|
|
@@ -244354,20 +242265,20 @@ ${j3.toString(16)}\r
|
|
|
244354
242265
|
}
|
|
244355
242266
|
const { constants: { HTTP2_HEADER_AUTHORITY: D3, HTTP2_HEADER_METHOD: S4, HTTP2_HEADER_PATH: W4, HTTP2_HEADER_SCHEME: q5, HTTP2_HEADER_CONTENT_LENGTH: O6, HTTP2_HEADER_EXPECT: P4, HTTP2_HEADER_STATUS: Z4 } } = m6;
|
|
244356
242267
|
function cA(nA) {
|
|
244357
|
-
const $
|
|
242268
|
+
const $4 = [];
|
|
244358
242269
|
for (const [sA, BA] of Object.entries(nA))
|
|
244359
242270
|
if (Array.isArray(BA))
|
|
244360
242271
|
for (const dA of BA)
|
|
244361
|
-
$
|
|
242272
|
+
$4.push(Buffer.from(sA), Buffer.from(dA));
|
|
244362
242273
|
else
|
|
244363
|
-
$
|
|
244364
|
-
return $
|
|
242274
|
+
$4.push(Buffer.from(sA), Buffer.from(BA));
|
|
242275
|
+
return $4;
|
|
244365
242276
|
}
|
|
244366
242277
|
e10(cA, "parseH2Headers");
|
|
244367
|
-
async function EA(nA, $
|
|
244368
|
-
nA[N6] = $
|
|
244369
|
-
const sA = m6.connect(nA[l3], { createConnection: e10(() => $
|
|
244370
|
-
sA[k5] = 0, sA[u6] = nA, sA[N6] = $
|
|
242278
|
+
async function EA(nA, $4) {
|
|
242279
|
+
nA[N6] = $4, F3 || (F3 = true, process.emitWarning("H2 support is experimental, expect them to change at any time.", { code: "UNDICI-H2" }));
|
|
242280
|
+
const sA = m6.connect(nA[l3], { createConnection: e10(() => $4, "createConnection"), peerMaxConcurrentStreams: nA[J4] });
|
|
242281
|
+
sA[k5] = 0, sA[u6] = nA, sA[N6] = $4, c3.addListener(sA, "error", uA), c3.addListener(sA, "frameError", pA), c3.addListener(sA, "end", RA), c3.addListener(sA, "goaway", DA), c3.addListener(sA, "close", function() {
|
|
244371
242282
|
const { [u6]: dA } = this, { [N6]: CA } = dA, mA = this[N6][d6] || this[d6] || new B4("closed", c3.getSocketInfo(CA));
|
|
244372
242283
|
if (dA[V5] = null, dA.destroyed) {
|
|
244373
242284
|
A5(dA[r6] === 0);
|
|
@@ -244377,42 +242288,42 @@ ${j3.toString(16)}\r
|
|
|
244377
242288
|
c3.errorRequest(dA, WA, mA);
|
|
244378
242289
|
}
|
|
244379
242290
|
}
|
|
244380
|
-
}), sA.unref(), nA[V5] = sA, $
|
|
242291
|
+
}), sA.unref(), nA[V5] = sA, $4[V5] = sA, c3.addListener($4, "error", function(dA) {
|
|
244381
242292
|
A5(dA.code !== "ERR_TLS_CERT_ALTNAME_INVALID"), this[d6] = dA, this[u6][Y4](dA);
|
|
244382
|
-
}), c3.addListener($
|
|
242293
|
+
}), c3.addListener($4, "end", function() {
|
|
244383
242294
|
c3.destroy(this, new B4("other side closed", c3.getSocketInfo(this)));
|
|
244384
|
-
}), c3.addListener($
|
|
242295
|
+
}), c3.addListener($4, "close", function() {
|
|
244385
242296
|
const dA = this[d6] || new B4("closed", c3.getSocketInfo(this));
|
|
244386
242297
|
nA[N6] = null, this[V5] != null && this[V5].destroy(dA), nA[a7] = nA[g6], A5(nA[n6] === 0), nA.emit("disconnect", nA[l3], [nA], dA), nA[H4]();
|
|
244387
242298
|
});
|
|
244388
242299
|
let BA = false;
|
|
244389
|
-
return $
|
|
242300
|
+
return $4.on("close", () => {
|
|
244390
242301
|
BA = true;
|
|
244391
242302
|
}), { version: "h2", defaultPipelining: 1 / 0, write(...dA) {
|
|
244392
242303
|
return UA(nA, ...dA);
|
|
244393
242304
|
}, resume() {
|
|
244394
242305
|
fA(nA);
|
|
244395
242306
|
}, destroy(dA, CA) {
|
|
244396
|
-
BA ? queueMicrotask(CA) : $
|
|
242307
|
+
BA ? queueMicrotask(CA) : $4.destroy(dA).on("close", CA);
|
|
244397
242308
|
}, get destroyed() {
|
|
244398
|
-
return $
|
|
242309
|
+
return $4.destroyed;
|
|
244399
242310
|
}, busy() {
|
|
244400
242311
|
return false;
|
|
244401
242312
|
} };
|
|
244402
242313
|
}
|
|
244403
242314
|
e10(EA, "connectH2");
|
|
244404
242315
|
function fA(nA) {
|
|
244405
|
-
const $
|
|
244406
|
-
$
|
|
242316
|
+
const $4 = nA[N6];
|
|
242317
|
+
$4?.destroyed === false && (nA[h7] === 0 && nA[J4] === 0 ? ($4.unref(), nA[V5].unref()) : ($4.ref(), nA[V5].ref()));
|
|
244407
242318
|
}
|
|
244408
242319
|
e10(fA, "resumeH2");
|
|
244409
242320
|
function uA(nA) {
|
|
244410
242321
|
A5(nA.code !== "ERR_TLS_CERT_ALTNAME_INVALID"), this[N6][d6] = nA, this[u6][Y4](nA);
|
|
244411
242322
|
}
|
|
244412
242323
|
e10(uA, "onHttp2SessionError");
|
|
244413
|
-
function pA(nA, $
|
|
242324
|
+
function pA(nA, $4, sA) {
|
|
244414
242325
|
if (sA === 0) {
|
|
244415
|
-
const BA = new f6(`HTTP/2: "frameError" received - type ${nA}, code ${$
|
|
242326
|
+
const BA = new f6(`HTTP/2: "frameError" received - type ${nA}, code ${$4}`);
|
|
244416
242327
|
this[N6][d6] = BA, this[u6][Y4](BA);
|
|
244417
242328
|
}
|
|
244418
242329
|
}
|
|
@@ -244423,23 +242334,23 @@ ${j3.toString(16)}\r
|
|
|
244423
242334
|
}
|
|
244424
242335
|
e10(RA, "onHttp2SessionEnd");
|
|
244425
242336
|
function DA(nA) {
|
|
244426
|
-
const $
|
|
244427
|
-
if (sA[N6] = null, sA[I5] = null, this[V5] != null && (this[V5].destroy($
|
|
242337
|
+
const $4 = this[d6] || new B4(`HTTP/2: "GOAWAY" frame received with code ${nA}`, c3.getSocketInfo(this)), sA = this[u6];
|
|
242338
|
+
if (sA[N6] = null, sA[I5] = null, this[V5] != null && (this[V5].destroy($4), this[V5] = null), c3.destroy(this[N6], $4), sA[g6] < sA[o8].length) {
|
|
244428
242339
|
const BA = sA[o8][sA[g6]];
|
|
244429
|
-
sA[o8][sA[g6]++] = null, c3.errorRequest(sA, BA, $
|
|
242340
|
+
sA[o8][sA[g6]++] = null, c3.errorRequest(sA, BA, $4), sA[a7] = sA[g6];
|
|
244430
242341
|
}
|
|
244431
|
-
A5(sA[n6] === 0), sA.emit("disconnect", sA[l3], [sA], $
|
|
242342
|
+
A5(sA[n6] === 0), sA.emit("disconnect", sA[l3], [sA], $4), sA[H4]();
|
|
244432
242343
|
}
|
|
244433
242344
|
e10(DA, "onHTTP2GoAway");
|
|
244434
242345
|
function TA(nA) {
|
|
244435
242346
|
return nA !== "GET" && nA !== "HEAD" && nA !== "OPTIONS" && nA !== "TRACE" && nA !== "CONNECT";
|
|
244436
242347
|
}
|
|
244437
242348
|
e10(TA, "shouldSendContentLength");
|
|
244438
|
-
function UA(nA, $
|
|
244439
|
-
const sA = nA[V5], { method: BA, path: dA, host: CA, upgrade: mA, expectContinue: xA, signal: bA, headers: WA } = $
|
|
244440
|
-
let { body: LA } = $
|
|
242349
|
+
function UA(nA, $4) {
|
|
242350
|
+
const sA = nA[V5], { method: BA, path: dA, host: CA, upgrade: mA, expectContinue: xA, signal: bA, headers: WA } = $4;
|
|
242351
|
+
let { body: LA } = $4;
|
|
244441
242352
|
if (mA)
|
|
244442
|
-
return c3.errorRequest(nA, $
|
|
242353
|
+
return c3.errorRequest(nA, $4, new Error("Upgrade not supported for H2")), false;
|
|
244443
242354
|
const GA = {};
|
|
244444
242355
|
for (let wA = 0;wA < WA.length; wA += 2) {
|
|
244445
242356
|
const FA = WA[wA + 0], MA = WA[wA + 1];
|
|
@@ -244453,18 +242364,18 @@ ${j3.toString(16)}\r
|
|
|
244453
242364
|
const { hostname: KA, port: ZA } = nA[l3];
|
|
244454
242365
|
GA[D3] = CA || `${KA}${ZA ? `:${ZA}` : ""}`, GA[S4] = BA;
|
|
244455
242366
|
const PA = e10((wA) => {
|
|
244456
|
-
$
|
|
242367
|
+
$4.aborted || $4.completed || (wA = wA || new t8, c3.errorRequest(nA, $4, wA), NA != null && c3.destroy(NA, wA), c3.destroy(LA, wA), nA[o8][nA[g6]++] = null, nA[H4]());
|
|
244457
242368
|
}, "abort");
|
|
244458
242369
|
try {
|
|
244459
|
-
$
|
|
242370
|
+
$4.onConnect(PA);
|
|
244460
242371
|
} catch (wA) {
|
|
244461
|
-
c3.errorRequest(nA, $
|
|
242372
|
+
c3.errorRequest(nA, $4, wA);
|
|
244462
242373
|
}
|
|
244463
|
-
if ($
|
|
242374
|
+
if ($4.aborted)
|
|
244464
242375
|
return false;
|
|
244465
242376
|
if (BA === "CONNECT")
|
|
244466
|
-
return sA.ref(), NA = sA.request(GA, { endStream: false, signal: bA }), NA.id && !NA.pending ? ($
|
|
244467
|
-
$
|
|
242377
|
+
return sA.ref(), NA = sA.request(GA, { endStream: false, signal: bA }), NA.id && !NA.pending ? ($4.onUpgrade(null, null, NA), ++sA[k5], nA[o8][nA[g6]++] = null) : NA.once("ready", () => {
|
|
242378
|
+
$4.onUpgrade(null, null, NA), ++sA[k5], nA[o8][nA[g6]++] = null;
|
|
244468
242379
|
}), NA.once("close", () => {
|
|
244469
242380
|
sA[k5] -= 1, sA[k5] === 0 && sA.unref();
|
|
244470
242381
|
}), true;
|
|
@@ -244477,25 +242388,25 @@ ${j3.toString(16)}\r
|
|
|
244477
242388
|
const [wA, FA] = i6(LA);
|
|
244478
242389
|
GA["content-type"] = FA, LA = wA.stream, L4 = wA.length;
|
|
244479
242390
|
}
|
|
244480
|
-
if (L4 == null && (L4 = $
|
|
242391
|
+
if (L4 == null && (L4 = $4.contentLength), (L4 === 0 || !oA) && (L4 = null), TA(BA) && L4 > 0 && $4.contentLength != null && $4.contentLength !== L4) {
|
|
244481
242392
|
if (nA[M5])
|
|
244482
|
-
return c3.errorRequest(nA, $
|
|
242393
|
+
return c3.errorRequest(nA, $4, new E6), false;
|
|
244483
242394
|
process.emitWarning(new E6);
|
|
244484
242395
|
}
|
|
244485
242396
|
L4 != null && (A5(LA, "no body must not have content length"), GA[O6] = `${L4}`), sA.ref();
|
|
244486
242397
|
const AA = BA === "GET" || BA === "HEAD" || LA === null;
|
|
244487
242398
|
return xA ? (GA[P4] = "100-continue", NA = sA.request(GA, { endStream: AA, signal: bA }), NA.once("continue", IA)) : (NA = sA.request(GA, { endStream: AA, signal: bA }), IA()), ++sA[k5], NA.once("response", (wA) => {
|
|
244488
242399
|
const { [Z4]: FA, ...MA } = wA;
|
|
244489
|
-
if ($
|
|
242400
|
+
if ($4.onResponseStarted(), $4.aborted) {
|
|
244490
242401
|
const OA = new t8;
|
|
244491
|
-
c3.errorRequest(nA, $
|
|
242402
|
+
c3.errorRequest(nA, $4, OA), c3.destroy(NA, OA);
|
|
244492
242403
|
return;
|
|
244493
242404
|
}
|
|
244494
|
-
$
|
|
244495
|
-
$
|
|
242405
|
+
$4.onHeaders(Number(FA), cA(MA), NA.resume.bind(NA), "") === false && NA.pause(), NA.on("data", (OA) => {
|
|
242406
|
+
$4.onData(OA) === false && NA.pause();
|
|
244496
242407
|
});
|
|
244497
242408
|
}), NA.once("end", () => {
|
|
244498
|
-
(NA.state?.state == null || NA.state.state < 6) && $
|
|
242409
|
+
(NA.state?.state == null || NA.state.state < 6) && $4.onComplete([]), sA[k5] === 0 && sA.unref(), PA(new f6("HTTP/2: stream half-closed (remote)")), nA[o8][nA[g6]++] = null, nA[a7] = nA[g6], nA[H4]();
|
|
244499
242410
|
}), NA.once("close", () => {
|
|
244500
242411
|
sA[k5] -= 1, sA[k5] === 0 && sA.unref();
|
|
244501
242412
|
}), NA.once("error", function(wA) {
|
|
@@ -244504,23 +242415,23 @@ ${j3.toString(16)}\r
|
|
|
244504
242415
|
PA(new f6(`HTTP/2: "frameError" received - type ${wA}, code ${FA}`));
|
|
244505
242416
|
}), true;
|
|
244506
242417
|
function IA() {
|
|
244507
|
-
!LA || L4 === 0 ? QA(PA, NA, null, nA, $
|
|
242418
|
+
!LA || L4 === 0 ? QA(PA, NA, null, nA, $4, nA[N6], L4, oA) : c3.isBuffer(LA) ? QA(PA, NA, LA, nA, $4, nA[N6], L4, oA) : c3.isBlobLike(LA) ? typeof LA.stream == "function" ? YA(PA, NA, LA.stream(), nA, $4, nA[N6], L4, oA) : lA(PA, NA, LA, nA, $4, nA[N6], L4, oA) : c3.isStream(LA) ? eA(PA, nA[N6], oA, NA, LA, nA, $4, L4) : c3.isIterable(LA) ? YA(PA, NA, LA, nA, $4, nA[N6], L4, oA) : A5(false);
|
|
244508
242419
|
}
|
|
244509
242420
|
e10(IA, "writeBodyH2");
|
|
244510
242421
|
}
|
|
244511
242422
|
e10(UA, "writeH2");
|
|
244512
|
-
function QA(nA, $
|
|
242423
|
+
function QA(nA, $4, sA, BA, dA, CA, mA, xA) {
|
|
244513
242424
|
try {
|
|
244514
|
-
sA != null && c3.isBuffer(sA) && (A5(mA === sA.byteLength, "buffer body must have content length"), $
|
|
242425
|
+
sA != null && c3.isBuffer(sA) && (A5(mA === sA.byteLength, "buffer body must have content length"), $4.cork(), $4.write(sA), $4.uncork(), $4.end(), dA.onBodySent(sA)), xA || (CA[Q4] = true), dA.onRequestSent(), BA[H4]();
|
|
244515
242426
|
} catch (bA) {
|
|
244516
242427
|
nA(bA);
|
|
244517
242428
|
}
|
|
244518
242429
|
}
|
|
244519
242430
|
e10(QA, "writeBuffer");
|
|
244520
|
-
function eA(nA, $
|
|
242431
|
+
function eA(nA, $4, sA, BA, dA, CA, mA, xA) {
|
|
244521
242432
|
A5(xA !== 0 || CA[n6] === 0, "stream body cannot be pipelined");
|
|
244522
242433
|
const bA = p6(dA, BA, (LA) => {
|
|
244523
|
-
LA ? (c3.destroy(bA, LA), nA(LA)) : (c3.removeAllListeners(bA), mA.onRequestSent(), sA || ($
|
|
242434
|
+
LA ? (c3.destroy(bA, LA), nA(LA)) : (c3.removeAllListeners(bA), mA.onRequestSent(), sA || ($4[Q4] = true), CA[H4]());
|
|
244524
242435
|
});
|
|
244525
242436
|
c3.addListener(bA, "data", WA);
|
|
244526
242437
|
function WA(LA) {
|
|
@@ -244529,19 +242440,19 @@ ${j3.toString(16)}\r
|
|
|
244529
242440
|
e10(WA, "onPipeData");
|
|
244530
242441
|
}
|
|
244531
242442
|
e10(eA, "writeStream");
|
|
244532
|
-
async function lA(nA, $
|
|
242443
|
+
async function lA(nA, $4, sA, BA, dA, CA, mA, xA) {
|
|
244533
242444
|
A5(mA === sA.size, "blob body must have content length");
|
|
244534
242445
|
try {
|
|
244535
242446
|
if (mA != null && mA !== sA.size)
|
|
244536
242447
|
throw new E6;
|
|
244537
242448
|
const bA = Buffer.from(await sA.arrayBuffer());
|
|
244538
|
-
$
|
|
242449
|
+
$4.cork(), $4.write(bA), $4.uncork(), $4.end(), dA.onBodySent(bA), dA.onRequestSent(), xA || (CA[Q4] = true), BA[H4]();
|
|
244539
242450
|
} catch (bA) {
|
|
244540
242451
|
nA(bA);
|
|
244541
242452
|
}
|
|
244542
242453
|
}
|
|
244543
242454
|
e10(lA, "writeBlob");
|
|
244544
|
-
async function YA(nA, $
|
|
242455
|
+
async function YA(nA, $4, sA, BA, dA, CA, mA, xA) {
|
|
244545
242456
|
A5(mA !== 0 || BA[n6] === 0, "iterator body cannot be pipelined");
|
|
244546
242457
|
let bA = null;
|
|
244547
242458
|
function WA() {
|
|
@@ -244554,19 +242465,19 @@ ${j3.toString(16)}\r
|
|
|
244554
242465
|
const LA = e10(() => new Promise((GA, NA) => {
|
|
244555
242466
|
A5(bA === null), CA[d6] ? NA(CA[d6]) : bA = GA;
|
|
244556
242467
|
}), "waitForDrain");
|
|
244557
|
-
$
|
|
242468
|
+
$4.on("close", WA).on("drain", WA);
|
|
244558
242469
|
try {
|
|
244559
242470
|
for await (const GA of sA) {
|
|
244560
242471
|
if (CA[d6])
|
|
244561
242472
|
throw CA[d6];
|
|
244562
|
-
const NA = $
|
|
242473
|
+
const NA = $4.write(GA);
|
|
244563
242474
|
dA.onBodySent(GA), NA || await LA();
|
|
244564
242475
|
}
|
|
244565
|
-
$
|
|
242476
|
+
$4.end(), dA.onRequestSent(), xA || (CA[Q4] = true), BA[H4]();
|
|
244566
242477
|
} catch (GA) {
|
|
244567
242478
|
nA(GA);
|
|
244568
242479
|
} finally {
|
|
244569
|
-
$
|
|
242480
|
+
$4.off("close", WA).off("drain", WA);
|
|
244570
242481
|
}
|
|
244571
242482
|
}
|
|
244572
242483
|
return e10(YA, "writeIterable"), clientH2 = EA, clientH2;
|
|
@@ -244695,7 +242606,7 @@ ${j3.toString(16)}\r
|
|
|
244695
242606
|
if (hasRequiredClient)
|
|
244696
242607
|
return client;
|
|
244697
242608
|
hasRequiredClient = 1;
|
|
244698
|
-
const A5 = require$$0__default, p6 = require$$0__default$1, c3 = http__default, E6 = requireUtil$7(), { channels: t8 } = requireDiagnostics(), B4 = requireRequest$1(), f6 = requireDispatcherBase(), { InvalidArgumentError: l3, InformationalError: Q4, ClientDestroyedError: u6 } = requireErrors(), n6 = requireConnect(), { kUrl: r6, kServerName: o8, kClient: a7, kBusy: g6, kConnect: d6, kResuming: N6, kRunning: M5, kPending: Y4, kSize: J4, kQueue: V5, kConnected: H4, kConnecting: h7, kNeedDrain: I5, kKeepAliveDefaultTimeout: k5, kHostHeader: i6, kPendingIdx: F3, kRunningIdx: m6, kError: D3, kPipelining: S4, kKeepAliveTimeoutValue: W4, kMaxHeadersSize: q5, kKeepAliveMaxTimeout: O6, kKeepAliveTimeoutThreshold: P4, kHeadersTimeout: Z4, kBodyTimeout: cA, kStrictContentLength: EA, kConnector: fA, kMaxRedirections: uA, kMaxRequests: pA, kCounter: RA, kClose: DA, kDestroy: TA, kDispatch: UA, kInterceptors: QA, kLocalAddress: eA, kMaxResponseSize: lA, kOnError: YA, kHTTPContext: nA, kMaxConcurrentStreams: $
|
|
242609
|
+
const A5 = require$$0__default, p6 = require$$0__default$1, c3 = http__default, E6 = requireUtil$7(), { channels: t8 } = requireDiagnostics(), B4 = requireRequest$1(), f6 = requireDispatcherBase(), { InvalidArgumentError: l3, InformationalError: Q4, ClientDestroyedError: u6 } = requireErrors(), n6 = requireConnect(), { kUrl: r6, kServerName: o8, kClient: a7, kBusy: g6, kConnect: d6, kResuming: N6, kRunning: M5, kPending: Y4, kSize: J4, kQueue: V5, kConnected: H4, kConnecting: h7, kNeedDrain: I5, kKeepAliveDefaultTimeout: k5, kHostHeader: i6, kPendingIdx: F3, kRunningIdx: m6, kError: D3, kPipelining: S4, kKeepAliveTimeoutValue: W4, kMaxHeadersSize: q5, kKeepAliveMaxTimeout: O6, kKeepAliveTimeoutThreshold: P4, kHeadersTimeout: Z4, kBodyTimeout: cA, kStrictContentLength: EA, kConnector: fA, kMaxRedirections: uA, kMaxRequests: pA, kCounter: RA, kClose: DA, kDestroy: TA, kDispatch: UA, kInterceptors: QA, kLocalAddress: eA, kMaxResponseSize: lA, kOnError: YA, kHTTPContext: nA, kMaxConcurrentStreams: $4, kResume: sA } = requireSymbols$4(), BA = requireClientH1(), dA = requireClientH2();
|
|
244699
242610
|
let CA = false;
|
|
244700
242611
|
const mA = Symbol("kClosedResolve"), xA = e10(() => {
|
|
244701
242612
|
}, "noop");
|
|
@@ -244752,7 +242663,7 @@ ${j3.toString(16)}\r
|
|
|
244752
242663
|
if (JA != null && (typeof JA != "number" || JA < 1))
|
|
244753
242664
|
throw new l3("maxConcurrentStreams must be a positive integer, greater than 0");
|
|
244754
242665
|
typeof X4 != "function" && (X4 = n6({ ...vA, maxCachedSessions: j3, allowH2: qA, socketPath: yA, timeout: OA, ...tA ? { autoSelectFamily: tA, autoSelectFamilyAttemptTimeout: hA } : undefined, ...X4 })), AA?.Client && Array.isArray(AA.Client) ? (this[QA] = AA.Client, CA || (CA = true, process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.", { code: "UNDICI-CLIENT-INTERCEPTOR-DEPRECATED" }))) : this[QA] = [LA({ maxRedirections: T4 })], this[r6] = E6.parseOrigin(L4), this[fA] = X4, this[S4] = SA ?? 1, this[q5] = IA || c3.maxHeaderSize, this[k5] = z5 ?? 4000, this[O6] = rA ?? 600000, this[P4] = aA ?? 2000, this[W4] = this[k5], this[o8] = null, this[eA] = _5 ?? null, this[N6] = 0, this[I5] = 0, this[i6] = `host: ${this[r6].hostname}${this[r6].port ? `:${this[r6].port}` : ""}\r
|
|
244755
|
-
`, this[cA] = _A ?? 300000, this[Z4] = wA ?? 300000, this[EA] = G4 ?? true, this[uA] = T4, this[pA] = K4, this[mA] = null, this[lA] = gA > -1 ? gA : -1, this[$
|
|
242666
|
+
`, this[cA] = _A ?? 300000, this[Z4] = wA ?? 300000, this[EA] = G4 ?? true, this[uA] = T4, this[pA] = K4, this[mA] = null, this[lA] = gA > -1 ? gA : -1, this[$4] = JA ?? 100, this[nA] = null, this[V5] = [], this[m6] = 0, this[F3] = 0, this[sA] = (VA) => ZA(this, VA), this[YA] = (VA) => GA(this, VA);
|
|
244756
242667
|
}
|
|
244757
242668
|
get pipelining() {
|
|
244758
242669
|
return this[S4];
|
|
@@ -246429,8 +244340,8 @@ ${j3.toString(16)}\r
|
|
|
246429
244340
|
lA.then((sA) => DA(UA, sA));
|
|
246430
244341
|
return;
|
|
246431
244342
|
}
|
|
246432
|
-
const YA = N6(lA), nA = H4(Z4), $
|
|
246433
|
-
S4.onConnect?.((sA) => S4.onError(sA), null), S4.onHeaders?.(O6, nA, TA, h7(O6)), S4.onData?.(Buffer.from(YA)), S4.onComplete?.($
|
|
244343
|
+
const YA = N6(lA), nA = H4(Z4), $4 = H4(cA);
|
|
244344
|
+
S4.onConnect?.((sA) => S4.onError(sA), null), S4.onHeaders?.(O6, nA, TA, h7(O6)), S4.onData?.(Buffer.from(YA)), S4.onComplete?.($4), J4(UA, W4);
|
|
246434
244345
|
}
|
|
246435
244346
|
e10(DA, "handleReply");
|
|
246436
244347
|
function TA() {
|
|
@@ -247327,8 +245238,8 @@ ${h7.format(I5)}
|
|
|
247327
245238
|
}
|
|
247328
245239
|
static json(eA, lA = {}) {
|
|
247329
245240
|
m6.argumentLengthCheck(arguments, 1, "Response.json"), lA !== null && (lA = m6.converters.ResponseInit(lA));
|
|
247330
|
-
const YA = P4.encode(J4(eA)), nA = f6(YA), $
|
|
247331
|
-
return TA($
|
|
245241
|
+
const YA = P4.encode(J4(eA)), nA = f6(YA), $4 = UA(EA({}), "response");
|
|
245242
|
+
return TA($4, lA, { body: nA[0], type: "application/json" }), $4;
|
|
247332
245243
|
}
|
|
247333
245244
|
static redirect(eA, lA = 302) {
|
|
247334
245245
|
m6.argumentLengthCheck(arguments, 1, "Response.redirect"), eA = m6.converters.USVString(eA), lA = m6.converters["unsigned short"](lA);
|
|
@@ -247342,8 +245253,8 @@ ${h7.format(I5)}
|
|
|
247342
245253
|
throw new RangeError(`Invalid status code ${lA}`);
|
|
247343
245254
|
const nA = UA(EA({}), "immutable");
|
|
247344
245255
|
nA[i6].status = lA;
|
|
247345
|
-
const $
|
|
247346
|
-
return nA[i6].headersList.append("location", $
|
|
245256
|
+
const $4 = H4(S4(YA));
|
|
245257
|
+
return nA[i6].headersList.append("location", $4, true), nA;
|
|
247347
245258
|
}
|
|
247348
245259
|
constructor(eA = null, lA = {}) {
|
|
247349
245260
|
if (m6.util.markAsUncloneable(this), eA === W4)
|
|
@@ -247351,8 +245262,8 @@ ${h7.format(I5)}
|
|
|
247351
245262
|
eA !== null && (eA = m6.converters.BodyInit(eA)), lA = m6.converters.ResponseInit(lA), this[i6] = EA({}), this[F3] = new A5(W4), t8(this[F3], "response"), B4(this[F3], this[i6].headersList);
|
|
247352
245263
|
let YA = null;
|
|
247353
245264
|
if (eA != null) {
|
|
247354
|
-
const [nA, $
|
|
247355
|
-
YA = { body: nA, type: $
|
|
245265
|
+
const [nA, $4] = f6(eA);
|
|
245266
|
+
YA = { body: nA, type: $4 };
|
|
247356
245267
|
}
|
|
247357
245268
|
TA(this, lA, YA);
|
|
247358
245269
|
}
|
|
@@ -247511,13 +245422,13 @@ ${h7.format(I5)}
|
|
|
247511
245422
|
if (hasRequiredRequest)
|
|
247512
245423
|
return request2;
|
|
247513
245424
|
hasRequiredRequest = 1;
|
|
247514
|
-
const { extractBody: A5, mixinBody: p6, cloneBody: c3, bodyUnusable: E6 } = requireBody(), { Headers: t8, fill: B4, HeadersList: f6, setHeadersGuard: l3, getHeadersGuard: Q4, setHeadersList: u6, getHeadersList: n6 } = requireHeaders(), { FinalizationRegistry: r6 } = requireDispatcherWeakref()(), o8 = requireUtil$7(), a7 = require$$0__default$3, { isValidHTTPToken: g6, sameOrigin: d6, environmentSettingsObject: N6 } = requireUtil$6(), { forbiddenMethodsSet: M5, corsSafeListedMethodsSet: Y4, referrerPolicy: J4, requestRedirect: V5, requestMode: H4, requestCredentials: h7, requestCache: I5, requestDuplex: k5 } = requireConstants$2(), { kEnumerableProperty: i6, normalizedMethodRecordsBase: F3, normalizedMethodRecords: m6 } = o8, { kHeaders: D3, kSignal: S4, kState: W4, kDispatcher: q5 } = requireSymbols$3(), { webidl: O6 } = requireWebidl(), { URLSerializer: P4 } = requireDataUrl(), { kConstruct: Z4 } = requireSymbols$4(), cA = require$$0__default, { getMaxListeners: EA, setMaxListeners: fA, getEventListeners: uA, defaultMaxListeners: pA } = require$$8__default, RA = Symbol("abortController"), DA = new r6(({ signal: $
|
|
247515
|
-
$
|
|
245425
|
+
const { extractBody: A5, mixinBody: p6, cloneBody: c3, bodyUnusable: E6 } = requireBody(), { Headers: t8, fill: B4, HeadersList: f6, setHeadersGuard: l3, getHeadersGuard: Q4, setHeadersList: u6, getHeadersList: n6 } = requireHeaders(), { FinalizationRegistry: r6 } = requireDispatcherWeakref()(), o8 = requireUtil$7(), a7 = require$$0__default$3, { isValidHTTPToken: g6, sameOrigin: d6, environmentSettingsObject: N6 } = requireUtil$6(), { forbiddenMethodsSet: M5, corsSafeListedMethodsSet: Y4, referrerPolicy: J4, requestRedirect: V5, requestMode: H4, requestCredentials: h7, requestCache: I5, requestDuplex: k5 } = requireConstants$2(), { kEnumerableProperty: i6, normalizedMethodRecordsBase: F3, normalizedMethodRecords: m6 } = o8, { kHeaders: D3, kSignal: S4, kState: W4, kDispatcher: q5 } = requireSymbols$3(), { webidl: O6 } = requireWebidl(), { URLSerializer: P4 } = requireDataUrl(), { kConstruct: Z4 } = requireSymbols$4(), cA = require$$0__default, { getMaxListeners: EA, setMaxListeners: fA, getEventListeners: uA, defaultMaxListeners: pA } = require$$8__default, RA = Symbol("abortController"), DA = new r6(({ signal: $4, abort: sA }) => {
|
|
245426
|
+
$4.removeEventListener("abort", sA);
|
|
247516
245427
|
}), TA = new WeakMap;
|
|
247517
|
-
function UA($
|
|
245428
|
+
function UA($4) {
|
|
247518
245429
|
return sA;
|
|
247519
245430
|
function sA() {
|
|
247520
|
-
const BA = $
|
|
245431
|
+
const BA = $4.deref();
|
|
247521
245432
|
if (BA !== undefined) {
|
|
247522
245433
|
DA.unregister(sA), this.removeEventListener("abort", sA), BA.abort(this.reason);
|
|
247523
245434
|
const dA = TA.get(BA.signal);
|
|
@@ -247734,22 +245645,22 @@ ${h7.format(I5)}
|
|
|
247734
245645
|
}
|
|
247735
245646
|
}
|
|
247736
245647
|
p6(eA);
|
|
247737
|
-
function lA($
|
|
247738
|
-
return { method: $
|
|
245648
|
+
function lA($4) {
|
|
245649
|
+
return { method: $4.method ?? "GET", localURLsOnly: $4.localURLsOnly ?? false, unsafeRequest: $4.unsafeRequest ?? false, body: $4.body ?? null, client: $4.client ?? null, reservedClient: $4.reservedClient ?? null, replacesClientId: $4.replacesClientId ?? "", window: $4.window ?? "client", keepalive: $4.keepalive ?? false, serviceWorkers: $4.serviceWorkers ?? "all", initiator: $4.initiator ?? "", destination: $4.destination ?? "", priority: $4.priority ?? null, origin: $4.origin ?? "client", policyContainer: $4.policyContainer ?? "client", referrer: $4.referrer ?? "client", referrerPolicy: $4.referrerPolicy ?? "", mode: $4.mode ?? "no-cors", useCORSPreflightFlag: $4.useCORSPreflightFlag ?? false, credentials: $4.credentials ?? "same-origin", useCredentials: $4.useCredentials ?? false, cache: $4.cache ?? "default", redirect: $4.redirect ?? "follow", integrity: $4.integrity ?? "", cryptoGraphicsNonceMetadata: $4.cryptoGraphicsNonceMetadata ?? "", parserMetadata: $4.parserMetadata ?? "", reloadNavigation: $4.reloadNavigation ?? false, historyNavigation: $4.historyNavigation ?? false, userActivation: $4.userActivation ?? false, taintedOrigin: $4.taintedOrigin ?? false, redirectCount: $4.redirectCount ?? 0, responseTainting: $4.responseTainting ?? "basic", preventNoCacheCacheControlHeaderModification: $4.preventNoCacheCacheControlHeaderModification ?? false, done: $4.done ?? false, timingAllowFailed: $4.timingAllowFailed ?? false, urlList: $4.urlList, url: $4.urlList[0], headersList: $4.headersList ? new f6($4.headersList) : new f6 };
|
|
247739
245650
|
}
|
|
247740
245651
|
e10(lA, "makeRequest");
|
|
247741
|
-
function YA($
|
|
247742
|
-
const sA = lA({ ...$
|
|
247743
|
-
return $
|
|
245652
|
+
function YA($4) {
|
|
245653
|
+
const sA = lA({ ...$4, body: null });
|
|
245654
|
+
return $4.body != null && (sA.body = c3(sA, $4.body)), sA;
|
|
247744
245655
|
}
|
|
247745
245656
|
e10(YA, "cloneRequest");
|
|
247746
|
-
function nA($
|
|
245657
|
+
function nA($4, sA, BA) {
|
|
247747
245658
|
const dA = new eA(Z4);
|
|
247748
|
-
return dA[W4] = $
|
|
245659
|
+
return dA[W4] = $4, dA[S4] = sA, dA[D3] = new t8(Z4), u6(dA[D3], $4.headersList), l3(dA[D3], BA), dA;
|
|
247749
245660
|
}
|
|
247750
|
-
return e10(nA, "fromInnerRequest"), Object.defineProperties(eA.prototype, { method: i6, url: i6, headers: i6, redirect: i6, clone: i6, signal: i6, duplex: i6, destination: i6, body: i6, bodyUsed: i6, isHistoryNavigation: i6, isReloadNavigation: i6, keepalive: i6, integrity: i6, cache: i6, credentials: i6, attribute: i6, referrerPolicy: i6, referrer: i6, mode: i6, [Symbol.toStringTag]: { value: "Request", configurable: true } }), O6.converters.Request = O6.interfaceConverter(eA), O6.converters.RequestInfo = function($
|
|
247751
|
-
return typeof $
|
|
247752
|
-
}, O6.converters.AbortSignal = O6.interfaceConverter(AbortSignal), O6.converters.RequestInit = O6.dictionaryConverter([{ key: "method", converter: O6.converters.ByteString }, { key: "headers", converter: O6.converters.HeadersInit }, { key: "body", converter: O6.nullableConverter(O6.converters.BodyInit) }, { key: "referrer", converter: O6.converters.USVString }, { key: "referrerPolicy", converter: O6.converters.DOMString, allowedValues: J4 }, { key: "mode", converter: O6.converters.DOMString, allowedValues: H4 }, { key: "credentials", converter: O6.converters.DOMString, allowedValues: h7 }, { key: "cache", converter: O6.converters.DOMString, allowedValues: I5 }, { key: "redirect", converter: O6.converters.DOMString, allowedValues: V5 }, { key: "integrity", converter: O6.converters.DOMString }, { key: "keepalive", converter: O6.converters.boolean }, { key: "signal", converter: O6.nullableConverter(($
|
|
245661
|
+
return e10(nA, "fromInnerRequest"), Object.defineProperties(eA.prototype, { method: i6, url: i6, headers: i6, redirect: i6, clone: i6, signal: i6, duplex: i6, destination: i6, body: i6, bodyUsed: i6, isHistoryNavigation: i6, isReloadNavigation: i6, keepalive: i6, integrity: i6, cache: i6, credentials: i6, attribute: i6, referrerPolicy: i6, referrer: i6, mode: i6, [Symbol.toStringTag]: { value: "Request", configurable: true } }), O6.converters.Request = O6.interfaceConverter(eA), O6.converters.RequestInfo = function($4, sA, BA) {
|
|
245662
|
+
return typeof $4 == "string" ? O6.converters.USVString($4, sA, BA) : $4 instanceof eA ? O6.converters.Request($4, sA, BA) : O6.converters.USVString($4, sA, BA);
|
|
245663
|
+
}, O6.converters.AbortSignal = O6.interfaceConverter(AbortSignal), O6.converters.RequestInit = O6.dictionaryConverter([{ key: "method", converter: O6.converters.ByteString }, { key: "headers", converter: O6.converters.HeadersInit }, { key: "body", converter: O6.nullableConverter(O6.converters.BodyInit) }, { key: "referrer", converter: O6.converters.USVString }, { key: "referrerPolicy", converter: O6.converters.DOMString, allowedValues: J4 }, { key: "mode", converter: O6.converters.DOMString, allowedValues: H4 }, { key: "credentials", converter: O6.converters.DOMString, allowedValues: h7 }, { key: "cache", converter: O6.converters.DOMString, allowedValues: I5 }, { key: "redirect", converter: O6.converters.DOMString, allowedValues: V5 }, { key: "integrity", converter: O6.converters.DOMString }, { key: "keepalive", converter: O6.converters.boolean }, { key: "signal", converter: O6.nullableConverter(($4) => O6.converters.AbortSignal($4, "RequestInit", "signal", { strict: false })) }, { key: "window", converter: O6.converters.any }, { key: "duplex", converter: O6.converters.DOMString, allowedValues: k5 }, { key: "dispatcher", converter: O6.converters.any }]), request2 = { Request: eA, makeRequest: lA, fromInnerRequest: nA, cloneRequest: YA }, request2;
|
|
247753
245664
|
}
|
|
247754
245665
|
e10(requireRequest, "requireRequest");
|
|
247755
245666
|
var fetch_1;
|
|
@@ -247758,7 +245669,7 @@ ${h7.format(I5)}
|
|
|
247758
245669
|
if (hasRequiredFetch)
|
|
247759
245670
|
return fetch_1;
|
|
247760
245671
|
hasRequiredFetch = 1;
|
|
247761
|
-
const { makeNetworkError: A5, makeAppropriateNetworkError: p6, filterResponse: c3, makeResponse: E6, fromInnerResponse: t8 } = requireResponse(), { HeadersList: B4 } = requireHeaders(), { Request: f6, cloneRequest: l3 } = requireRequest(), Q4 = zlib__default, { bytesMatch: u6, makePolicyContainer: n6, clonePolicyContainer: r6, requestBadPort: o8, TAOCheck: a7, appendRequestOriginHeader: g6, responseLocationURL: d6, requestCurrentURL: N6, setRequestReferrerPolicyOnRedirect: M5, tryUpgradeRequestToAPotentiallyTrustworthyURL: Y4, createOpaqueTimingInfo: J4, appendFetchMetadata: V5, corsCheck: H4, crossOriginResourcePolicyCheck: h7, determineRequestsReferrer: I5, coarsenedSharedCurrentTime: k5, createDeferredPromise: i6, isBlobLike: F3, sameOrigin: m6, isCancelled: D3, isAborted: S4, isErrorLike: W4, fullyReadBody: q5, readableStreamClose: O6, isomorphicEncode: P4, urlIsLocal: Z4, urlIsHttpHttpsScheme: cA, urlHasHttpsScheme: EA, clampAndCoarsenConnectionTimingInfo: fA, simpleRangeHeaderValue: uA, buildContentRange: pA, createInflate: RA, extractMimeType: DA } = requireUtil$6(), { kState: TA, kDispatcher: UA } = requireSymbols$3(), QA = require$$0__default, { safelyExtractBody: eA, extractBody: lA } = requireBody(), { redirectStatusSet: YA, nullBodyStatus: nA, safeMethodsSet: $
|
|
245672
|
+
const { makeNetworkError: A5, makeAppropriateNetworkError: p6, filterResponse: c3, makeResponse: E6, fromInnerResponse: t8 } = requireResponse(), { HeadersList: B4 } = requireHeaders(), { Request: f6, cloneRequest: l3 } = requireRequest(), Q4 = zlib__default, { bytesMatch: u6, makePolicyContainer: n6, clonePolicyContainer: r6, requestBadPort: o8, TAOCheck: a7, appendRequestOriginHeader: g6, responseLocationURL: d6, requestCurrentURL: N6, setRequestReferrerPolicyOnRedirect: M5, tryUpgradeRequestToAPotentiallyTrustworthyURL: Y4, createOpaqueTimingInfo: J4, appendFetchMetadata: V5, corsCheck: H4, crossOriginResourcePolicyCheck: h7, determineRequestsReferrer: I5, coarsenedSharedCurrentTime: k5, createDeferredPromise: i6, isBlobLike: F3, sameOrigin: m6, isCancelled: D3, isAborted: S4, isErrorLike: W4, fullyReadBody: q5, readableStreamClose: O6, isomorphicEncode: P4, urlIsLocal: Z4, urlIsHttpHttpsScheme: cA, urlHasHttpsScheme: EA, clampAndCoarsenConnectionTimingInfo: fA, simpleRangeHeaderValue: uA, buildContentRange: pA, createInflate: RA, extractMimeType: DA } = requireUtil$6(), { kState: TA, kDispatcher: UA } = requireSymbols$3(), QA = require$$0__default, { safelyExtractBody: eA, extractBody: lA } = requireBody(), { redirectStatusSet: YA, nullBodyStatus: nA, safeMethodsSet: $4, requestBodyHeader: sA, subresourceSet: BA } = requireConstants$2(), dA = require$$8__default, { Readable: CA, pipeline: mA, finished: xA } = Stream__default, { addAbortListener: bA, isErrored: WA, isReadable: LA, bufferToLowerCasedHeaderName: GA } = requireUtil$7(), { dataURLProcessor: NA, serializeAMimeType: KA, minimizeSupportedMimeType: ZA } = requireDataUrl(), { getGlobalDispatcher: PA } = requireGlobal(), { webidl: oA } = requireWebidl(), { STATUS_CODES: L4 } = http__default, AA = ["GET", "HEAD"], IA = typeof __UNDICI_IS_NODE__ < "u" || typeof esbuildDetection < "u" ? "node" : "undici";
|
|
247762
245673
|
let wA;
|
|
247763
245674
|
|
|
247764
245675
|
class FA extends dA {
|
|
@@ -248015,7 +245926,7 @@ ${h7.format(I5)}
|
|
|
248015
245926
|
if (tA.cache === "only-if-cached")
|
|
248016
245927
|
return A5("only if cached");
|
|
248017
245928
|
const zA = await j3(gA, JA, K4);
|
|
248018
|
-
!$
|
|
245929
|
+
!$4.has(tA.method) && zA.status >= 200 && zA.status <= 399, hA == null && (hA = zA);
|
|
248019
245930
|
}
|
|
248020
245931
|
if (hA.urlList = [...tA.urlList], tA.headersList.contains("range", true) && (hA.rangeRequested = true), hA.requestIncludesCredentials = JA, hA.status === 407)
|
|
248021
245932
|
return _5.window === "no-window" ? A5() : D3(T4) ? p6(T4) : A5("proxy authentication required");
|
|
@@ -249338,14 +247249,14 @@ ${h7.format(I5)}
|
|
|
249338
247249
|
return A5.converters.MessageEventInit = A5.dictionaryConverter([...Q4, { key: "data", converter: A5.converters.any, defaultValue: e10(() => null, "defaultValue") }, { key: "origin", converter: A5.converters.USVString, defaultValue: e10(() => "", "defaultValue") }, { key: "lastEventId", converter: A5.converters.DOMString, defaultValue: e10(() => "", "defaultValue") }, { key: "source", converter: A5.nullableConverter(A5.converters.MessagePort), defaultValue: e10(() => null, "defaultValue") }, { key: "ports", converter: A5.converters["sequence<MessagePort>"], defaultValue: e10(() => new Array(0), "defaultValue") }]), A5.converters.CloseEventInit = A5.dictionaryConverter([...Q4, { key: "wasClean", converter: A5.converters.boolean, defaultValue: e10(() => false, "defaultValue") }, { key: "code", converter: A5.converters["unsigned short"], defaultValue: e10(() => 0, "defaultValue") }, { key: "reason", converter: A5.converters.USVString, defaultValue: e10(() => "", "defaultValue") }]), A5.converters.ErrorEventInit = A5.dictionaryConverter([...Q4, { key: "message", converter: A5.converters.DOMString, defaultValue: e10(() => "", "defaultValue") }, { key: "filename", converter: A5.converters.USVString, defaultValue: e10(() => "", "defaultValue") }, { key: "lineno", converter: A5.converters["unsigned long"], defaultValue: e10(() => 0, "defaultValue") }, { key: "colno", converter: A5.converters["unsigned long"], defaultValue: e10(() => 0, "defaultValue") }, { key: "error", converter: A5.converters.any }]), events = { MessageEvent: t8, CloseEvent: f6, ErrorEvent: l3, createFastMessageEvent: B4 }, events;
|
|
249339
247250
|
}
|
|
249340
247251
|
e10(requireEvents, "requireEvents");
|
|
249341
|
-
var
|
|
247252
|
+
var constants;
|
|
249342
247253
|
var hasRequiredConstants;
|
|
249343
247254
|
function requireConstants() {
|
|
249344
247255
|
if (hasRequiredConstants)
|
|
249345
|
-
return
|
|
247256
|
+
return constants;
|
|
249346
247257
|
hasRequiredConstants = 1;
|
|
249347
247258
|
const A5 = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", p6 = { enumerable: true, writable: false, configurable: false }, c3 = { CONNECTING: 0, OPEN: 1, CLOSING: 2, CLOSED: 3 }, E6 = { NOT_SENT: 0, PROCESSING: 1, SENT: 2 }, t8 = { CONTINUATION: 0, TEXT: 1, BINARY: 2, CLOSE: 8, PING: 9, PONG: 10 }, B4 = 2 ** 16 - 1, f6 = { INFO: 0, PAYLOADLENGTH_16: 2, PAYLOADLENGTH_64: 3, READ_DATA: 4 }, l3 = Buffer.allocUnsafe(0);
|
|
249348
|
-
return
|
|
247259
|
+
return constants = { uid: A5, sentCloseFrameState: E6, staticPropertyDescriptors: p6, states: c3, opcodes: t8, maxUnsigned16Bit: B4, parserStates: f6, emptyBuffer: l3, sendHints: { string: 1, typedArray: 2, arrayBuffer: 3, blob: 4 } }, constants;
|
|
249349
247260
|
}
|
|
249350
247261
|
e10(requireConstants, "requireConstants");
|
|
249351
247262
|
var symbols;
|
|
@@ -251105,8 +249016,8 @@ ${g6}`;
|
|
|
251105
249016
|
}
|
|
251106
249017
|
e10(requireDist, "requireDist");
|
|
251107
249018
|
var distExports = requireDist();
|
|
251108
|
-
var
|
|
251109
|
-
var s8 = e10((A5, p6) =>
|
|
249019
|
+
var x7 = Object.defineProperty;
|
|
249020
|
+
var s8 = e10((A5, p6) => x7(A5, "name", { value: p6, configurable: true }), "s");
|
|
251110
249021
|
function w5(...A5) {
|
|
251111
249022
|
process.env.DEBUG && console.debug("[node-fetch-native] [proxy]", ...A5);
|
|
251112
249023
|
}
|
|
@@ -251251,13 +249162,13 @@ var require_identity = __commonJS((exports) => {
|
|
|
251251
249162
|
|
|
251252
249163
|
// ../../node_modules/yaml/dist/visit.js
|
|
251253
249164
|
var require_visit = __commonJS((exports) => {
|
|
251254
|
-
var
|
|
249165
|
+
var identity2 = require_identity();
|
|
251255
249166
|
var BREAK = Symbol("break visit");
|
|
251256
249167
|
var SKIP = Symbol("skip children");
|
|
251257
249168
|
var REMOVE = Symbol("remove node");
|
|
251258
249169
|
function visit2(node, visitor) {
|
|
251259
249170
|
const visitor_ = initVisitor(visitor);
|
|
251260
|
-
if (
|
|
249171
|
+
if (identity2.isDocument(node)) {
|
|
251261
249172
|
const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
|
|
251262
249173
|
if (cd === REMOVE)
|
|
251263
249174
|
node.contents = null;
|
|
@@ -251267,17 +249178,17 @@ var require_visit = __commonJS((exports) => {
|
|
|
251267
249178
|
visit2.BREAK = BREAK;
|
|
251268
249179
|
visit2.SKIP = SKIP;
|
|
251269
249180
|
visit2.REMOVE = REMOVE;
|
|
251270
|
-
function visit_(key2, node, visitor,
|
|
251271
|
-
const ctrl = callVisitor(key2, node, visitor,
|
|
251272
|
-
if (
|
|
251273
|
-
replaceNode(key2,
|
|
251274
|
-
return visit_(key2, ctrl, visitor,
|
|
249181
|
+
function visit_(key2, node, visitor, path5) {
|
|
249182
|
+
const ctrl = callVisitor(key2, node, visitor, path5);
|
|
249183
|
+
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
249184
|
+
replaceNode(key2, path5, ctrl);
|
|
249185
|
+
return visit_(key2, ctrl, visitor, path5);
|
|
251275
249186
|
}
|
|
251276
249187
|
if (typeof ctrl !== "symbol") {
|
|
251277
|
-
if (
|
|
251278
|
-
|
|
249188
|
+
if (identity2.isCollection(node)) {
|
|
249189
|
+
path5 = Object.freeze(path5.concat(node));
|
|
251279
249190
|
for (let i6 = 0;i6 < node.items.length; ++i6) {
|
|
251280
|
-
const ci = visit_(i6, node.items[i6], visitor,
|
|
249191
|
+
const ci = visit_(i6, node.items[i6], visitor, path5);
|
|
251281
249192
|
if (typeof ci === "number")
|
|
251282
249193
|
i6 = ci - 1;
|
|
251283
249194
|
else if (ci === BREAK)
|
|
@@ -251287,14 +249198,14 @@ var require_visit = __commonJS((exports) => {
|
|
|
251287
249198
|
i6 -= 1;
|
|
251288
249199
|
}
|
|
251289
249200
|
}
|
|
251290
|
-
} else if (
|
|
251291
|
-
|
|
251292
|
-
const ck = visit_("key", node.key, visitor,
|
|
249201
|
+
} else if (identity2.isPair(node)) {
|
|
249202
|
+
path5 = Object.freeze(path5.concat(node));
|
|
249203
|
+
const ck = visit_("key", node.key, visitor, path5);
|
|
251293
249204
|
if (ck === BREAK)
|
|
251294
249205
|
return BREAK;
|
|
251295
249206
|
else if (ck === REMOVE)
|
|
251296
249207
|
node.key = null;
|
|
251297
|
-
const cv = visit_("value", node.value, visitor,
|
|
249208
|
+
const cv = visit_("value", node.value, visitor, path5);
|
|
251298
249209
|
if (cv === BREAK)
|
|
251299
249210
|
return BREAK;
|
|
251300
249211
|
else if (cv === REMOVE)
|
|
@@ -251305,7 +249216,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
251305
249216
|
}
|
|
251306
249217
|
async function visitAsync(node, visitor) {
|
|
251307
249218
|
const visitor_ = initVisitor(visitor);
|
|
251308
|
-
if (
|
|
249219
|
+
if (identity2.isDocument(node)) {
|
|
251309
249220
|
const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
|
|
251310
249221
|
if (cd === REMOVE)
|
|
251311
249222
|
node.contents = null;
|
|
@@ -251315,17 +249226,17 @@ var require_visit = __commonJS((exports) => {
|
|
|
251315
249226
|
visitAsync.BREAK = BREAK;
|
|
251316
249227
|
visitAsync.SKIP = SKIP;
|
|
251317
249228
|
visitAsync.REMOVE = REMOVE;
|
|
251318
|
-
async function visitAsync_(key2, node, visitor,
|
|
251319
|
-
const ctrl = await callVisitor(key2, node, visitor,
|
|
251320
|
-
if (
|
|
251321
|
-
replaceNode(key2,
|
|
251322
|
-
return visitAsync_(key2, ctrl, visitor,
|
|
249229
|
+
async function visitAsync_(key2, node, visitor, path5) {
|
|
249230
|
+
const ctrl = await callVisitor(key2, node, visitor, path5);
|
|
249231
|
+
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
249232
|
+
replaceNode(key2, path5, ctrl);
|
|
249233
|
+
return visitAsync_(key2, ctrl, visitor, path5);
|
|
251323
249234
|
}
|
|
251324
249235
|
if (typeof ctrl !== "symbol") {
|
|
251325
|
-
if (
|
|
251326
|
-
|
|
249236
|
+
if (identity2.isCollection(node)) {
|
|
249237
|
+
path5 = Object.freeze(path5.concat(node));
|
|
251327
249238
|
for (let i6 = 0;i6 < node.items.length; ++i6) {
|
|
251328
|
-
const ci = await visitAsync_(i6, node.items[i6], visitor,
|
|
249239
|
+
const ci = await visitAsync_(i6, node.items[i6], visitor, path5);
|
|
251329
249240
|
if (typeof ci === "number")
|
|
251330
249241
|
i6 = ci - 1;
|
|
251331
249242
|
else if (ci === BREAK)
|
|
@@ -251335,14 +249246,14 @@ var require_visit = __commonJS((exports) => {
|
|
|
251335
249246
|
i6 -= 1;
|
|
251336
249247
|
}
|
|
251337
249248
|
}
|
|
251338
|
-
} else if (
|
|
251339
|
-
|
|
251340
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
249249
|
+
} else if (identity2.isPair(node)) {
|
|
249250
|
+
path5 = Object.freeze(path5.concat(node));
|
|
249251
|
+
const ck = await visitAsync_("key", node.key, visitor, path5);
|
|
251341
249252
|
if (ck === BREAK)
|
|
251342
249253
|
return BREAK;
|
|
251343
249254
|
else if (ck === REMOVE)
|
|
251344
249255
|
node.key = null;
|
|
251345
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
249256
|
+
const cv = await visitAsync_("value", node.value, visitor, path5);
|
|
251346
249257
|
if (cv === BREAK)
|
|
251347
249258
|
return BREAK;
|
|
251348
249259
|
else if (cv === REMOVE)
|
|
@@ -251369,34 +249280,34 @@ var require_visit = __commonJS((exports) => {
|
|
|
251369
249280
|
}
|
|
251370
249281
|
return visitor;
|
|
251371
249282
|
}
|
|
251372
|
-
function callVisitor(key2, node, visitor,
|
|
249283
|
+
function callVisitor(key2, node, visitor, path5) {
|
|
251373
249284
|
if (typeof visitor === "function")
|
|
251374
|
-
return visitor(key2, node,
|
|
251375
|
-
if (
|
|
251376
|
-
return visitor.Map?.(key2, node,
|
|
251377
|
-
if (
|
|
251378
|
-
return visitor.Seq?.(key2, node,
|
|
251379
|
-
if (
|
|
251380
|
-
return visitor.Pair?.(key2, node,
|
|
251381
|
-
if (
|
|
251382
|
-
return visitor.Scalar?.(key2, node,
|
|
251383
|
-
if (
|
|
251384
|
-
return visitor.Alias?.(key2, node,
|
|
249285
|
+
return visitor(key2, node, path5);
|
|
249286
|
+
if (identity2.isMap(node))
|
|
249287
|
+
return visitor.Map?.(key2, node, path5);
|
|
249288
|
+
if (identity2.isSeq(node))
|
|
249289
|
+
return visitor.Seq?.(key2, node, path5);
|
|
249290
|
+
if (identity2.isPair(node))
|
|
249291
|
+
return visitor.Pair?.(key2, node, path5);
|
|
249292
|
+
if (identity2.isScalar(node))
|
|
249293
|
+
return visitor.Scalar?.(key2, node, path5);
|
|
249294
|
+
if (identity2.isAlias(node))
|
|
249295
|
+
return visitor.Alias?.(key2, node, path5);
|
|
251385
249296
|
return;
|
|
251386
249297
|
}
|
|
251387
|
-
function replaceNode(key2,
|
|
251388
|
-
const parent =
|
|
251389
|
-
if (
|
|
249298
|
+
function replaceNode(key2, path5, node) {
|
|
249299
|
+
const parent = path5[path5.length - 1];
|
|
249300
|
+
if (identity2.isCollection(parent)) {
|
|
251390
249301
|
parent.items[key2] = node;
|
|
251391
|
-
} else if (
|
|
249302
|
+
} else if (identity2.isPair(parent)) {
|
|
251392
249303
|
if (key2 === "key")
|
|
251393
249304
|
parent.key = node;
|
|
251394
249305
|
else
|
|
251395
249306
|
parent.value = node;
|
|
251396
|
-
} else if (
|
|
249307
|
+
} else if (identity2.isDocument(parent)) {
|
|
251397
249308
|
parent.contents = node;
|
|
251398
249309
|
} else {
|
|
251399
|
-
const pt2 =
|
|
249310
|
+
const pt2 = identity2.isAlias(parent) ? "alias" : "scalar";
|
|
251400
249311
|
throw new Error(`Cannot replace node with ${pt2} parent`);
|
|
251401
249312
|
}
|
|
251402
249313
|
}
|
|
@@ -251406,7 +249317,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
251406
249317
|
|
|
251407
249318
|
// ../../node_modules/yaml/dist/doc/directives.js
|
|
251408
249319
|
var require_directives2 = __commonJS((exports) => {
|
|
251409
|
-
var
|
|
249320
|
+
var identity2 = require_identity();
|
|
251410
249321
|
var visit2 = require_visit();
|
|
251411
249322
|
var escapeChars = {
|
|
251412
249323
|
"!": "%21",
|
|
@@ -251532,10 +249443,10 @@ var require_directives2 = __commonJS((exports) => {
|
|
|
251532
249443
|
const lines2 = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
|
|
251533
249444
|
const tagEntries = Object.entries(this.tags);
|
|
251534
249445
|
let tagNames;
|
|
251535
|
-
if (doc && tagEntries.length > 0 &&
|
|
249446
|
+
if (doc && tagEntries.length > 0 && identity2.isNode(doc.contents)) {
|
|
251536
249447
|
const tags = {};
|
|
251537
249448
|
visit2.visit(doc.contents, (_key, node) => {
|
|
251538
|
-
if (
|
|
249449
|
+
if (identity2.isNode(node) && node.tag)
|
|
251539
249450
|
tags[node.tag] = true;
|
|
251540
249451
|
});
|
|
251541
249452
|
tagNames = Object.keys(tags);
|
|
@@ -251558,7 +249469,7 @@ var require_directives2 = __commonJS((exports) => {
|
|
|
251558
249469
|
|
|
251559
249470
|
// ../../node_modules/yaml/dist/doc/anchors.js
|
|
251560
249471
|
var require_anchors = __commonJS((exports) => {
|
|
251561
|
-
var
|
|
249472
|
+
var identity2 = require_identity();
|
|
251562
249473
|
var visit2 = require_visit();
|
|
251563
249474
|
function anchorIsValid(anchor) {
|
|
251564
249475
|
if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
|
|
@@ -251601,7 +249512,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
251601
249512
|
setAnchors: () => {
|
|
251602
249513
|
for (const source of aliasObjects) {
|
|
251603
249514
|
const ref = sourceObjects.get(source);
|
|
251604
|
-
if (typeof ref === "object" && ref.anchor && (
|
|
249515
|
+
if (typeof ref === "object" && ref.anchor && (identity2.isScalar(ref.node) || identity2.isCollection(ref.node))) {
|
|
251605
249516
|
ref.node.anchor = ref.anchor;
|
|
251606
249517
|
} else {
|
|
251607
249518
|
const error5 = new Error("Failed to resolve repeated object (this should not happen)");
|
|
@@ -251668,12 +249579,12 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
251668
249579
|
|
|
251669
249580
|
// ../../node_modules/yaml/dist/nodes/toJS.js
|
|
251670
249581
|
var require_toJS = __commonJS((exports) => {
|
|
251671
|
-
var
|
|
249582
|
+
var identity2 = require_identity();
|
|
251672
249583
|
function toJS(value4, arg, ctx) {
|
|
251673
249584
|
if (Array.isArray(value4))
|
|
251674
249585
|
return value4.map((v7, i6) => toJS(v7, String(i6), ctx));
|
|
251675
249586
|
if (value4 && typeof value4.toJSON === "function") {
|
|
251676
|
-
if (!ctx || !
|
|
249587
|
+
if (!ctx || !identity2.hasAnchor(value4))
|
|
251677
249588
|
return value4.toJSON(arg, ctx);
|
|
251678
249589
|
const data = { aliasCount: 0, count: 1, res: undefined };
|
|
251679
249590
|
ctx.anchors.set(value4, data);
|
|
@@ -251696,12 +249607,12 @@ var require_toJS = __commonJS((exports) => {
|
|
|
251696
249607
|
// ../../node_modules/yaml/dist/nodes/Node.js
|
|
251697
249608
|
var require_Node = __commonJS((exports) => {
|
|
251698
249609
|
var applyReviver = require_applyReviver();
|
|
251699
|
-
var
|
|
249610
|
+
var identity2 = require_identity();
|
|
251700
249611
|
var toJS = require_toJS();
|
|
251701
249612
|
|
|
251702
249613
|
class NodeBase {
|
|
251703
249614
|
constructor(type4) {
|
|
251704
|
-
Object.defineProperty(this,
|
|
249615
|
+
Object.defineProperty(this, identity2.NODE_TYPE, { value: type4 });
|
|
251705
249616
|
}
|
|
251706
249617
|
clone() {
|
|
251707
249618
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
@@ -251710,7 +249621,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
251710
249621
|
return copy;
|
|
251711
249622
|
}
|
|
251712
249623
|
toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
|
|
251713
|
-
if (!
|
|
249624
|
+
if (!identity2.isDocument(doc))
|
|
251714
249625
|
throw new TypeError("A document argument is required");
|
|
251715
249626
|
const ctx = {
|
|
251716
249627
|
anchors: new Map,
|
|
@@ -251734,13 +249645,13 @@ var require_Node = __commonJS((exports) => {
|
|
|
251734
249645
|
var require_Alias = __commonJS((exports) => {
|
|
251735
249646
|
var anchors = require_anchors();
|
|
251736
249647
|
var visit2 = require_visit();
|
|
251737
|
-
var
|
|
249648
|
+
var identity2 = require_identity();
|
|
251738
249649
|
var Node2 = require_Node();
|
|
251739
249650
|
var toJS = require_toJS();
|
|
251740
249651
|
|
|
251741
249652
|
class Alias extends Node2.NodeBase {
|
|
251742
249653
|
constructor(source) {
|
|
251743
|
-
super(
|
|
249654
|
+
super(identity2.ALIAS);
|
|
251744
249655
|
this.source = source;
|
|
251745
249656
|
Object.defineProperty(this, "tag", {
|
|
251746
249657
|
set() {
|
|
@@ -251804,11 +249715,11 @@ var require_Alias = __commonJS((exports) => {
|
|
|
251804
249715
|
}
|
|
251805
249716
|
}
|
|
251806
249717
|
function getAliasCount(doc, node, anchors2) {
|
|
251807
|
-
if (
|
|
249718
|
+
if (identity2.isAlias(node)) {
|
|
251808
249719
|
const source = node.resolve(doc);
|
|
251809
249720
|
const anchor = anchors2 && source && anchors2.get(source);
|
|
251810
249721
|
return anchor ? anchor.count * anchor.aliasCount : 0;
|
|
251811
|
-
} else if (
|
|
249722
|
+
} else if (identity2.isCollection(node)) {
|
|
251812
249723
|
let count = 0;
|
|
251813
249724
|
for (const item of node.items) {
|
|
251814
249725
|
const c3 = getAliasCount(doc, item, anchors2);
|
|
@@ -251816,7 +249727,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
251816
249727
|
count = c3;
|
|
251817
249728
|
}
|
|
251818
249729
|
return count;
|
|
251819
|
-
} else if (
|
|
249730
|
+
} else if (identity2.isPair(node)) {
|
|
251820
249731
|
const kc = getAliasCount(doc, node.key, anchors2);
|
|
251821
249732
|
const vc = getAliasCount(doc, node.value, anchors2);
|
|
251822
249733
|
return Math.max(kc, vc);
|
|
@@ -251828,14 +249739,14 @@ var require_Alias = __commonJS((exports) => {
|
|
|
251828
249739
|
|
|
251829
249740
|
// ../../node_modules/yaml/dist/nodes/Scalar.js
|
|
251830
249741
|
var require_Scalar = __commonJS((exports) => {
|
|
251831
|
-
var
|
|
249742
|
+
var identity2 = require_identity();
|
|
251832
249743
|
var Node2 = require_Node();
|
|
251833
249744
|
var toJS = require_toJS();
|
|
251834
249745
|
var isScalarValue = (value4) => !value4 || typeof value4 !== "function" && typeof value4 !== "object";
|
|
251835
249746
|
|
|
251836
249747
|
class Scalar extends Node2.NodeBase {
|
|
251837
249748
|
constructor(value4) {
|
|
251838
|
-
super(
|
|
249749
|
+
super(identity2.SCALAR);
|
|
251839
249750
|
this.value = value4;
|
|
251840
249751
|
}
|
|
251841
249752
|
toJSON(arg, ctx) {
|
|
@@ -251857,7 +249768,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
251857
249768
|
// ../../node_modules/yaml/dist/doc/createNode.js
|
|
251858
249769
|
var require_createNode = __commonJS((exports) => {
|
|
251859
249770
|
var Alias = require_Alias();
|
|
251860
|
-
var
|
|
249771
|
+
var identity2 = require_identity();
|
|
251861
249772
|
var Scalar = require_Scalar();
|
|
251862
249773
|
var defaultTagPrefix = "tag:yaml.org,2002:";
|
|
251863
249774
|
function findTagObject(value4, tagName, tags) {
|
|
@@ -251871,12 +249782,12 @@ var require_createNode = __commonJS((exports) => {
|
|
|
251871
249782
|
return tags.find((t8) => t8.identify?.(value4) && !t8.format);
|
|
251872
249783
|
}
|
|
251873
249784
|
function createNode(value4, tagName, ctx) {
|
|
251874
|
-
if (
|
|
249785
|
+
if (identity2.isDocument(value4))
|
|
251875
249786
|
value4 = value4.contents;
|
|
251876
|
-
if (
|
|
249787
|
+
if (identity2.isNode(value4))
|
|
251877
249788
|
return value4;
|
|
251878
|
-
if (
|
|
251879
|
-
const map3 = ctx.schema[
|
|
249789
|
+
if (identity2.isPair(value4)) {
|
|
249790
|
+
const map3 = ctx.schema[identity2.MAP].createNode?.(ctx.schema, null, ctx);
|
|
251880
249791
|
map3.items.push(value4);
|
|
251881
249792
|
return map3;
|
|
251882
249793
|
}
|
|
@@ -251909,7 +249820,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
251909
249820
|
ref.node = node2;
|
|
251910
249821
|
return node2;
|
|
251911
249822
|
}
|
|
251912
|
-
tagObj = value4 instanceof Map ? schema[
|
|
249823
|
+
tagObj = value4 instanceof Map ? schema[identity2.MAP] : (Symbol.iterator in Object(value4)) ? schema[identity2.SEQ] : schema[identity2.MAP];
|
|
251913
249824
|
}
|
|
251914
249825
|
if (onTagObj) {
|
|
251915
249826
|
onTagObj(tagObj);
|
|
@@ -251930,12 +249841,12 @@ var require_createNode = __commonJS((exports) => {
|
|
|
251930
249841
|
// ../../node_modules/yaml/dist/nodes/Collection.js
|
|
251931
249842
|
var require_Collection = __commonJS((exports) => {
|
|
251932
249843
|
var createNode = require_createNode();
|
|
251933
|
-
var
|
|
249844
|
+
var identity2 = require_identity();
|
|
251934
249845
|
var Node2 = require_Node();
|
|
251935
|
-
function collectionFromPath(schema,
|
|
249846
|
+
function collectionFromPath(schema, path5, value4) {
|
|
251936
249847
|
let v7 = value4;
|
|
251937
|
-
for (let i6 =
|
|
251938
|
-
const k5 =
|
|
249848
|
+
for (let i6 = path5.length - 1;i6 >= 0; --i6) {
|
|
249849
|
+
const k5 = path5[i6];
|
|
251939
249850
|
if (typeof k5 === "number" && Number.isInteger(k5) && k5 >= 0) {
|
|
251940
249851
|
const a7 = [];
|
|
251941
249852
|
a7[k5] = v7;
|
|
@@ -251954,7 +249865,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
251954
249865
|
sourceObjects: new Map
|
|
251955
249866
|
});
|
|
251956
249867
|
}
|
|
251957
|
-
var isEmptyPath = (
|
|
249868
|
+
var isEmptyPath = (path5) => path5 == null || typeof path5 === "object" && !!path5[Symbol.iterator]().next().done;
|
|
251958
249869
|
|
|
251959
249870
|
class Collection extends Node2.NodeBase {
|
|
251960
249871
|
constructor(type4, schema) {
|
|
@@ -251970,18 +249881,18 @@ var require_Collection = __commonJS((exports) => {
|
|
|
251970
249881
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
251971
249882
|
if (schema)
|
|
251972
249883
|
copy.schema = schema;
|
|
251973
|
-
copy.items = copy.items.map((it2) =>
|
|
249884
|
+
copy.items = copy.items.map((it2) => identity2.isNode(it2) || identity2.isPair(it2) ? it2.clone(schema) : it2);
|
|
251974
249885
|
if (this.range)
|
|
251975
249886
|
copy.range = this.range.slice();
|
|
251976
249887
|
return copy;
|
|
251977
249888
|
}
|
|
251978
|
-
addIn(
|
|
251979
|
-
if (isEmptyPath(
|
|
249889
|
+
addIn(path5, value4) {
|
|
249890
|
+
if (isEmptyPath(path5))
|
|
251980
249891
|
this.add(value4);
|
|
251981
249892
|
else {
|
|
251982
|
-
const [key2, ...rest] =
|
|
249893
|
+
const [key2, ...rest] = path5;
|
|
251983
249894
|
const node = this.get(key2, true);
|
|
251984
|
-
if (
|
|
249895
|
+
if (identity2.isCollection(node))
|
|
251985
249896
|
node.addIn(rest, value4);
|
|
251986
249897
|
else if (node === undefined && this.schema)
|
|
251987
249898
|
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
@@ -251989,46 +249900,46 @@ var require_Collection = __commonJS((exports) => {
|
|
|
251989
249900
|
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
251990
249901
|
}
|
|
251991
249902
|
}
|
|
251992
|
-
deleteIn(
|
|
251993
|
-
const [key2, ...rest] =
|
|
249903
|
+
deleteIn(path5) {
|
|
249904
|
+
const [key2, ...rest] = path5;
|
|
251994
249905
|
if (rest.length === 0)
|
|
251995
249906
|
return this.delete(key2);
|
|
251996
249907
|
const node = this.get(key2, true);
|
|
251997
|
-
if (
|
|
249908
|
+
if (identity2.isCollection(node))
|
|
251998
249909
|
return node.deleteIn(rest);
|
|
251999
249910
|
else
|
|
252000
249911
|
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
252001
249912
|
}
|
|
252002
|
-
getIn(
|
|
252003
|
-
const [key2, ...rest] =
|
|
249913
|
+
getIn(path5, keepScalar) {
|
|
249914
|
+
const [key2, ...rest] = path5;
|
|
252004
249915
|
const node = this.get(key2, true);
|
|
252005
249916
|
if (rest.length === 0)
|
|
252006
|
-
return !keepScalar &&
|
|
249917
|
+
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
|
252007
249918
|
else
|
|
252008
|
-
return
|
|
249919
|
+
return identity2.isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
|
|
252009
249920
|
}
|
|
252010
249921
|
hasAllNullValues(allowScalar) {
|
|
252011
249922
|
return this.items.every((node) => {
|
|
252012
|
-
if (!
|
|
249923
|
+
if (!identity2.isPair(node))
|
|
252013
249924
|
return false;
|
|
252014
249925
|
const n6 = node.value;
|
|
252015
|
-
return n6 == null || allowScalar &&
|
|
249926
|
+
return n6 == null || allowScalar && identity2.isScalar(n6) && n6.value == null && !n6.commentBefore && !n6.comment && !n6.tag;
|
|
252016
249927
|
});
|
|
252017
249928
|
}
|
|
252018
|
-
hasIn(
|
|
252019
|
-
const [key2, ...rest] =
|
|
249929
|
+
hasIn(path5) {
|
|
249930
|
+
const [key2, ...rest] = path5;
|
|
252020
249931
|
if (rest.length === 0)
|
|
252021
249932
|
return this.has(key2);
|
|
252022
249933
|
const node = this.get(key2, true);
|
|
252023
|
-
return
|
|
249934
|
+
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
|
252024
249935
|
}
|
|
252025
|
-
setIn(
|
|
252026
|
-
const [key2, ...rest] =
|
|
249936
|
+
setIn(path5, value4) {
|
|
249937
|
+
const [key2, ...rest] = path5;
|
|
252027
249938
|
if (rest.length === 0) {
|
|
252028
249939
|
this.set(key2, value4);
|
|
252029
249940
|
} else {
|
|
252030
249941
|
const node = this.get(key2, true);
|
|
252031
|
-
if (
|
|
249942
|
+
if (identity2.isCollection(node))
|
|
252032
249943
|
node.setIn(rest, value4);
|
|
252033
249944
|
else if (node === undefined && this.schema)
|
|
252034
249945
|
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
@@ -252497,7 +250408,7 @@ ${indent2}`);
|
|
|
252497
250408
|
// ../../node_modules/yaml/dist/stringify/stringify.js
|
|
252498
250409
|
var require_stringify = __commonJS((exports) => {
|
|
252499
250410
|
var anchors = require_anchors();
|
|
252500
|
-
var
|
|
250411
|
+
var identity2 = require_identity();
|
|
252501
250412
|
var stringifyComment = require_stringifyComment();
|
|
252502
250413
|
var stringifyString = require_stringifyString();
|
|
252503
250414
|
function createStringifyContext(doc, options) {
|
|
@@ -252549,7 +250460,7 @@ var require_stringify = __commonJS((exports) => {
|
|
|
252549
250460
|
}
|
|
252550
250461
|
let tagObj = undefined;
|
|
252551
250462
|
let obj;
|
|
252552
|
-
if (
|
|
250463
|
+
if (identity2.isScalar(item)) {
|
|
252553
250464
|
obj = item.value;
|
|
252554
250465
|
let match2 = tags.filter((t8) => t8.identify?.(obj));
|
|
252555
250466
|
if (match2.length > 1) {
|
|
@@ -252572,7 +250483,7 @@ var require_stringify = __commonJS((exports) => {
|
|
|
252572
250483
|
if (!doc.directives)
|
|
252573
250484
|
return "";
|
|
252574
250485
|
const props = [];
|
|
252575
|
-
const anchor = (
|
|
250486
|
+
const anchor = (identity2.isScalar(node) || identity2.isCollection(node)) && node.anchor;
|
|
252576
250487
|
if (anchor && anchors.anchorIsValid(anchor)) {
|
|
252577
250488
|
anchors$1.add(anchor);
|
|
252578
250489
|
props.push(`&${anchor}`);
|
|
@@ -252583,9 +250494,9 @@ var require_stringify = __commonJS((exports) => {
|
|
|
252583
250494
|
return props.join(" ");
|
|
252584
250495
|
}
|
|
252585
250496
|
function stringify3(item, ctx, onComment, onChompKeep) {
|
|
252586
|
-
if (
|
|
250497
|
+
if (identity2.isPair(item))
|
|
252587
250498
|
return item.toString(ctx, onComment, onChompKeep);
|
|
252588
|
-
if (
|
|
250499
|
+
if (identity2.isAlias(item)) {
|
|
252589
250500
|
if (ctx.doc.directives)
|
|
252590
250501
|
return item.toString(ctx);
|
|
252591
250502
|
if (ctx.resolvedAliases?.has(item)) {
|
|
@@ -252599,16 +250510,16 @@ var require_stringify = __commonJS((exports) => {
|
|
|
252599
250510
|
}
|
|
252600
250511
|
}
|
|
252601
250512
|
let tagObj = undefined;
|
|
252602
|
-
const node =
|
|
250513
|
+
const node = identity2.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o8) => tagObj = o8 });
|
|
252603
250514
|
if (!tagObj)
|
|
252604
250515
|
tagObj = getTagObject(ctx.doc.schema.tags, node);
|
|
252605
250516
|
const props = stringifyProps(node, tagObj, ctx);
|
|
252606
250517
|
if (props.length > 0)
|
|
252607
250518
|
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
252608
|
-
const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) :
|
|
250519
|
+
const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity2.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
|
|
252609
250520
|
if (!props)
|
|
252610
250521
|
return str;
|
|
252611
|
-
return
|
|
250522
|
+
return identity2.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
|
|
252612
250523
|
${ctx.indent}${str}`;
|
|
252613
250524
|
}
|
|
252614
250525
|
exports.createStringifyContext = createStringifyContext;
|
|
@@ -252617,23 +250528,23 @@ ${ctx.indent}${str}`;
|
|
|
252617
250528
|
|
|
252618
250529
|
// ../../node_modules/yaml/dist/stringify/stringifyPair.js
|
|
252619
250530
|
var require_stringifyPair = __commonJS((exports) => {
|
|
252620
|
-
var
|
|
250531
|
+
var identity2 = require_identity();
|
|
252621
250532
|
var Scalar = require_Scalar();
|
|
252622
250533
|
var stringify3 = require_stringify();
|
|
252623
250534
|
var stringifyComment = require_stringifyComment();
|
|
252624
250535
|
function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
|
|
252625
250536
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
252626
|
-
let keyComment =
|
|
250537
|
+
let keyComment = identity2.isNode(key2) && key2.comment || null;
|
|
252627
250538
|
if (simpleKeys) {
|
|
252628
250539
|
if (keyComment) {
|
|
252629
250540
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
252630
250541
|
}
|
|
252631
|
-
if (
|
|
250542
|
+
if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
|
|
252632
250543
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
252633
250544
|
throw new Error(msg);
|
|
252634
250545
|
}
|
|
252635
250546
|
}
|
|
252636
|
-
let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow ||
|
|
250547
|
+
let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
|
|
252637
250548
|
ctx = Object.assign({}, ctx, {
|
|
252638
250549
|
allNullValues: false,
|
|
252639
250550
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
@@ -252674,7 +250585,7 @@ ${indent2}:`;
|
|
|
252674
250585
|
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
252675
250586
|
}
|
|
252676
250587
|
let vsb, vcb, valueComment;
|
|
252677
|
-
if (
|
|
250588
|
+
if (identity2.isNode(value4)) {
|
|
252678
250589
|
vsb = !!value4.spaceBefore;
|
|
252679
250590
|
vcb = value4.commentBefore;
|
|
252680
250591
|
valueComment = value4.comment;
|
|
@@ -252686,10 +250597,10 @@ ${indent2}:`;
|
|
|
252686
250597
|
value4 = doc.createNode(value4);
|
|
252687
250598
|
}
|
|
252688
250599
|
ctx.implicitKey = false;
|
|
252689
|
-
if (!explicitKey && !keyComment &&
|
|
250600
|
+
if (!explicitKey && !keyComment && identity2.isScalar(value4))
|
|
252690
250601
|
ctx.indentAtStart = str.length + 1;
|
|
252691
250602
|
chompKeep = false;
|
|
252692
|
-
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey &&
|
|
250603
|
+
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity2.isSeq(value4) && !value4.flow && !value4.tag && !value4.anchor) {
|
|
252693
250604
|
ctx.indent = ctx.indent.substring(2);
|
|
252694
250605
|
}
|
|
252695
250606
|
let valueCommentDone = false;
|
|
@@ -252713,7 +250624,7 @@ ${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
|
252713
250624
|
ws += `
|
|
252714
250625
|
${ctx.indent}`;
|
|
252715
250626
|
}
|
|
252716
|
-
} else if (!explicitKey &&
|
|
250627
|
+
} else if (!explicitKey && identity2.isCollection(value4)) {
|
|
252717
250628
|
const vs0 = valueStr[0];
|
|
252718
250629
|
const nl0 = valueStr.indexOf(`
|
|
252719
250630
|
`);
|
|
@@ -252772,7 +250683,7 @@ var require_log = __commonJS((exports) => {
|
|
|
252772
250683
|
|
|
252773
250684
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
252774
250685
|
var require_merge = __commonJS((exports) => {
|
|
252775
|
-
var
|
|
250686
|
+
var identity2 = require_identity();
|
|
252776
250687
|
var Scalar = require_Scalar();
|
|
252777
250688
|
var MERGE_KEY = "<<";
|
|
252778
250689
|
var merge3 = {
|
|
@@ -252785,10 +250696,10 @@ var require_merge = __commonJS((exports) => {
|
|
|
252785
250696
|
}),
|
|
252786
250697
|
stringify: () => MERGE_KEY
|
|
252787
250698
|
};
|
|
252788
|
-
var isMergeKey = (ctx, key2) => (merge3.identify(key2) ||
|
|
250699
|
+
var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
|
252789
250700
|
function addMergeToJSMap(ctx, map3, value4) {
|
|
252790
|
-
value4 = ctx &&
|
|
252791
|
-
if (
|
|
250701
|
+
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
250702
|
+
if (identity2.isSeq(value4))
|
|
252792
250703
|
for (const it2 of value4.items)
|
|
252793
250704
|
mergeValue(ctx, map3, it2);
|
|
252794
250705
|
else if (Array.isArray(value4))
|
|
@@ -252798,8 +250709,8 @@ var require_merge = __commonJS((exports) => {
|
|
|
252798
250709
|
mergeValue(ctx, map3, value4);
|
|
252799
250710
|
}
|
|
252800
250711
|
function mergeValue(ctx, map3, value4) {
|
|
252801
|
-
const source = ctx &&
|
|
252802
|
-
if (!
|
|
250712
|
+
const source = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
250713
|
+
if (!identity2.isMap(source))
|
|
252803
250714
|
throw new Error("Merge sources must be maps or map aliases");
|
|
252804
250715
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
252805
250716
|
for (const [key2, value5] of srcMap) {
|
|
@@ -252829,10 +250740,10 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
252829
250740
|
var log = require_log();
|
|
252830
250741
|
var merge3 = require_merge();
|
|
252831
250742
|
var stringify3 = require_stringify();
|
|
252832
|
-
var
|
|
250743
|
+
var identity2 = require_identity();
|
|
252833
250744
|
var toJS = require_toJS();
|
|
252834
250745
|
function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
|
|
252835
|
-
if (
|
|
250746
|
+
if (identity2.isNode(key2) && key2.addToJSMap)
|
|
252836
250747
|
key2.addToJSMap(ctx, map3, value4);
|
|
252837
250748
|
else if (merge3.isMergeKey(ctx, key2))
|
|
252838
250749
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
|
@@ -252863,7 +250774,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
252863
250774
|
return "";
|
|
252864
250775
|
if (typeof jsKey !== "object")
|
|
252865
250776
|
return String(jsKey);
|
|
252866
|
-
if (
|
|
250777
|
+
if (identity2.isNode(key2) && ctx?.doc) {
|
|
252867
250778
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
|
252868
250779
|
strCtx.anchors = new Set;
|
|
252869
250780
|
for (const node of ctx.anchors.keys())
|
|
@@ -252890,7 +250801,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
252890
250801
|
var createNode = require_createNode();
|
|
252891
250802
|
var stringifyPair2 = require_stringifyPair();
|
|
252892
250803
|
var addPairToJSMap = require_addPairToJSMap();
|
|
252893
|
-
var
|
|
250804
|
+
var identity2 = require_identity();
|
|
252894
250805
|
function createPair(key2, value4, ctx) {
|
|
252895
250806
|
const k5 = createNode.createNode(key2, undefined, ctx);
|
|
252896
250807
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
|
@@ -252899,15 +250810,15 @@ var require_Pair = __commonJS((exports) => {
|
|
|
252899
250810
|
|
|
252900
250811
|
class Pair {
|
|
252901
250812
|
constructor(key2, value4 = null) {
|
|
252902
|
-
Object.defineProperty(this,
|
|
250813
|
+
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
|
252903
250814
|
this.key = key2;
|
|
252904
250815
|
this.value = value4;
|
|
252905
250816
|
}
|
|
252906
250817
|
clone(schema) {
|
|
252907
250818
|
let { key: key2, value: value4 } = this;
|
|
252908
|
-
if (
|
|
250819
|
+
if (identity2.isNode(key2))
|
|
252909
250820
|
key2 = key2.clone(schema);
|
|
252910
|
-
if (
|
|
250821
|
+
if (identity2.isNode(value4))
|
|
252911
250822
|
value4 = value4.clone(schema);
|
|
252912
250823
|
return new Pair(key2, value4);
|
|
252913
250824
|
}
|
|
@@ -252925,7 +250836,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
252925
250836
|
|
|
252926
250837
|
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
252927
250838
|
var require_stringifyCollection = __commonJS((exports) => {
|
|
252928
|
-
var
|
|
250839
|
+
var identity2 = require_identity();
|
|
252929
250840
|
var stringify3 = require_stringify();
|
|
252930
250841
|
var stringifyComment = require_stringifyComment();
|
|
252931
250842
|
function stringifyCollection(collection, ctx, options) {
|
|
@@ -252941,14 +250852,14 @@ var require_stringifyCollection = __commonJS((exports) => {
|
|
|
252941
250852
|
for (let i6 = 0;i6 < items.length; ++i6) {
|
|
252942
250853
|
const item = items[i6];
|
|
252943
250854
|
let comment2 = null;
|
|
252944
|
-
if (
|
|
250855
|
+
if (identity2.isNode(item)) {
|
|
252945
250856
|
if (!chompKeep && item.spaceBefore)
|
|
252946
250857
|
lines2.push("");
|
|
252947
250858
|
addCommentBefore(ctx, lines2, item.commentBefore, chompKeep);
|
|
252948
250859
|
if (item.comment)
|
|
252949
250860
|
comment2 = item.comment;
|
|
252950
|
-
} else if (
|
|
252951
|
-
const ik =
|
|
250861
|
+
} else if (identity2.isPair(item)) {
|
|
250862
|
+
const ik = identity2.isNode(item.key) ? item.key : null;
|
|
252952
250863
|
if (ik) {
|
|
252953
250864
|
if (!chompKeep && ik.spaceBefore)
|
|
252954
250865
|
lines2.push("");
|
|
@@ -252998,14 +250909,14 @@ ${indent2}${line}` : `
|
|
|
252998
250909
|
for (let i6 = 0;i6 < items.length; ++i6) {
|
|
252999
250910
|
const item = items[i6];
|
|
253000
250911
|
let comment = null;
|
|
253001
|
-
if (
|
|
250912
|
+
if (identity2.isNode(item)) {
|
|
253002
250913
|
if (item.spaceBefore)
|
|
253003
250914
|
lines2.push("");
|
|
253004
250915
|
addCommentBefore(ctx, lines2, item.commentBefore, false);
|
|
253005
250916
|
if (item.comment)
|
|
253006
250917
|
comment = item.comment;
|
|
253007
|
-
} else if (
|
|
253008
|
-
const ik =
|
|
250918
|
+
} else if (identity2.isPair(item)) {
|
|
250919
|
+
const ik = identity2.isNode(item.key) ? item.key : null;
|
|
253009
250920
|
if (ik) {
|
|
253010
250921
|
if (ik.spaceBefore)
|
|
253011
250922
|
lines2.push("");
|
|
@@ -253013,7 +250924,7 @@ ${indent2}${line}` : `
|
|
|
253013
250924
|
if (ik.comment)
|
|
253014
250925
|
reqNewline = true;
|
|
253015
250926
|
}
|
|
253016
|
-
const iv =
|
|
250927
|
+
const iv = identity2.isNode(item.value) ? item.value : null;
|
|
253017
250928
|
if (iv) {
|
|
253018
250929
|
if (iv.comment)
|
|
253019
250930
|
comment = iv.comment;
|
|
@@ -253073,16 +250984,16 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253073
250984
|
var stringifyCollection = require_stringifyCollection();
|
|
253074
250985
|
var addPairToJSMap = require_addPairToJSMap();
|
|
253075
250986
|
var Collection = require_Collection();
|
|
253076
|
-
var
|
|
250987
|
+
var identity2 = require_identity();
|
|
253077
250988
|
var Pair = require_Pair();
|
|
253078
250989
|
var Scalar = require_Scalar();
|
|
253079
250990
|
function findPair(items, key2) {
|
|
253080
|
-
const k5 =
|
|
250991
|
+
const k5 = identity2.isScalar(key2) ? key2.value : key2;
|
|
253081
250992
|
for (const it2 of items) {
|
|
253082
|
-
if (
|
|
250993
|
+
if (identity2.isPair(it2)) {
|
|
253083
250994
|
if (it2.key === key2 || it2.key === k5)
|
|
253084
250995
|
return it2;
|
|
253085
|
-
if (
|
|
250996
|
+
if (identity2.isScalar(it2.key) && it2.key.value === k5)
|
|
253086
250997
|
return it2;
|
|
253087
250998
|
}
|
|
253088
250999
|
}
|
|
@@ -253094,7 +251005,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253094
251005
|
return "tag:yaml.org,2002:map";
|
|
253095
251006
|
}
|
|
253096
251007
|
constructor(schema) {
|
|
253097
|
-
super(
|
|
251008
|
+
super(identity2.MAP, schema);
|
|
253098
251009
|
this.items = [];
|
|
253099
251010
|
}
|
|
253100
251011
|
static from(schema, obj, ctx) {
|
|
@@ -253122,7 +251033,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253122
251033
|
}
|
|
253123
251034
|
add(pair, overwrite) {
|
|
253124
251035
|
let _pair;
|
|
253125
|
-
if (
|
|
251036
|
+
if (identity2.isPair(pair))
|
|
253126
251037
|
_pair = pair;
|
|
253127
251038
|
else if (!pair || typeof pair !== "object" || !("key" in pair)) {
|
|
253128
251039
|
_pair = new Pair.Pair(pair, pair?.value);
|
|
@@ -253133,7 +251044,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253133
251044
|
if (prev) {
|
|
253134
251045
|
if (!overwrite)
|
|
253135
251046
|
throw new Error(`Key ${_pair.key} already set`);
|
|
253136
|
-
if (
|
|
251047
|
+
if (identity2.isScalar(prev.value) && Scalar.isScalarValue(_pair.value))
|
|
253137
251048
|
prev.value.value = _pair.value;
|
|
253138
251049
|
else
|
|
253139
251050
|
prev.value = _pair.value;
|
|
@@ -253157,7 +251068,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253157
251068
|
get(key2, keepScalar) {
|
|
253158
251069
|
const it2 = findPair(this.items, key2);
|
|
253159
251070
|
const node = it2?.value;
|
|
253160
|
-
return (!keepScalar &&
|
|
251071
|
+
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
|
253161
251072
|
}
|
|
253162
251073
|
has(key2) {
|
|
253163
251074
|
return !!findPair(this.items, key2);
|
|
@@ -253177,7 +251088,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253177
251088
|
if (!ctx)
|
|
253178
251089
|
return JSON.stringify(this);
|
|
253179
251090
|
for (const item of this.items) {
|
|
253180
|
-
if (!
|
|
251091
|
+
if (!identity2.isPair(item))
|
|
253181
251092
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`);
|
|
253182
251093
|
}
|
|
253183
251094
|
if (!ctx.allNullValues && this.hasAllNullValues(false))
|
|
@@ -253197,7 +251108,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
253197
251108
|
|
|
253198
251109
|
// ../../node_modules/yaml/dist/schema/common/map.js
|
|
253199
251110
|
var require_map = __commonJS((exports) => {
|
|
253200
|
-
var
|
|
251111
|
+
var identity2 = require_identity();
|
|
253201
251112
|
var YAMLMap = require_YAMLMap();
|
|
253202
251113
|
var map3 = {
|
|
253203
251114
|
collection: "map",
|
|
@@ -253205,7 +251116,7 @@ var require_map = __commonJS((exports) => {
|
|
|
253205
251116
|
nodeClass: YAMLMap.YAMLMap,
|
|
253206
251117
|
tag: "tag:yaml.org,2002:map",
|
|
253207
251118
|
resolve(map4, onError) {
|
|
253208
|
-
if (!
|
|
251119
|
+
if (!identity2.isMap(map4))
|
|
253209
251120
|
onError("Expected a mapping for this tag");
|
|
253210
251121
|
return map4;
|
|
253211
251122
|
},
|
|
@@ -253219,7 +251130,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
253219
251130
|
var createNode = require_createNode();
|
|
253220
251131
|
var stringifyCollection = require_stringifyCollection();
|
|
253221
251132
|
var Collection = require_Collection();
|
|
253222
|
-
var
|
|
251133
|
+
var identity2 = require_identity();
|
|
253223
251134
|
var Scalar = require_Scalar();
|
|
253224
251135
|
var toJS = require_toJS();
|
|
253225
251136
|
|
|
@@ -253228,7 +251139,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
253228
251139
|
return "tag:yaml.org,2002:seq";
|
|
253229
251140
|
}
|
|
253230
251141
|
constructor(schema) {
|
|
253231
|
-
super(
|
|
251142
|
+
super(identity2.SEQ, schema);
|
|
253232
251143
|
this.items = [];
|
|
253233
251144
|
}
|
|
253234
251145
|
add(value4) {
|
|
@@ -253246,7 +251157,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
253246
251157
|
if (typeof idx !== "number")
|
|
253247
251158
|
return;
|
|
253248
251159
|
const it2 = this.items[idx];
|
|
253249
|
-
return !keepScalar &&
|
|
251160
|
+
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
|
253250
251161
|
}
|
|
253251
251162
|
has(key2) {
|
|
253252
251163
|
const idx = asItemIndex(key2);
|
|
@@ -253257,7 +251168,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
253257
251168
|
if (typeof idx !== "number")
|
|
253258
251169
|
throw new Error(`Expected a valid index, not ${key2}.`);
|
|
253259
251170
|
const prev = this.items[idx];
|
|
253260
|
-
if (
|
|
251171
|
+
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
|
253261
251172
|
prev.value = value4;
|
|
253262
251173
|
else
|
|
253263
251174
|
this.items[idx] = value4;
|
|
@@ -253299,7 +251210,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
253299
251210
|
}
|
|
253300
251211
|
}
|
|
253301
251212
|
function asItemIndex(key2) {
|
|
253302
|
-
let idx =
|
|
251213
|
+
let idx = identity2.isScalar(key2) ? key2.value : key2;
|
|
253303
251214
|
if (idx && typeof idx === "string")
|
|
253304
251215
|
idx = Number(idx);
|
|
253305
251216
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
@@ -253309,7 +251220,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
253309
251220
|
|
|
253310
251221
|
// ../../node_modules/yaml/dist/schema/common/seq.js
|
|
253311
251222
|
var require_seq = __commonJS((exports) => {
|
|
253312
|
-
var
|
|
251223
|
+
var identity2 = require_identity();
|
|
253313
251224
|
var YAMLSeq = require_YAMLSeq();
|
|
253314
251225
|
var seq = {
|
|
253315
251226
|
collection: "seq",
|
|
@@ -253317,7 +251228,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
253317
251228
|
nodeClass: YAMLSeq.YAMLSeq,
|
|
253318
251229
|
tag: "tag:yaml.org,2002:seq",
|
|
253319
251230
|
resolve(seq2, onError) {
|
|
253320
|
-
if (!
|
|
251231
|
+
if (!identity2.isSeq(seq2))
|
|
253321
251232
|
onError("Expected a sequence for this tag");
|
|
253322
251233
|
return seq2;
|
|
253323
251234
|
},
|
|
@@ -253632,17 +251543,17 @@ var require_binary = __commonJS((exports) => {
|
|
|
253632
251543
|
|
|
253633
251544
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
253634
251545
|
var require_pairs = __commonJS((exports) => {
|
|
253635
|
-
var
|
|
251546
|
+
var identity2 = require_identity();
|
|
253636
251547
|
var Pair = require_Pair();
|
|
253637
251548
|
var Scalar = require_Scalar();
|
|
253638
251549
|
var YAMLSeq = require_YAMLSeq();
|
|
253639
251550
|
function resolvePairs(seq, onError) {
|
|
253640
|
-
if (
|
|
251551
|
+
if (identity2.isSeq(seq)) {
|
|
253641
251552
|
for (let i6 = 0;i6 < seq.items.length; ++i6) {
|
|
253642
251553
|
let item = seq.items[i6];
|
|
253643
|
-
if (
|
|
251554
|
+
if (identity2.isPair(item))
|
|
253644
251555
|
continue;
|
|
253645
|
-
else if (
|
|
251556
|
+
else if (identity2.isMap(item)) {
|
|
253646
251557
|
if (item.items.length > 1)
|
|
253647
251558
|
onError("Each pair must have its own sequence indicator");
|
|
253648
251559
|
const pair = item.items[0] || new Pair.Pair(new Scalar.Scalar(null));
|
|
@@ -253656,7 +251567,7 @@ ${cn.comment}` : item.comment;
|
|
|
253656
251567
|
}
|
|
253657
251568
|
item = pair;
|
|
253658
251569
|
}
|
|
253659
|
-
seq.items[i6] =
|
|
251570
|
+
seq.items[i6] = identity2.isPair(item) ? item : new Pair.Pair(item);
|
|
253660
251571
|
}
|
|
253661
251572
|
} else
|
|
253662
251573
|
onError("Expected a sequence for this tag");
|
|
@@ -253707,7 +251618,7 @@ ${cn.comment}` : item.comment;
|
|
|
253707
251618
|
|
|
253708
251619
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
253709
251620
|
var require_omap = __commonJS((exports) => {
|
|
253710
|
-
var
|
|
251621
|
+
var identity2 = require_identity();
|
|
253711
251622
|
var toJS = require_toJS();
|
|
253712
251623
|
var YAMLMap = require_YAMLMap();
|
|
253713
251624
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -253731,7 +251642,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
253731
251642
|
ctx.onCreate(map3);
|
|
253732
251643
|
for (const pair of this.items) {
|
|
253733
251644
|
let key2, value4;
|
|
253734
|
-
if (
|
|
251645
|
+
if (identity2.isPair(pair)) {
|
|
253735
251646
|
key2 = toJS.toJS(pair.key, "", ctx);
|
|
253736
251647
|
value4 = toJS.toJS(pair.value, key2, ctx);
|
|
253737
251648
|
} else {
|
|
@@ -253761,7 +251672,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
253761
251672
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
253762
251673
|
const seenKeys = [];
|
|
253763
251674
|
for (const { key: key2 } of pairs$1.items) {
|
|
253764
|
-
if (
|
|
251675
|
+
if (identity2.isScalar(key2)) {
|
|
253765
251676
|
if (seenKeys.includes(key2.value)) {
|
|
253766
251677
|
onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
|
|
253767
251678
|
} else {
|
|
@@ -253930,7 +251841,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
253930
251841
|
|
|
253931
251842
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
253932
251843
|
var require_set = __commonJS((exports) => {
|
|
253933
|
-
var
|
|
251844
|
+
var identity2 = require_identity();
|
|
253934
251845
|
var Pair = require_Pair();
|
|
253935
251846
|
var YAMLMap = require_YAMLMap();
|
|
253936
251847
|
|
|
@@ -253941,7 +251852,7 @@ var require_set = __commonJS((exports) => {
|
|
|
253941
251852
|
}
|
|
253942
251853
|
add(key2) {
|
|
253943
251854
|
let pair;
|
|
253944
|
-
if (
|
|
251855
|
+
if (identity2.isPair(key2))
|
|
253945
251856
|
pair = key2;
|
|
253946
251857
|
else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
|
|
253947
251858
|
pair = new Pair.Pair(key2.key, null);
|
|
@@ -253953,7 +251864,7 @@ var require_set = __commonJS((exports) => {
|
|
|
253953
251864
|
}
|
|
253954
251865
|
get(key2, keepPair) {
|
|
253955
251866
|
const pair = YAMLMap.findPair(this.items, key2);
|
|
253956
|
-
return !keepPair &&
|
|
251867
|
+
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
|
253957
251868
|
}
|
|
253958
251869
|
set(key2, value4) {
|
|
253959
251870
|
if (typeof value4 !== "boolean")
|
|
@@ -253997,7 +251908,7 @@ var require_set = __commonJS((exports) => {
|
|
|
253997
251908
|
tag: "tag:yaml.org,2002:set",
|
|
253998
251909
|
createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
|
|
253999
251910
|
resolve(map3, onError) {
|
|
254000
|
-
if (
|
|
251911
|
+
if (identity2.isMap(map3)) {
|
|
254001
251912
|
if (map3.hasAllNullValues(true))
|
|
254002
251913
|
return Object.assign(new YAMLSet, map3);
|
|
254003
251914
|
else
|
|
@@ -254227,7 +252138,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
254227
252138
|
|
|
254228
252139
|
// ../../node_modules/yaml/dist/schema/Schema.js
|
|
254229
252140
|
var require_Schema = __commonJS((exports) => {
|
|
254230
|
-
var
|
|
252141
|
+
var identity2 = require_identity();
|
|
254231
252142
|
var map3 = require_map();
|
|
254232
252143
|
var seq = require_seq();
|
|
254233
252144
|
var string = require_string();
|
|
@@ -254241,9 +252152,9 @@ var require_Schema = __commonJS((exports) => {
|
|
|
254241
252152
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
254242
252153
|
this.tags = tags.getTags(customTags, this.name, merge3);
|
|
254243
252154
|
this.toStringOptions = toStringDefaults ?? null;
|
|
254244
|
-
Object.defineProperty(this,
|
|
254245
|
-
Object.defineProperty(this,
|
|
254246
|
-
Object.defineProperty(this,
|
|
252155
|
+
Object.defineProperty(this, identity2.MAP, { value: map3.map });
|
|
252156
|
+
Object.defineProperty(this, identity2.SCALAR, { value: string.string });
|
|
252157
|
+
Object.defineProperty(this, identity2.SEQ, { value: seq.seq });
|
|
254247
252158
|
this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null;
|
|
254248
252159
|
}
|
|
254249
252160
|
clone() {
|
|
@@ -254257,7 +252168,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
254257
252168
|
|
|
254258
252169
|
// ../../node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
254259
252170
|
var require_stringifyDocument = __commonJS((exports) => {
|
|
254260
|
-
var
|
|
252171
|
+
var identity2 = require_identity();
|
|
254261
252172
|
var stringify3 = require_stringify();
|
|
254262
252173
|
var stringifyComment = require_stringifyComment();
|
|
254263
252174
|
function stringifyDocument2(doc, options) {
|
|
@@ -254284,7 +252195,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
254284
252195
|
let chompKeep = false;
|
|
254285
252196
|
let contentComment = null;
|
|
254286
252197
|
if (doc.contents) {
|
|
254287
|
-
if (
|
|
252198
|
+
if (identity2.isNode(doc.contents)) {
|
|
254288
252199
|
if (doc.contents.spaceBefore && hasDirectives)
|
|
254289
252200
|
lines2.push("");
|
|
254290
252201
|
if (doc.contents.commentBefore) {
|
|
@@ -254339,7 +252250,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
254339
252250
|
var require_Document = __commonJS((exports) => {
|
|
254340
252251
|
var Alias = require_Alias();
|
|
254341
252252
|
var Collection = require_Collection();
|
|
254342
|
-
var
|
|
252253
|
+
var identity2 = require_identity();
|
|
254343
252254
|
var Pair = require_Pair();
|
|
254344
252255
|
var toJS = require_toJS();
|
|
254345
252256
|
var Schema = require_Schema();
|
|
@@ -254355,7 +252266,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
254355
252266
|
this.comment = null;
|
|
254356
252267
|
this.errors = [];
|
|
254357
252268
|
this.warnings = [];
|
|
254358
|
-
Object.defineProperty(this,
|
|
252269
|
+
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.DOC });
|
|
254359
252270
|
let _replacer = null;
|
|
254360
252271
|
if (typeof replacer === "function" || Array.isArray(replacer)) {
|
|
254361
252272
|
_replacer = replacer;
|
|
@@ -254386,7 +252297,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
254386
252297
|
}
|
|
254387
252298
|
clone() {
|
|
254388
252299
|
const copy = Object.create(Document.prototype, {
|
|
254389
|
-
[
|
|
252300
|
+
[identity2.NODE_TYPE]: { value: identity2.DOC }
|
|
254390
252301
|
});
|
|
254391
252302
|
copy.commentBefore = this.commentBefore;
|
|
254392
252303
|
copy.comment = this.comment;
|
|
@@ -254396,7 +252307,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
254396
252307
|
if (this.directives)
|
|
254397
252308
|
copy.directives = this.directives.clone();
|
|
254398
252309
|
copy.schema = this.schema.clone();
|
|
254399
|
-
copy.contents =
|
|
252310
|
+
copy.contents = identity2.isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents;
|
|
254400
252311
|
if (this.range)
|
|
254401
252312
|
copy.range = this.range.slice();
|
|
254402
252313
|
return copy;
|
|
@@ -254405,9 +252316,9 @@ var require_Document = __commonJS((exports) => {
|
|
|
254405
252316
|
if (assertCollection(this.contents))
|
|
254406
252317
|
this.contents.add(value4);
|
|
254407
252318
|
}
|
|
254408
|
-
addIn(
|
|
252319
|
+
addIn(path5, value4) {
|
|
254409
252320
|
if (assertCollection(this.contents))
|
|
254410
|
-
this.contents.addIn(
|
|
252321
|
+
this.contents.addIn(path5, value4);
|
|
254411
252322
|
}
|
|
254412
252323
|
createAlias(node, name2) {
|
|
254413
252324
|
if (!node.anchor) {
|
|
@@ -254443,7 +252354,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
254443
252354
|
sourceObjects
|
|
254444
252355
|
};
|
|
254445
252356
|
const node = createNode.createNode(value4, tag, ctx);
|
|
254446
|
-
if (flow &&
|
|
252357
|
+
if (flow && identity2.isCollection(node))
|
|
254447
252358
|
node.flow = true;
|
|
254448
252359
|
setAnchors();
|
|
254449
252360
|
return node;
|
|
@@ -254456,30 +252367,30 @@ var require_Document = __commonJS((exports) => {
|
|
|
254456
252367
|
delete(key2) {
|
|
254457
252368
|
return assertCollection(this.contents) ? this.contents.delete(key2) : false;
|
|
254458
252369
|
}
|
|
254459
|
-
deleteIn(
|
|
254460
|
-
if (Collection.isEmptyPath(
|
|
252370
|
+
deleteIn(path5) {
|
|
252371
|
+
if (Collection.isEmptyPath(path5)) {
|
|
254461
252372
|
if (this.contents == null)
|
|
254462
252373
|
return false;
|
|
254463
252374
|
this.contents = null;
|
|
254464
252375
|
return true;
|
|
254465
252376
|
}
|
|
254466
|
-
return assertCollection(this.contents) ? this.contents.deleteIn(
|
|
252377
|
+
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
|
254467
252378
|
}
|
|
254468
252379
|
get(key2, keepScalar) {
|
|
254469
|
-
return
|
|
252380
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
|
|
254470
252381
|
}
|
|
254471
|
-
getIn(
|
|
254472
|
-
if (Collection.isEmptyPath(
|
|
254473
|
-
return !keepScalar &&
|
|
254474
|
-
return
|
|
252382
|
+
getIn(path5, keepScalar) {
|
|
252383
|
+
if (Collection.isEmptyPath(path5))
|
|
252384
|
+
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
252385
|
+
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
|
254475
252386
|
}
|
|
254476
252387
|
has(key2) {
|
|
254477
|
-
return
|
|
252388
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
|
|
254478
252389
|
}
|
|
254479
|
-
hasIn(
|
|
254480
|
-
if (Collection.isEmptyPath(
|
|
252390
|
+
hasIn(path5) {
|
|
252391
|
+
if (Collection.isEmptyPath(path5))
|
|
254481
252392
|
return this.contents !== undefined;
|
|
254482
|
-
return
|
|
252393
|
+
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
|
254483
252394
|
}
|
|
254484
252395
|
set(key2, value4) {
|
|
254485
252396
|
if (this.contents == null) {
|
|
@@ -254488,13 +252399,13 @@ var require_Document = __commonJS((exports) => {
|
|
|
254488
252399
|
this.contents.set(key2, value4);
|
|
254489
252400
|
}
|
|
254490
252401
|
}
|
|
254491
|
-
setIn(
|
|
254492
|
-
if (Collection.isEmptyPath(
|
|
252402
|
+
setIn(path5, value4) {
|
|
252403
|
+
if (Collection.isEmptyPath(path5)) {
|
|
254493
252404
|
this.contents = value4;
|
|
254494
252405
|
} else if (this.contents == null) {
|
|
254495
|
-
this.contents = Collection.collectionFromPath(this.schema, Array.from(
|
|
252406
|
+
this.contents = Collection.collectionFromPath(this.schema, Array.from(path5), value4);
|
|
254496
252407
|
} else if (assertCollection(this.contents)) {
|
|
254497
|
-
this.contents.setIn(
|
|
252408
|
+
this.contents.setIn(path5, value4);
|
|
254498
252409
|
}
|
|
254499
252410
|
}
|
|
254500
252411
|
setSchema(version, options = {}) {
|
|
@@ -254563,7 +252474,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
254563
252474
|
}
|
|
254564
252475
|
}
|
|
254565
252476
|
function assertCollection(contents) {
|
|
254566
|
-
if (
|
|
252477
|
+
if (identity2.isCollection(contents))
|
|
254567
252478
|
return true;
|
|
254568
252479
|
throw new Error("Expected a YAML collection as document contents");
|
|
254569
252480
|
}
|
|
@@ -254824,12 +252735,12 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
254824
252735
|
|
|
254825
252736
|
// ../../node_modules/yaml/dist/compose/util-map-includes.js
|
|
254826
252737
|
var require_util_map_includes = __commonJS((exports) => {
|
|
254827
|
-
var
|
|
252738
|
+
var identity2 = require_identity();
|
|
254828
252739
|
function mapIncludes(ctx, items, search) {
|
|
254829
252740
|
const { uniqueKeys } = ctx.options;
|
|
254830
252741
|
if (uniqueKeys === false)
|
|
254831
252742
|
return false;
|
|
254832
|
-
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a7, b4) => a7 === b4 ||
|
|
252743
|
+
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a7, b4) => a7 === b4 || identity2.isScalar(a7) && identity2.isScalar(b4) && a7.value === b4.value;
|
|
254833
252744
|
return items.some((pair) => isEqual(pair.key, search));
|
|
254834
252745
|
}
|
|
254835
252746
|
exports.mapIncludes = mapIncludes;
|
|
@@ -255032,7 +252943,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
255032
252943
|
|
|
255033
252944
|
// ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
255034
252945
|
var require_resolve_flow_collection = __commonJS((exports) => {
|
|
255035
|
-
var
|
|
252946
|
+
var identity2 = require_identity();
|
|
255036
252947
|
var Pair = require_Pair();
|
|
255037
252948
|
var YAMLMap = require_YAMLMap();
|
|
255038
252949
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -255108,7 +253019,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
255108
253019
|
}
|
|
255109
253020
|
if (prevItemComment) {
|
|
255110
253021
|
let prev = coll.items[coll.items.length - 1];
|
|
255111
|
-
if (
|
|
253022
|
+
if (identity2.isPair(prev))
|
|
255112
253023
|
prev = prev.value ?? prev.key;
|
|
255113
253024
|
if (prev.comment)
|
|
255114
253025
|
prev.comment += `
|
|
@@ -255223,7 +253134,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
255223
253134
|
|
|
255224
253135
|
// ../../node_modules/yaml/dist/compose/compose-collection.js
|
|
255225
253136
|
var require_compose_collection = __commonJS((exports) => {
|
|
255226
|
-
var
|
|
253137
|
+
var identity2 = require_identity();
|
|
255227
253138
|
var Scalar = require_Scalar();
|
|
255228
253139
|
var YAMLMap = require_YAMLMap();
|
|
255229
253140
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -255273,7 +253184,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
255273
253184
|
}
|
|
255274
253185
|
const coll = resolveCollection(CN, ctx, token, onError, tagName, tag);
|
|
255275
253186
|
const res = tag.resolve?.(coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options) ?? coll;
|
|
255276
|
-
const node =
|
|
253187
|
+
const node = identity2.isNode(res) ? res : new Scalar.Scalar(res);
|
|
255277
253188
|
node.range = coll.range;
|
|
255278
253189
|
node.tag = tagName;
|
|
255279
253190
|
if (tag?.format)
|
|
@@ -255551,9 +253462,9 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
255551
253462
|
function foldLines(source) {
|
|
255552
253463
|
let first, line;
|
|
255553
253464
|
try {
|
|
255554
|
-
first = new RegExp(`(.*?)(?<![
|
|
253465
|
+
first = new RegExp(`(.*?)(?<![ \t])[ \t]*\r?
|
|
255555
253466
|
`, "sy");
|
|
255556
|
-
line = new RegExp(`[
|
|
253467
|
+
line = new RegExp(`[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?
|
|
255557
253468
|
`, "sy");
|
|
255558
253469
|
} catch {
|
|
255559
253470
|
first = /(.*?)[ \t]*\r?\n/sy;
|
|
@@ -255694,7 +253605,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
255694
253605
|
|
|
255695
253606
|
// ../../node_modules/yaml/dist/compose/compose-scalar.js
|
|
255696
253607
|
var require_compose_scalar = __commonJS((exports) => {
|
|
255697
|
-
var
|
|
253608
|
+
var identity2 = require_identity();
|
|
255698
253609
|
var Scalar = require_Scalar();
|
|
255699
253610
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
255700
253611
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -255703,17 +253614,17 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
255703
253614
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
255704
253615
|
let tag;
|
|
255705
253616
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
255706
|
-
tag = ctx.schema[
|
|
253617
|
+
tag = ctx.schema[identity2.SCALAR];
|
|
255707
253618
|
} else if (tagName)
|
|
255708
253619
|
tag = findScalarTagByName(ctx.schema, value4, tagName, tagToken, onError);
|
|
255709
253620
|
else if (token.type === "scalar")
|
|
255710
253621
|
tag = findScalarTagByTest(ctx, value4, token, onError);
|
|
255711
253622
|
else
|
|
255712
|
-
tag = ctx.schema[
|
|
253623
|
+
tag = ctx.schema[identity2.SCALAR];
|
|
255713
253624
|
let scalar;
|
|
255714
253625
|
try {
|
|
255715
253626
|
const res = tag.resolve(value4, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
|
|
255716
|
-
scalar =
|
|
253627
|
+
scalar = identity2.isScalar(res) ? res : new Scalar.Scalar(res);
|
|
255717
253628
|
} catch (error5) {
|
|
255718
253629
|
const msg = error5 instanceof Error ? error5.message : String(error5);
|
|
255719
253630
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
@@ -255733,7 +253644,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
255733
253644
|
}
|
|
255734
253645
|
function findScalarTagByName(schema, value4, tagName, tagToken, onError) {
|
|
255735
253646
|
if (tagName === "!")
|
|
255736
|
-
return schema[
|
|
253647
|
+
return schema[identity2.SCALAR];
|
|
255737
253648
|
const matchWithTest = [];
|
|
255738
253649
|
for (const tag of schema.tags) {
|
|
255739
253650
|
if (!tag.collection && tag.tag === tagName) {
|
|
@@ -255752,12 +253663,12 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
255752
253663
|
return kt2;
|
|
255753
253664
|
}
|
|
255754
253665
|
onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
|
|
255755
|
-
return schema[
|
|
253666
|
+
return schema[identity2.SCALAR];
|
|
255756
253667
|
}
|
|
255757
253668
|
function findScalarTagByTest({ atKey, directives: directives4, schema }, value4, token, onError) {
|
|
255758
|
-
const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value4)) || schema[
|
|
253669
|
+
const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value4)) || schema[identity2.SCALAR];
|
|
255759
253670
|
if (schema.compat) {
|
|
255760
|
-
const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value4)) ?? schema[
|
|
253671
|
+
const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value4)) ?? schema[identity2.SCALAR];
|
|
255761
253672
|
if (tag.tag !== compat.tag) {
|
|
255762
253673
|
const ts = directives4.tagString(tag.tag);
|
|
255763
253674
|
const cs = directives4.tagString(compat.tag);
|
|
@@ -255801,7 +253712,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
255801
253712
|
// ../../node_modules/yaml/dist/compose/compose-node.js
|
|
255802
253713
|
var require_compose_node = __commonJS((exports) => {
|
|
255803
253714
|
var Alias = require_Alias();
|
|
255804
|
-
var
|
|
253715
|
+
var identity2 = require_identity();
|
|
255805
253716
|
var composeCollection = require_compose_collection();
|
|
255806
253717
|
var composeScalar = require_compose_scalar();
|
|
255807
253718
|
var resolveEnd = require_resolve_end();
|
|
@@ -255842,7 +253753,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
255842
253753
|
}
|
|
255843
253754
|
if (anchor && node.anchor === "")
|
|
255844
253755
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
255845
|
-
if (atKey && ctx.options.stringKeys && (!
|
|
253756
|
+
if (atKey && ctx.options.stringKeys && (!identity2.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
|
|
255846
253757
|
const msg = "With stringKeys, all keys must be strings";
|
|
255847
253758
|
onError(tag ?? token, "NON_STRING_KEY", msg);
|
|
255848
253759
|
}
|
|
@@ -255942,7 +253853,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
255942
253853
|
var directives4 = require_directives2();
|
|
255943
253854
|
var Document = require_Document();
|
|
255944
253855
|
var errors2 = require_errors3();
|
|
255945
|
-
var
|
|
253856
|
+
var identity2 = require_identity();
|
|
255946
253857
|
var composeDoc = require_compose_doc();
|
|
255947
253858
|
var resolveEnd = require_resolve_end();
|
|
255948
253859
|
function getErrorPos(src) {
|
|
@@ -256008,9 +253919,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
256008
253919
|
${comment}` : comment;
|
|
256009
253920
|
} else if (afterEmptyLine || doc.directives.docStart || !dc) {
|
|
256010
253921
|
doc.commentBefore = comment;
|
|
256011
|
-
} else if (
|
|
253922
|
+
} else if (identity2.isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
256012
253923
|
let it2 = dc.items[0];
|
|
256013
|
-
if (
|
|
253924
|
+
if (identity2.isPair(it2))
|
|
256014
253925
|
it2 = it2.key;
|
|
256015
253926
|
const cb = it2.commentBefore;
|
|
256016
253927
|
it2.commentBefore = cb ? `${comment}
|
|
@@ -256386,9 +254297,9 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
256386
254297
|
visit2.BREAK = BREAK;
|
|
256387
254298
|
visit2.SKIP = SKIP;
|
|
256388
254299
|
visit2.REMOVE = REMOVE;
|
|
256389
|
-
visit2.itemAtPath = (cst,
|
|
254300
|
+
visit2.itemAtPath = (cst, path5) => {
|
|
256390
254301
|
let item = cst;
|
|
256391
|
-
for (const [field2, index] of
|
|
254302
|
+
for (const [field2, index] of path5) {
|
|
256392
254303
|
const tok = item?.[field2];
|
|
256393
254304
|
if (tok && "items" in tok) {
|
|
256394
254305
|
item = tok.items[index];
|
|
@@ -256397,23 +254308,23 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
256397
254308
|
}
|
|
256398
254309
|
return item;
|
|
256399
254310
|
};
|
|
256400
|
-
visit2.parentCollection = (cst,
|
|
256401
|
-
const parent = visit2.itemAtPath(cst,
|
|
256402
|
-
const field2 =
|
|
254311
|
+
visit2.parentCollection = (cst, path5) => {
|
|
254312
|
+
const parent = visit2.itemAtPath(cst, path5.slice(0, -1));
|
|
254313
|
+
const field2 = path5[path5.length - 1][0];
|
|
256403
254314
|
const coll = parent?.[field2];
|
|
256404
254315
|
if (coll && "items" in coll)
|
|
256405
254316
|
return coll;
|
|
256406
254317
|
throw new Error("Parent collection not found");
|
|
256407
254318
|
};
|
|
256408
|
-
function _visit(
|
|
256409
|
-
let ctrl = visitor(item,
|
|
254319
|
+
function _visit(path5, item, visitor) {
|
|
254320
|
+
let ctrl = visitor(item, path5);
|
|
256410
254321
|
if (typeof ctrl === "symbol")
|
|
256411
254322
|
return ctrl;
|
|
256412
254323
|
for (const field2 of ["key", "value"]) {
|
|
256413
254324
|
const token = item[field2];
|
|
256414
254325
|
if (token && "items" in token) {
|
|
256415
254326
|
for (let i6 = 0;i6 < token.items.length; ++i6) {
|
|
256416
|
-
const ci = _visit(Object.freeze(
|
|
254327
|
+
const ci = _visit(Object.freeze(path5.concat([[field2, i6]])), token.items[i6], visitor);
|
|
256417
254328
|
if (typeof ci === "number")
|
|
256418
254329
|
i6 = ci - 1;
|
|
256419
254330
|
else if (ci === BREAK)
|
|
@@ -256424,10 +254335,10 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
256424
254335
|
}
|
|
256425
254336
|
}
|
|
256426
254337
|
if (typeof ctrl === "function" && field2 === "key")
|
|
256427
|
-
ctrl = ctrl(item,
|
|
254338
|
+
ctrl = ctrl(item, path5);
|
|
256428
254339
|
}
|
|
256429
254340
|
}
|
|
256430
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
254341
|
+
return typeof ctrl === "function" ? ctrl(item, path5) : ctrl;
|
|
256431
254342
|
}
|
|
256432
254343
|
exports.visit = visit2;
|
|
256433
254344
|
});
|
|
@@ -256553,7 +254464,7 @@ var require_lexer2 = __commonJS((exports) => {
|
|
|
256553
254464
|
var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
256554
254465
|
var flowIndicatorChars = new Set(",[]{}");
|
|
256555
254466
|
var invalidAnchorChars = new Set(` ,[]{}
|
|
256556
|
-
\r
|
|
254467
|
+
\r\t`);
|
|
256557
254468
|
var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
|
|
256558
254469
|
|
|
256559
254470
|
class Lexer {
|
|
@@ -257993,7 +255904,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
257993
255904
|
var Document = require_Document();
|
|
257994
255905
|
var errors2 = require_errors3();
|
|
257995
255906
|
var log = require_log();
|
|
257996
|
-
var
|
|
255907
|
+
var identity2 = require_identity();
|
|
257997
255908
|
var lineCounter = require_line_counter();
|
|
257998
255909
|
var parser = require_parser2();
|
|
257999
255910
|
function parseOptions(options) {
|
|
@@ -258071,7 +255982,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
258071
255982
|
if (!keepUndefined)
|
|
258072
255983
|
return;
|
|
258073
255984
|
}
|
|
258074
|
-
if (
|
|
255985
|
+
if (identity2.isDocument(value4) && !_replacer)
|
|
258075
255986
|
return value4.toString(options);
|
|
258076
255987
|
return new Document.Document(value4, _replacer, options).toString(options);
|
|
258077
255988
|
}
|
|
@@ -269118,7 +267029,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
269118
267029
|
var package_default = {
|
|
269119
267030
|
name: "@settlemint/sdk-cli",
|
|
269120
267031
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
269121
|
-
version: "1.0.9-
|
|
267032
|
+
version: "1.0.9-prf4a5beac",
|
|
269122
267033
|
type: "module",
|
|
269123
267034
|
private: false,
|
|
269124
267035
|
license: "FSL-1.1-MIT",
|
|
@@ -269166,13 +267077,13 @@ var package_default = {
|
|
|
269166
267077
|
"@inquirer/input": "4.1.3",
|
|
269167
267078
|
"@inquirer/password": "4.0.6",
|
|
269168
267079
|
"@inquirer/select": "4.0.6",
|
|
269169
|
-
"@settlemint/sdk-js": "1.0.9-
|
|
269170
|
-
"@settlemint/sdk-utils": "1.0.9-
|
|
267080
|
+
"@settlemint/sdk-js": "1.0.9-prf4a5beac",
|
|
267081
|
+
"@settlemint/sdk-utils": "1.0.9-prf4a5beac",
|
|
269171
267082
|
"@types/node": "22.10.10",
|
|
269172
267083
|
"@types/semver": "7.5.8",
|
|
269173
267084
|
"@types/which": "3.0.4",
|
|
269174
267085
|
"get-tsconfig": "4.10.0",
|
|
269175
|
-
giget: "1.2.
|
|
267086
|
+
giget: "1.2.4",
|
|
269176
267087
|
"is-in-ci": "1.0.0",
|
|
269177
267088
|
semver: "7.6.3",
|
|
269178
267089
|
slugify: "1.6.6",
|
|
@@ -273924,10 +271835,223 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
273924
271835
|
}
|
|
273925
271836
|
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273926
271837
|
var import_mute_stream = __toESM(require_lib12(), 1);
|
|
273927
|
-
init_mjs();
|
|
273928
271838
|
import * as readline2 from "node:readline";
|
|
273929
271839
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
273930
271840
|
|
|
271841
|
+
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
271842
|
+
var signals = [];
|
|
271843
|
+
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
271844
|
+
if (process.platform !== "win32") {
|
|
271845
|
+
signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
271846
|
+
}
|
|
271847
|
+
if (process.platform === "linux") {
|
|
271848
|
+
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
271849
|
+
}
|
|
271850
|
+
|
|
271851
|
+
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
271852
|
+
var processOk2 = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
271853
|
+
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
271854
|
+
var global2 = globalThis;
|
|
271855
|
+
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
271856
|
+
|
|
271857
|
+
class Emitter2 {
|
|
271858
|
+
emitted = {
|
|
271859
|
+
afterExit: false,
|
|
271860
|
+
exit: false
|
|
271861
|
+
};
|
|
271862
|
+
listeners = {
|
|
271863
|
+
afterExit: [],
|
|
271864
|
+
exit: []
|
|
271865
|
+
};
|
|
271866
|
+
count = 0;
|
|
271867
|
+
id = Math.random();
|
|
271868
|
+
constructor() {
|
|
271869
|
+
if (global2[kExitEmitter]) {
|
|
271870
|
+
return global2[kExitEmitter];
|
|
271871
|
+
}
|
|
271872
|
+
ObjectDefineProperty(global2, kExitEmitter, {
|
|
271873
|
+
value: this,
|
|
271874
|
+
writable: false,
|
|
271875
|
+
enumerable: false,
|
|
271876
|
+
configurable: false
|
|
271877
|
+
});
|
|
271878
|
+
}
|
|
271879
|
+
on(ev, fn) {
|
|
271880
|
+
this.listeners[ev].push(fn);
|
|
271881
|
+
}
|
|
271882
|
+
removeListener(ev, fn) {
|
|
271883
|
+
const list3 = this.listeners[ev];
|
|
271884
|
+
const i6 = list3.indexOf(fn);
|
|
271885
|
+
if (i6 === -1) {
|
|
271886
|
+
return;
|
|
271887
|
+
}
|
|
271888
|
+
if (i6 === 0 && list3.length === 1) {
|
|
271889
|
+
list3.length = 0;
|
|
271890
|
+
} else {
|
|
271891
|
+
list3.splice(i6, 1);
|
|
271892
|
+
}
|
|
271893
|
+
}
|
|
271894
|
+
emit(ev, code2, signal) {
|
|
271895
|
+
if (this.emitted[ev]) {
|
|
271896
|
+
return false;
|
|
271897
|
+
}
|
|
271898
|
+
this.emitted[ev] = true;
|
|
271899
|
+
let ret = false;
|
|
271900
|
+
for (const fn of this.listeners[ev]) {
|
|
271901
|
+
ret = fn(code2, signal) === true || ret;
|
|
271902
|
+
}
|
|
271903
|
+
if (ev === "exit") {
|
|
271904
|
+
ret = this.emit("afterExit", code2, signal) || ret;
|
|
271905
|
+
}
|
|
271906
|
+
return ret;
|
|
271907
|
+
}
|
|
271908
|
+
}
|
|
271909
|
+
|
|
271910
|
+
class SignalExitBase2 {
|
|
271911
|
+
}
|
|
271912
|
+
var signalExitWrap = (handler) => {
|
|
271913
|
+
return {
|
|
271914
|
+
onExit(cb, opts) {
|
|
271915
|
+
return handler.onExit(cb, opts);
|
|
271916
|
+
},
|
|
271917
|
+
load() {
|
|
271918
|
+
return handler.load();
|
|
271919
|
+
},
|
|
271920
|
+
unload() {
|
|
271921
|
+
return handler.unload();
|
|
271922
|
+
}
|
|
271923
|
+
};
|
|
271924
|
+
};
|
|
271925
|
+
|
|
271926
|
+
class SignalExitFallback2 extends SignalExitBase2 {
|
|
271927
|
+
onExit() {
|
|
271928
|
+
return () => {
|
|
271929
|
+
};
|
|
271930
|
+
}
|
|
271931
|
+
load() {
|
|
271932
|
+
}
|
|
271933
|
+
unload() {
|
|
271934
|
+
}
|
|
271935
|
+
}
|
|
271936
|
+
|
|
271937
|
+
class SignalExit2 extends SignalExitBase2 {
|
|
271938
|
+
#hupSig = process7.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
271939
|
+
#emitter = new Emitter2;
|
|
271940
|
+
#process;
|
|
271941
|
+
#originalProcessEmit;
|
|
271942
|
+
#originalProcessReallyExit;
|
|
271943
|
+
#sigListeners = {};
|
|
271944
|
+
#loaded = false;
|
|
271945
|
+
constructor(process7) {
|
|
271946
|
+
super();
|
|
271947
|
+
this.#process = process7;
|
|
271948
|
+
this.#sigListeners = {};
|
|
271949
|
+
for (const sig of signals) {
|
|
271950
|
+
this.#sigListeners[sig] = () => {
|
|
271951
|
+
const listeners = this.#process.listeners(sig);
|
|
271952
|
+
let { count } = this.#emitter;
|
|
271953
|
+
const p6 = process7;
|
|
271954
|
+
if (typeof p6.__signal_exit_emitter__ === "object" && typeof p6.__signal_exit_emitter__.count === "number") {
|
|
271955
|
+
count += p6.__signal_exit_emitter__.count;
|
|
271956
|
+
}
|
|
271957
|
+
if (listeners.length === count) {
|
|
271958
|
+
this.unload();
|
|
271959
|
+
const ret = this.#emitter.emit("exit", null, sig);
|
|
271960
|
+
const s8 = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
271961
|
+
if (!ret)
|
|
271962
|
+
process7.kill(process7.pid, s8);
|
|
271963
|
+
}
|
|
271964
|
+
};
|
|
271965
|
+
}
|
|
271966
|
+
this.#originalProcessReallyExit = process7.reallyExit;
|
|
271967
|
+
this.#originalProcessEmit = process7.emit;
|
|
271968
|
+
}
|
|
271969
|
+
onExit(cb, opts) {
|
|
271970
|
+
if (!processOk2(this.#process)) {
|
|
271971
|
+
return () => {
|
|
271972
|
+
};
|
|
271973
|
+
}
|
|
271974
|
+
if (this.#loaded === false) {
|
|
271975
|
+
this.load();
|
|
271976
|
+
}
|
|
271977
|
+
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
271978
|
+
this.#emitter.on(ev, cb);
|
|
271979
|
+
return () => {
|
|
271980
|
+
this.#emitter.removeListener(ev, cb);
|
|
271981
|
+
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
271982
|
+
this.unload();
|
|
271983
|
+
}
|
|
271984
|
+
};
|
|
271985
|
+
}
|
|
271986
|
+
load() {
|
|
271987
|
+
if (this.#loaded) {
|
|
271988
|
+
return;
|
|
271989
|
+
}
|
|
271990
|
+
this.#loaded = true;
|
|
271991
|
+
this.#emitter.count += 1;
|
|
271992
|
+
for (const sig of signals) {
|
|
271993
|
+
try {
|
|
271994
|
+
const fn = this.#sigListeners[sig];
|
|
271995
|
+
if (fn)
|
|
271996
|
+
this.#process.on(sig, fn);
|
|
271997
|
+
} catch (_5) {
|
|
271998
|
+
}
|
|
271999
|
+
}
|
|
272000
|
+
this.#process.emit = (ev, ...a7) => {
|
|
272001
|
+
return this.#processEmit(ev, ...a7);
|
|
272002
|
+
};
|
|
272003
|
+
this.#process.reallyExit = (code2) => {
|
|
272004
|
+
return this.#processReallyExit(code2);
|
|
272005
|
+
};
|
|
272006
|
+
}
|
|
272007
|
+
unload() {
|
|
272008
|
+
if (!this.#loaded) {
|
|
272009
|
+
return;
|
|
272010
|
+
}
|
|
272011
|
+
this.#loaded = false;
|
|
272012
|
+
signals.forEach((sig) => {
|
|
272013
|
+
const listener = this.#sigListeners[sig];
|
|
272014
|
+
if (!listener) {
|
|
272015
|
+
throw new Error("Listener not defined for signal: " + sig);
|
|
272016
|
+
}
|
|
272017
|
+
try {
|
|
272018
|
+
this.#process.removeListener(sig, listener);
|
|
272019
|
+
} catch (_5) {
|
|
272020
|
+
}
|
|
272021
|
+
});
|
|
272022
|
+
this.#process.emit = this.#originalProcessEmit;
|
|
272023
|
+
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
272024
|
+
this.#emitter.count -= 1;
|
|
272025
|
+
}
|
|
272026
|
+
#processReallyExit(code2) {
|
|
272027
|
+
if (!processOk2(this.#process)) {
|
|
272028
|
+
return 0;
|
|
272029
|
+
}
|
|
272030
|
+
this.#process.exitCode = code2 || 0;
|
|
272031
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
272032
|
+
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
272033
|
+
}
|
|
272034
|
+
#processEmit(ev, ...args) {
|
|
272035
|
+
const og = this.#originalProcessEmit;
|
|
272036
|
+
if (ev === "exit" && processOk2(this.#process)) {
|
|
272037
|
+
if (typeof args[0] === "number") {
|
|
272038
|
+
this.#process.exitCode = args[0];
|
|
272039
|
+
}
|
|
272040
|
+
const ret = og.call(this.#process, ev, ...args);
|
|
272041
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
272042
|
+
return ret;
|
|
272043
|
+
} else {
|
|
272044
|
+
return og.call(this.#process, ev, ...args);
|
|
272045
|
+
}
|
|
272046
|
+
}
|
|
272047
|
+
}
|
|
272048
|
+
var process7 = globalThis.process;
|
|
272049
|
+
var {
|
|
272050
|
+
onExit,
|
|
272051
|
+
load: load2,
|
|
272052
|
+
unload
|
|
272053
|
+
} = signalExitWrap(processOk2(process7) ? new SignalExit2(process7) : new SignalExitFallback2);
|
|
272054
|
+
|
|
273931
272055
|
// ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
273932
272056
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
273933
272057
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
@@ -275613,12 +273737,12 @@ async function templatePrompt(platformConfig, argument) {
|
|
|
275613
273737
|
// src/utils/download-extract.ts
|
|
275614
273738
|
import { mkdir as mkdir5 } from "node:fs/promises";
|
|
275615
273739
|
|
|
275616
|
-
// ../../node_modules/giget/dist/
|
|
273740
|
+
// ../../node_modules/giget/dist/shared/giget.D-_6aM9e.mjs
|
|
275617
273741
|
var import_tar = __toESM(require_tar(), 1);
|
|
275618
273742
|
import { readFile as readFile6, writeFile as writeFile7, mkdir as mkdir4, rm as rm3 } from "node:fs/promises";
|
|
275619
|
-
import { existsSync as existsSync3, createWriteStream
|
|
273743
|
+
import { existsSync as existsSync3, createWriteStream, readdirSync as readdirSync2 } from "node:fs";
|
|
275620
273744
|
|
|
275621
|
-
// ../../node_modules/pathe/dist/shared/pathe.
|
|
273745
|
+
// ../../node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
275622
273746
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
275623
273747
|
function normalizeWindowsPath(input = "") {
|
|
275624
273748
|
if (!input) {
|
|
@@ -275658,24 +273782,26 @@ var normalize3 = function(path5) {
|
|
|
275658
273782
|
}
|
|
275659
273783
|
return isPathAbsolute && !isAbsolute(path5) ? `/${path5}` : path5;
|
|
275660
273784
|
};
|
|
275661
|
-
var join8 = function(...
|
|
275662
|
-
|
|
275663
|
-
|
|
275664
|
-
|
|
275665
|
-
|
|
275666
|
-
|
|
275667
|
-
if (
|
|
275668
|
-
|
|
275669
|
-
|
|
273785
|
+
var join8 = function(...segments) {
|
|
273786
|
+
let path5 = "";
|
|
273787
|
+
for (const seg of segments) {
|
|
273788
|
+
if (!seg) {
|
|
273789
|
+
continue;
|
|
273790
|
+
}
|
|
273791
|
+
if (path5.length > 0) {
|
|
273792
|
+
const pathTrailing = path5[path5.length - 1] === "/";
|
|
273793
|
+
const segLeading = seg[0] === "/";
|
|
273794
|
+
const both = pathTrailing && segLeading;
|
|
273795
|
+
if (both) {
|
|
273796
|
+
path5 += seg.slice(1);
|
|
275670
273797
|
} else {
|
|
275671
|
-
|
|
273798
|
+
path5 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
275672
273799
|
}
|
|
273800
|
+
} else {
|
|
273801
|
+
path5 += seg;
|
|
275673
273802
|
}
|
|
275674
273803
|
}
|
|
275675
|
-
|
|
275676
|
-
return ".";
|
|
275677
|
-
}
|
|
275678
|
-
return normalize3(joined.replace(/\/\/+/g, "/"));
|
|
273804
|
+
return normalize3(path5);
|
|
275679
273805
|
};
|
|
275680
273806
|
function cwd() {
|
|
275681
273807
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -275773,7 +273899,15 @@ var dirname9 = function(p6) {
|
|
|
275773
273899
|
return segments.join("/") || (isAbsolute(p6) ? "/" : ".");
|
|
275774
273900
|
};
|
|
275775
273901
|
var basename2 = function(p6, extension) {
|
|
275776
|
-
const
|
|
273902
|
+
const segments = normalizeWindowsPath(p6).split("/");
|
|
273903
|
+
let lastSegment = "";
|
|
273904
|
+
for (let i6 = segments.length - 1;i6 >= 0; i6--) {
|
|
273905
|
+
const val = segments[i6];
|
|
273906
|
+
if (val) {
|
|
273907
|
+
lastSegment = val;
|
|
273908
|
+
break;
|
|
273909
|
+
}
|
|
273910
|
+
}
|
|
275777
273911
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
275778
273912
|
};
|
|
275779
273913
|
// ../../node_modules/defu/dist/defu.mjs
|
|
@@ -275836,14 +273970,15 @@ var defuArrayFn = createDefu((object, key2, currentValue) => {
|
|
|
275836
273970
|
}
|
|
275837
273971
|
});
|
|
275838
273972
|
|
|
275839
|
-
// ../../node_modules/nypm/dist/
|
|
273973
|
+
// ../../node_modules/nypm/dist/shared/nypm.DqHADQHW.mjs
|
|
273974
|
+
import { x as x6 } from "tinyexec";
|
|
275840
273975
|
import { existsSync as existsSync2 } from "node:fs";
|
|
275841
273976
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
275842
273977
|
async function findup(cwd2, match2, options = {}) {
|
|
275843
273978
|
const segments = normalize3(cwd2).split("/");
|
|
275844
273979
|
while (segments.length > 0) {
|
|
275845
|
-
const
|
|
275846
|
-
const result = await match2(
|
|
273980
|
+
const path5 = segments.join("/") || "/";
|
|
273981
|
+
const result = await match2(path5);
|
|
275847
273982
|
if (result || !options.includeParentDirs) {
|
|
275848
273983
|
return result;
|
|
275849
273984
|
}
|
|
@@ -275862,22 +273997,21 @@ function cached(fn) {
|
|
|
275862
273997
|
return v7;
|
|
275863
273998
|
};
|
|
275864
273999
|
}
|
|
275865
|
-
var importExeca = cached(() => Promise.resolve().then(() => (init_execa(), exports_execa)).then((r6) => r6.execa));
|
|
275866
274000
|
var hasCorepack = cached(async () => {
|
|
275867
274001
|
try {
|
|
275868
|
-
const
|
|
275869
|
-
|
|
275870
|
-
return true;
|
|
274002
|
+
const { exitCode: exitCode2 } = await x6("corepack", ["--version"]);
|
|
274003
|
+
return exitCode2 === 0;
|
|
275871
274004
|
} catch {
|
|
275872
274005
|
return false;
|
|
275873
274006
|
}
|
|
275874
274007
|
});
|
|
275875
274008
|
async function executeCommand2(command, args, options = {}) {
|
|
275876
|
-
const
|
|
275877
|
-
|
|
275878
|
-
|
|
275879
|
-
|
|
275880
|
-
|
|
274009
|
+
const xArgs = command === "npm" || command === "bun" || command === "deno" || !await hasCorepack() ? [command, args] : ["corepack", [command, ...args]];
|
|
274010
|
+
await x6(xArgs[0], xArgs[1], {
|
|
274011
|
+
nodeOptions: {
|
|
274012
|
+
cwd: resolve6(options.cwd || process.cwd()),
|
|
274013
|
+
stdio: options.silent ? "pipe" : "inherit"
|
|
274014
|
+
}
|
|
275881
274015
|
});
|
|
275882
274016
|
}
|
|
275883
274017
|
var NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
|
|
@@ -275896,6 +274030,23 @@ async function resolveOperationOptions(options = {}) {
|
|
|
275896
274030
|
global: options.global ?? false
|
|
275897
274031
|
};
|
|
275898
274032
|
}
|
|
274033
|
+
function parsePackageManagerField(packageManager) {
|
|
274034
|
+
const [name2, _version] = (packageManager || "").split("@");
|
|
274035
|
+
const [version, buildMeta] = _version?.split("+") || [];
|
|
274036
|
+
if (name2 && name2 !== "-" && /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name2)) {
|
|
274037
|
+
return { name: name2, version, buildMeta };
|
|
274038
|
+
}
|
|
274039
|
+
const sanitized = name2.replace(/\W+/g, "");
|
|
274040
|
+
const warnings = [
|
|
274041
|
+
`Abnormal characters found in \`packageManager\` field, sanitizing from \`${name2}\` to \`${sanitized}\``
|
|
274042
|
+
];
|
|
274043
|
+
return {
|
|
274044
|
+
name: sanitized,
|
|
274045
|
+
version,
|
|
274046
|
+
buildMeta,
|
|
274047
|
+
warnings
|
|
274048
|
+
};
|
|
274049
|
+
}
|
|
275899
274050
|
var packageManagers = [
|
|
275900
274051
|
{
|
|
275901
274052
|
name: "npm",
|
|
@@ -275925,27 +274076,46 @@ var packageManagers = [
|
|
|
275925
274076
|
majorVersion: "3",
|
|
275926
274077
|
lockFile: "yarn.lock",
|
|
275927
274078
|
files: [".yarnrc.yml"]
|
|
274079
|
+
},
|
|
274080
|
+
{
|
|
274081
|
+
name: "deno",
|
|
274082
|
+
command: "deno",
|
|
274083
|
+
lockFile: "deno.lock",
|
|
274084
|
+
files: ["deno.json"]
|
|
275928
274085
|
}
|
|
275929
274086
|
];
|
|
275930
274087
|
async function detectPackageManager2(cwd2, options = {}) {
|
|
275931
|
-
const detected = await findup(resolve6(cwd2 || "."), async (
|
|
274088
|
+
const detected = await findup(resolve6(cwd2 || "."), async (path5) => {
|
|
275932
274089
|
if (!options.ignorePackageJSON) {
|
|
275933
|
-
const packageJSONPath = join8(
|
|
274090
|
+
const packageJSONPath = join8(path5, "package.json");
|
|
275934
274091
|
if (existsSync2(packageJSONPath)) {
|
|
275935
274092
|
const packageJSON = JSON.parse(await readFile5(packageJSONPath, "utf8"));
|
|
275936
274093
|
if (packageJSON?.packageManager) {
|
|
275937
|
-
const
|
|
275938
|
-
const majorVersion = version.split(".")[0];
|
|
275939
|
-
const packageManager = packageManagers.find((pm) => pm.name === name2 && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name2);
|
|
275940
|
-
return {
|
|
275941
|
-
...packageManager,
|
|
274094
|
+
const {
|
|
275942
274095
|
name: name2,
|
|
275943
|
-
|
|
275944
|
-
|
|
275945
|
-
|
|
275946
|
-
};
|
|
274096
|
+
version = "0.0.0",
|
|
274097
|
+
buildMeta,
|
|
274098
|
+
warnings
|
|
274099
|
+
} = parsePackageManagerField(packageJSON.packageManager);
|
|
274100
|
+
if (name2) {
|
|
274101
|
+
const majorVersion = version.split(".")[0];
|
|
274102
|
+
const packageManager = packageManagers.find((pm) => pm.name === name2 && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name2);
|
|
274103
|
+
return {
|
|
274104
|
+
name: name2,
|
|
274105
|
+
command: name2,
|
|
274106
|
+
version,
|
|
274107
|
+
majorVersion,
|
|
274108
|
+
buildMeta,
|
|
274109
|
+
warnings,
|
|
274110
|
+
...packageManager
|
|
274111
|
+
};
|
|
274112
|
+
}
|
|
275947
274113
|
}
|
|
275948
274114
|
}
|
|
274115
|
+
const denoJSONPath = join8(path5, "deno.json");
|
|
274116
|
+
if (existsSync2(denoJSONPath)) {
|
|
274117
|
+
return packageManagers.find((pm) => pm.name === "deno");
|
|
274118
|
+
}
|
|
275949
274119
|
}
|
|
275950
274120
|
if (!options.ignoreLockFile) {
|
|
275951
274121
|
for (const packageManager of packageManagers) {
|
|
@@ -275953,7 +274123,7 @@ async function detectPackageManager2(cwd2, options = {}) {
|
|
|
275953
274123
|
packageManager.lockFile,
|
|
275954
274124
|
packageManager.files
|
|
275955
274125
|
].flat().filter(Boolean);
|
|
275956
|
-
if (detectionsFiles.some((file) => existsSync2(resolve6(
|
|
274126
|
+
if (detectionsFiles.some((file) => existsSync2(resolve6(path5, file)))) {
|
|
275957
274127
|
return {
|
|
275958
274128
|
...packageManager
|
|
275959
274129
|
};
|
|
@@ -275982,7 +274152,8 @@ async function installDependencies2(options = {}) {
|
|
|
275982
274152
|
npm: ["ci"],
|
|
275983
274153
|
yarn: ["install", "--immutable"],
|
|
275984
274154
|
bun: ["install", "--frozen-lockfile"],
|
|
275985
|
-
pnpm: ["install", "--frozen-lockfile"]
|
|
274155
|
+
pnpm: ["install", "--frozen-lockfile"],
|
|
274156
|
+
deno: ["install", "--frozen"]
|
|
275986
274157
|
};
|
|
275987
274158
|
const commandArgs = options.frozenLockFile ? pmToFrozenLockfileInstallCommand[resolvedOptions.packageManager.name] : ["install"];
|
|
275988
274159
|
await executeCommand2(resolvedOptions.packageManager.command, commandArgs, {
|
|
@@ -275990,8 +274161,10 @@ async function installDependencies2(options = {}) {
|
|
|
275990
274161
|
silent: resolvedOptions.silent
|
|
275991
274162
|
});
|
|
275992
274163
|
}
|
|
274164
|
+
// ../../node_modules/nypm/dist/index.mjs
|
|
274165
|
+
import"tinyexec";
|
|
275993
274166
|
|
|
275994
|
-
// ../../node_modules/giget/dist/
|
|
274167
|
+
// ../../node_modules/giget/dist/shared/giget.D-_6aM9e.mjs
|
|
275995
274168
|
import { pipeline } from "node:stream";
|
|
275996
274169
|
var import_proxy = __toESM(require_proxy(), 1);
|
|
275997
274170
|
import { homedir as homedir2 } from "node:os";
|
|
@@ -276016,7 +274189,7 @@ async function download(url, filePath, options = {}) {
|
|
|
276016
274189
|
if (response.status >= 400) {
|
|
276017
274190
|
throw new Error(`Failed to download ${url}: ${response.status} ${response.statusText}`);
|
|
276018
274191
|
}
|
|
276019
|
-
const stream2 =
|
|
274192
|
+
const stream2 = createWriteStream(filePath);
|
|
276020
274193
|
await promisify(pipeline)(response.body, stream2);
|
|
276021
274194
|
await writeFile7(infoPath, JSON.stringify(info), "utf8");
|
|
276022
274195
|
}
|
|
@@ -276207,10 +274380,10 @@ async function downloadTemplate(input, options = {}) {
|
|
|
276207
274380
|
const registry = options.registry === false ? undefined : registryProvider(options.registry, { auth: options.auth });
|
|
276208
274381
|
let providerName = options.provider || (registry ? "registry" : "github");
|
|
276209
274382
|
let source = input;
|
|
276210
|
-
const
|
|
276211
|
-
if (
|
|
276212
|
-
providerName =
|
|
276213
|
-
source = input.slice(
|
|
274383
|
+
const sourceProviderMatch = input.match(sourceProtoRe);
|
|
274384
|
+
if (sourceProviderMatch) {
|
|
274385
|
+
providerName = sourceProviderMatch[1];
|
|
274386
|
+
source = input.slice(sourceProviderMatch[0].length);
|
|
276214
274387
|
if (providerName === "http" || providerName === "https") {
|
|
276215
274388
|
source = input;
|
|
276216
274389
|
}
|
|
@@ -276291,6 +274464,9 @@ async function downloadTemplate(input, options = {}) {
|
|
|
276291
274464
|
dir: extractPath
|
|
276292
274465
|
};
|
|
276293
274466
|
}
|
|
274467
|
+
// ../../node_modules/giget/dist/index.mjs
|
|
274468
|
+
var import_tar2 = __toESM(require_tar(), 1);
|
|
274469
|
+
var import_proxy2 = __toESM(require_proxy(), 1);
|
|
276294
274470
|
|
|
276295
274471
|
// src/utils/download-extract.ts
|
|
276296
274472
|
async function downloadAndExtractNpmPackage(template, targetDir) {
|
|
@@ -278239,7 +276415,7 @@ var Document = require_Document();
|
|
|
278239
276415
|
var Schema = require_Schema();
|
|
278240
276416
|
var errors2 = require_errors3();
|
|
278241
276417
|
var Alias = require_Alias();
|
|
278242
|
-
var
|
|
276418
|
+
var identity2 = require_identity();
|
|
278243
276419
|
var Pair = require_Pair();
|
|
278244
276420
|
var Scalar = require_Scalar();
|
|
278245
276421
|
var YAMLMap = require_YAMLMap();
|
|
@@ -278257,14 +276433,14 @@ var $YAMLError = errors2.YAMLError;
|
|
|
278257
276433
|
var $YAMLParseError = errors2.YAMLParseError;
|
|
278258
276434
|
var $YAMLWarning = errors2.YAMLWarning;
|
|
278259
276435
|
var $Alias = Alias.Alias;
|
|
278260
|
-
var $isAlias =
|
|
278261
|
-
var $isCollection =
|
|
278262
|
-
var $isDocument =
|
|
278263
|
-
var $isMap =
|
|
278264
|
-
var $isNode =
|
|
278265
|
-
var $isPair =
|
|
278266
|
-
var $isScalar =
|
|
278267
|
-
var $isSeq =
|
|
276436
|
+
var $isAlias = identity2.isAlias;
|
|
276437
|
+
var $isCollection = identity2.isCollection;
|
|
276438
|
+
var $isDocument = identity2.isDocument;
|
|
276439
|
+
var $isMap = identity2.isMap;
|
|
276440
|
+
var $isNode = identity2.isNode;
|
|
276441
|
+
var $isPair = identity2.isPair;
|
|
276442
|
+
var $isScalar = identity2.isScalar;
|
|
276443
|
+
var $isSeq = identity2.isSeq;
|
|
278268
276444
|
var $Pair = Pair.Pair;
|
|
278269
276445
|
var $Scalar = Scalar.Scalar;
|
|
278270
276446
|
var $YAMLMap = YAMLMap.YAMLMap;
|
|
@@ -279336,22 +277512,22 @@ function sanitizeName(value4, length = 35) {
|
|
|
279336
277512
|
import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
|
|
279337
277513
|
import { basename as basename4, join as join11 } from "node:path";
|
|
279338
277514
|
var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
|
|
279339
|
-
var isGenerated = (
|
|
279340
|
-
var getSubgraphYamlFile = async (
|
|
279341
|
-
const generated = await isGenerated(
|
|
279342
|
-
if (generated && await exists3(join11(
|
|
279343
|
-
return join11(
|
|
277515
|
+
var isGenerated = (path5 = process.cwd()) => exists3(join11(path5, CONFIG_FILE_PATH));
|
|
277516
|
+
var getSubgraphYamlFile = async (path5 = process.cwd()) => {
|
|
277517
|
+
const generated = await isGenerated(path5);
|
|
277518
|
+
if (generated && await exists3(join11(path5, "generated/scs.subgraph.yaml"))) {
|
|
277519
|
+
return join11(path5, "generated/scs.subgraph.yaml");
|
|
279344
277520
|
}
|
|
279345
|
-
if (await exists3(join11(
|
|
279346
|
-
return join11(
|
|
277521
|
+
if (await exists3(join11(path5, "subgraph/subgraph.yaml"))) {
|
|
277522
|
+
return join11(path5, "subgraph/subgraph.yaml");
|
|
279347
277523
|
}
|
|
279348
|
-
if (await exists3(join11(
|
|
279349
|
-
return join11(
|
|
277524
|
+
if (await exists3(join11(path5, "subgraph.yaml"))) {
|
|
277525
|
+
return join11(path5, "subgraph.yaml");
|
|
279350
277526
|
}
|
|
279351
277527
|
throw new Error("Subgraph configuration file not found");
|
|
279352
277528
|
};
|
|
279353
|
-
var getSubgraphYamlConfig = async (
|
|
279354
|
-
const subgraphYamlFile = await getSubgraphYamlFile(
|
|
277529
|
+
var getSubgraphYamlConfig = async (path5 = process.cwd()) => {
|
|
277530
|
+
const subgraphYamlFile = await getSubgraphYamlFile(path5);
|
|
279355
277531
|
const rawYamlConfig = await readFile7(subgraphYamlFile);
|
|
279356
277532
|
return $parse(rawYamlConfig.toString());
|
|
279357
277533
|
};
|
|
@@ -279359,9 +277535,9 @@ var updateSubgraphYamlConfig = async (config3, cwd2 = process.cwd()) => {
|
|
|
279359
277535
|
const subgraphYamlFile = await getSubgraphYamlFile(cwd2);
|
|
279360
277536
|
await writeFile8(subgraphYamlFile, $stringify(config3));
|
|
279361
277537
|
};
|
|
279362
|
-
var getSubgraphConfig = async (
|
|
277538
|
+
var getSubgraphConfig = async (path5 = process.cwd()) => {
|
|
279363
277539
|
try {
|
|
279364
|
-
const configContents = await readFile7(join11(
|
|
277540
|
+
const configContents = await readFile7(join11(path5, CONFIG_FILE_PATH));
|
|
279365
277541
|
const currentConfig = tryParseJson3(configContents.toString());
|
|
279366
277542
|
return currentConfig;
|
|
279367
277543
|
} catch (err) {
|
|
@@ -279744,4 +277920,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
279744
277920
|
// src/cli.ts
|
|
279745
277921
|
sdkCliCommand();
|
|
279746
277922
|
|
|
279747
|
-
//# debugId=
|
|
277923
|
+
//# debugId=25C62BA3083724E964756E2164756E21
|