@kubb/cli 3.15.0 → 3.16.0
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/{chunk-VVNXHIJS.cjs → chunk-MKHKV2HH.cjs} +4 -4
- package/dist/{chunk-VVNXHIJS.cjs.map → chunk-MKHKV2HH.cjs.map} +1 -1
- package/dist/{generate-BQMCI2PI.js → generate-65TMSGIL.js} +11 -9
- package/dist/generate-65TMSGIL.js.map +1 -0
- package/dist/{generate-O3UFDY6P.js → generate-HUWFJ4IA.js} +11 -16
- package/dist/generate-HUWFJ4IA.js.map +1 -0
- package/dist/{generate-MXYNXCQF.cjs → generate-J27CF4EQ.cjs} +188 -848
- package/dist/generate-J27CF4EQ.cjs.map +1 -0
- package/dist/{generate-7JAJY63M.cjs → generate-YT6MCGVO.cjs} +18 -16
- package/dist/generate-YT6MCGVO.cjs.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{mcp-VHN4F4YS.cjs → mcp-C35BGKG3.cjs} +5 -5
- package/dist/{mcp-VHN4F4YS.cjs.map → mcp-C35BGKG3.cjs.map} +1 -1
- package/dist/{validate-TEQYQFI4.cjs → validate-534U6NKH.cjs} +5 -5
- package/dist/{validate-TEQYQFI4.cjs.map → validate-534U6NKH.cjs.map} +1 -1
- package/package.json +10 -11
- package/src/utils/executeHooks.ts +9 -15
- package/src/utils/getConfig.ts +10 -6
- package/dist/generate-7JAJY63M.cjs.map +0 -1
- package/dist/generate-BQMCI2PI.js.map +0 -1
- package/dist/generate-MXYNXCQF.cjs.map +0 -1
- package/dist/generate-O3UFDY6P.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMKHKV2HH_cjs = require('./chunk-MKHKV2HH.cjs');
|
|
4
4
|
var process4 = require('process');
|
|
5
5
|
var core = require('@kubb/core');
|
|
6
6
|
var logger = require('@kubb/core/logger');
|
|
@@ -47,12 +47,12 @@ var tty__default = /*#__PURE__*/_interopDefault(tty);
|
|
|
47
47
|
var path2__default = /*#__PURE__*/_interopDefault(path2);
|
|
48
48
|
|
|
49
49
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
50
|
-
var require_windows =
|
|
50
|
+
var require_windows = chunkMKHKV2HH_cjs.__commonJS({
|
|
51
51
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
52
|
-
|
|
52
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
53
53
|
module.exports = isexe;
|
|
54
54
|
isexe.sync = sync;
|
|
55
|
-
var fs =
|
|
55
|
+
var fs = chunkMKHKV2HH_cjs.__require("fs");
|
|
56
56
|
function checkPathExt(path7, options) {
|
|
57
57
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
58
58
|
if (!pathext) {
|
|
@@ -88,12 +88,12 @@ var require_windows = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
91
|
-
var require_mode =
|
|
91
|
+
var require_mode = chunkMKHKV2HH_cjs.__commonJS({
|
|
92
92
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
93
|
-
|
|
93
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
94
94
|
module.exports = isexe;
|
|
95
95
|
isexe.sync = sync;
|
|
96
|
-
var fs =
|
|
96
|
+
var fs = chunkMKHKV2HH_cjs.__require("fs");
|
|
97
97
|
function isexe(path7, options, cb) {
|
|
98
98
|
fs.stat(path7, function(er, stat) {
|
|
99
99
|
cb(er, er ? false : checkStat(stat, options));
|
|
@@ -122,10 +122,10 @@ var require_mode = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
125
|
-
var require_isexe =
|
|
125
|
+
var require_isexe = chunkMKHKV2HH_cjs.__commonJS({
|
|
126
126
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
128
|
+
chunkMKHKV2HH_cjs.__require("fs");
|
|
129
129
|
var core;
|
|
130
130
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
131
131
|
core = require_windows();
|
|
@@ -178,11 +178,11 @@ var require_isexe = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
178
178
|
});
|
|
179
179
|
|
|
180
180
|
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
181
|
-
var require_which =
|
|
181
|
+
var require_which = chunkMKHKV2HH_cjs.__commonJS({
|
|
182
182
|
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
183
|
-
|
|
183
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
184
184
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
185
|
-
var path7 =
|
|
185
|
+
var path7 = chunkMKHKV2HH_cjs.__require("path");
|
|
186
186
|
var COLON = isWindows ? ";" : ":";
|
|
187
187
|
var isexe = require_isexe();
|
|
188
188
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -275,9 +275,9 @@ var require_which = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
275
275
|
});
|
|
276
276
|
|
|
277
277
|
// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
278
|
-
var require_path_key =
|
|
278
|
+
var require_path_key = chunkMKHKV2HH_cjs.__commonJS({
|
|
279
279
|
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
280
|
-
|
|
280
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
281
281
|
var pathKey2 = (options = {}) => {
|
|
282
282
|
const environment = options.env || process.env;
|
|
283
283
|
const platform2 = options.platform || process.platform;
|
|
@@ -292,10 +292,10 @@ var require_path_key = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
292
292
|
});
|
|
293
293
|
|
|
294
294
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
295
|
-
var require_resolveCommand =
|
|
295
|
+
var require_resolveCommand = chunkMKHKV2HH_cjs.__commonJS({
|
|
296
296
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
297
|
-
|
|
298
|
-
var path7 =
|
|
297
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
298
|
+
var path7 = chunkMKHKV2HH_cjs.__require("path");
|
|
299
299
|
var which = require_which();
|
|
300
300
|
var getPathKey = require_path_key();
|
|
301
301
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -334,9 +334,9 @@ var require_resolveCommand = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
334
334
|
});
|
|
335
335
|
|
|
336
336
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
337
|
-
var require_escape =
|
|
337
|
+
var require_escape = chunkMKHKV2HH_cjs.__commonJS({
|
|
338
338
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
339
|
-
|
|
339
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
340
340
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
341
341
|
function escapeCommand(arg) {
|
|
342
342
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
@@ -359,17 +359,17 @@ var require_escape = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
359
359
|
});
|
|
360
360
|
|
|
361
361
|
// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
362
|
-
var require_shebang_regex =
|
|
362
|
+
var require_shebang_regex = chunkMKHKV2HH_cjs.__commonJS({
|
|
363
363
|
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
364
|
-
|
|
364
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
365
365
|
module.exports = /^#!(.*)/;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
368
|
|
|
369
369
|
// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
370
|
-
var require_shebang_command =
|
|
370
|
+
var require_shebang_command = chunkMKHKV2HH_cjs.__commonJS({
|
|
371
371
|
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
372
|
-
|
|
372
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
373
373
|
var shebangRegex = require_shebang_regex();
|
|
374
374
|
module.exports = (string = "") => {
|
|
375
375
|
const match = string.match(shebangRegex);
|
|
@@ -387,10 +387,10 @@ var require_shebang_command = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
387
387
|
});
|
|
388
388
|
|
|
389
389
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
390
|
-
var require_readShebang =
|
|
390
|
+
var require_readShebang = chunkMKHKV2HH_cjs.__commonJS({
|
|
391
391
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
392
|
-
|
|
393
|
-
var fs =
|
|
392
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
393
|
+
var fs = chunkMKHKV2HH_cjs.__require("fs");
|
|
394
394
|
var shebangCommand = require_shebang_command();
|
|
395
395
|
function readShebang(command) {
|
|
396
396
|
const size = 150;
|
|
@@ -409,10 +409,10 @@ var require_readShebang = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
409
409
|
});
|
|
410
410
|
|
|
411
411
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
412
|
-
var require_parse =
|
|
412
|
+
var require_parse = chunkMKHKV2HH_cjs.__commonJS({
|
|
413
413
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
414
|
-
|
|
415
|
-
var path7 =
|
|
414
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
415
|
+
var path7 = chunkMKHKV2HH_cjs.__require("path");
|
|
416
416
|
var resolveCommand = require_resolveCommand();
|
|
417
417
|
var escape = require_escape();
|
|
418
418
|
var readShebang = require_readShebang();
|
|
@@ -471,9 +471,9 @@ var require_parse = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
471
471
|
});
|
|
472
472
|
|
|
473
473
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
474
|
-
var require_enoent =
|
|
474
|
+
var require_enoent = chunkMKHKV2HH_cjs.__commonJS({
|
|
475
475
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
476
|
-
|
|
476
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
477
477
|
var isWin = process.platform === "win32";
|
|
478
478
|
function notFoundError(original, syscall) {
|
|
479
479
|
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
@@ -521,10 +521,10 @@ var require_enoent = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
521
521
|
});
|
|
522
522
|
|
|
523
523
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
524
|
-
var require_cross_spawn =
|
|
524
|
+
var require_cross_spawn = chunkMKHKV2HH_cjs.__commonJS({
|
|
525
525
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
526
|
-
|
|
527
|
-
var cp =
|
|
526
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
527
|
+
var cp = chunkMKHKV2HH_cjs.__require("child_process");
|
|
528
528
|
var parse = require_parse();
|
|
529
529
|
var enoent = require_enoent();
|
|
530
530
|
function spawn2(command, args, options) {
|
|
@@ -547,182 +547,20 @@ var require_cross_spawn = chunkVVNXHIJS_cjs.__commonJS({
|
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
549
|
|
|
550
|
-
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
|
|
551
|
-
var require_eventemitter3 = chunkVVNXHIJS_cjs.__commonJS({
|
|
552
|
-
"../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
|
|
553
|
-
chunkVVNXHIJS_cjs.init_cjs_shims();
|
|
554
|
-
var has = Object.prototype.hasOwnProperty;
|
|
555
|
-
var prefix = "~";
|
|
556
|
-
function Events() {
|
|
557
|
-
}
|
|
558
|
-
if (Object.create) {
|
|
559
|
-
Events.prototype = /* @__PURE__ */ Object.create(null);
|
|
560
|
-
if (!new Events().__proto__) prefix = false;
|
|
561
|
-
}
|
|
562
|
-
function EE(fn, context, once9) {
|
|
563
|
-
this.fn = fn;
|
|
564
|
-
this.context = context;
|
|
565
|
-
this.once = once9 || false;
|
|
566
|
-
}
|
|
567
|
-
function addListener(emitter, event, fn, context, once9) {
|
|
568
|
-
if (typeof fn !== "function") {
|
|
569
|
-
throw new TypeError("The listener must be a function");
|
|
570
|
-
}
|
|
571
|
-
var listener = new EE(fn, context || emitter, once9), evt = prefix ? prefix + event : event;
|
|
572
|
-
if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
|
|
573
|
-
else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
|
|
574
|
-
else emitter._events[evt] = [emitter._events[evt], listener];
|
|
575
|
-
return emitter;
|
|
576
|
-
}
|
|
577
|
-
function clearEvent(emitter, evt) {
|
|
578
|
-
if (--emitter._eventsCount === 0) emitter._events = new Events();
|
|
579
|
-
else delete emitter._events[evt];
|
|
580
|
-
}
|
|
581
|
-
function EventEmitter3() {
|
|
582
|
-
this._events = new Events();
|
|
583
|
-
this._eventsCount = 0;
|
|
584
|
-
}
|
|
585
|
-
EventEmitter3.prototype.eventNames = function eventNames() {
|
|
586
|
-
var names = [], events, name;
|
|
587
|
-
if (this._eventsCount === 0) return names;
|
|
588
|
-
for (name in events = this._events) {
|
|
589
|
-
if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
|
|
590
|
-
}
|
|
591
|
-
if (Object.getOwnPropertySymbols) {
|
|
592
|
-
return names.concat(Object.getOwnPropertySymbols(events));
|
|
593
|
-
}
|
|
594
|
-
return names;
|
|
595
|
-
};
|
|
596
|
-
EventEmitter3.prototype.listeners = function listeners(event) {
|
|
597
|
-
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
598
|
-
if (!handlers) return [];
|
|
599
|
-
if (handlers.fn) return [handlers.fn];
|
|
600
|
-
for (var i2 = 0, l = handlers.length, ee = new Array(l); i2 < l; i2++) {
|
|
601
|
-
ee[i2] = handlers[i2].fn;
|
|
602
|
-
}
|
|
603
|
-
return ee;
|
|
604
|
-
};
|
|
605
|
-
EventEmitter3.prototype.listenerCount = function listenerCount(event) {
|
|
606
|
-
var evt = prefix ? prefix + event : event, listeners = this._events[evt];
|
|
607
|
-
if (!listeners) return 0;
|
|
608
|
-
if (listeners.fn) return 1;
|
|
609
|
-
return listeners.length;
|
|
610
|
-
};
|
|
611
|
-
EventEmitter3.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
612
|
-
var evt = prefix ? prefix + event : event;
|
|
613
|
-
if (!this._events[evt]) return false;
|
|
614
|
-
var listeners = this._events[evt], len = arguments.length, args, i2;
|
|
615
|
-
if (listeners.fn) {
|
|
616
|
-
if (listeners.once) this.removeListener(event, listeners.fn, void 0, true);
|
|
617
|
-
switch (len) {
|
|
618
|
-
case 1:
|
|
619
|
-
return listeners.fn.call(listeners.context), true;
|
|
620
|
-
case 2:
|
|
621
|
-
return listeners.fn.call(listeners.context, a1), true;
|
|
622
|
-
case 3:
|
|
623
|
-
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
624
|
-
case 4:
|
|
625
|
-
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
626
|
-
case 5:
|
|
627
|
-
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
628
|
-
case 6:
|
|
629
|
-
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
630
|
-
}
|
|
631
|
-
for (i2 = 1, args = new Array(len - 1); i2 < len; i2++) {
|
|
632
|
-
args[i2 - 1] = arguments[i2];
|
|
633
|
-
}
|
|
634
|
-
listeners.fn.apply(listeners.context, args);
|
|
635
|
-
} else {
|
|
636
|
-
var length = listeners.length, j;
|
|
637
|
-
for (i2 = 0; i2 < length; i2++) {
|
|
638
|
-
if (listeners[i2].once) this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
639
|
-
switch (len) {
|
|
640
|
-
case 1:
|
|
641
|
-
listeners[i2].fn.call(listeners[i2].context);
|
|
642
|
-
break;
|
|
643
|
-
case 2:
|
|
644
|
-
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
645
|
-
break;
|
|
646
|
-
case 3:
|
|
647
|
-
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
648
|
-
break;
|
|
649
|
-
case 4:
|
|
650
|
-
listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
|
|
651
|
-
break;
|
|
652
|
-
default:
|
|
653
|
-
if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {
|
|
654
|
-
args[j - 1] = arguments[j];
|
|
655
|
-
}
|
|
656
|
-
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
return true;
|
|
661
|
-
};
|
|
662
|
-
EventEmitter3.prototype.on = function on6(event, fn, context) {
|
|
663
|
-
return addListener(this, event, fn, context, false);
|
|
664
|
-
};
|
|
665
|
-
EventEmitter3.prototype.once = function once9(event, fn, context) {
|
|
666
|
-
return addListener(this, event, fn, context, true);
|
|
667
|
-
};
|
|
668
|
-
EventEmitter3.prototype.removeListener = function removeListener(event, fn, context, once9) {
|
|
669
|
-
var evt = prefix ? prefix + event : event;
|
|
670
|
-
if (!this._events[evt]) return this;
|
|
671
|
-
if (!fn) {
|
|
672
|
-
clearEvent(this, evt);
|
|
673
|
-
return this;
|
|
674
|
-
}
|
|
675
|
-
var listeners = this._events[evt];
|
|
676
|
-
if (listeners.fn) {
|
|
677
|
-
if (listeners.fn === fn && (!once9 || listeners.once) && (!context || listeners.context === context)) {
|
|
678
|
-
clearEvent(this, evt);
|
|
679
|
-
}
|
|
680
|
-
} else {
|
|
681
|
-
for (var i2 = 0, events = [], length = listeners.length; i2 < length; i2++) {
|
|
682
|
-
if (listeners[i2].fn !== fn || once9 && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
683
|
-
events.push(listeners[i2]);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
|
|
687
|
-
else clearEvent(this, evt);
|
|
688
|
-
}
|
|
689
|
-
return this;
|
|
690
|
-
};
|
|
691
|
-
EventEmitter3.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
692
|
-
var evt;
|
|
693
|
-
if (event) {
|
|
694
|
-
evt = prefix ? prefix + event : event;
|
|
695
|
-
if (this._events[evt]) clearEvent(this, evt);
|
|
696
|
-
} else {
|
|
697
|
-
this._events = new Events();
|
|
698
|
-
this._eventsCount = 0;
|
|
699
|
-
}
|
|
700
|
-
return this;
|
|
701
|
-
};
|
|
702
|
-
EventEmitter3.prototype.off = EventEmitter3.prototype.removeListener;
|
|
703
|
-
EventEmitter3.prototype.addListener = EventEmitter3.prototype.on;
|
|
704
|
-
EventEmitter3.prefixed = prefix;
|
|
705
|
-
EventEmitter3.EventEmitter = EventEmitter3;
|
|
706
|
-
if ("undefined" !== typeof module) {
|
|
707
|
-
module.exports = EventEmitter3;
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
|
|
712
550
|
// src/runners/generate.ts
|
|
713
|
-
|
|
551
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
714
552
|
|
|
715
553
|
// src/utils/executeHooks.ts
|
|
716
|
-
|
|
554
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
717
555
|
|
|
718
556
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/index.js
|
|
719
|
-
|
|
557
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
720
558
|
|
|
721
559
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/create.js
|
|
722
|
-
|
|
560
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
723
561
|
|
|
724
562
|
// ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
725
|
-
|
|
563
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
726
564
|
function isPlainObject(value) {
|
|
727
565
|
if (typeof value !== "object" || value === null) {
|
|
728
566
|
return false;
|
|
@@ -732,10 +570,10 @@ function isPlainObject(value) {
|
|
|
732
570
|
}
|
|
733
571
|
|
|
734
572
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/parameters.js
|
|
735
|
-
|
|
573
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
736
574
|
|
|
737
575
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/file-url.js
|
|
738
|
-
|
|
576
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
739
577
|
var safeNormalizeFileUrl = (file, name) => {
|
|
740
578
|
const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
|
|
741
579
|
if (typeof fileString !== "string") {
|
|
@@ -769,10 +607,10 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
|
769
607
|
};
|
|
770
608
|
|
|
771
609
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/template.js
|
|
772
|
-
|
|
610
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
773
611
|
|
|
774
612
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/uint-array.js
|
|
775
|
-
|
|
613
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
776
614
|
var { toString: objectToString } = Object.prototype;
|
|
777
615
|
var isArrayBuffer = (value) => objectToString.call(value) === "[object ArrayBuffer]";
|
|
778
616
|
var isUint8Array = (value) => objectToString.call(value) === "[object Uint8Array]";
|
|
@@ -919,22 +757,22 @@ var getSubprocessResult = ({ stdout: stdout2 }) => {
|
|
|
919
757
|
};
|
|
920
758
|
|
|
921
759
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/main-sync.js
|
|
922
|
-
|
|
760
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
923
761
|
|
|
924
762
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/command.js
|
|
925
|
-
|
|
763
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
926
764
|
|
|
927
765
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/start.js
|
|
928
|
-
|
|
766
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
929
767
|
|
|
930
768
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/values.js
|
|
931
|
-
|
|
769
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
932
770
|
|
|
933
771
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/specific.js
|
|
934
|
-
|
|
772
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
935
773
|
|
|
936
774
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/standard-stream.js
|
|
937
|
-
|
|
775
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
938
776
|
var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
939
777
|
var STANDARD_STREAMS = [process4__namespace.default.stdin, process4__namespace.default.stdout, process4__namespace.default.stderr];
|
|
940
778
|
var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
|
|
@@ -1023,10 +861,10 @@ var isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
|
|
|
1023
861
|
var VERBOSE_VALUES = ["none", "short", "full"];
|
|
1024
862
|
|
|
1025
863
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/log.js
|
|
1026
|
-
|
|
864
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1027
865
|
|
|
1028
866
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/escape.js
|
|
1029
|
-
|
|
867
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1030
868
|
var joinCommand = (filePath, rawArguments) => {
|
|
1031
869
|
const fileAndArguments = [filePath, ...rawArguments];
|
|
1032
870
|
const command = fileAndArguments.join(" ");
|
|
@@ -1070,13 +908,13 @@ var quoteString = (escapedArgument) => {
|
|
|
1070
908
|
var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
1071
909
|
|
|
1072
910
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/default.js
|
|
1073
|
-
|
|
911
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1074
912
|
|
|
1075
913
|
// ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
|
|
1076
|
-
|
|
914
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1077
915
|
|
|
1078
916
|
// ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
1079
|
-
|
|
917
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1080
918
|
function isUnicodeSupported() {
|
|
1081
919
|
const { env } = process4__namespace.default;
|
|
1082
920
|
const { TERM, TERM_PROGRAM } = env;
|
|
@@ -1362,7 +1200,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
1362
1200
|
var figures_default = figures;
|
|
1363
1201
|
|
|
1364
1202
|
// ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
|
|
1365
|
-
|
|
1203
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1366
1204
|
var hasColors = tty__default.default?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
1367
1205
|
var format = (open, close) => {
|
|
1368
1206
|
if (!hasColors) {
|
|
@@ -1432,7 +1270,7 @@ var COLORS = {
|
|
|
1432
1270
|
};
|
|
1433
1271
|
|
|
1434
1272
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/custom.js
|
|
1435
|
-
|
|
1273
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1436
1274
|
var applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
|
|
1437
1275
|
const verboseFunction = getVerboseFunction(verboseInfo, fdNumber);
|
|
1438
1276
|
return printedLines.map(({ verboseLine, verboseObject }) => applyVerboseFunction(verboseLine, verboseObject, verboseFunction)).filter((printedLine) => printedLine !== void 0).map((printedLine) => appendNewline(printedLine)).join("");
|
|
@@ -1496,7 +1334,7 @@ var logCommand = (escapedCommand, verboseInfo) => {
|
|
|
1496
1334
|
};
|
|
1497
1335
|
|
|
1498
1336
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/info.js
|
|
1499
|
-
|
|
1337
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1500
1338
|
var getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
|
|
1501
1339
|
validateVerbose(verbose);
|
|
1502
1340
|
const commandId = getCommandId(verbose);
|
|
@@ -1525,7 +1363,7 @@ var validateVerbose = (verbose) => {
|
|
|
1525
1363
|
};
|
|
1526
1364
|
|
|
1527
1365
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/duration.js
|
|
1528
|
-
|
|
1366
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1529
1367
|
var getStartTime = () => process4.hrtime.bigint();
|
|
1530
1368
|
var getDurationMs = (startTime) => Number(process4.hrtime.bigint() - startTime) / 1e6;
|
|
1531
1369
|
|
|
@@ -1545,14 +1383,14 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
1545
1383
|
};
|
|
1546
1384
|
|
|
1547
1385
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/options.js
|
|
1548
|
-
|
|
1549
|
-
var import_cross_spawn =
|
|
1386
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1387
|
+
var import_cross_spawn = chunkMKHKV2HH_cjs.__toESM(require_cross_spawn(), 1);
|
|
1550
1388
|
|
|
1551
1389
|
// ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
1552
|
-
|
|
1390
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1553
1391
|
|
|
1554
1392
|
// ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
1555
|
-
|
|
1393
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1556
1394
|
function pathKey(options = {}) {
|
|
1557
1395
|
const {
|
|
1558
1396
|
env = process.env,
|
|
@@ -1565,7 +1403,7 @@ function pathKey(options = {}) {
|
|
|
1565
1403
|
}
|
|
1566
1404
|
|
|
1567
1405
|
// ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
|
|
1568
|
-
|
|
1406
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1569
1407
|
util.promisify(child_process.execFile);
|
|
1570
1408
|
function toPath(urlOrPath) {
|
|
1571
1409
|
return urlOrPath instanceof URL ? url.fileURLToPath(urlOrPath) : urlOrPath;
|
|
@@ -1626,10 +1464,10 @@ var npmRunPathEnv = ({ env = process4__namespace.default.env, ...options } = {})
|
|
|
1626
1464
|
};
|
|
1627
1465
|
|
|
1628
1466
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/kill.js
|
|
1629
|
-
|
|
1467
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1630
1468
|
|
|
1631
1469
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/final-error.js
|
|
1632
|
-
|
|
1470
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1633
1471
|
var getFinalError = (originalError, message, isSync) => {
|
|
1634
1472
|
const ErrorClass = isSync ? ExecaSyncError : ExecaError;
|
|
1635
1473
|
const options = originalError instanceof DiscardedError ? {} : { cause: originalError };
|
|
@@ -1662,13 +1500,13 @@ var ExecaSyncError = class extends Error {
|
|
|
1662
1500
|
setErrorName(ExecaSyncError, ExecaSyncError.name);
|
|
1663
1501
|
|
|
1664
1502
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/signal.js
|
|
1665
|
-
|
|
1503
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1666
1504
|
|
|
1667
1505
|
// ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/main.js
|
|
1668
|
-
|
|
1506
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1669
1507
|
|
|
1670
1508
|
// ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/realtime.js
|
|
1671
|
-
|
|
1509
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1672
1510
|
var getRealtimeSignals = () => {
|
|
1673
1511
|
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
1674
1512
|
return Array.from({ length }, getRealtimeSignal);
|
|
@@ -1684,10 +1522,10 @@ var SIGRTMIN = 34;
|
|
|
1684
1522
|
var SIGRTMAX = 64;
|
|
1685
1523
|
|
|
1686
1524
|
// ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
|
|
1687
|
-
|
|
1525
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1688
1526
|
|
|
1689
1527
|
// ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/core.js
|
|
1690
|
-
|
|
1528
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
1691
1529
|
var SIGNALS = [
|
|
1692
1530
|
{
|
|
1693
1531
|
name: "SIGHUP",
|
|
@@ -2145,10 +1983,10 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
|
|
|
2145
1983
|
};
|
|
2146
1984
|
|
|
2147
1985
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/cancel.js
|
|
2148
|
-
|
|
1986
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2149
1987
|
|
|
2150
1988
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/abort-signal.js
|
|
2151
|
-
|
|
1989
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2152
1990
|
var onAbortedSignal = async (mainSignal, stopSignal) => {
|
|
2153
1991
|
if (!mainSignal.aborted) {
|
|
2154
1992
|
await events.once(mainSignal, "abort", { signal: stopSignal });
|
|
@@ -2170,16 +2008,16 @@ var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) =>
|
|
|
2170
2008
|
};
|
|
2171
2009
|
|
|
2172
2010
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/graceful.js
|
|
2173
|
-
|
|
2011
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2174
2012
|
|
|
2175
2013
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/graceful.js
|
|
2176
|
-
|
|
2014
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2177
2015
|
|
|
2178
2016
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/send.js
|
|
2179
|
-
|
|
2017
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2180
2018
|
|
|
2181
2019
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/validation.js
|
|
2182
|
-
|
|
2020
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2183
2021
|
var validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
|
|
2184
2022
|
validateIpcOption(methodName, isSubprocess, ipc);
|
|
2185
2023
|
validateConnection(methodName, isSubprocess, isConnected2);
|
|
@@ -2252,10 +2090,10 @@ var disconnect = (anyProcess) => {
|
|
|
2252
2090
|
};
|
|
2253
2091
|
|
|
2254
2092
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/outgoing.js
|
|
2255
|
-
|
|
2093
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2256
2094
|
|
|
2257
2095
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/deferred.js
|
|
2258
|
-
|
|
2096
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2259
2097
|
var createDeferred = () => {
|
|
2260
2098
|
const methods = {};
|
|
2261
2099
|
const promise = new Promise((resolve, reject) => {
|
|
@@ -2265,7 +2103,7 @@ var createDeferred = () => {
|
|
|
2265
2103
|
};
|
|
2266
2104
|
|
|
2267
2105
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/fd-options.js
|
|
2268
|
-
|
|
2106
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2269
2107
|
var getToStream = (destination, to = "stdin") => {
|
|
2270
2108
|
const isWritable = true;
|
|
2271
2109
|
const { options, fileDescriptors } = SUBPROCESS_OPTIONS.get(destination);
|
|
@@ -2346,10 +2184,10 @@ var serializeOptionValue = (value) => {
|
|
|
2346
2184
|
};
|
|
2347
2185
|
|
|
2348
2186
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/strict.js
|
|
2349
|
-
|
|
2187
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2350
2188
|
|
|
2351
2189
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/utils/max-listeners.js
|
|
2352
|
-
|
|
2190
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2353
2191
|
var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
2354
2192
|
const maxListeners = eventEmitter.getMaxListeners();
|
|
2355
2193
|
if (maxListeners === 0 || maxListeners === Number.POSITIVE_INFINITY) {
|
|
@@ -2362,13 +2200,13 @@ var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
|
2362
2200
|
};
|
|
2363
2201
|
|
|
2364
2202
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/forward.js
|
|
2365
|
-
|
|
2203
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2366
2204
|
|
|
2367
2205
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/incoming.js
|
|
2368
|
-
|
|
2206
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2369
2207
|
|
|
2370
2208
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/reference.js
|
|
2371
|
-
|
|
2209
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2372
2210
|
var addReference = (channel, reference) => {
|
|
2373
2211
|
if (reference) {
|
|
2374
2212
|
addReferenceCount(channel);
|
|
@@ -2766,7 +2604,7 @@ var getReason = ({ reason }) => {
|
|
|
2766
2604
|
};
|
|
2767
2605
|
|
|
2768
2606
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/timeout.js
|
|
2769
|
-
|
|
2607
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2770
2608
|
var validateTimeout = ({ timeout }) => {
|
|
2771
2609
|
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
2772
2610
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
@@ -2781,7 +2619,7 @@ var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
|
|
|
2781
2619
|
};
|
|
2782
2620
|
|
|
2783
2621
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/node.js
|
|
2784
|
-
|
|
2622
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2785
2623
|
var mapNode = ({ options }) => {
|
|
2786
2624
|
if (options.node === false) {
|
|
2787
2625
|
throw new TypeError('The "node" option cannot be false with `execaNode()`.');
|
|
@@ -2821,7 +2659,7 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
2821
2659
|
};
|
|
2822
2660
|
|
|
2823
2661
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/ipc-input.js
|
|
2824
|
-
|
|
2662
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2825
2663
|
var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
2826
2664
|
if (ipcInput === void 0) {
|
|
2827
2665
|
return;
|
|
@@ -2857,7 +2695,7 @@ var sendIpcInput = async (subprocess, ipcInput) => {
|
|
|
2857
2695
|
};
|
|
2858
2696
|
|
|
2859
2697
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/encoding-option.js
|
|
2860
|
-
|
|
2698
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2861
2699
|
var validateEncoding = ({ encoding }) => {
|
|
2862
2700
|
if (ENCODINGS.has(encoding)) {
|
|
2863
2701
|
return;
|
|
@@ -2900,7 +2738,7 @@ var ENCODING_ALIASES = {
|
|
|
2900
2738
|
var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
|
|
2901
2739
|
|
|
2902
2740
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/cwd.js
|
|
2903
|
-
|
|
2741
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
2904
2742
|
var normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
2905
2743
|
const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
|
|
2906
2744
|
return path2__default.default.resolve(cwdString);
|
|
@@ -3005,17 +2843,17 @@ var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, no
|
|
|
3005
2843
|
};
|
|
3006
2844
|
|
|
3007
2845
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/shell.js
|
|
3008
|
-
|
|
2846
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3009
2847
|
var concatenateShell = (file, commandArguments, options) => options.shell && commandArguments.length > 0 ? [[file, ...commandArguments].join(" "), [], options] : [file, commandArguments, options];
|
|
3010
2848
|
|
|
3011
2849
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/result.js
|
|
3012
|
-
|
|
2850
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3013
2851
|
|
|
3014
2852
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/message.js
|
|
3015
|
-
|
|
2853
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3016
2854
|
|
|
3017
2855
|
// ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
|
|
3018
|
-
|
|
2856
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3019
2857
|
function stripFinalNewline(input) {
|
|
3020
2858
|
if (typeof input === "string") {
|
|
3021
2859
|
return stripFinalNewlineString(input);
|
|
@@ -3033,16 +2871,16 @@ var CR = "\r";
|
|
|
3033
2871
|
var CR_BINARY = CR.codePointAt(0);
|
|
3034
2872
|
|
|
3035
2873
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/max-buffer.js
|
|
3036
|
-
|
|
2874
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3037
2875
|
|
|
3038
2876
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/index.js
|
|
3039
|
-
|
|
2877
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3040
2878
|
|
|
3041
2879
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
3042
|
-
|
|
2880
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3043
2881
|
|
|
3044
2882
|
// ../../node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.js
|
|
3045
|
-
|
|
2883
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3046
2884
|
function isStream(stream, { checkOpen = true } = {}) {
|
|
3047
2885
|
return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
|
|
3048
2886
|
}
|
|
@@ -3057,10 +2895,10 @@ function isDuplexStream(stream, options) {
|
|
|
3057
2895
|
}
|
|
3058
2896
|
|
|
3059
2897
|
// ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js
|
|
3060
|
-
|
|
2898
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3061
2899
|
|
|
3062
2900
|
// ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js
|
|
3063
|
-
|
|
2901
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3064
2902
|
var a = Object.getPrototypeOf(
|
|
3065
2903
|
Object.getPrototypeOf(
|
|
3066
2904
|
/* istanbul ignore next */
|
|
@@ -3149,7 +2987,7 @@ function h({ preventCancel: r = false } = {}) {
|
|
|
3149
2987
|
}
|
|
3150
2988
|
|
|
3151
2989
|
// ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js
|
|
3152
|
-
|
|
2990
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3153
2991
|
|
|
3154
2992
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
3155
2993
|
var getAsyncIterable = (stream) => {
|
|
@@ -3200,13 +3038,13 @@ var handleStreamEnd = async (stream, controller, state) => {
|
|
|
3200
3038
|
var nodeImports = {};
|
|
3201
3039
|
|
|
3202
3040
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/exports.js
|
|
3203
|
-
|
|
3041
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3204
3042
|
|
|
3205
3043
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array.js
|
|
3206
|
-
|
|
3044
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3207
3045
|
|
|
3208
3046
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.js
|
|
3209
|
-
|
|
3047
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3210
3048
|
var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
3211
3049
|
const asyncIterable = getAsyncIterable(stream);
|
|
3212
3050
|
const state = init();
|
|
@@ -3302,7 +3140,7 @@ var MaxBufferError = class extends Error {
|
|
|
3302
3140
|
};
|
|
3303
3141
|
|
|
3304
3142
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
|
|
3305
|
-
|
|
3143
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3306
3144
|
var identity2 = (value) => value;
|
|
3307
3145
|
var noop = () => void 0;
|
|
3308
3146
|
var getContentsProperty = ({ contents }) => contents;
|
|
@@ -3339,7 +3177,7 @@ var arrayMethods = {
|
|
|
3339
3177
|
};
|
|
3340
3178
|
|
|
3341
3179
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.js
|
|
3342
|
-
|
|
3180
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3343
3181
|
async function getStreamAsArrayBuffer(stream, options) {
|
|
3344
3182
|
return getStreamContents(stream, arrayBufferMethods, options);
|
|
3345
3183
|
}
|
|
@@ -3393,7 +3231,7 @@ var arrayBufferMethods = {
|
|
|
3393
3231
|
};
|
|
3394
3232
|
|
|
3395
3233
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/string.js
|
|
3396
|
-
|
|
3234
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3397
3235
|
async function getStreamAsString(stream, options) {
|
|
3398
3236
|
return getStreamContents(stream, stringMethods, options);
|
|
3399
3237
|
}
|
|
@@ -3776,16 +3614,16 @@ var normalizeExitPayload = (rawExitCode, rawSignal) => {
|
|
|
3776
3614
|
};
|
|
3777
3615
|
|
|
3778
3616
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/reject.js
|
|
3779
|
-
|
|
3617
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3780
3618
|
|
|
3781
3619
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/complete.js
|
|
3782
|
-
|
|
3620
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3783
3621
|
|
|
3784
3622
|
// ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
|
|
3785
|
-
|
|
3623
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3786
3624
|
|
|
3787
3625
|
// ../../node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js
|
|
3788
|
-
|
|
3626
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3789
3627
|
var toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0;
|
|
3790
3628
|
function parseNumber(milliseconds) {
|
|
3791
3629
|
return {
|
|
@@ -3924,7 +3762,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3924
3762
|
}
|
|
3925
3763
|
|
|
3926
3764
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/error.js
|
|
3927
|
-
|
|
3765
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3928
3766
|
var logError = (result, verboseInfo) => {
|
|
3929
3767
|
if (result.failed) {
|
|
3930
3768
|
verboseLog({
|
|
@@ -3964,16 +3802,16 @@ var handleResult = (result, verboseInfo, { reject }) => {
|
|
|
3964
3802
|
};
|
|
3965
3803
|
|
|
3966
3804
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle-sync.js
|
|
3967
|
-
|
|
3805
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3968
3806
|
|
|
3969
3807
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle.js
|
|
3970
|
-
|
|
3808
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3971
3809
|
|
|
3972
3810
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/normalize.js
|
|
3973
|
-
|
|
3811
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3974
3812
|
|
|
3975
3813
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/type.js
|
|
3976
|
-
|
|
3814
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
3977
3815
|
var getStdioItemType = (value, optionName) => {
|
|
3978
3816
|
if (isAsyncGenerator(value)) {
|
|
3979
3817
|
return "asyncGenerator";
|
|
@@ -4100,7 +3938,7 @@ var TYPE_TO_MESSAGE = {
|
|
|
4100
3938
|
};
|
|
4101
3939
|
|
|
4102
3940
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/object-mode.js
|
|
4103
|
-
|
|
3941
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4104
3942
|
var getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
|
|
4105
3943
|
var getOutputObjectModes = (objectMode, index, newTransforms) => {
|
|
4106
3944
|
const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
|
|
@@ -4215,7 +4053,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
|
|
|
4215
4053
|
var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
|
|
4216
4054
|
|
|
4217
4055
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/direction.js
|
|
4218
|
-
|
|
4056
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4219
4057
|
var getStreamDirection = (stdioItems, fdNumber, optionName) => {
|
|
4220
4058
|
const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
|
|
4221
4059
|
if (directions.includes("input") && directions.includes("output")) {
|
|
@@ -4265,10 +4103,10 @@ var getStandardStreamDirection = (value) => {
|
|
|
4265
4103
|
var DEFAULT_DIRECTION = "output";
|
|
4266
4104
|
|
|
4267
4105
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/stdio-option.js
|
|
4268
|
-
|
|
4106
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4269
4107
|
|
|
4270
4108
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/array.js
|
|
4271
|
-
|
|
4109
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4272
4110
|
var normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
|
|
4273
4111
|
|
|
4274
4112
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/stdio-option.js
|
|
@@ -4306,7 +4144,7 @@ var normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((st
|
|
|
4306
4144
|
var isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
|
|
4307
4145
|
|
|
4308
4146
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/native.js
|
|
4309
|
-
|
|
4147
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4310
4148
|
var handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
|
|
4311
4149
|
if (!isStdioArray || type !== "native") {
|
|
4312
4150
|
return stdioItem;
|
|
@@ -4374,7 +4212,7 @@ var getStandardStream = (fdNumber, value, optionName) => {
|
|
|
4374
4212
|
};
|
|
4375
4213
|
|
|
4376
4214
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/input-option.js
|
|
4377
|
-
|
|
4215
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4378
4216
|
var handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [
|
|
4379
4217
|
...handleInputOption(input),
|
|
4380
4218
|
...handleInputFileOption(inputFile)
|
|
@@ -4411,7 +4249,7 @@ var getInputFileType = (inputFile) => {
|
|
|
4411
4249
|
};
|
|
4412
4250
|
|
|
4413
4251
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/duplicate.js
|
|
4414
|
-
|
|
4252
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4415
4253
|
var filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
|
|
4416
4254
|
var getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync }) => {
|
|
4417
4255
|
const otherStdioItems = getOtherStdioItems(fileDescriptors, type);
|
|
@@ -4693,18 +4531,18 @@ var addPropertiesSync = {
|
|
|
4693
4531
|
};
|
|
4694
4532
|
|
|
4695
4533
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/strip-newline.js
|
|
4696
|
-
|
|
4534
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4697
4535
|
var stripNewline = (value, { stripFinalNewline: stripFinalNewline2 }, fdNumber) => getStripFinalNewline(stripFinalNewline2, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
|
|
4698
4536
|
var getStripFinalNewline = (stripFinalNewline2, fdNumber) => fdNumber === "all" ? stripFinalNewline2[1] || stripFinalNewline2[2] : stripFinalNewline2[fdNumber];
|
|
4699
4537
|
|
|
4700
4538
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/input-sync.js
|
|
4701
|
-
|
|
4539
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4702
4540
|
|
|
4703
4541
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/generator.js
|
|
4704
|
-
|
|
4542
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4705
4543
|
|
|
4706
4544
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/split.js
|
|
4707
|
-
|
|
4545
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4708
4546
|
var getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
|
|
4709
4547
|
var splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
|
|
4710
4548
|
var splitLinesItemSync = (chunk, preserveNewlines) => {
|
|
@@ -4785,7 +4623,7 @@ var linesUint8ArrayInfo = {
|
|
|
4785
4623
|
};
|
|
4786
4624
|
|
|
4787
4625
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/validate.js
|
|
4788
|
-
|
|
4626
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4789
4627
|
var getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
|
|
4790
4628
|
var validateStringTransformInput = function* (optionName, chunk) {
|
|
4791
4629
|
if (typeof chunk !== "string" && !isUint8Array(chunk) && !buffer.Buffer.isBuffer(chunk)) {
|
|
@@ -4814,7 +4652,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
4814
4652
|
};
|
|
4815
4653
|
|
|
4816
4654
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/encoding-transform.js
|
|
4817
|
-
|
|
4655
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4818
4656
|
var getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
4819
4657
|
if (skipped) {
|
|
4820
4658
|
return;
|
|
@@ -4848,7 +4686,7 @@ var encodingStringFinal = function* (stringDecoder) {
|
|
|
4848
4686
|
};
|
|
4849
4687
|
|
|
4850
4688
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/run-async.js
|
|
4851
|
-
|
|
4689
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4852
4690
|
var pushChunks = util.callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
4853
4691
|
state.currentIterable = getChunks(...getChunksArguments);
|
|
4854
4692
|
try {
|
|
@@ -4896,7 +4734,7 @@ var identityGenerator = function* (chunk) {
|
|
|
4896
4734
|
};
|
|
4897
4735
|
|
|
4898
4736
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/transform/run-sync.js
|
|
4899
|
-
|
|
4737
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
4900
4738
|
var pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
|
|
4901
4739
|
try {
|
|
4902
4740
|
for (const chunk of getChunksSync(...getChunksArguments)) {
|
|
@@ -5026,10 +4864,10 @@ var validateSerializable = (newContents) => {
|
|
|
5026
4864
|
};
|
|
5027
4865
|
|
|
5028
4866
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/output-sync.js
|
|
5029
|
-
|
|
4867
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5030
4868
|
|
|
5031
4869
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/output.js
|
|
5032
|
-
|
|
4870
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5033
4871
|
var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
|
|
5034
4872
|
var fdUsesVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;
|
|
5035
4873
|
var PIPED_STDIO_VALUES = /* @__PURE__ */ new Set(["pipe", "overlapped"]);
|
|
@@ -5160,7 +4998,7 @@ var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
|
5160
4998
|
};
|
|
5161
4999
|
|
|
5162
5000
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/all-sync.js
|
|
5163
|
-
|
|
5001
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5164
5002
|
var getAllSync = ([, stdout2, stderr], options) => {
|
|
5165
5003
|
if (!options.all) {
|
|
5166
5004
|
return;
|
|
@@ -5184,10 +5022,10 @@ var getAllSync = ([, stdout2, stderr], options) => {
|
|
|
5184
5022
|
};
|
|
5185
5023
|
|
|
5186
5024
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/exit-sync.js
|
|
5187
|
-
|
|
5025
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5188
5026
|
|
|
5189
5027
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/exit-async.js
|
|
5190
|
-
|
|
5028
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5191
5029
|
var waitForExit = async (subprocess, context) => {
|
|
5192
5030
|
const [exitCode, signal] = await waitForExitOrError(subprocess);
|
|
5193
5031
|
context.isForcefullyTerminated ??= false;
|
|
@@ -5373,13 +5211,13 @@ var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, al
|
|
|
5373
5211
|
});
|
|
5374
5212
|
|
|
5375
5213
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/main-async.js
|
|
5376
|
-
|
|
5214
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5377
5215
|
|
|
5378
5216
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/methods.js
|
|
5379
|
-
|
|
5217
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5380
5218
|
|
|
5381
5219
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/get-one.js
|
|
5382
|
-
|
|
5220
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5383
5221
|
var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
|
|
5384
5222
|
validateIpcMethod({
|
|
5385
5223
|
methodName: "getOneMessage",
|
|
@@ -5434,7 +5272,7 @@ var throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
|
|
|
5434
5272
|
};
|
|
5435
5273
|
|
|
5436
5274
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/get-each.js
|
|
5437
|
-
|
|
5275
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5438
5276
|
var getEachMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
|
|
5439
5277
|
anyProcess,
|
|
5440
5278
|
channel,
|
|
@@ -5552,7 +5390,7 @@ var getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
|
|
|
5552
5390
|
});
|
|
5553
5391
|
|
|
5554
5392
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/early-error.js
|
|
5555
|
-
|
|
5393
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5556
5394
|
var handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
|
|
5557
5395
|
cleanupCustomStreams(fileDescriptors);
|
|
5558
5396
|
const subprocess = new child_process.ChildProcess();
|
|
@@ -5600,7 +5438,7 @@ var duplex = () => new stream.Duplex({ read() {
|
|
|
5600
5438
|
var handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
|
|
5601
5439
|
|
|
5602
5440
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle-async.js
|
|
5603
|
-
|
|
5441
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5604
5442
|
var handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
|
|
5605
5443
|
var forbiddenIfAsync = ({ type, optionName }) => {
|
|
5606
5444
|
throw new TypeError(`The \`${optionName}\` option cannot be ${TYPE_TO_MESSAGE[type]}.`);
|
|
@@ -5643,10 +5481,10 @@ var addPropertiesAsync = {
|
|
|
5643
5481
|
};
|
|
5644
5482
|
|
|
5645
5483
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/output-async.js
|
|
5646
|
-
|
|
5484
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5647
5485
|
|
|
5648
5486
|
// ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
|
|
5649
|
-
|
|
5487
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5650
5488
|
function mergeStreams(streams) {
|
|
5651
5489
|
if (!Array.isArray(streams)) {
|
|
5652
5490
|
throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);
|
|
@@ -5861,7 +5699,7 @@ var PASSTHROUGH_LISTENERS_COUNT = 2;
|
|
|
5861
5699
|
var PASSTHROUGH_LISTENERS_PER_STREAM = 1;
|
|
5862
5700
|
|
|
5863
5701
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/pipeline.js
|
|
5864
|
-
|
|
5702
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5865
5703
|
var pipeStreams = (source, destination) => {
|
|
5866
5704
|
source.pipe(destination);
|
|
5867
5705
|
onSourceFinish(source, destination);
|
|
@@ -5951,13 +5789,13 @@ var setStandardStreamMaxListeners = (stream, { signal }) => {
|
|
|
5951
5789
|
var MAX_LISTENERS_INCREMENT = 2;
|
|
5952
5790
|
|
|
5953
5791
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/terminate/cleanup.js
|
|
5954
|
-
|
|
5792
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5955
5793
|
|
|
5956
5794
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
5957
|
-
|
|
5795
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5958
5796
|
|
|
5959
5797
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
5960
|
-
|
|
5798
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
5961
5799
|
var signals = [];
|
|
5962
5800
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
5963
5801
|
if (process.platform !== "win32") {
|
|
@@ -6205,10 +6043,10 @@ var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
|
6205
6043
|
};
|
|
6206
6044
|
|
|
6207
6045
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/setup.js
|
|
6208
|
-
|
|
6046
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6209
6047
|
|
|
6210
6048
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/pipe-arguments.js
|
|
6211
|
-
|
|
6049
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6212
6050
|
var normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
|
|
6213
6051
|
const startTime = getStartTime();
|
|
6214
6052
|
const {
|
|
@@ -6282,7 +6120,7 @@ var getSourceStream = (source, from) => {
|
|
|
6282
6120
|
};
|
|
6283
6121
|
|
|
6284
6122
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/throw.js
|
|
6285
|
-
|
|
6123
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6286
6124
|
var handlePipeArgumentsError = ({
|
|
6287
6125
|
sourceStream,
|
|
6288
6126
|
sourceError,
|
|
@@ -6332,7 +6170,7 @@ var createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTime
|
|
|
6332
6170
|
var PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
|
|
6333
6171
|
|
|
6334
6172
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/sequence.js
|
|
6335
|
-
|
|
6173
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6336
6174
|
var waitForBothSubprocesses = async (subprocessPromises) => {
|
|
6337
6175
|
const [
|
|
6338
6176
|
{ status: sourceStatus, reason: sourceReason, value: sourceResult = sourceReason },
|
|
@@ -6351,7 +6189,7 @@ var waitForBothSubprocesses = async (subprocessPromises) => {
|
|
|
6351
6189
|
};
|
|
6352
6190
|
|
|
6353
6191
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/streaming.js
|
|
6354
|
-
|
|
6192
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6355
6193
|
var pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
|
|
6356
6194
|
const mergedStream = MERGED_STREAMS.has(destinationStream) ? pipeMoreSubprocessStream(sourceStream, destinationStream) : pipeFirstSubprocessStream(sourceStream, destinationStream);
|
|
6357
6195
|
incrementMaxListeners(sourceStream, SOURCE_LISTENERS_PER_PIPE, maxListenersController.signal);
|
|
@@ -6382,7 +6220,7 @@ var SOURCE_LISTENERS_PER_PIPE = 2;
|
|
|
6382
6220
|
var DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
6383
6221
|
|
|
6384
6222
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/pipe/abort.js
|
|
6385
|
-
|
|
6223
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6386
6224
|
var unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
|
|
6387
6225
|
var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
|
|
6388
6226
|
await util.aborted(unpipeSignal, sourceStream);
|
|
@@ -6456,16 +6294,16 @@ var handlePipePromise = async ({
|
|
|
6456
6294
|
var getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
|
|
6457
6295
|
|
|
6458
6296
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/all-async.js
|
|
6459
|
-
|
|
6297
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6460
6298
|
|
|
6461
6299
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/stdio.js
|
|
6462
|
-
|
|
6300
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6463
6301
|
|
|
6464
6302
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/contents.js
|
|
6465
|
-
|
|
6303
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6466
6304
|
|
|
6467
6305
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/io/iterate.js
|
|
6468
|
-
|
|
6306
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6469
6307
|
var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
|
|
6470
6308
|
const controller = new AbortController();
|
|
6471
6309
|
stopReadingOnExit(subprocess, controller);
|
|
@@ -6648,7 +6486,7 @@ var getBufferedData = async (streamPromise) => {
|
|
|
6648
6486
|
var handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
|
|
6649
6487
|
|
|
6650
6488
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/wait-stream.js
|
|
6651
|
-
|
|
6489
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6652
6490
|
var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
|
|
6653
6491
|
const state = handleStdinDestroy(stream, streamInfo);
|
|
6654
6492
|
const abortController = new AbortController();
|
|
@@ -6770,13 +6608,13 @@ var getAllStream = ({ stdout: stdout2, stderr, all }, [, bufferStdout, bufferStd
|
|
|
6770
6608
|
var getAllMixed = ({ all, stdout: stdout2, stderr }) => all && stdout2 && stderr && stdout2.readableObjectMode !== stderr.readableObjectMode;
|
|
6771
6609
|
|
|
6772
6610
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/wait-subprocess.js
|
|
6773
|
-
|
|
6611
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6774
6612
|
|
|
6775
6613
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/buffer-messages.js
|
|
6776
|
-
|
|
6614
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6777
6615
|
|
|
6778
6616
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/ipc.js
|
|
6779
|
-
|
|
6617
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6780
6618
|
var shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
|
|
6781
6619
|
var logIpcOutput = (message, verboseInfo) => {
|
|
6782
6620
|
const verboseMessage = serializeVerboseMessage(message);
|
|
@@ -6943,10 +6781,10 @@ var throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
|
6943
6781
|
};
|
|
6944
6782
|
|
|
6945
6783
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/add.js
|
|
6946
|
-
|
|
6784
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6947
6785
|
|
|
6948
6786
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/concurrent.js
|
|
6949
|
-
|
|
6787
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6950
6788
|
var initializeConcurrentStreams = () => ({
|
|
6951
6789
|
readableDestroy: /* @__PURE__ */ new WeakMap(),
|
|
6952
6790
|
writableFinal: /* @__PURE__ */ new WeakMap(),
|
|
@@ -6973,10 +6811,10 @@ var waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
|
|
|
6973
6811
|
};
|
|
6974
6812
|
|
|
6975
6813
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/readable.js
|
|
6976
|
-
|
|
6814
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6977
6815
|
|
|
6978
6816
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/shared.js
|
|
6979
|
-
|
|
6817
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
6980
6818
|
var safeWaitForSubprocessStdin = async (subprocessStdin) => {
|
|
6981
6819
|
if (subprocessStdin === void 0) {
|
|
6982
6820
|
return;
|
|
@@ -7101,7 +6939,7 @@ var destroyOtherReadable = (stream, error) => {
|
|
|
7101
6939
|
};
|
|
7102
6940
|
|
|
7103
6941
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/writable.js
|
|
7104
|
-
|
|
6942
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7105
6943
|
var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
|
|
7106
6944
|
const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
|
|
7107
6945
|
const writable2 = new stream.Writable({
|
|
@@ -7166,7 +7004,7 @@ var destroyOtherWritable = (stream, error) => {
|
|
|
7166
7004
|
};
|
|
7167
7005
|
|
|
7168
7006
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/duplex.js
|
|
7169
|
-
|
|
7007
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7170
7008
|
var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
|
|
7171
7009
|
const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
|
|
7172
7010
|
const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
|
|
@@ -7219,7 +7057,7 @@ var onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, wa
|
|
|
7219
7057
|
};
|
|
7220
7058
|
|
|
7221
7059
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/convert/iterable.js
|
|
7222
|
-
|
|
7060
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7223
7061
|
var createIterable = (subprocess, encoding, {
|
|
7224
7062
|
from,
|
|
7225
7063
|
binary: binaryOption = false,
|
|
@@ -7259,7 +7097,7 @@ var addConvertedStreams = (subprocess, { encoding }) => {
|
|
|
7259
7097
|
};
|
|
7260
7098
|
|
|
7261
7099
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/promise.js
|
|
7262
|
-
|
|
7100
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7263
7101
|
var mergePromise = (subprocess, promise) => {
|
|
7264
7102
|
for (const [property, descriptor] of descriptors) {
|
|
7265
7103
|
const value = descriptor.value.bind(promise);
|
|
@@ -7429,7 +7267,7 @@ var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, cont
|
|
|
7429
7267
|
});
|
|
7430
7268
|
|
|
7431
7269
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/bind.js
|
|
7432
|
-
|
|
7270
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7433
7271
|
var mergeOptions = (boundOptions, options) => {
|
|
7434
7272
|
const newOptions = Object.fromEntries(
|
|
7435
7273
|
Object.entries(options).map(([optionName, optionValue]) => [
|
|
@@ -7494,7 +7332,7 @@ var parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOptions,
|
|
|
7494
7332
|
};
|
|
7495
7333
|
|
|
7496
7334
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/command.js
|
|
7497
|
-
|
|
7335
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7498
7336
|
var mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
|
|
7499
7337
|
var mapCommandSync = ({ file, commandArguments }) => ({ ...parseCommand(file, commandArguments), isSync: true });
|
|
7500
7338
|
var parseCommand = (command, unusedArguments) => {
|
|
@@ -7526,7 +7364,7 @@ var parseCommandString = (command) => {
|
|
|
7526
7364
|
var SPACES_REGEXP = / +/g;
|
|
7527
7365
|
|
|
7528
7366
|
// ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/script.js
|
|
7529
|
-
|
|
7367
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7530
7368
|
var setScriptSync = (boundExeca, createNested, boundOptions) => {
|
|
7531
7369
|
boundExeca.sync = createNested(mapScriptSync, boundOptions);
|
|
7532
7370
|
boundExeca.s = boundExeca.sync;
|
|
@@ -7547,7 +7385,7 @@ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
|
7547
7385
|
getIpcExport();
|
|
7548
7386
|
|
|
7549
7387
|
// src/utils/Writables.ts
|
|
7550
|
-
|
|
7388
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
7551
7389
|
var ConsolaWritable = class extends stream.Writable {
|
|
7552
7390
|
consola;
|
|
7553
7391
|
command;
|
|
@@ -7561,525 +7399,27 @@ var ConsolaWritable = class extends stream.Writable {
|
|
|
7561
7399
|
callback();
|
|
7562
7400
|
}
|
|
7563
7401
|
};
|
|
7564
|
-
|
|
7565
|
-
// ../../node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/index.js
|
|
7566
|
-
chunkVVNXHIJS_cjs.init_cjs_shims();
|
|
7567
|
-
|
|
7568
|
-
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
|
|
7569
|
-
chunkVVNXHIJS_cjs.init_cjs_shims();
|
|
7570
|
-
var import_index = chunkVVNXHIJS_cjs.__toESM(require_eventemitter3(), 1);
|
|
7571
|
-
|
|
7572
|
-
// ../../node_modules/.pnpm/p-timeout@6.1.3/node_modules/p-timeout/index.js
|
|
7573
|
-
chunkVVNXHIJS_cjs.init_cjs_shims();
|
|
7574
|
-
var TimeoutError = class extends Error {
|
|
7575
|
-
constructor(message) {
|
|
7576
|
-
super(message);
|
|
7577
|
-
this.name = "TimeoutError";
|
|
7578
|
-
}
|
|
7579
|
-
};
|
|
7580
|
-
var AbortError = class extends Error {
|
|
7581
|
-
constructor(message) {
|
|
7582
|
-
super();
|
|
7583
|
-
this.name = "AbortError";
|
|
7584
|
-
this.message = message;
|
|
7585
|
-
}
|
|
7586
|
-
};
|
|
7587
|
-
var getDOMException = (errorMessage) => globalThis.DOMException === void 0 ? new AbortError(errorMessage) : new DOMException(errorMessage);
|
|
7588
|
-
var getAbortedReason = (signal) => {
|
|
7589
|
-
const reason = signal.reason === void 0 ? getDOMException("This operation was aborted.") : signal.reason;
|
|
7590
|
-
return reason instanceof Error ? reason : getDOMException(reason);
|
|
7591
|
-
};
|
|
7592
|
-
function pTimeout(promise, options) {
|
|
7593
|
-
const {
|
|
7594
|
-
milliseconds,
|
|
7595
|
-
fallback,
|
|
7596
|
-
message,
|
|
7597
|
-
customTimers = { setTimeout, clearTimeout }
|
|
7598
|
-
} = options;
|
|
7599
|
-
let timer;
|
|
7600
|
-
const wrappedPromise = new Promise((resolve, reject) => {
|
|
7601
|
-
if (typeof milliseconds !== "number" || Math.sign(milliseconds) !== 1) {
|
|
7602
|
-
throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${milliseconds}\``);
|
|
7603
|
-
}
|
|
7604
|
-
if (options.signal) {
|
|
7605
|
-
const { signal } = options;
|
|
7606
|
-
if (signal.aborted) {
|
|
7607
|
-
reject(getAbortedReason(signal));
|
|
7608
|
-
}
|
|
7609
|
-
const abortHandler = () => {
|
|
7610
|
-
reject(getAbortedReason(signal));
|
|
7611
|
-
};
|
|
7612
|
-
signal.addEventListener("abort", abortHandler, { once: true });
|
|
7613
|
-
promise.finally(() => {
|
|
7614
|
-
signal.removeEventListener("abort", abortHandler);
|
|
7615
|
-
});
|
|
7616
|
-
}
|
|
7617
|
-
if (milliseconds === Number.POSITIVE_INFINITY) {
|
|
7618
|
-
promise.then(resolve, reject);
|
|
7619
|
-
return;
|
|
7620
|
-
}
|
|
7621
|
-
const timeoutError = new TimeoutError();
|
|
7622
|
-
timer = customTimers.setTimeout.call(void 0, () => {
|
|
7623
|
-
if (fallback) {
|
|
7624
|
-
try {
|
|
7625
|
-
resolve(fallback());
|
|
7626
|
-
} catch (error) {
|
|
7627
|
-
reject(error);
|
|
7628
|
-
}
|
|
7629
|
-
return;
|
|
7630
|
-
}
|
|
7631
|
-
if (typeof promise.cancel === "function") {
|
|
7632
|
-
promise.cancel();
|
|
7633
|
-
}
|
|
7634
|
-
if (message === false) {
|
|
7635
|
-
resolve();
|
|
7636
|
-
} else if (message instanceof Error) {
|
|
7637
|
-
reject(message);
|
|
7638
|
-
} else {
|
|
7639
|
-
timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;
|
|
7640
|
-
reject(timeoutError);
|
|
7641
|
-
}
|
|
7642
|
-
}, milliseconds);
|
|
7643
|
-
(async () => {
|
|
7644
|
-
try {
|
|
7645
|
-
resolve(await promise);
|
|
7646
|
-
} catch (error) {
|
|
7647
|
-
reject(error);
|
|
7648
|
-
}
|
|
7649
|
-
})();
|
|
7650
|
-
});
|
|
7651
|
-
const cancelablePromise = wrappedPromise.finally(() => {
|
|
7652
|
-
cancelablePromise.clear();
|
|
7653
|
-
});
|
|
7654
|
-
cancelablePromise.clear = () => {
|
|
7655
|
-
customTimers.clearTimeout.call(void 0, timer);
|
|
7656
|
-
timer = void 0;
|
|
7657
|
-
};
|
|
7658
|
-
return cancelablePromise;
|
|
7659
|
-
}
|
|
7660
|
-
|
|
7661
|
-
// ../../node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/priority-queue.js
|
|
7662
|
-
chunkVVNXHIJS_cjs.init_cjs_shims();
|
|
7663
|
-
|
|
7664
|
-
// ../../node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/lower-bound.js
|
|
7665
|
-
chunkVVNXHIJS_cjs.init_cjs_shims();
|
|
7666
|
-
function lowerBound(array, value, comparator) {
|
|
7667
|
-
let first = 0;
|
|
7668
|
-
let count2 = array.length;
|
|
7669
|
-
while (count2 > 0) {
|
|
7670
|
-
const step = Math.trunc(count2 / 2);
|
|
7671
|
-
let it = first + step;
|
|
7672
|
-
if (comparator(array[it], value) <= 0) {
|
|
7673
|
-
first = ++it;
|
|
7674
|
-
count2 -= step + 1;
|
|
7675
|
-
} else {
|
|
7676
|
-
count2 = step;
|
|
7677
|
-
}
|
|
7678
|
-
}
|
|
7679
|
-
return first;
|
|
7680
|
-
}
|
|
7681
|
-
|
|
7682
|
-
// ../../node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/priority-queue.js
|
|
7683
|
-
var PriorityQueue = class {
|
|
7684
|
-
#queue = [];
|
|
7685
|
-
enqueue(run, options) {
|
|
7686
|
-
options = {
|
|
7687
|
-
priority: 0,
|
|
7688
|
-
...options
|
|
7689
|
-
};
|
|
7690
|
-
const element = {
|
|
7691
|
-
priority: options.priority,
|
|
7692
|
-
id: options.id,
|
|
7693
|
-
run
|
|
7694
|
-
};
|
|
7695
|
-
if (this.size === 0 || this.#queue[this.size - 1].priority >= options.priority) {
|
|
7696
|
-
this.#queue.push(element);
|
|
7697
|
-
return;
|
|
7698
|
-
}
|
|
7699
|
-
const index = lowerBound(this.#queue, element, (a2, b) => b.priority - a2.priority);
|
|
7700
|
-
this.#queue.splice(index, 0, element);
|
|
7701
|
-
}
|
|
7702
|
-
setPriority(id, priority) {
|
|
7703
|
-
const index = this.#queue.findIndex((element) => element.id === id);
|
|
7704
|
-
if (index === -1) {
|
|
7705
|
-
throw new ReferenceError(`No promise function with the id "${id}" exists in the queue.`);
|
|
7706
|
-
}
|
|
7707
|
-
const [item] = this.#queue.splice(index, 1);
|
|
7708
|
-
this.enqueue(item.run, { priority, id });
|
|
7709
|
-
}
|
|
7710
|
-
dequeue() {
|
|
7711
|
-
const item = this.#queue.shift();
|
|
7712
|
-
return item?.run;
|
|
7713
|
-
}
|
|
7714
|
-
filter(options) {
|
|
7715
|
-
return this.#queue.filter((element) => element.priority === options.priority).map((element) => element.run);
|
|
7716
|
-
}
|
|
7717
|
-
get size() {
|
|
7718
|
-
return this.#queue.length;
|
|
7719
|
-
}
|
|
7720
|
-
};
|
|
7721
|
-
|
|
7722
|
-
// ../../node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/index.js
|
|
7723
|
-
var PQueue = class extends import_index.default {
|
|
7724
|
-
#carryoverConcurrencyCount;
|
|
7725
|
-
#isIntervalIgnored;
|
|
7726
|
-
#intervalCount = 0;
|
|
7727
|
-
#intervalCap;
|
|
7728
|
-
#interval;
|
|
7729
|
-
#intervalEnd = 0;
|
|
7730
|
-
#intervalId;
|
|
7731
|
-
#timeoutId;
|
|
7732
|
-
#queue;
|
|
7733
|
-
#queueClass;
|
|
7734
|
-
#pending = 0;
|
|
7735
|
-
// The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
|
|
7736
|
-
#concurrency;
|
|
7737
|
-
#isPaused;
|
|
7738
|
-
#throwOnTimeout;
|
|
7739
|
-
// Use to assign a unique identifier to a promise function, if not explicitly specified
|
|
7740
|
-
#idAssigner = 1n;
|
|
7741
|
-
/**
|
|
7742
|
-
Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
|
|
7743
|
-
|
|
7744
|
-
Applies to each future operation.
|
|
7745
|
-
*/
|
|
7746
|
-
timeout;
|
|
7747
|
-
// TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
|
|
7748
|
-
constructor(options) {
|
|
7749
|
-
super();
|
|
7750
|
-
options = {
|
|
7751
|
-
carryoverConcurrencyCount: false,
|
|
7752
|
-
intervalCap: Number.POSITIVE_INFINITY,
|
|
7753
|
-
interval: 0,
|
|
7754
|
-
concurrency: Number.POSITIVE_INFINITY,
|
|
7755
|
-
autoStart: true,
|
|
7756
|
-
queueClass: PriorityQueue,
|
|
7757
|
-
...options
|
|
7758
|
-
};
|
|
7759
|
-
if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) {
|
|
7760
|
-
throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${options.intervalCap?.toString() ?? ""}\` (${typeof options.intervalCap})`);
|
|
7761
|
-
}
|
|
7762
|
-
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
|
|
7763
|
-
throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${options.interval?.toString() ?? ""}\` (${typeof options.interval})`);
|
|
7764
|
-
}
|
|
7765
|
-
this.#carryoverConcurrencyCount = options.carryoverConcurrencyCount;
|
|
7766
|
-
this.#isIntervalIgnored = options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0;
|
|
7767
|
-
this.#intervalCap = options.intervalCap;
|
|
7768
|
-
this.#interval = options.interval;
|
|
7769
|
-
this.#queue = new options.queueClass();
|
|
7770
|
-
this.#queueClass = options.queueClass;
|
|
7771
|
-
this.concurrency = options.concurrency;
|
|
7772
|
-
this.timeout = options.timeout;
|
|
7773
|
-
this.#throwOnTimeout = options.throwOnTimeout === true;
|
|
7774
|
-
this.#isPaused = options.autoStart === false;
|
|
7775
|
-
}
|
|
7776
|
-
get #doesIntervalAllowAnother() {
|
|
7777
|
-
return this.#isIntervalIgnored || this.#intervalCount < this.#intervalCap;
|
|
7778
|
-
}
|
|
7779
|
-
get #doesConcurrentAllowAnother() {
|
|
7780
|
-
return this.#pending < this.#concurrency;
|
|
7781
|
-
}
|
|
7782
|
-
#next() {
|
|
7783
|
-
this.#pending--;
|
|
7784
|
-
this.#tryToStartAnother();
|
|
7785
|
-
this.emit("next");
|
|
7786
|
-
}
|
|
7787
|
-
#onResumeInterval() {
|
|
7788
|
-
this.#onInterval();
|
|
7789
|
-
this.#initializeIntervalIfNeeded();
|
|
7790
|
-
this.#timeoutId = void 0;
|
|
7791
|
-
}
|
|
7792
|
-
get #isIntervalPaused() {
|
|
7793
|
-
const now = Date.now();
|
|
7794
|
-
if (this.#intervalId === void 0) {
|
|
7795
|
-
const delay = this.#intervalEnd - now;
|
|
7796
|
-
if (delay < 0) {
|
|
7797
|
-
this.#intervalCount = this.#carryoverConcurrencyCount ? this.#pending : 0;
|
|
7798
|
-
} else {
|
|
7799
|
-
if (this.#timeoutId === void 0) {
|
|
7800
|
-
this.#timeoutId = setTimeout(() => {
|
|
7801
|
-
this.#onResumeInterval();
|
|
7802
|
-
}, delay);
|
|
7803
|
-
}
|
|
7804
|
-
return true;
|
|
7805
|
-
}
|
|
7806
|
-
}
|
|
7807
|
-
return false;
|
|
7808
|
-
}
|
|
7809
|
-
#tryToStartAnother() {
|
|
7810
|
-
if (this.#queue.size === 0) {
|
|
7811
|
-
if (this.#intervalId) {
|
|
7812
|
-
clearInterval(this.#intervalId);
|
|
7813
|
-
}
|
|
7814
|
-
this.#intervalId = void 0;
|
|
7815
|
-
this.emit("empty");
|
|
7816
|
-
if (this.#pending === 0) {
|
|
7817
|
-
this.emit("idle");
|
|
7818
|
-
}
|
|
7819
|
-
return false;
|
|
7820
|
-
}
|
|
7821
|
-
if (!this.#isPaused) {
|
|
7822
|
-
const canInitializeInterval = !this.#isIntervalPaused;
|
|
7823
|
-
if (this.#doesIntervalAllowAnother && this.#doesConcurrentAllowAnother) {
|
|
7824
|
-
const job = this.#queue.dequeue();
|
|
7825
|
-
if (!job) {
|
|
7826
|
-
return false;
|
|
7827
|
-
}
|
|
7828
|
-
this.emit("active");
|
|
7829
|
-
job();
|
|
7830
|
-
if (canInitializeInterval) {
|
|
7831
|
-
this.#initializeIntervalIfNeeded();
|
|
7832
|
-
}
|
|
7833
|
-
return true;
|
|
7834
|
-
}
|
|
7835
|
-
}
|
|
7836
|
-
return false;
|
|
7837
|
-
}
|
|
7838
|
-
#initializeIntervalIfNeeded() {
|
|
7839
|
-
if (this.#isIntervalIgnored || this.#intervalId !== void 0) {
|
|
7840
|
-
return;
|
|
7841
|
-
}
|
|
7842
|
-
this.#intervalId = setInterval(() => {
|
|
7843
|
-
this.#onInterval();
|
|
7844
|
-
}, this.#interval);
|
|
7845
|
-
this.#intervalEnd = Date.now() + this.#interval;
|
|
7846
|
-
}
|
|
7847
|
-
#onInterval() {
|
|
7848
|
-
if (this.#intervalCount === 0 && this.#pending === 0 && this.#intervalId) {
|
|
7849
|
-
clearInterval(this.#intervalId);
|
|
7850
|
-
this.#intervalId = void 0;
|
|
7851
|
-
}
|
|
7852
|
-
this.#intervalCount = this.#carryoverConcurrencyCount ? this.#pending : 0;
|
|
7853
|
-
this.#processQueue();
|
|
7854
|
-
}
|
|
7855
|
-
/**
|
|
7856
|
-
Executes all queued functions until it reaches the limit.
|
|
7857
|
-
*/
|
|
7858
|
-
#processQueue() {
|
|
7859
|
-
while (this.#tryToStartAnother()) {
|
|
7860
|
-
}
|
|
7861
|
-
}
|
|
7862
|
-
get concurrency() {
|
|
7863
|
-
return this.#concurrency;
|
|
7864
|
-
}
|
|
7865
|
-
set concurrency(newConcurrency) {
|
|
7866
|
-
if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) {
|
|
7867
|
-
throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
|
|
7868
|
-
}
|
|
7869
|
-
this.#concurrency = newConcurrency;
|
|
7870
|
-
this.#processQueue();
|
|
7871
|
-
}
|
|
7872
|
-
async #throwOnAbort(signal) {
|
|
7873
|
-
return new Promise((_resolve, reject) => {
|
|
7874
|
-
signal.addEventListener("abort", () => {
|
|
7875
|
-
reject(signal.reason);
|
|
7876
|
-
}, { once: true });
|
|
7877
|
-
});
|
|
7878
|
-
}
|
|
7879
|
-
/**
|
|
7880
|
-
Updates the priority of a promise function by its id, affecting its execution order. Requires a defined concurrency limit to take effect.
|
|
7881
|
-
|
|
7882
|
-
For example, this can be used to prioritize a promise function to run earlier.
|
|
7883
|
-
|
|
7884
|
-
```js
|
|
7885
|
-
import PQueue from 'p-queue';
|
|
7886
|
-
|
|
7887
|
-
const queue = new PQueue({concurrency: 1});
|
|
7888
|
-
|
|
7889
|
-
queue.add(async () => '🦄', {priority: 1});
|
|
7890
|
-
queue.add(async () => '🦀', {priority: 0, id: '🦀'});
|
|
7891
|
-
queue.add(async () => '🦄', {priority: 1});
|
|
7892
|
-
queue.add(async () => '🦄', {priority: 1});
|
|
7893
|
-
|
|
7894
|
-
queue.setPriority('🦀', 2);
|
|
7895
|
-
```
|
|
7896
|
-
|
|
7897
|
-
In this case, the promise function with `id: '🦀'` runs second.
|
|
7898
|
-
|
|
7899
|
-
You can also deprioritize a promise function to delay its execution:
|
|
7900
|
-
|
|
7901
|
-
```js
|
|
7902
|
-
import PQueue from 'p-queue';
|
|
7903
|
-
|
|
7904
|
-
const queue = new PQueue({concurrency: 1});
|
|
7905
|
-
|
|
7906
|
-
queue.add(async () => '🦄', {priority: 1});
|
|
7907
|
-
queue.add(async () => '🦀', {priority: 1, id: '🦀'});
|
|
7908
|
-
queue.add(async () => '🦄');
|
|
7909
|
-
queue.add(async () => '🦄', {priority: 0});
|
|
7910
|
-
|
|
7911
|
-
queue.setPriority('🦀', -1);
|
|
7912
|
-
```
|
|
7913
|
-
Here, the promise function with `id: '🦀'` executes last.
|
|
7914
|
-
*/
|
|
7915
|
-
setPriority(id, priority) {
|
|
7916
|
-
this.#queue.setPriority(id, priority);
|
|
7917
|
-
}
|
|
7918
|
-
async add(function_, options = {}) {
|
|
7919
|
-
options.id ??= (this.#idAssigner++).toString();
|
|
7920
|
-
options = {
|
|
7921
|
-
timeout: this.timeout,
|
|
7922
|
-
throwOnTimeout: this.#throwOnTimeout,
|
|
7923
|
-
...options
|
|
7924
|
-
};
|
|
7925
|
-
return new Promise((resolve, reject) => {
|
|
7926
|
-
this.#queue.enqueue(async () => {
|
|
7927
|
-
this.#pending++;
|
|
7928
|
-
this.#intervalCount++;
|
|
7929
|
-
try {
|
|
7930
|
-
options.signal?.throwIfAborted();
|
|
7931
|
-
let operation = function_({ signal: options.signal });
|
|
7932
|
-
if (options.timeout) {
|
|
7933
|
-
operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
|
|
7934
|
-
}
|
|
7935
|
-
if (options.signal) {
|
|
7936
|
-
operation = Promise.race([operation, this.#throwOnAbort(options.signal)]);
|
|
7937
|
-
}
|
|
7938
|
-
const result = await operation;
|
|
7939
|
-
resolve(result);
|
|
7940
|
-
this.emit("completed", result);
|
|
7941
|
-
} catch (error) {
|
|
7942
|
-
if (error instanceof TimeoutError && !options.throwOnTimeout) {
|
|
7943
|
-
resolve();
|
|
7944
|
-
return;
|
|
7945
|
-
}
|
|
7946
|
-
reject(error);
|
|
7947
|
-
this.emit("error", error);
|
|
7948
|
-
} finally {
|
|
7949
|
-
this.#next();
|
|
7950
|
-
}
|
|
7951
|
-
}, options);
|
|
7952
|
-
this.emit("add");
|
|
7953
|
-
this.#tryToStartAnother();
|
|
7954
|
-
});
|
|
7955
|
-
}
|
|
7956
|
-
async addAll(functions, options) {
|
|
7957
|
-
return Promise.all(functions.map(async (function_) => this.add(function_, options)));
|
|
7958
|
-
}
|
|
7959
|
-
/**
|
|
7960
|
-
Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
|
|
7961
|
-
*/
|
|
7962
|
-
start() {
|
|
7963
|
-
if (!this.#isPaused) {
|
|
7964
|
-
return this;
|
|
7965
|
-
}
|
|
7966
|
-
this.#isPaused = false;
|
|
7967
|
-
this.#processQueue();
|
|
7968
|
-
return this;
|
|
7969
|
-
}
|
|
7970
|
-
/**
|
|
7971
|
-
Put queue execution on hold.
|
|
7972
|
-
*/
|
|
7973
|
-
pause() {
|
|
7974
|
-
this.#isPaused = true;
|
|
7975
|
-
}
|
|
7976
|
-
/**
|
|
7977
|
-
Clear the queue.
|
|
7978
|
-
*/
|
|
7979
|
-
clear() {
|
|
7980
|
-
this.#queue = new this.#queueClass();
|
|
7981
|
-
}
|
|
7982
|
-
/**
|
|
7983
|
-
Can be called multiple times. Useful if you for example add additional items at a later time.
|
|
7984
|
-
|
|
7985
|
-
@returns A promise that settles when the queue becomes empty.
|
|
7986
|
-
*/
|
|
7987
|
-
async onEmpty() {
|
|
7988
|
-
if (this.#queue.size === 0) {
|
|
7989
|
-
return;
|
|
7990
|
-
}
|
|
7991
|
-
await this.#onEvent("empty");
|
|
7992
|
-
}
|
|
7993
|
-
/**
|
|
7994
|
-
@returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.
|
|
7995
|
-
|
|
7996
|
-
If you want to avoid having the queue grow beyond a certain size you can `await queue.onSizeLessThan()` before adding a new item.
|
|
7997
|
-
|
|
7998
|
-
Note that this only limits the number of items waiting to start. There could still be up to `concurrency` jobs already running that this call does not include in its calculation.
|
|
7999
|
-
*/
|
|
8000
|
-
async onSizeLessThan(limit) {
|
|
8001
|
-
if (this.#queue.size < limit) {
|
|
8002
|
-
return;
|
|
8003
|
-
}
|
|
8004
|
-
await this.#onEvent("next", () => this.#queue.size < limit);
|
|
8005
|
-
}
|
|
8006
|
-
/**
|
|
8007
|
-
The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
|
|
8008
|
-
|
|
8009
|
-
@returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
|
|
8010
|
-
*/
|
|
8011
|
-
async onIdle() {
|
|
8012
|
-
if (this.#pending === 0 && this.#queue.size === 0) {
|
|
8013
|
-
return;
|
|
8014
|
-
}
|
|
8015
|
-
await this.#onEvent("idle");
|
|
8016
|
-
}
|
|
8017
|
-
async #onEvent(event, filter) {
|
|
8018
|
-
return new Promise((resolve) => {
|
|
8019
|
-
const listener = () => {
|
|
8020
|
-
if (filter && !filter()) {
|
|
8021
|
-
return;
|
|
8022
|
-
}
|
|
8023
|
-
this.off(event, listener);
|
|
8024
|
-
resolve();
|
|
8025
|
-
};
|
|
8026
|
-
this.on(event, listener);
|
|
8027
|
-
});
|
|
8028
|
-
}
|
|
8029
|
-
/**
|
|
8030
|
-
Size of the queue, the number of queued items waiting to run.
|
|
8031
|
-
*/
|
|
8032
|
-
get size() {
|
|
8033
|
-
return this.#queue.size;
|
|
8034
|
-
}
|
|
8035
|
-
/**
|
|
8036
|
-
Size of the queue, filtered by the given options.
|
|
8037
|
-
|
|
8038
|
-
For example, this can be used to find the number of items remaining in the queue with a specific priority level.
|
|
8039
|
-
*/
|
|
8040
|
-
sizeBy(options) {
|
|
8041
|
-
return this.#queue.filter(options).length;
|
|
8042
|
-
}
|
|
8043
|
-
/**
|
|
8044
|
-
Number of running items (no longer in the queue).
|
|
8045
|
-
*/
|
|
8046
|
-
get pending() {
|
|
8047
|
-
return this.#pending;
|
|
8048
|
-
}
|
|
8049
|
-
/**
|
|
8050
|
-
Whether the queue is currently paused.
|
|
8051
|
-
*/
|
|
8052
|
-
get isPaused() {
|
|
8053
|
-
return this.#isPaused;
|
|
8054
|
-
}
|
|
8055
|
-
};
|
|
8056
|
-
|
|
8057
|
-
// src/utils/executeHooks.ts
|
|
8058
7402
|
async function executeHooks({ hooks, logger: logger$1 }) {
|
|
8059
7403
|
const commands = Array.isArray(hooks.done) ? hooks.done : [hooks.done].filter(Boolean);
|
|
8060
|
-
const
|
|
8061
|
-
const promises = commands.map(async (command) => {
|
|
7404
|
+
for (const command of commands) {
|
|
8062
7405
|
const consolaWritable = new ConsolaWritable(logger$1.consola, command);
|
|
8063
7406
|
const [cmd, ..._args] = [...stringArgv.parseArgsStringToArgv(command)];
|
|
8064
7407
|
if (!cmd) {
|
|
8065
|
-
|
|
7408
|
+
continue;
|
|
8066
7409
|
}
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
stripFinalNewline: true
|
|
8073
|
-
});
|
|
8074
|
-
logger$1?.emit("success", `Executed hook ${logger$1.logLevel !== logger.LogMapper.silent ? utils.colors.dim(command) : ""}`);
|
|
7410
|
+
logger$1?.emit("start", `Executing hook ${logger$1.logLevel !== logger.LogMapper.silent ? utils.colors.dim(command) : ""}`);
|
|
7411
|
+
await execa(cmd, _args, {
|
|
7412
|
+
detached: true,
|
|
7413
|
+
stdout: logger$1?.logLevel === logger.LogMapper.silent ? void 0 : ["pipe", consolaWritable],
|
|
7414
|
+
stripFinalNewline: true
|
|
8075
7415
|
});
|
|
8076
|
-
|
|
8077
|
-
|
|
7416
|
+
logger$1?.emit("success", `Executed hook ${logger$1.logLevel !== logger.LogMapper.silent ? utils.colors.dim(command) : ""}`);
|
|
7417
|
+
}
|
|
8078
7418
|
logger$1?.emit("success", "Executed hooks");
|
|
8079
7419
|
}
|
|
8080
7420
|
|
|
8081
7421
|
// src/utils/getErrorCauses.ts
|
|
8082
|
-
|
|
7422
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
8083
7423
|
function getErrorCauses(errors) {
|
|
8084
7424
|
return errors.reduce((prev, error) => {
|
|
8085
7425
|
const causedError = error?.cause;
|
|
@@ -8093,10 +7433,10 @@ function getErrorCauses(errors) {
|
|
|
8093
7433
|
}
|
|
8094
7434
|
|
|
8095
7435
|
// src/utils/getSummary.ts
|
|
8096
|
-
|
|
7436
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
8097
7437
|
|
|
8098
7438
|
// src/utils/parseHrtimeToSeconds.ts
|
|
8099
|
-
|
|
7439
|
+
chunkMKHKV2HH_cjs.init_cjs_shims();
|
|
8100
7440
|
function parseHrtimeToSeconds(hrtime2) {
|
|
8101
7441
|
const seconds = (hrtime2[0] + hrtime2[1] / 1e9).toFixed(3);
|
|
8102
7442
|
return seconds;
|
|
@@ -8246,5 +7586,5 @@ ${logFiles.join("\n")}`);
|
|
|
8246
7586
|
}
|
|
8247
7587
|
|
|
8248
7588
|
exports.generate = generate;
|
|
8249
|
-
//# sourceMappingURL=generate-
|
|
8250
|
-
//# sourceMappingURL=generate-
|
|
7589
|
+
//# sourceMappingURL=generate-J27CF4EQ.cjs.map
|
|
7590
|
+
//# sourceMappingURL=generate-J27CF4EQ.cjs.map
|