@hot-updater/expo 0.28.0 → 0.29.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/babel-plugin.cjs +53 -0
- package/dist/babel-plugin.d.cts +33 -0
- package/dist/babel-plugin.d.mts +34 -0
- package/dist/babel-plugin.mjs +53 -0
- package/dist/index.cjs +314 -497
- package/dist/{index.js → index.mjs} +306 -476
- package/package.json +40 -8
- /package/dist/{index.d.ts → index.d.mts} +0 -0
|
@@ -20,20 +20,18 @@ import { appendFileSync, createReadStream, createWriteStream, readFileSync, stat
|
|
|
20
20
|
import { finished } from "node:stream/promises";
|
|
21
21
|
import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
|
|
22
22
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
23
|
-
|
|
24
|
-
//#region
|
|
23
|
+
import { uuidv7 } from "uuidv7";
|
|
24
|
+
//#region \0rolldown/runtime.js
|
|
25
25
|
var __create = Object.create;
|
|
26
26
|
var __defProp = Object.defineProperty;
|
|
27
27
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
28
28
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
29
29
|
var __getProtoOf = Object.getPrototypeOf;
|
|
30
30
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
31
|
-
var
|
|
32
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
33
|
-
};
|
|
31
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
32
|
var __copyProps = (to, from, except, desc) => {
|
|
35
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i
|
|
36
|
-
key = keys[i
|
|
33
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
34
|
+
key = keys[i];
|
|
37
35
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
38
36
|
get: ((k) => from[k]).bind(null, key),
|
|
39
37
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -46,7 +44,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
46
44
|
enumerable: true
|
|
47
45
|
}) : target, mod));
|
|
48
46
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
49
|
-
|
|
50
47
|
//#endregion
|
|
51
48
|
//#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
52
49
|
function isPlainObject(value) {
|
|
@@ -54,7 +51,6 @@ function isPlainObject(value) {
|
|
|
54
51
|
const prototype = Object.getPrototypeOf(value);
|
|
55
52
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
56
53
|
}
|
|
57
|
-
|
|
58
54
|
//#endregion
|
|
59
55
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/file-url.js
|
|
60
56
|
const safeNormalizeFileUrl = (file, name) => {
|
|
@@ -65,7 +61,6 @@ const safeNormalizeFileUrl = (file, name) => {
|
|
|
65
61
|
const normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
|
|
66
62
|
const isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
|
|
67
63
|
const normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : file;
|
|
68
|
-
|
|
69
64
|
//#endregion
|
|
70
65
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/parameters.js
|
|
71
66
|
const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
@@ -83,7 +78,6 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
|
83
78
|
options
|
|
84
79
|
];
|
|
85
80
|
};
|
|
86
|
-
|
|
87
81
|
//#endregion
|
|
88
82
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/uint-array.js
|
|
89
83
|
const { toString: objectToString$1 } = Object.prototype;
|
|
@@ -123,7 +117,6 @@ const getJoinLength = (uint8Arrays) => {
|
|
|
123
117
|
for (const uint8Array of uint8Arrays) joinLength += uint8Array.length;
|
|
124
118
|
return joinLength;
|
|
125
119
|
};
|
|
126
|
-
|
|
127
120
|
//#endregion
|
|
128
121
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/template.js
|
|
129
122
|
const isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
|
|
@@ -150,7 +143,7 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
|
150
143
|
const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
|
|
151
144
|
if (index === expressions.length) return newTokens;
|
|
152
145
|
const expression = expressions[index];
|
|
153
|
-
return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression
|
|
146
|
+
return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)], trailingWhitespaces);
|
|
154
147
|
};
|
|
155
148
|
const splitByWhitespaces = (template, rawTemplate) => {
|
|
156
149
|
if (rawTemplate.length === 0) return {
|
|
@@ -212,7 +205,6 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
212
205
|
if (stdout === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
|
|
213
206
|
throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
|
|
214
207
|
};
|
|
215
|
-
|
|
216
208
|
//#endregion
|
|
217
209
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
|
|
218
210
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
@@ -227,7 +219,6 @@ const STANDARD_STREAMS_ALIASES = [
|
|
|
227
219
|
"stderr"
|
|
228
220
|
];
|
|
229
221
|
const getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
230
|
-
|
|
231
222
|
//#endregion
|
|
232
223
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/specific.js
|
|
233
224
|
const normalizeFdSpecificOptions = (options) => {
|
|
@@ -282,7 +273,6 @@ const FD_SPECIFIC_OPTIONS = [
|
|
|
282
273
|
"stripFinalNewline"
|
|
283
274
|
];
|
|
284
275
|
const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
|
|
285
|
-
|
|
286
276
|
//#endregion
|
|
287
277
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/values.js
|
|
288
278
|
const isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
|
|
@@ -299,7 +289,6 @@ const VERBOSE_VALUES = [
|
|
|
299
289
|
"short",
|
|
300
290
|
"full"
|
|
301
291
|
];
|
|
302
|
-
|
|
303
292
|
//#endregion
|
|
304
293
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/escape.js
|
|
305
294
|
const joinCommand = (filePath, rawArguments) => {
|
|
@@ -320,7 +309,7 @@ const escapeControlCharacter = (character) => {
|
|
|
320
309
|
};
|
|
321
310
|
const getSpecialCharRegExp = () => {
|
|
322
311
|
try {
|
|
323
|
-
return new RegExp("\\p{Separator}|\\p{Other}", "gu");
|
|
312
|
+
return /* @__PURE__ */ new RegExp("\\p{Separator}|\\p{Other}", "gu");
|
|
324
313
|
} catch {
|
|
325
314
|
return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
|
|
326
315
|
}
|
|
@@ -340,7 +329,6 @@ const quoteString = (escapedArgument) => {
|
|
|
340
329
|
return platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
341
330
|
};
|
|
342
331
|
const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
343
|
-
|
|
344
332
|
//#endregion
|
|
345
333
|
//#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
346
334
|
function isUnicodeSupported() {
|
|
@@ -349,7 +337,6 @@ function isUnicodeSupported() {
|
|
|
349
337
|
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
350
338
|
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
351
339
|
}
|
|
352
|
-
|
|
353
340
|
//#endregion
|
|
354
341
|
//#region ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
|
|
355
342
|
const common = {
|
|
@@ -628,11 +615,8 @@ const fallbackSymbols = {
|
|
|
628
615
|
...common,
|
|
629
616
|
...specialFallbackSymbols
|
|
630
617
|
};
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
var figures_default = figures;
|
|
634
|
-
const replacements = Object.entries(specialMainSymbols);
|
|
635
|
-
|
|
618
|
+
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
619
|
+
Object.entries(specialMainSymbols);
|
|
636
620
|
//#endregion
|
|
637
621
|
//#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
|
|
638
622
|
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
@@ -655,48 +639,47 @@ const format = (open, close) => {
|
|
|
655
639
|
return result;
|
|
656
640
|
};
|
|
657
641
|
};
|
|
658
|
-
|
|
642
|
+
format(0, 0);
|
|
659
643
|
const bold = format(1, 22);
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
644
|
+
format(2, 22);
|
|
645
|
+
format(3, 23);
|
|
646
|
+
format(4, 24);
|
|
647
|
+
format(53, 55);
|
|
648
|
+
format(7, 27);
|
|
649
|
+
format(8, 28);
|
|
650
|
+
format(9, 29);
|
|
651
|
+
format(30, 39);
|
|
652
|
+
format(31, 39);
|
|
653
|
+
format(32, 39);
|
|
654
|
+
format(33, 39);
|
|
655
|
+
format(34, 39);
|
|
656
|
+
format(35, 39);
|
|
657
|
+
format(36, 39);
|
|
658
|
+
format(37, 39);
|
|
675
659
|
const gray = format(90, 39);
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
660
|
+
format(40, 49);
|
|
661
|
+
format(41, 49);
|
|
662
|
+
format(42, 49);
|
|
663
|
+
format(43, 49);
|
|
664
|
+
format(44, 49);
|
|
665
|
+
format(45, 49);
|
|
666
|
+
format(46, 49);
|
|
667
|
+
format(47, 49);
|
|
668
|
+
format(100, 49);
|
|
685
669
|
const redBright = format(91, 39);
|
|
686
|
-
|
|
670
|
+
format(92, 39);
|
|
687
671
|
const yellowBright = format(93, 39);
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
672
|
+
format(94, 39);
|
|
673
|
+
format(95, 39);
|
|
674
|
+
format(96, 39);
|
|
675
|
+
format(97, 39);
|
|
676
|
+
format(101, 49);
|
|
677
|
+
format(102, 49);
|
|
678
|
+
format(103, 49);
|
|
679
|
+
format(104, 49);
|
|
680
|
+
format(105, 49);
|
|
681
|
+
format(106, 49);
|
|
682
|
+
format(107, 49);
|
|
700
683
|
//#endregion
|
|
701
684
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/default.js
|
|
702
685
|
const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, result: { failed = false } = {}, options: { reject = true } }) => {
|
|
@@ -712,8 +695,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
|
|
|
712
695
|
const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
|
|
713
696
|
const padField = (field, padding) => String(field).padStart(padding, "0");
|
|
714
697
|
const getFinalIcon = ({ failed, reject }) => {
|
|
715
|
-
if (!failed) return
|
|
716
|
-
return reject ?
|
|
698
|
+
if (!failed) return figures.tick;
|
|
699
|
+
return reject ? figures.cross : figures.warning;
|
|
717
700
|
};
|
|
718
701
|
const ICONS = {
|
|
719
702
|
command: ({ piped }) => piped ? "|" : "$",
|
|
@@ -730,7 +713,6 @@ const COLORS = {
|
|
|
730
713
|
error: ({ reject }) => reject ? redBright : yellowBright,
|
|
731
714
|
duration: () => gray
|
|
732
715
|
};
|
|
733
|
-
|
|
734
716
|
//#endregion
|
|
735
717
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/custom.js
|
|
736
718
|
const applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
|
|
@@ -743,7 +725,6 @@ const applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
|
|
|
743
725
|
if (typeof printedLine === "string") return printedLine;
|
|
744
726
|
};
|
|
745
727
|
const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}\n`;
|
|
746
|
-
|
|
747
728
|
//#endregion
|
|
748
729
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/log.js
|
|
749
730
|
const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
|
|
@@ -754,7 +735,7 @@ const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) =>
|
|
|
754
735
|
})), verboseInfo, fdNumber);
|
|
755
736
|
if (finalLines !== "") console.warn(finalLines.slice(0, -1));
|
|
756
737
|
};
|
|
757
|
-
const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false
|
|
738
|
+
const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } } }) => ({
|
|
758
739
|
type,
|
|
759
740
|
escapedCommand,
|
|
760
741
|
commandId: `${commandId}`,
|
|
@@ -777,7 +758,6 @@ const serializeVerboseMessage = (message) => {
|
|
|
777
758
|
return escapeLines(typeof message === "string" ? message : inspect(message)).replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
778
759
|
};
|
|
779
760
|
const TAB_SIZE = 2;
|
|
780
|
-
|
|
781
761
|
//#endregion
|
|
782
762
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/start.js
|
|
783
763
|
const logCommand = (escapedCommand, verboseInfo) => {
|
|
@@ -788,7 +768,6 @@ const logCommand = (escapedCommand, verboseInfo) => {
|
|
|
788
768
|
verboseInfo
|
|
789
769
|
});
|
|
790
770
|
};
|
|
791
|
-
|
|
792
771
|
//#endregion
|
|
793
772
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/info.js
|
|
794
773
|
const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
|
|
@@ -812,12 +791,10 @@ const validateVerbose = (verbose) => {
|
|
|
812
791
|
}
|
|
813
792
|
}
|
|
814
793
|
};
|
|
815
|
-
|
|
816
794
|
//#endregion
|
|
817
795
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/duration.js
|
|
818
796
|
const getStartTime = () => hrtime.bigint();
|
|
819
797
|
const getDurationMs = (startTime) => Number(hrtime.bigint() - startTime) / 1e6;
|
|
820
|
-
|
|
821
798
|
//#endregion
|
|
822
799
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/command.js
|
|
823
800
|
const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
@@ -832,51 +809,49 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
832
809
|
verboseInfo
|
|
833
810
|
};
|
|
834
811
|
};
|
|
835
|
-
|
|
836
812
|
//#endregion
|
|
837
813
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
838
|
-
var require_windows = /* @__PURE__ */
|
|
839
|
-
module.exports = isexe
|
|
840
|
-
isexe
|
|
814
|
+
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
815
|
+
module.exports = isexe;
|
|
816
|
+
isexe.sync = sync;
|
|
841
817
|
var fs$4 = __require("fs");
|
|
842
|
-
function checkPathExt(path
|
|
818
|
+
function checkPathExt(path, options) {
|
|
843
819
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
844
820
|
if (!pathext) return true;
|
|
845
821
|
pathext = pathext.split(";");
|
|
846
822
|
if (pathext.indexOf("") !== -1) return true;
|
|
847
|
-
for (var i
|
|
848
|
-
var p
|
|
849
|
-
if (p
|
|
823
|
+
for (var i = 0; i < pathext.length; i++) {
|
|
824
|
+
var p = pathext[i].toLowerCase();
|
|
825
|
+
if (p && path.substr(-p.length).toLowerCase() === p) return true;
|
|
850
826
|
}
|
|
851
827
|
return false;
|
|
852
828
|
}
|
|
853
|
-
function checkStat
|
|
829
|
+
function checkStat(stat, path, options) {
|
|
854
830
|
if (!stat.isSymbolicLink() && !stat.isFile()) return false;
|
|
855
|
-
return checkPathExt(path
|
|
831
|
+
return checkPathExt(path, options);
|
|
856
832
|
}
|
|
857
|
-
function isexe
|
|
858
|
-
fs$4.stat(path
|
|
859
|
-
cb(er, er ? false : checkStat
|
|
833
|
+
function isexe(path, options, cb) {
|
|
834
|
+
fs$4.stat(path, function(er, stat) {
|
|
835
|
+
cb(er, er ? false : checkStat(stat, path, options));
|
|
860
836
|
});
|
|
861
837
|
}
|
|
862
|
-
function sync
|
|
863
|
-
return checkStat
|
|
838
|
+
function sync(path, options) {
|
|
839
|
+
return checkStat(fs$4.statSync(path), path, options);
|
|
864
840
|
}
|
|
865
|
-
})
|
|
866
|
-
|
|
841
|
+
}));
|
|
867
842
|
//#endregion
|
|
868
843
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
869
|
-
var require_mode = /* @__PURE__ */
|
|
870
|
-
module.exports = isexe
|
|
871
|
-
isexe
|
|
844
|
+
var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
845
|
+
module.exports = isexe;
|
|
846
|
+
isexe.sync = sync;
|
|
872
847
|
var fs$3 = __require("fs");
|
|
873
|
-
function isexe
|
|
874
|
-
fs$3.stat(path
|
|
848
|
+
function isexe(path, options, cb) {
|
|
849
|
+
fs$3.stat(path, function(er, stat) {
|
|
875
850
|
cb(er, er ? false : checkStat(stat, options));
|
|
876
851
|
});
|
|
877
852
|
}
|
|
878
|
-
function sync
|
|
879
|
-
return checkStat(fs$3.statSync(path
|
|
853
|
+
function sync(path, options) {
|
|
854
|
+
return checkStat(fs$3.statSync(path), options);
|
|
880
855
|
}
|
|
881
856
|
function checkStat(stat, options) {
|
|
882
857
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -887,24 +862,23 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
|
|
|
887
862
|
var gid = stat.gid;
|
|
888
863
|
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
889
864
|
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
890
|
-
var u
|
|
865
|
+
var u = parseInt("100", 8);
|
|
891
866
|
var g = parseInt("010", 8);
|
|
892
|
-
var o
|
|
893
|
-
var ug = u
|
|
894
|
-
return mod & o
|
|
867
|
+
var o = parseInt("001", 8);
|
|
868
|
+
var ug = u | g;
|
|
869
|
+
return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
895
870
|
}
|
|
896
|
-
})
|
|
897
|
-
|
|
871
|
+
}));
|
|
898
872
|
//#endregion
|
|
899
873
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
900
|
-
var require_isexe = /* @__PURE__ */
|
|
874
|
+
var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
901
875
|
__require("fs");
|
|
902
876
|
var core;
|
|
903
877
|
if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
|
|
904
878
|
else core = require_mode();
|
|
905
|
-
module.exports = isexe
|
|
906
|
-
isexe
|
|
907
|
-
function isexe
|
|
879
|
+
module.exports = isexe;
|
|
880
|
+
isexe.sync = sync;
|
|
881
|
+
function isexe(path, options, cb) {
|
|
908
882
|
if (typeof options === "function") {
|
|
909
883
|
cb = options;
|
|
910
884
|
options = {};
|
|
@@ -912,13 +886,13 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
|
|
|
912
886
|
if (!cb) {
|
|
913
887
|
if (typeof Promise !== "function") throw new TypeError("callback not provided");
|
|
914
888
|
return new Promise(function(resolve, reject) {
|
|
915
|
-
isexe
|
|
889
|
+
isexe(path, options || {}, function(er, is) {
|
|
916
890
|
if (er) reject(er);
|
|
917
891
|
else resolve(is);
|
|
918
892
|
});
|
|
919
893
|
});
|
|
920
894
|
}
|
|
921
|
-
core(path
|
|
895
|
+
core(path, options || {}, function(er, is) {
|
|
922
896
|
if (er) {
|
|
923
897
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
924
898
|
er = null;
|
|
@@ -928,19 +902,18 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
|
|
|
928
902
|
cb(er, is);
|
|
929
903
|
});
|
|
930
904
|
}
|
|
931
|
-
function sync(path
|
|
905
|
+
function sync(path, options) {
|
|
932
906
|
try {
|
|
933
|
-
return core.sync(path
|
|
907
|
+
return core.sync(path, options || {});
|
|
934
908
|
} catch (er) {
|
|
935
909
|
if (options && options.ignoreErrors || er.code === "EACCES") return false;
|
|
936
910
|
else throw er;
|
|
937
911
|
}
|
|
938
912
|
}
|
|
939
|
-
})
|
|
940
|
-
|
|
913
|
+
}));
|
|
941
914
|
//#endregion
|
|
942
915
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
943
|
-
var require_which = /* @__PURE__ */
|
|
916
|
+
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
944
917
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
945
918
|
const path$5 = __require("path");
|
|
946
919
|
const COLON = isWindows ? ";" : ":";
|
|
@@ -960,7 +933,7 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
|
|
|
960
933
|
pathExtExe
|
|
961
934
|
};
|
|
962
935
|
};
|
|
963
|
-
const which
|
|
936
|
+
const which = (cmd, opt, cb) => {
|
|
964
937
|
if (typeof opt === "function") {
|
|
965
938
|
cb = opt;
|
|
966
939
|
opt = {};
|
|
@@ -968,20 +941,20 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
|
|
|
968
941
|
if (!opt) opt = {};
|
|
969
942
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
970
943
|
const found = [];
|
|
971
|
-
const step = (i
|
|
972
|
-
if (i
|
|
973
|
-
const ppRaw = pathEnv[i
|
|
944
|
+
const step = (i) => new Promise((resolve, reject) => {
|
|
945
|
+
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
946
|
+
const ppRaw = pathEnv[i];
|
|
974
947
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
975
948
|
const pCmd = path$5.join(pathPart, cmd);
|
|
976
|
-
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i
|
|
949
|
+
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
|
|
977
950
|
});
|
|
978
|
-
const subStep = (p
|
|
979
|
-
if (ii === pathExt.length) return resolve(step(i
|
|
951
|
+
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
952
|
+
if (ii === pathExt.length) return resolve(step(i + 1));
|
|
980
953
|
const ext = pathExt[ii];
|
|
981
|
-
isexe(p
|
|
982
|
-
if (!er && is) if (opt.all) found.push(p
|
|
983
|
-
else return resolve(p
|
|
984
|
-
return resolve(subStep(p
|
|
954
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
955
|
+
if (!er && is) if (opt.all) found.push(p + ext);
|
|
956
|
+
else return resolve(p + ext);
|
|
957
|
+
return resolve(subStep(p, i, ii + 1));
|
|
985
958
|
});
|
|
986
959
|
});
|
|
987
960
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -990,13 +963,13 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
|
|
|
990
963
|
opt = opt || {};
|
|
991
964
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
992
965
|
const found = [];
|
|
993
|
-
for (let i
|
|
994
|
-
const ppRaw = pathEnv[i
|
|
966
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
967
|
+
const ppRaw = pathEnv[i];
|
|
995
968
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
996
969
|
const pCmd = path$5.join(pathPart, cmd);
|
|
997
|
-
const p
|
|
970
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
998
971
|
for (let j = 0; j < pathExt.length; j++) {
|
|
999
|
-
const cur = p
|
|
972
|
+
const cur = p + pathExt[j];
|
|
1000
973
|
try {
|
|
1001
974
|
if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
|
|
1002
975
|
else return cur;
|
|
@@ -1007,25 +980,23 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
|
|
|
1007
980
|
if (opt.nothrow) return null;
|
|
1008
981
|
throw getNotFoundError(cmd);
|
|
1009
982
|
};
|
|
1010
|
-
module.exports = which
|
|
1011
|
-
which
|
|
1012
|
-
})
|
|
1013
|
-
|
|
983
|
+
module.exports = which;
|
|
984
|
+
which.sync = whichSync;
|
|
985
|
+
}));
|
|
1014
986
|
//#endregion
|
|
1015
987
|
//#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
1016
|
-
var require_path_key = /* @__PURE__ */
|
|
1017
|
-
const pathKey
|
|
988
|
+
var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
989
|
+
const pathKey = (options = {}) => {
|
|
1018
990
|
const environment = options.env || process.env;
|
|
1019
991
|
if ((options.platform || process.platform) !== "win32") return "PATH";
|
|
1020
992
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
1021
993
|
};
|
|
1022
|
-
module.exports = pathKey
|
|
1023
|
-
module.exports.default = pathKey
|
|
1024
|
-
})
|
|
1025
|
-
|
|
994
|
+
module.exports = pathKey;
|
|
995
|
+
module.exports.default = pathKey;
|
|
996
|
+
}));
|
|
1026
997
|
//#endregion
|
|
1027
998
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
1028
|
-
var require_resolveCommand = /* @__PURE__ */
|
|
999
|
+
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1029
1000
|
const path$4 = __require("path");
|
|
1030
1001
|
const which = require_which();
|
|
1031
1002
|
const getPathKey = require_path_key();
|
|
@@ -1049,15 +1020,14 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
1049
1020
|
if (resolved) resolved = path$4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
1050
1021
|
return resolved;
|
|
1051
1022
|
}
|
|
1052
|
-
function resolveCommand
|
|
1023
|
+
function resolveCommand(parsed) {
|
|
1053
1024
|
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
1054
1025
|
}
|
|
1055
|
-
module.exports = resolveCommand
|
|
1056
|
-
})
|
|
1057
|
-
|
|
1026
|
+
module.exports = resolveCommand;
|
|
1027
|
+
}));
|
|
1058
1028
|
//#endregion
|
|
1059
1029
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
1060
|
-
var require_escape = /* @__PURE__ */
|
|
1030
|
+
var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1061
1031
|
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
1062
1032
|
function escapeCommand(arg) {
|
|
1063
1033
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
@@ -1074,34 +1044,31 @@ var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
|
|
|
1074
1044
|
}
|
|
1075
1045
|
module.exports.command = escapeCommand;
|
|
1076
1046
|
module.exports.argument = escapeArgument;
|
|
1077
|
-
})
|
|
1078
|
-
|
|
1047
|
+
}));
|
|
1079
1048
|
//#endregion
|
|
1080
1049
|
//#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
1081
|
-
var require_shebang_regex = /* @__PURE__ */
|
|
1050
|
+
var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1082
1051
|
module.exports = /^#!(.*)/;
|
|
1083
|
-
})
|
|
1084
|
-
|
|
1052
|
+
}));
|
|
1085
1053
|
//#endregion
|
|
1086
1054
|
//#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
1087
|
-
var require_shebang_command = /* @__PURE__ */
|
|
1055
|
+
var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1088
1056
|
const shebangRegex = require_shebang_regex();
|
|
1089
1057
|
module.exports = (string = "") => {
|
|
1090
1058
|
const match = string.match(shebangRegex);
|
|
1091
1059
|
if (!match) return null;
|
|
1092
|
-
const [path
|
|
1093
|
-
const binary = path
|
|
1060
|
+
const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
1061
|
+
const binary = path.split("/").pop();
|
|
1094
1062
|
if (binary === "env") return argument;
|
|
1095
1063
|
return argument ? `${binary} ${argument}` : binary;
|
|
1096
1064
|
};
|
|
1097
|
-
})
|
|
1098
|
-
|
|
1065
|
+
}));
|
|
1099
1066
|
//#endregion
|
|
1100
1067
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
1101
|
-
var require_readShebang = /* @__PURE__ */
|
|
1068
|
+
var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1102
1069
|
const fs$2 = __require("fs");
|
|
1103
1070
|
const shebangCommand = require_shebang_command();
|
|
1104
|
-
function readShebang
|
|
1071
|
+
function readShebang(command) {
|
|
1105
1072
|
const size = 150;
|
|
1106
1073
|
const buffer = Buffer.alloc(size);
|
|
1107
1074
|
let fd;
|
|
@@ -1112,17 +1079,16 @@ var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1112
1079
|
} catch (e) {}
|
|
1113
1080
|
return shebangCommand(buffer.toString());
|
|
1114
1081
|
}
|
|
1115
|
-
module.exports = readShebang
|
|
1116
|
-
})
|
|
1117
|
-
|
|
1082
|
+
module.exports = readShebang;
|
|
1083
|
+
}));
|
|
1118
1084
|
//#endregion
|
|
1119
1085
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
1120
|
-
var require_parse = /* @__PURE__ */
|
|
1086
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1121
1087
|
const path$3 = __require("path");
|
|
1122
1088
|
const resolveCommand = require_resolveCommand();
|
|
1123
1089
|
const escape = require_escape();
|
|
1124
1090
|
const readShebang = require_readShebang();
|
|
1125
|
-
const isWin
|
|
1091
|
+
const isWin = process.platform === "win32";
|
|
1126
1092
|
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
1127
1093
|
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
1128
1094
|
function detectShebang(parsed) {
|
|
@@ -1136,7 +1102,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
|
|
|
1136
1102
|
return parsed.file;
|
|
1137
1103
|
}
|
|
1138
1104
|
function parseNonShell(parsed) {
|
|
1139
|
-
if (!isWin
|
|
1105
|
+
if (!isWin) return parsed;
|
|
1140
1106
|
const commandFile = detectShebang(parsed);
|
|
1141
1107
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
1142
1108
|
if (parsed.options.forceShell || needsShell) {
|
|
@@ -1155,7 +1121,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
|
|
|
1155
1121
|
}
|
|
1156
1122
|
return parsed;
|
|
1157
1123
|
}
|
|
1158
|
-
function parse
|
|
1124
|
+
function parse(command, args, options) {
|
|
1159
1125
|
if (args && !Array.isArray(args)) {
|
|
1160
1126
|
options = args;
|
|
1161
1127
|
args = null;
|
|
@@ -1174,12 +1140,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
|
|
|
1174
1140
|
};
|
|
1175
1141
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
1176
1142
|
}
|
|
1177
|
-
module.exports = parse
|
|
1178
|
-
})
|
|
1179
|
-
|
|
1143
|
+
module.exports = parse;
|
|
1144
|
+
}));
|
|
1180
1145
|
//#endregion
|
|
1181
1146
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
1182
|
-
var require_enoent = /* @__PURE__ */
|
|
1147
|
+
var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1183
1148
|
const isWin = process.platform === "win32";
|
|
1184
1149
|
function notFoundError(original, syscall) {
|
|
1185
1150
|
return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
|
|
@@ -1190,15 +1155,15 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
|
|
|
1190
1155
|
spawnargs: original.args
|
|
1191
1156
|
});
|
|
1192
1157
|
}
|
|
1193
|
-
function hookChildProcess(cp
|
|
1158
|
+
function hookChildProcess(cp, parsed) {
|
|
1194
1159
|
if (!isWin) return;
|
|
1195
|
-
const originalEmit = cp
|
|
1196
|
-
cp
|
|
1160
|
+
const originalEmit = cp.emit;
|
|
1161
|
+
cp.emit = function(name, arg1) {
|
|
1197
1162
|
if (name === "exit") {
|
|
1198
1163
|
const err = verifyENOENT(arg1, parsed);
|
|
1199
|
-
if (err) return originalEmit.call(cp
|
|
1164
|
+
if (err) return originalEmit.call(cp, "error", err);
|
|
1200
1165
|
}
|
|
1201
|
-
return originalEmit.apply(cp
|
|
1166
|
+
return originalEmit.apply(cp, arguments);
|
|
1202
1167
|
};
|
|
1203
1168
|
}
|
|
1204
1169
|
function verifyENOENT(status, parsed) {
|
|
@@ -1215,45 +1180,37 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
|
|
|
1215
1180
|
verifyENOENTSync,
|
|
1216
1181
|
notFoundError
|
|
1217
1182
|
};
|
|
1218
|
-
})
|
|
1219
|
-
|
|
1183
|
+
}));
|
|
1220
1184
|
//#endregion
|
|
1221
|
-
//#region ../../node_modules/.pnpm/
|
|
1222
|
-
var
|
|
1185
|
+
//#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
1186
|
+
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1223
1187
|
const cp = __require("child_process");
|
|
1224
1188
|
const parse = require_parse();
|
|
1225
1189
|
const enoent = require_enoent();
|
|
1226
|
-
function spawn
|
|
1190
|
+
function spawn(command, args, options) {
|
|
1227
1191
|
const parsed = parse(command, args, options);
|
|
1228
1192
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
1229
1193
|
enoent.hookChildProcess(spawned, parsed);
|
|
1230
1194
|
return spawned;
|
|
1231
1195
|
}
|
|
1232
|
-
function spawnSync
|
|
1196
|
+
function spawnSync(command, args, options) {
|
|
1233
1197
|
const parsed = parse(command, args, options);
|
|
1234
1198
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
1235
1199
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
1236
1200
|
return result;
|
|
1237
1201
|
}
|
|
1238
|
-
module.exports = spawn
|
|
1239
|
-
module.exports.spawn = spawn
|
|
1240
|
-
module.exports.sync = spawnSync
|
|
1202
|
+
module.exports = spawn;
|
|
1203
|
+
module.exports.spawn = spawn;
|
|
1204
|
+
module.exports.sync = spawnSync;
|
|
1241
1205
|
module.exports._parse = parse;
|
|
1242
1206
|
module.exports._enoent = enoent;
|
|
1243
|
-
})
|
|
1244
|
-
|
|
1245
|
-
//#endregion
|
|
1246
|
-
//#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
1247
|
-
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
1207
|
+
})))(), 1);
|
|
1248
1208
|
function pathKey(options = {}) {
|
|
1249
|
-
const { env = process.env, platform
|
|
1250
|
-
if (platform
|
|
1209
|
+
const { env = process.env, platform = process.platform } = options;
|
|
1210
|
+
if (platform !== "win32") return "PATH";
|
|
1251
1211
|
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
1252
1212
|
}
|
|
1253
|
-
|
|
1254
|
-
//#endregion
|
|
1255
|
-
//#region ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
|
|
1256
|
-
const execFileOriginal = promisify(execFile);
|
|
1213
|
+
promisify(execFile);
|
|
1257
1214
|
function toPath(urlOrPath) {
|
|
1258
1215
|
return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
1259
1216
|
}
|
|
@@ -1268,16 +1225,14 @@ function traversePathUp(startPath) {
|
|
|
1268
1225
|
}
|
|
1269
1226
|
} };
|
|
1270
1227
|
}
|
|
1271
|
-
const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
1272
|
-
|
|
1273
1228
|
//#endregion
|
|
1274
1229
|
//#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
1275
|
-
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath
|
|
1230
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
1276
1231
|
const cwdPath = path.resolve(toPath(cwd));
|
|
1277
1232
|
const result = [];
|
|
1278
1233
|
const pathParts = pathOption.split(path.delimiter);
|
|
1279
1234
|
if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
|
|
1280
|
-
if (addExecPath) applyExecPath(result, pathParts, execPath
|
|
1235
|
+
if (addExecPath) applyExecPath(result, pathParts, execPath, cwdPath);
|
|
1281
1236
|
return pathOption === "" || pathOption === path.delimiter ? `${result.join(path.delimiter)}${pathOption}` : [...result, pathOption].join(path.delimiter);
|
|
1282
1237
|
};
|
|
1283
1238
|
const applyPreferLocal = (result, pathParts, cwdPath) => {
|
|
@@ -1286,18 +1241,17 @@ const applyPreferLocal = (result, pathParts, cwdPath) => {
|
|
|
1286
1241
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
1287
1242
|
}
|
|
1288
1243
|
};
|
|
1289
|
-
const applyExecPath = (result, pathParts, execPath
|
|
1290
|
-
const pathPart = path.resolve(cwdPath, toPath(execPath
|
|
1244
|
+
const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
1245
|
+
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
1291
1246
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
1292
1247
|
};
|
|
1293
|
-
const npmRunPathEnv = ({ env = process$1.env
|
|
1248
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
1294
1249
|
env = { ...env };
|
|
1295
1250
|
const pathName = pathKey({ env });
|
|
1296
1251
|
options.path = env[pathName];
|
|
1297
1252
|
env[pathName] = npmRunPath(options);
|
|
1298
1253
|
return env;
|
|
1299
1254
|
};
|
|
1300
|
-
|
|
1301
1255
|
//#endregion
|
|
1302
1256
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js
|
|
1303
1257
|
const getFinalError = (originalError, message, isSync) => {
|
|
@@ -1325,11 +1279,10 @@ var ExecaError = class extends Error {};
|
|
|
1325
1279
|
setErrorName(ExecaError, ExecaError.name);
|
|
1326
1280
|
var ExecaSyncError = class extends Error {};
|
|
1327
1281
|
setErrorName(ExecaSyncError, ExecaSyncError.name);
|
|
1328
|
-
|
|
1329
1282
|
//#endregion
|
|
1330
|
-
//#region ../../node_modules/.pnpm/human-signals@8.0.
|
|
1283
|
+
//#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/realtime.js
|
|
1331
1284
|
const getRealtimeSignals = () => {
|
|
1332
|
-
const length =
|
|
1285
|
+
const length = 64 - SIGRTMIN + 1;
|
|
1333
1286
|
return Array.from({ length }, getRealtimeSignal);
|
|
1334
1287
|
};
|
|
1335
1288
|
const getRealtimeSignal = (value, index) => ({
|
|
@@ -1340,10 +1293,8 @@ const getRealtimeSignal = (value, index) => ({
|
|
|
1340
1293
|
standard: "posix"
|
|
1341
1294
|
});
|
|
1342
1295
|
const SIGRTMIN = 34;
|
|
1343
|
-
const SIGRTMAX = 64;
|
|
1344
|
-
|
|
1345
1296
|
//#endregion
|
|
1346
|
-
//#region ../../node_modules/.pnpm/human-signals@8.0.
|
|
1297
|
+
//#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/core.js
|
|
1347
1298
|
const SIGNALS = [
|
|
1348
1299
|
{
|
|
1349
1300
|
name: "SIGHUP",
|
|
@@ -1615,9 +1566,8 @@ const SIGNALS = [
|
|
|
1615
1566
|
standard: "other"
|
|
1616
1567
|
}
|
|
1617
1568
|
];
|
|
1618
|
-
|
|
1619
1569
|
//#endregion
|
|
1620
|
-
//#region ../../node_modules/.pnpm/human-signals@8.0.
|
|
1570
|
+
//#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
|
|
1621
1571
|
const getSignals = () => {
|
|
1622
1572
|
const realtimeSignals = getRealtimeSignals();
|
|
1623
1573
|
return [...SIGNALS, ...realtimeSignals].map(normalizeSignal$1);
|
|
@@ -1635,12 +1585,11 @@ const normalizeSignal$1 = ({ name, number: defaultNumber, description, action, f
|
|
|
1635
1585
|
standard
|
|
1636
1586
|
};
|
|
1637
1587
|
};
|
|
1638
|
-
|
|
1639
1588
|
//#endregion
|
|
1640
|
-
//#region ../../node_modules/.pnpm/human-signals@8.0.
|
|
1589
|
+
//#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/main.js
|
|
1641
1590
|
const getSignalsByName = () => {
|
|
1642
|
-
const signals
|
|
1643
|
-
return Object.fromEntries(signals
|
|
1591
|
+
const signals = getSignals();
|
|
1592
|
+
return Object.fromEntries(signals.map(getSignalByName));
|
|
1644
1593
|
};
|
|
1645
1594
|
const getSignalByName = ({ name, number, description, supported, action, forced, standard }) => [name, {
|
|
1646
1595
|
name,
|
|
@@ -1653,13 +1602,12 @@ const getSignalByName = ({ name, number, description, supported, action, forced,
|
|
|
1653
1602
|
}];
|
|
1654
1603
|
const signalsByName = getSignalsByName();
|
|
1655
1604
|
const getSignalsByNumber = () => {
|
|
1656
|
-
const signals
|
|
1657
|
-
const
|
|
1658
|
-
const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals$1));
|
|
1605
|
+
const signals = getSignals();
|
|
1606
|
+
const signalsA = Array.from({ length: 65 }, (value, number) => getSignalByNumber(number, signals));
|
|
1659
1607
|
return Object.assign({}, ...signalsA);
|
|
1660
1608
|
};
|
|
1661
|
-
const getSignalByNumber = (number, signals
|
|
1662
|
-
const signal = findSignalByNumber(number, signals
|
|
1609
|
+
const getSignalByNumber = (number, signals) => {
|
|
1610
|
+
const signal = findSignalByNumber(number, signals);
|
|
1663
1611
|
if (signal === void 0) return {};
|
|
1664
1612
|
const { name, description, supported, action, forced, standard } = signal;
|
|
1665
1613
|
return { [number]: {
|
|
@@ -1672,13 +1620,12 @@ const getSignalByNumber = (number, signals$1) => {
|
|
|
1672
1620
|
standard
|
|
1673
1621
|
} };
|
|
1674
1622
|
};
|
|
1675
|
-
const findSignalByNumber = (number, signals
|
|
1676
|
-
const signal = signals
|
|
1623
|
+
const findSignalByNumber = (number, signals) => {
|
|
1624
|
+
const signal = signals.find(({ name }) => constants.signals[name] === number);
|
|
1677
1625
|
if (signal !== void 0) return signal;
|
|
1678
|
-
return signals
|
|
1626
|
+
return signals.find((signalA) => signalA.number === number);
|
|
1679
1627
|
};
|
|
1680
|
-
|
|
1681
|
-
|
|
1628
|
+
getSignalsByNumber();
|
|
1682
1629
|
//#endregion
|
|
1683
1630
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/signal.js
|
|
1684
1631
|
const normalizeKillSignal = (killSignal) => {
|
|
@@ -1708,7 +1655,6 @@ Available signal numbers: ${getAvailableSignalIntegers()}.`;
|
|
|
1708
1655
|
const getAvailableSignalNames = () => Object.keys(constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
|
|
1709
1656
|
const getAvailableSignalIntegers = () => [...new Set(Object.values(constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
|
|
1710
1657
|
const getSignalDescription = (signal) => signalsByName[signal].description;
|
|
1711
|
-
|
|
1712
1658
|
//#endregion
|
|
1713
1659
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/kill.js
|
|
1714
1660
|
const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
|
|
@@ -1760,13 +1706,11 @@ const killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSig
|
|
|
1760
1706
|
if (kill("SIGKILL")) context.isForcefullyTerminated ??= true;
|
|
1761
1707
|
} catch {}
|
|
1762
1708
|
};
|
|
1763
|
-
|
|
1764
1709
|
//#endregion
|
|
1765
1710
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/abort-signal.js
|
|
1766
1711
|
const onAbortedSignal = async (mainSignal, stopSignal) => {
|
|
1767
1712
|
if (!mainSignal.aborted) await once(mainSignal, "abort", { signal: stopSignal });
|
|
1768
1713
|
};
|
|
1769
|
-
|
|
1770
1714
|
//#endregion
|
|
1771
1715
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cancel.js
|
|
1772
1716
|
const validateCancelSignal = ({ cancelSignal }) => {
|
|
@@ -1779,18 +1723,17 @@ const terminateOnCancel = async (subprocess, cancelSignal, context, { signal })
|
|
|
1779
1723
|
subprocess.kill();
|
|
1780
1724
|
throw cancelSignal.reason;
|
|
1781
1725
|
};
|
|
1782
|
-
|
|
1783
1726
|
//#endregion
|
|
1784
1727
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/validation.js
|
|
1785
|
-
const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected
|
|
1728
|
+
const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected }) => {
|
|
1786
1729
|
validateIpcOption(methodName, isSubprocess, ipc);
|
|
1787
|
-
validateConnection(methodName, isSubprocess, isConnected
|
|
1730
|
+
validateConnection(methodName, isSubprocess, isConnected);
|
|
1788
1731
|
};
|
|
1789
1732
|
const validateIpcOption = (methodName, isSubprocess, ipc) => {
|
|
1790
1733
|
if (!ipc) throw new Error(`${getMethodName(methodName, isSubprocess)} can only be used if the \`ipc\` option is \`true\`.`);
|
|
1791
1734
|
};
|
|
1792
|
-
const validateConnection = (methodName, isSubprocess, isConnected
|
|
1793
|
-
if (!isConnected
|
|
1735
|
+
const validateConnection = (methodName, isSubprocess, isConnected) => {
|
|
1736
|
+
if (!isConnected) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
|
|
1794
1737
|
};
|
|
1795
1738
|
const throwOnEarlyDisconnect = (isSubprocess) => {
|
|
1796
1739
|
throw new Error(`${getMethodName("getOneMessage", isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
|
|
@@ -1834,7 +1777,6 @@ const getOtherProcessName = (isSubprocess) => isSubprocess ? "parent process" :
|
|
|
1834
1777
|
const disconnect = (anyProcess) => {
|
|
1835
1778
|
if (anyProcess.connected) anyProcess.disconnect();
|
|
1836
1779
|
};
|
|
1837
|
-
|
|
1838
1780
|
//#endregion
|
|
1839
1781
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/deferred.js
|
|
1840
1782
|
const createDeferred = () => {
|
|
@@ -1847,7 +1789,6 @@ const createDeferred = () => {
|
|
|
1847
1789
|
});
|
|
1848
1790
|
return Object.assign(promise, methods);
|
|
1849
1791
|
};
|
|
1850
|
-
|
|
1851
1792
|
//#endregion
|
|
1852
1793
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/fd-options.js
|
|
1853
1794
|
const getToStream = (destination, to = "stdin") => {
|
|
@@ -1924,7 +1865,6 @@ const serializeOptionValue = (value) => {
|
|
|
1924
1865
|
if (typeof value === "string") return `'${value}'`;
|
|
1925
1866
|
return typeof value === "number" ? `${value}` : "Stream";
|
|
1926
1867
|
};
|
|
1927
|
-
|
|
1928
1868
|
//#endregion
|
|
1929
1869
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/max-listeners.js
|
|
1930
1870
|
const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
@@ -1935,7 +1875,6 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
|
1935
1875
|
eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
|
|
1936
1876
|
});
|
|
1937
1877
|
};
|
|
1938
|
-
|
|
1939
1878
|
//#endregion
|
|
1940
1879
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/reference.js
|
|
1941
1880
|
const addReference = (channel, reference) => {
|
|
@@ -1962,7 +1901,6 @@ const redoAddedReferences = (channel, isSubprocess) => {
|
|
|
1962
1901
|
addReferenceCount(channel);
|
|
1963
1902
|
}
|
|
1964
1903
|
};
|
|
1965
|
-
|
|
1966
1904
|
//#endregion
|
|
1967
1905
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/incoming.js
|
|
1968
1906
|
const onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
|
|
@@ -1996,7 +1934,6 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
|
|
|
1996
1934
|
ipcEmitter.emit("disconnect");
|
|
1997
1935
|
};
|
|
1998
1936
|
const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
1999
|
-
|
|
2000
1937
|
//#endregion
|
|
2001
1938
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
|
|
2002
1939
|
const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
@@ -2034,7 +1971,6 @@ const isConnected = (anyProcess) => {
|
|
|
2034
1971
|
const ipcEmitter = IPC_EMITTERS.get(anyProcess);
|
|
2035
1972
|
return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
|
|
2036
1973
|
};
|
|
2037
|
-
|
|
2038
1974
|
//#endregion
|
|
2039
1975
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/strict.js
|
|
2040
1976
|
const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
|
|
@@ -2106,7 +2042,6 @@ const throwOnDisconnect$1 = async (anyProcess, isSubprocess, { signal }) => {
|
|
|
2106
2042
|
};
|
|
2107
2043
|
const REQUEST_TYPE = "execa:ipc:request";
|
|
2108
2044
|
const RESPONSE_TYPE = "execa:ipc:response";
|
|
2109
|
-
|
|
2110
2045
|
//#endregion
|
|
2111
2046
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
|
|
2112
2047
|
const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
@@ -2136,7 +2071,6 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
|
|
|
2136
2071
|
const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2137
2072
|
const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
2138
2073
|
const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
2139
|
-
|
|
2140
2074
|
//#endregion
|
|
2141
2075
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/send.js
|
|
2142
2076
|
const sendMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
|
|
@@ -2206,7 +2140,6 @@ const getSendMethod = (anyProcess) => {
|
|
|
2206
2140
|
return sendMethod;
|
|
2207
2141
|
};
|
|
2208
2142
|
const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
|
|
2209
|
-
|
|
2210
2143
|
//#endregion
|
|
2211
2144
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
|
|
2212
2145
|
const sendAbort = (subprocess, message) => {
|
|
@@ -2257,7 +2190,6 @@ const abortOnDisconnect = () => {
|
|
|
2257
2190
|
cancelController.abort(getAbortDisconnectError());
|
|
2258
2191
|
};
|
|
2259
2192
|
const cancelController = new AbortController();
|
|
2260
|
-
|
|
2261
2193
|
//#endregion
|
|
2262
2194
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/graceful.js
|
|
2263
2195
|
const validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
|
|
@@ -2296,7 +2228,6 @@ const getReason = ({ reason }) => {
|
|
|
2296
2228
|
});
|
|
2297
2229
|
return error;
|
|
2298
2230
|
};
|
|
2299
|
-
|
|
2300
2231
|
//#endregion
|
|
2301
2232
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/timeout.js
|
|
2302
2233
|
const validateTimeout = ({ timeout }) => {
|
|
@@ -2309,7 +2240,6 @@ const killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
|
|
|
2309
2240
|
subprocess.kill();
|
|
2310
2241
|
throw new DiscardedError();
|
|
2311
2242
|
};
|
|
2312
|
-
|
|
2313
2243
|
//#endregion
|
|
2314
2244
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/node.js
|
|
2315
2245
|
const mapNode = ({ options }) => {
|
|
@@ -2319,7 +2249,7 @@ const mapNode = ({ options }) => {
|
|
|
2319
2249
|
node: true
|
|
2320
2250
|
} };
|
|
2321
2251
|
};
|
|
2322
|
-
const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath
|
|
2252
|
+
const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
|
|
2323
2253
|
if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
|
|
2324
2254
|
const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
|
|
2325
2255
|
const resolvedNodePath = path.resolve(cwd, normalizedNodePath);
|
|
@@ -2349,7 +2279,6 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
|
|
|
2349
2279
|
}
|
|
2350
2280
|
];
|
|
2351
2281
|
};
|
|
2352
|
-
|
|
2353
2282
|
//#endregion
|
|
2354
2283
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/ipc-input.js
|
|
2355
2284
|
const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
@@ -2379,7 +2308,6 @@ const sendIpcInput = async (subprocess, ipcInput) => {
|
|
|
2379
2308
|
if (ipcInput === void 0) return;
|
|
2380
2309
|
await subprocess.sendMessage(ipcInput);
|
|
2381
2310
|
};
|
|
2382
|
-
|
|
2383
2311
|
//#endregion
|
|
2384
2312
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/encoding-option.js
|
|
2385
2313
|
const validateEncoding = ({ encoding }) => {
|
|
@@ -2387,7 +2315,7 @@ const validateEncoding = ({ encoding }) => {
|
|
|
2387
2315
|
const correctEncoding = getCorrectEncoding(encoding);
|
|
2388
2316
|
if (correctEncoding !== void 0) throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
|
|
2389
2317
|
Please rename it to ${serializeEncoding(correctEncoding)}.`);
|
|
2390
|
-
const correctEncodings = [...ENCODINGS].map((correctEncoding
|
|
2318
|
+
const correctEncodings = [...ENCODINGS].map((correctEncoding) => serializeEncoding(correctEncoding)).join(", ");
|
|
2391
2319
|
throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
|
|
2392
2320
|
Please rename it to one of: ${correctEncodings}.`);
|
|
2393
2321
|
};
|
|
@@ -2416,7 +2344,6 @@ const ENCODING_ALIASES = {
|
|
|
2416
2344
|
binary: "latin1"
|
|
2417
2345
|
};
|
|
2418
2346
|
const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
|
|
2419
|
-
|
|
2420
2347
|
//#endregion
|
|
2421
2348
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/cwd.js
|
|
2422
2349
|
const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
@@ -2442,7 +2369,6 @@ const fixCwdError = (originalMessage, cwd) => {
|
|
|
2442
2369
|
if (!cwdStat.isDirectory()) return `The "cwd" option is not a directory: ${cwd}.\n${originalMessage}`;
|
|
2443
2370
|
return originalMessage;
|
|
2444
2371
|
};
|
|
2445
|
-
|
|
2446
2372
|
//#endregion
|
|
2447
2373
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
|
|
2448
2374
|
const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
@@ -2467,7 +2393,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
2467
2393
|
options
|
|
2468
2394
|
};
|
|
2469
2395
|
};
|
|
2470
|
-
const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced"
|
|
2396
|
+
const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced", ...options }) => ({
|
|
2471
2397
|
...options,
|
|
2472
2398
|
extendEnv,
|
|
2473
2399
|
preferLocal,
|
|
@@ -2499,7 +2425,6 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
|
|
|
2499
2425
|
});
|
|
2500
2426
|
return env;
|
|
2501
2427
|
};
|
|
2502
|
-
|
|
2503
2428
|
//#endregion
|
|
2504
2429
|
//#region ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
|
|
2505
2430
|
function stripFinalNewline(input) {
|
|
@@ -2513,22 +2438,20 @@ const LF = "\n";
|
|
|
2513
2438
|
const LF_BINARY = LF.codePointAt(0);
|
|
2514
2439
|
const CR = "\r";
|
|
2515
2440
|
const CR_BINARY = CR.codePointAt(0);
|
|
2516
|
-
|
|
2517
2441
|
//#endregion
|
|
2518
2442
|
//#region ../../node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.js
|
|
2519
2443
|
function isStream(stream, { checkOpen = true } = {}) {
|
|
2520
2444
|
return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
|
|
2521
2445
|
}
|
|
2522
|
-
function isWritableStream(stream, { checkOpen = true } = {}) {
|
|
2446
|
+
function isWritableStream$1(stream, { checkOpen = true } = {}) {
|
|
2523
2447
|
return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
|
|
2524
2448
|
}
|
|
2525
|
-
function isReadableStream(stream, { checkOpen = true } = {}) {
|
|
2449
|
+
function isReadableStream$1(stream, { checkOpen = true } = {}) {
|
|
2526
2450
|
return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
|
|
2527
2451
|
}
|
|
2528
2452
|
function isDuplexStream(stream, options) {
|
|
2529
|
-
return isWritableStream(stream, options) && isReadableStream(stream, options);
|
|
2453
|
+
return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
|
|
2530
2454
|
}
|
|
2531
|
-
|
|
2532
2455
|
//#endregion
|
|
2533
2456
|
//#region ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js
|
|
2534
2457
|
const a = Object.getPrototypeOf(Object.getPrototypeOf(
|
|
@@ -2609,11 +2532,10 @@ function h({ preventCancel: r = !1 } = {}) {
|
|
|
2609
2532
|
const t = new c(this.getReader(), r), s = Object.create(u);
|
|
2610
2533
|
return s[n] = t, s;
|
|
2611
2534
|
}
|
|
2612
|
-
|
|
2613
2535
|
//#endregion
|
|
2614
2536
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
2615
2537
|
const getAsyncIterable = (stream) => {
|
|
2616
|
-
if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
|
|
2538
|
+
if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
|
|
2617
2539
|
if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
|
|
2618
2540
|
if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
|
|
2619
2541
|
throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
@@ -2647,7 +2569,6 @@ const handleStreamEnd = async (stream, controller, state) => {
|
|
|
2647
2569
|
}
|
|
2648
2570
|
};
|
|
2649
2571
|
const nodeImports = {};
|
|
2650
|
-
|
|
2651
2572
|
//#endregion
|
|
2652
2573
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.js
|
|
2653
2574
|
const getStreamContents$1 = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
@@ -2723,7 +2644,6 @@ var MaxBufferError = class extends Error {
|
|
|
2723
2644
|
super("maxBuffer exceeded");
|
|
2724
2645
|
}
|
|
2725
2646
|
};
|
|
2726
|
-
|
|
2727
2647
|
//#endregion
|
|
2728
2648
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
|
|
2729
2649
|
const identity = (value) => value;
|
|
@@ -2733,7 +2653,6 @@ const throwObjectStream = (chunk) => {
|
|
|
2733
2653
|
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
2734
2654
|
};
|
|
2735
2655
|
const getLengthProperty = (convertedChunk) => convertedChunk.length;
|
|
2736
|
-
|
|
2737
2656
|
//#endregion
|
|
2738
2657
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array.js
|
|
2739
2658
|
async function getStreamAsArray(stream, options) {
|
|
@@ -2761,7 +2680,6 @@ const arrayMethods = {
|
|
|
2761
2680
|
getFinalChunk: noop$1,
|
|
2762
2681
|
finalize: getContentsProperty
|
|
2763
2682
|
};
|
|
2764
|
-
|
|
2765
2683
|
//#endregion
|
|
2766
2684
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.js
|
|
2767
2685
|
async function getStreamAsArrayBuffer(stream, options) {
|
|
@@ -2813,7 +2731,6 @@ const arrayBufferMethods = {
|
|
|
2813
2731
|
getFinalChunk: noop$1,
|
|
2814
2732
|
finalize: finalizeArrayBuffer
|
|
2815
2733
|
};
|
|
2816
|
-
|
|
2817
2734
|
//#endregion
|
|
2818
2735
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/string.js
|
|
2819
2736
|
async function getStreamAsString(stream, options) {
|
|
@@ -2823,11 +2740,11 @@ const initString = () => ({
|
|
|
2823
2740
|
contents: "",
|
|
2824
2741
|
textDecoder: new TextDecoder()
|
|
2825
2742
|
});
|
|
2826
|
-
const useTextDecoder = (chunk, { textDecoder
|
|
2743
|
+
const useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
|
|
2827
2744
|
const addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
|
|
2828
2745
|
const truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
2829
|
-
const getFinalStringChunk = ({ textDecoder
|
|
2830
|
-
const finalChunk = textDecoder
|
|
2746
|
+
const getFinalStringChunk = ({ textDecoder }) => {
|
|
2747
|
+
const finalChunk = textDecoder.decode();
|
|
2831
2748
|
return finalChunk === "" ? void 0 : finalChunk;
|
|
2832
2749
|
};
|
|
2833
2750
|
const stringMethods = {
|
|
@@ -2846,7 +2763,6 @@ const stringMethods = {
|
|
|
2846
2763
|
getFinalChunk: getFinalStringChunk,
|
|
2847
2764
|
finalize: getContentsProperty
|
|
2848
2765
|
};
|
|
2849
|
-
|
|
2850
2766
|
//#endregion
|
|
2851
2767
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/max-buffer.js
|
|
2852
2768
|
const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
|
|
@@ -2902,7 +2818,6 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
|
|
|
2902
2818
|
return result.length > maxBufferValue ? result.slice(0, maxBufferValue) : result;
|
|
2903
2819
|
};
|
|
2904
2820
|
const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
|
|
2905
|
-
|
|
2906
2821
|
//#endregion
|
|
2907
2822
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/message.js
|
|
2908
2823
|
const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDescription, exitCode, escapedCommand, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, forceKillAfterDelay, killSignal, maxBuffer, timeout, cwd }) => {
|
|
@@ -2964,7 +2879,6 @@ const serializeMessageItem = (messageItem) => {
|
|
|
2964
2879
|
if (isUint8Array(messageItem)) return uint8ArrayToString(messageItem);
|
|
2965
2880
|
return "";
|
|
2966
2881
|
};
|
|
2967
|
-
|
|
2968
2882
|
//#endregion
|
|
2969
2883
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js
|
|
2970
2884
|
const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, options: { cwd }, startTime }) => omitUndefinedProperties({
|
|
@@ -3082,7 +2996,6 @@ const normalizeExitPayload = (rawExitCode, rawSignal) => {
|
|
|
3082
2996
|
signalDescription: signal === void 0 ? void 0 : getSignalDescription(rawSignal)
|
|
3083
2997
|
};
|
|
3084
2998
|
};
|
|
3085
|
-
|
|
3086
2999
|
//#endregion
|
|
3087
3000
|
//#region ../../node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js
|
|
3088
3001
|
const toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0;
|
|
@@ -3117,11 +3030,10 @@ function parseMilliseconds(milliseconds) {
|
|
|
3117
3030
|
}
|
|
3118
3031
|
throw new TypeError("Expected a finite number or bigint");
|
|
3119
3032
|
}
|
|
3120
|
-
|
|
3121
3033
|
//#endregion
|
|
3122
3034
|
//#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
|
|
3123
3035
|
const isZero = (value) => value === 0 || value === 0n;
|
|
3124
|
-
const pluralize = (word, count
|
|
3036
|
+
const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
|
|
3125
3037
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
3126
3038
|
const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
|
|
3127
3039
|
function prettyMilliseconds(milliseconds, options) {
|
|
@@ -3170,16 +3082,16 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3170
3082
|
add(Number(parsed.minutes), "minute", "m");
|
|
3171
3083
|
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
3172
3084
|
const seconds = Number(parsed.seconds);
|
|
3173
|
-
const milliseconds
|
|
3085
|
+
const milliseconds = Number(parsed.milliseconds);
|
|
3174
3086
|
const microseconds = Number(parsed.microseconds);
|
|
3175
3087
|
const nanoseconds = Number(parsed.nanoseconds);
|
|
3176
3088
|
add(seconds, "second", "s");
|
|
3177
3089
|
if (options.formatSubMilliseconds) {
|
|
3178
|
-
add(milliseconds
|
|
3090
|
+
add(milliseconds, "millisecond", "ms");
|
|
3179
3091
|
add(microseconds, "microsecond", "µs");
|
|
3180
3092
|
add(nanoseconds, "nanosecond", "ns");
|
|
3181
3093
|
} else {
|
|
3182
|
-
const millisecondsAndBelow = milliseconds
|
|
3094
|
+
const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
|
|
3183
3095
|
const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
|
|
3184
3096
|
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
3185
3097
|
add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
|
|
@@ -3194,7 +3106,6 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3194
3106
|
if (typeof options.unitCount === "number") result = result.slice(0, Math.max(options.unitCount, 1));
|
|
3195
3107
|
return sign + result.join(separator);
|
|
3196
3108
|
}
|
|
3197
|
-
|
|
3198
3109
|
//#endregion
|
|
3199
3110
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/error.js
|
|
3200
3111
|
const logError = (result, verboseInfo) => {
|
|
@@ -3205,7 +3116,6 @@ const logError = (result, verboseInfo) => {
|
|
|
3205
3116
|
result
|
|
3206
3117
|
});
|
|
3207
3118
|
};
|
|
3208
|
-
|
|
3209
3119
|
//#endregion
|
|
3210
3120
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/complete.js
|
|
3211
3121
|
const logResult = (result, verboseInfo) => {
|
|
@@ -3221,7 +3131,6 @@ const logDuration = (result, verboseInfo) => {
|
|
|
3221
3131
|
result
|
|
3222
3132
|
});
|
|
3223
3133
|
};
|
|
3224
|
-
|
|
3225
3134
|
//#endregion
|
|
3226
3135
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/reject.js
|
|
3227
3136
|
const handleResult = (result, verboseInfo, { reject }) => {
|
|
@@ -3229,7 +3138,6 @@ const handleResult = (result, verboseInfo, { reject }) => {
|
|
|
3229
3138
|
if (result.failed && reject) throw result;
|
|
3230
3139
|
return result;
|
|
3231
3140
|
};
|
|
3232
|
-
|
|
3233
3141
|
//#endregion
|
|
3234
3142
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/type.js
|
|
3235
3143
|
const getStdioItemType = (value, optionName) => {
|
|
@@ -3296,10 +3204,10 @@ const KNOWN_STDIO_STRINGS = new Set([
|
|
|
3296
3204
|
"overlapped",
|
|
3297
3205
|
"pipe"
|
|
3298
3206
|
]);
|
|
3299
|
-
const isReadableStream
|
|
3300
|
-
const isWritableStream
|
|
3301
|
-
const isWebStream = (value) => isReadableStream
|
|
3302
|
-
const isTransformStream = (value) => isReadableStream
|
|
3207
|
+
const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
3208
|
+
const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
3209
|
+
const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
|
|
3210
|
+
const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
|
|
3303
3211
|
const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
|
|
3304
3212
|
const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
|
|
3305
3213
|
const isObject = (value) => typeof value === "object" && value !== null;
|
|
@@ -3337,7 +3245,6 @@ const TYPE_TO_MESSAGE = {
|
|
|
3337
3245
|
string: "a string",
|
|
3338
3246
|
uint8Array: "a Uint8Array"
|
|
3339
3247
|
};
|
|
3340
|
-
|
|
3341
3248
|
//#endregion
|
|
3342
3249
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/object-mode.js
|
|
3343
3250
|
const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
|
|
@@ -3360,7 +3267,6 @@ const getFdObjectMode = (stdioItems, direction) => {
|
|
|
3360
3267
|
if (lastTransform === void 0) return false;
|
|
3361
3268
|
return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
|
|
3362
3269
|
};
|
|
3363
|
-
|
|
3364
3270
|
//#endregion
|
|
3365
3271
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/normalize.js
|
|
3366
3272
|
const normalizeTransforms = (stdioItems, optionName, direction, options) => [...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)), ...getTransforms(stdioItems, optionName, direction, options)];
|
|
@@ -3437,7 +3343,6 @@ const normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransfo
|
|
|
3437
3343
|
};
|
|
3438
3344
|
};
|
|
3439
3345
|
const sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
|
|
3440
|
-
|
|
3441
3346
|
//#endregion
|
|
3442
3347
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/direction.js
|
|
3443
3348
|
const getStreamDirection = (stdioItems, fdNumber, optionName) => {
|
|
@@ -3461,10 +3366,10 @@ const guessStreamDirection = {
|
|
|
3461
3366
|
iterable: alwaysInput,
|
|
3462
3367
|
asyncIterable: alwaysInput,
|
|
3463
3368
|
uint8Array: alwaysInput,
|
|
3464
|
-
webStream: (value) => isWritableStream
|
|
3369
|
+
webStream: (value) => isWritableStream(value) ? "output" : "input",
|
|
3465
3370
|
nodeStream(value) {
|
|
3466
|
-
if (!isReadableStream(value, { checkOpen: false })) return "output";
|
|
3467
|
-
return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
|
|
3371
|
+
if (!isReadableStream$1(value, { checkOpen: false })) return "output";
|
|
3372
|
+
return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
|
|
3468
3373
|
},
|
|
3469
3374
|
webTransform: anyDirection,
|
|
3470
3375
|
duplex: anyDirection,
|
|
@@ -3484,14 +3389,12 @@ const getStandardStreamDirection = (value) => {
|
|
|
3484
3389
|
].includes(value)) return "output";
|
|
3485
3390
|
};
|
|
3486
3391
|
const DEFAULT_DIRECTION = "output";
|
|
3487
|
-
|
|
3488
3392
|
//#endregion
|
|
3489
3393
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/array.js
|
|
3490
3394
|
const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
|
|
3491
|
-
|
|
3492
3395
|
//#endregion
|
|
3493
3396
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/stdio-option.js
|
|
3494
|
-
const normalizeStdioOption = ({ stdio, ipc, buffer
|
|
3397
|
+
const normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
|
|
3495
3398
|
const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue(stdioOption, fdNumber));
|
|
3496
3399
|
return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
|
|
3497
3400
|
};
|
|
@@ -3515,7 +3418,6 @@ const addDefaultValue = (stdioOption, fdNumber) => {
|
|
|
3515
3418
|
};
|
|
3516
3419
|
const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
|
|
3517
3420
|
const isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
|
|
3518
|
-
|
|
3519
3421
|
//#endregion
|
|
3520
3422
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/native.js
|
|
3521
3423
|
const handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
|
|
@@ -3584,7 +3486,6 @@ const getStandardStream = (fdNumber, value, optionName) => {
|
|
|
3584
3486
|
if (standardStream === void 0) throw new TypeError(`The \`${optionName}: ${value}\` option is invalid: no such standard stream.`);
|
|
3585
3487
|
return standardStream;
|
|
3586
3488
|
};
|
|
3587
|
-
|
|
3588
3489
|
//#endregion
|
|
3589
3490
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/input-option.js
|
|
3590
3491
|
const handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [...handleInputOption(input), ...handleInputFileOption(inputFile)] : [];
|
|
@@ -3594,7 +3495,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
|
|
|
3594
3495
|
optionName: "input"
|
|
3595
3496
|
}];
|
|
3596
3497
|
const getInputType = (input) => {
|
|
3597
|
-
if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
|
|
3498
|
+
if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
|
|
3598
3499
|
if (typeof input === "string") return "string";
|
|
3599
3500
|
if (isUint8Array(input)) return "uint8Array";
|
|
3600
3501
|
throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
|
|
@@ -3614,7 +3515,6 @@ const getInputFileType = (inputFile) => {
|
|
|
3614
3515
|
};
|
|
3615
3516
|
throw new Error("The `inputFile` option must be a file path string or a file URL.");
|
|
3616
3517
|
};
|
|
3617
|
-
|
|
3618
3518
|
//#endregion
|
|
3619
3519
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/duplicate.js
|
|
3620
3520
|
const filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
|
|
@@ -3675,10 +3575,9 @@ const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }
|
|
|
3675
3575
|
const throwOnDuplicateStream = (stdioItem, optionName, type) => {
|
|
3676
3576
|
if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
|
|
3677
3577
|
};
|
|
3678
|
-
|
|
3679
3578
|
//#endregion
|
|
3680
3579
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle.js
|
|
3681
|
-
const handleStdio = (addProperties
|
|
3580
|
+
const handleStdio = (addProperties, options, verboseInfo, isSync) => {
|
|
3682
3581
|
const fileDescriptors = getFinalFileDescriptors({
|
|
3683
3582
|
initialFileDescriptors: normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
|
|
3684
3583
|
stdioOption,
|
|
@@ -3686,7 +3585,7 @@ const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
|
|
|
3686
3585
|
options,
|
|
3687
3586
|
isSync
|
|
3688
3587
|
})),
|
|
3689
|
-
addProperties
|
|
3588
|
+
addProperties,
|
|
3690
3589
|
options,
|
|
3691
3590
|
isSync
|
|
3692
3591
|
});
|
|
@@ -3735,7 +3634,7 @@ const initializeStdioItem = (value, optionName) => ({
|
|
|
3735
3634
|
const validateStdioArray = (stdioItems, isStdioArray, optionName) => {
|
|
3736
3635
|
if (stdioItems.length === 0) throw new TypeError(`The \`${optionName}\` option must not be an empty array.`);
|
|
3737
3636
|
if (!isStdioArray) return;
|
|
3738
|
-
for (const { value, optionName
|
|
3637
|
+
for (const { value, optionName } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName}\` option must not include \`${value}\`.`);
|
|
3739
3638
|
};
|
|
3740
3639
|
const INVALID_STDIO_ARRAY_OPTIONS = new Set(["ignore", "ipc"]);
|
|
3741
3640
|
const validateStreams = (stdioItems) => {
|
|
@@ -3751,13 +3650,13 @@ const validateFileObjectMode = (stdioItems, objectMode) => {
|
|
|
3751
3650
|
const fileStdioItem = stdioItems.find(({ type }) => FILE_TYPES.has(type));
|
|
3752
3651
|
if (fileStdioItem !== void 0) throw new TypeError(`The \`${fileStdioItem.optionName}\` option cannot use both files and transforms in objectMode.`);
|
|
3753
3652
|
};
|
|
3754
|
-
const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties
|
|
3653
|
+
const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties, options, isSync }) => {
|
|
3755
3654
|
const fileDescriptors = [];
|
|
3756
3655
|
try {
|
|
3757
3656
|
for (const fileDescriptor of initialFileDescriptors) fileDescriptors.push(getFinalFileDescriptor({
|
|
3758
3657
|
fileDescriptor,
|
|
3759
3658
|
fileDescriptors,
|
|
3760
|
-
addProperties
|
|
3659
|
+
addProperties,
|
|
3761
3660
|
options,
|
|
3762
3661
|
isSync
|
|
3763
3662
|
}));
|
|
@@ -3767,13 +3666,13 @@ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addPro
|
|
|
3767
3666
|
throw error;
|
|
3768
3667
|
}
|
|
3769
3668
|
};
|
|
3770
|
-
const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties
|
|
3669
|
+
const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties, options, isSync }) => {
|
|
3771
3670
|
return {
|
|
3772
3671
|
direction,
|
|
3773
3672
|
objectMode,
|
|
3774
3673
|
stdioItems: stdioItems.map((stdioItem) => addStreamProperties({
|
|
3775
3674
|
stdioItem,
|
|
3776
|
-
addProperties
|
|
3675
|
+
addProperties,
|
|
3777
3676
|
direction,
|
|
3778
3677
|
options,
|
|
3779
3678
|
fileDescriptors,
|
|
@@ -3781,7 +3680,7 @@ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdio
|
|
|
3781
3680
|
}))
|
|
3782
3681
|
};
|
|
3783
3682
|
};
|
|
3784
|
-
const addStreamProperties = ({ stdioItem, addProperties
|
|
3683
|
+
const addStreamProperties = ({ stdioItem, addProperties, direction, options, fileDescriptors, isSync }) => {
|
|
3785
3684
|
const duplicateStream = getDuplicateStream({
|
|
3786
3685
|
stdioItem,
|
|
3787
3686
|
direction,
|
|
@@ -3794,18 +3693,17 @@ const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direct
|
|
|
3794
3693
|
};
|
|
3795
3694
|
return {
|
|
3796
3695
|
...stdioItem,
|
|
3797
|
-
...addProperties
|
|
3696
|
+
...addProperties[direction][stdioItem.type](stdioItem, options)
|
|
3798
3697
|
};
|
|
3799
3698
|
};
|
|
3800
3699
|
const cleanupCustomStreams = (fileDescriptors) => {
|
|
3801
3700
|
for (const { stdioItems } of fileDescriptors) for (const { stream } of stdioItems) if (stream !== void 0 && !isStandardStream(stream)) stream.destroy();
|
|
3802
3701
|
};
|
|
3803
3702
|
const forwardStdio = (stdioItems) => {
|
|
3804
|
-
if (stdioItems.length > 1) return stdioItems.some(({ value
|
|
3703
|
+
if (stdioItems.length > 1) return stdioItems.some(({ value }) => value === "overlapped") ? "overlapped" : "pipe";
|
|
3805
3704
|
const [{ type, value }] = stdioItems;
|
|
3806
3705
|
return type === "native" ? value : "pipe";
|
|
3807
3706
|
};
|
|
3808
|
-
|
|
3809
3707
|
//#endregion
|
|
3810
3708
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-sync.js
|
|
3811
3709
|
const handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
|
|
@@ -3852,12 +3750,10 @@ const addPropertiesSync = {
|
|
|
3852
3750
|
uint8Array: forbiddenIfSync
|
|
3853
3751
|
}
|
|
3854
3752
|
};
|
|
3855
|
-
|
|
3856
3753
|
//#endregion
|
|
3857
3754
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/strip-newline.js
|
|
3858
3755
|
const stripNewline = (value, { stripFinalNewline: stripFinalNewline$1 }, fdNumber) => getStripFinalNewline(stripFinalNewline$1, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
|
|
3859
|
-
const getStripFinalNewline = (stripFinalNewline
|
|
3860
|
-
|
|
3756
|
+
const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === "all" ? stripFinalNewline[1] || stripFinalNewline[2] : stripFinalNewline[fdNumber];
|
|
3861
3757
|
//#endregion
|
|
3862
3758
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/split.js
|
|
3863
3759
|
const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
|
|
@@ -3903,8 +3799,8 @@ const linesFinal = function* ({ previousChunks }) {
|
|
|
3903
3799
|
};
|
|
3904
3800
|
const getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMode, state }) => binary || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
|
|
3905
3801
|
const appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
|
|
3906
|
-
const { unixNewline, windowsNewline, LF
|
|
3907
|
-
if (chunk.at(-1) === LF
|
|
3802
|
+
const { unixNewline, windowsNewline, LF, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
|
|
3803
|
+
if (chunk.at(-1) === LF) {
|
|
3908
3804
|
yield chunk;
|
|
3909
3805
|
return;
|
|
3910
3806
|
}
|
|
@@ -3929,7 +3825,6 @@ const linesUint8ArrayInfo = {
|
|
|
3929
3825
|
LF: 10,
|
|
3930
3826
|
concatBytes: concatUint8Array
|
|
3931
3827
|
};
|
|
3932
|
-
|
|
3933
3828
|
//#endregion
|
|
3934
3829
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/validate.js
|
|
3935
3830
|
const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
|
|
@@ -3952,7 +3847,6 @@ const validateEmptyReturn = (optionName, chunk) => {
|
|
|
3952
3847
|
Instead, \`yield\` should either be called with a value, or not be called at all. For example:
|
|
3953
3848
|
if (condition) { yield value; }`);
|
|
3954
3849
|
};
|
|
3955
|
-
|
|
3956
3850
|
//#endregion
|
|
3957
3851
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/encoding-transform.js
|
|
3958
3852
|
const getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
@@ -3964,9 +3858,9 @@ const getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
|
3964
3858
|
final: encodingStringFinal.bind(void 0, stringDecoder)
|
|
3965
3859
|
};
|
|
3966
3860
|
};
|
|
3967
|
-
const encodingUint8ArrayGenerator = function* (textEncoder
|
|
3861
|
+
const encodingUint8ArrayGenerator = function* (textEncoder, chunk) {
|
|
3968
3862
|
if (Buffer$1.isBuffer(chunk)) yield bufferToUint8Array(chunk);
|
|
3969
|
-
else if (typeof chunk === "string") yield textEncoder
|
|
3863
|
+
else if (typeof chunk === "string") yield textEncoder.encode(chunk);
|
|
3970
3864
|
else yield chunk;
|
|
3971
3865
|
};
|
|
3972
3866
|
const encodingStringGenerator = function* (stringDecoder, chunk) {
|
|
@@ -3976,7 +3870,6 @@ const encodingStringFinal = function* (stringDecoder) {
|
|
|
3976
3870
|
const lastChunk = stringDecoder.end();
|
|
3977
3871
|
if (lastChunk !== "") yield lastChunk;
|
|
3978
3872
|
};
|
|
3979
|
-
|
|
3980
3873
|
//#endregion
|
|
3981
3874
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-async.js
|
|
3982
3875
|
const pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
@@ -4012,7 +3905,6 @@ const destroyTransform = callbackify(async ({ currentIterable }, error) => {
|
|
|
4012
3905
|
const identityGenerator$1 = function* (chunk) {
|
|
4013
3906
|
yield chunk;
|
|
4014
3907
|
};
|
|
4015
|
-
|
|
4016
3908
|
//#endregion
|
|
4017
3909
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-sync.js
|
|
4018
3910
|
const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
|
|
@@ -4042,7 +3934,6 @@ const generatorFinalChunksSync = function* (final, index, generators) {
|
|
|
4042
3934
|
const identityGenerator = function* (chunk) {
|
|
4043
3935
|
yield chunk;
|
|
4044
3936
|
};
|
|
4045
|
-
|
|
4046
3937
|
//#endregion
|
|
4047
3938
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/generator.js
|
|
4048
3939
|
const generatorToStream = ({ value, value: { transform, final, writableObjectMode, readableObjectMode }, optionName }, { encoding }) => {
|
|
@@ -4058,7 +3949,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
|
|
|
4058
3949
|
writableHighWaterMark: getDefaultHighWaterMark(writableObjectMode),
|
|
4059
3950
|
readableObjectMode,
|
|
4060
3951
|
readableHighWaterMark: getDefaultHighWaterMark(readableObjectMode),
|
|
4061
|
-
transform(chunk, encoding
|
|
3952
|
+
transform(chunk, encoding, done) {
|
|
4062
3953
|
transformMethod([
|
|
4063
3954
|
chunk,
|
|
4064
3955
|
generators,
|
|
@@ -4096,7 +3987,6 @@ const addInternalGenerators = ({ transform, final, binary, writableObjectMode, r
|
|
|
4096
3987
|
})
|
|
4097
3988
|
].filter(Boolean);
|
|
4098
3989
|
};
|
|
4099
|
-
|
|
4100
3990
|
//#endregion
|
|
4101
3991
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/input-sync.js
|
|
4102
3992
|
const addInputOptionsSync = (fileDescriptors, options) => {
|
|
@@ -4122,7 +4012,6 @@ const validateSerializable = (newContents) => {
|
|
|
4122
4012
|
const invalidItem = newContents.find((item) => typeof item !== "string" && !isUint8Array(item));
|
|
4123
4013
|
if (invalidItem !== void 0) throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${invalidItem}.`);
|
|
4124
4014
|
};
|
|
4125
|
-
|
|
4126
4015
|
//#endregion
|
|
4127
4016
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/output.js
|
|
4128
4017
|
const 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)));
|
|
@@ -4143,7 +4032,6 @@ const logLine = (line, fdNumber, verboseInfo) => {
|
|
|
4143
4032
|
verboseInfo
|
|
4144
4033
|
});
|
|
4145
4034
|
};
|
|
4146
|
-
|
|
4147
4035
|
//#endregion
|
|
4148
4036
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-sync.js
|
|
4149
4037
|
const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
|
|
@@ -4163,7 +4051,7 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
|
|
|
4163
4051
|
...state
|
|
4164
4052
|
};
|
|
4165
4053
|
};
|
|
4166
|
-
const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline
|
|
4054
|
+
const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline, maxBuffer }) => {
|
|
4167
4055
|
if (result === null) return;
|
|
4168
4056
|
const uint8ArrayResult = bufferToUint8Array(truncateMaxBufferSync(result, isMaxBuffer, maxBuffer));
|
|
4169
4057
|
const { stdioItems, objectMode } = fileDescriptors[fdNumber];
|
|
@@ -4172,7 +4060,7 @@ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, o
|
|
|
4172
4060
|
objectMode,
|
|
4173
4061
|
encoding,
|
|
4174
4062
|
lines,
|
|
4175
|
-
stripFinalNewline
|
|
4063
|
+
stripFinalNewline,
|
|
4176
4064
|
fdNumber
|
|
4177
4065
|
});
|
|
4178
4066
|
logOutputSync({
|
|
@@ -4201,13 +4089,13 @@ const runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {
|
|
|
4201
4089
|
return chunks;
|
|
4202
4090
|
}
|
|
4203
4091
|
};
|
|
4204
|
-
const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline
|
|
4092
|
+
const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline, fdNumber }) => {
|
|
4205
4093
|
if (objectMode) return { serializedResult: chunks };
|
|
4206
4094
|
if (encoding === "buffer") return { serializedResult: joinToUint8Array(chunks) };
|
|
4207
4095
|
const serializedResult = joinToString(chunks, encoding);
|
|
4208
4096
|
if (lines[fdNumber]) return {
|
|
4209
4097
|
serializedResult,
|
|
4210
|
-
finalResult: splitLinesSync(serializedResult, !stripFinalNewline
|
|
4098
|
+
finalResult: splitLinesSync(serializedResult, !stripFinalNewline[fdNumber], objectMode)
|
|
4211
4099
|
};
|
|
4212
4100
|
return { serializedResult };
|
|
4213
4101
|
};
|
|
@@ -4226,16 +4114,15 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
|
|
|
4226
4114
|
}
|
|
4227
4115
|
};
|
|
4228
4116
|
const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
4229
|
-
for (const { path
|
|
4230
|
-
const pathString = typeof path
|
|
4231
|
-
if (append || outputFiles.has(pathString)) appendFileSync(path
|
|
4117
|
+
for (const { path, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
|
|
4118
|
+
const pathString = typeof path === "string" ? path : path.toString();
|
|
4119
|
+
if (append || outputFiles.has(pathString)) appendFileSync(path, serializedResult);
|
|
4232
4120
|
else {
|
|
4233
4121
|
outputFiles.add(pathString);
|
|
4234
|
-
writeFileSync(path
|
|
4122
|
+
writeFileSync(path, serializedResult);
|
|
4235
4123
|
}
|
|
4236
4124
|
}
|
|
4237
4125
|
};
|
|
4238
|
-
|
|
4239
4126
|
//#endregion
|
|
4240
4127
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-sync.js
|
|
4241
4128
|
const getAllSync = ([, stdout, stderr], options) => {
|
|
@@ -4247,7 +4134,6 @@ const getAllSync = ([, stdout, stderr], options) => {
|
|
|
4247
4134
|
if (isUint8Array(stdout) && isUint8Array(stderr)) return concatUint8Arrays([stdout, stderr]);
|
|
4248
4135
|
return `${stdout}${stderr}`;
|
|
4249
4136
|
};
|
|
4250
|
-
|
|
4251
4137
|
//#endregion
|
|
4252
4138
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-async.js
|
|
4253
4139
|
const waitForExit = async (subprocess, context) => {
|
|
@@ -4274,7 +4160,6 @@ const waitForSuccessfulExit = async (exitPromise) => {
|
|
|
4274
4160
|
};
|
|
4275
4161
|
const isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
|
|
4276
4162
|
const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
|
|
4277
|
-
|
|
4278
4163
|
//#endregion
|
|
4279
4164
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-sync.js
|
|
4280
4165
|
const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
|
|
@@ -4291,7 +4176,6 @@ const getResultError = (error, exitCode, signal) => {
|
|
|
4291
4176
|
if (error !== void 0) return error;
|
|
4292
4177
|
return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
|
|
4293
4178
|
};
|
|
4294
|
-
|
|
4295
4179
|
//#endregion
|
|
4296
4180
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-sync.js
|
|
4297
4181
|
const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
|
|
@@ -4384,7 +4268,7 @@ const runSubprocessSync = ({ file, commandArguments, options, command, escapedCo
|
|
|
4384
4268
|
});
|
|
4385
4269
|
}
|
|
4386
4270
|
};
|
|
4387
|
-
const normalizeSpawnSyncOptions = ({ encoding, maxBuffer
|
|
4271
|
+
const normalizeSpawnSyncOptions = ({ encoding, maxBuffer, ...options }) => ({
|
|
4388
4272
|
...options,
|
|
4389
4273
|
encoding: "buffer",
|
|
4390
4274
|
maxBuffer: getMaxBufferSync(maxBuffer)
|
|
@@ -4415,7 +4299,6 @@ const getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio,
|
|
|
4415
4299
|
startTime,
|
|
4416
4300
|
isSync: true
|
|
4417
4301
|
});
|
|
4418
|
-
|
|
4419
4302
|
//#endregion
|
|
4420
4303
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-one.js
|
|
4421
4304
|
const getOneMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
|
|
@@ -4466,7 +4349,6 @@ const throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
|
|
|
4466
4349
|
const [error] = await once(ipcEmitter, "strict:error", { signal });
|
|
4467
4350
|
throw getStrictResponseError(error, isSubprocess);
|
|
4468
4351
|
};
|
|
4469
|
-
|
|
4470
4352
|
//#endregion
|
|
4471
4353
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-each.js
|
|
4472
4354
|
const getEachMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
|
|
@@ -4537,7 +4419,6 @@ const iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, is
|
|
|
4537
4419
|
const throwIfStrictError = ({ error }) => {
|
|
4538
4420
|
if (error) throw error;
|
|
4539
4421
|
};
|
|
4540
|
-
|
|
4541
4422
|
//#endregion
|
|
4542
4423
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/methods.js
|
|
4543
4424
|
const addIpcMethods = (subprocess, { ipc }) => {
|
|
@@ -4577,7 +4458,6 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
|
|
|
4577
4458
|
ipc
|
|
4578
4459
|
})
|
|
4579
4460
|
});
|
|
4580
|
-
|
|
4581
4461
|
//#endregion
|
|
4582
4462
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/early-error.js
|
|
4583
4463
|
const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
|
|
@@ -4634,7 +4514,6 @@ const duplex = () => new Duplex({
|
|
|
4634
4514
|
write() {}
|
|
4635
4515
|
});
|
|
4636
4516
|
const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
|
|
4637
|
-
|
|
4638
4517
|
//#endregion
|
|
4639
4518
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-async.js
|
|
4640
4519
|
const handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
|
|
@@ -4675,7 +4554,6 @@ const addPropertiesAsync = {
|
|
|
4675
4554
|
uint8Array: forbiddenIfAsync
|
|
4676
4555
|
}
|
|
4677
4556
|
};
|
|
4678
|
-
|
|
4679
4557
|
//#endregion
|
|
4680
4558
|
//#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
|
|
4681
4559
|
function mergeStreams(streams) {
|
|
@@ -4758,7 +4636,7 @@ const onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { s
|
|
|
4758
4636
|
const validateStream = (stream) => {
|
|
4759
4637
|
if (typeof stream?.pipe !== "function") throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
|
|
4760
4638
|
};
|
|
4761
|
-
const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted
|
|
4639
|
+
const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted, onFinished, unpipeEvent }) => {
|
|
4762
4640
|
updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_PER_STREAM);
|
|
4763
4641
|
const controller = new AbortController();
|
|
4764
4642
|
try {
|
|
@@ -4769,14 +4647,14 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
|
|
|
4769
4647
|
stream,
|
|
4770
4648
|
streams,
|
|
4771
4649
|
ended,
|
|
4772
|
-
aborted
|
|
4650
|
+
aborted,
|
|
4773
4651
|
controller
|
|
4774
4652
|
}),
|
|
4775
4653
|
onInputStreamUnpipe({
|
|
4776
4654
|
stream,
|
|
4777
4655
|
streams,
|
|
4778
4656
|
ended,
|
|
4779
|
-
aborted
|
|
4657
|
+
aborted,
|
|
4780
4658
|
unpipeEvent,
|
|
4781
4659
|
controller
|
|
4782
4660
|
})
|
|
@@ -4785,7 +4663,7 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
|
|
|
4785
4663
|
controller.abort();
|
|
4786
4664
|
updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
|
|
4787
4665
|
}
|
|
4788
|
-
if (streams.size > 0 && streams.size === ended.size + aborted
|
|
4666
|
+
if (streams.size > 0 && streams.size === ended.size + aborted.size) if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
|
|
4789
4667
|
else endStream(passThroughStream);
|
|
4790
4668
|
};
|
|
4791
4669
|
const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
|
|
@@ -4796,7 +4674,7 @@ const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
|
|
|
4796
4674
|
if (!signal.aborted) errorOrAbortStream(stream, error);
|
|
4797
4675
|
}
|
|
4798
4676
|
};
|
|
4799
|
-
const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted
|
|
4677
|
+
const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted, controller: { signal } }) => {
|
|
4800
4678
|
try {
|
|
4801
4679
|
await finished(stream, {
|
|
4802
4680
|
signal,
|
|
@@ -4807,16 +4685,16 @@ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abo
|
|
|
4807
4685
|
if (streams.has(stream)) ended.add(stream);
|
|
4808
4686
|
} catch (error) {
|
|
4809
4687
|
if (signal.aborted || !streams.has(stream)) return;
|
|
4810
|
-
if (isAbortError(error)) aborted
|
|
4688
|
+
if (isAbortError(error)) aborted.add(stream);
|
|
4811
4689
|
else errorStream(passThroughStream, error);
|
|
4812
4690
|
}
|
|
4813
4691
|
};
|
|
4814
|
-
const onInputStreamUnpipe = async ({ stream, streams, ended, aborted
|
|
4692
|
+
const onInputStreamUnpipe = async ({ stream, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {
|
|
4815
4693
|
await once(stream, unpipeEvent, { signal });
|
|
4816
4694
|
if (!stream.readable) return once(signal, "abort", { signal });
|
|
4817
4695
|
streams.delete(stream);
|
|
4818
4696
|
ended.delete(stream);
|
|
4819
|
-
aborted
|
|
4697
|
+
aborted.delete(stream);
|
|
4820
4698
|
};
|
|
4821
4699
|
const endStream = (stream) => {
|
|
4822
4700
|
if (stream.writable) stream.end();
|
|
@@ -4836,13 +4714,12 @@ const errorStream = (stream, error) => {
|
|
|
4836
4714
|
}
|
|
4837
4715
|
};
|
|
4838
4716
|
const noop = () => {};
|
|
4839
|
-
const updateMaxListeners = (passThroughStream, increment
|
|
4717
|
+
const updateMaxListeners = (passThroughStream, increment) => {
|
|
4840
4718
|
const maxListeners = passThroughStream.getMaxListeners();
|
|
4841
|
-
if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment
|
|
4719
|
+
if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment);
|
|
4842
4720
|
};
|
|
4843
4721
|
const PASSTHROUGH_LISTENERS_COUNT = 2;
|
|
4844
4722
|
const PASSTHROUGH_LISTENERS_PER_STREAM = 1;
|
|
4845
|
-
|
|
4846
4723
|
//#endregion
|
|
4847
4724
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/pipeline.js
|
|
4848
4725
|
const pipeStreams = (source, destination) => {
|
|
@@ -4878,7 +4755,6 @@ const onDestinationFinish = async (source, destination) => {
|
|
|
4878
4755
|
const abortSourceStream = (source) => {
|
|
4879
4756
|
if (source.readable) source.destroy();
|
|
4880
4757
|
};
|
|
4881
|
-
|
|
4882
4758
|
//#endregion
|
|
4883
4759
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
|
|
4884
4760
|
const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
@@ -4919,7 +4795,6 @@ const setStandardStreamMaxListeners = (stream, { signal }) => {
|
|
|
4919
4795
|
if (isStandardStream(stream)) incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);
|
|
4920
4796
|
};
|
|
4921
4797
|
const MAX_LISTENERS_INCREMENT = 2;
|
|
4922
|
-
|
|
4923
4798
|
//#endregion
|
|
4924
4799
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
4925
4800
|
/**
|
|
@@ -4952,10 +4827,9 @@ const signals = [];
|
|
|
4952
4827
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
4953
4828
|
if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
4954
4829
|
if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
4955
|
-
|
|
4956
4830
|
//#endregion
|
|
4957
4831
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
4958
|
-
const processOk = (process
|
|
4832
|
+
const processOk = (process) => !!process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
|
|
4959
4833
|
const kExitEmitter = Symbol.for("signal-exit emitter");
|
|
4960
4834
|
const global$1 = globalThis;
|
|
4961
4835
|
const ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
@@ -4984,12 +4858,12 @@ var Emitter = class {
|
|
|
4984
4858
|
}
|
|
4985
4859
|
removeListener(ev, fn) {
|
|
4986
4860
|
const list = this.listeners[ev];
|
|
4987
|
-
const i
|
|
4861
|
+
const i = list.indexOf(fn);
|
|
4988
4862
|
/* c8 ignore start */
|
|
4989
|
-
if (i
|
|
4863
|
+
if (i === -1) return;
|
|
4990
4864
|
/* c8 ignore stop */
|
|
4991
|
-
if (i
|
|
4992
|
-
else list.splice(i
|
|
4865
|
+
if (i === 0 && list.length === 1) list.length = 0;
|
|
4866
|
+
else list.splice(i, 1);
|
|
4993
4867
|
}
|
|
4994
4868
|
emit(ev, code, signal) {
|
|
4995
4869
|
if (this.emitted[ev]) return false;
|
|
@@ -5031,27 +4905,27 @@ var SignalExit = class extends SignalExitBase {
|
|
|
5031
4905
|
#originalProcessReallyExit;
|
|
5032
4906
|
#sigListeners = {};
|
|
5033
4907
|
#loaded = false;
|
|
5034
|
-
constructor(process
|
|
4908
|
+
constructor(process) {
|
|
5035
4909
|
super();
|
|
5036
|
-
this.#process = process
|
|
4910
|
+
this.#process = process;
|
|
5037
4911
|
this.#sigListeners = {};
|
|
5038
4912
|
for (const sig of signals) this.#sigListeners[sig] = () => {
|
|
5039
4913
|
const listeners = this.#process.listeners(sig);
|
|
5040
|
-
let { count
|
|
4914
|
+
let { count } = this.#emitter;
|
|
5041
4915
|
/* c8 ignore start */
|
|
5042
|
-
const p
|
|
5043
|
-
if (typeof p
|
|
4916
|
+
const p = process;
|
|
4917
|
+
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
|
|
5044
4918
|
/* c8 ignore stop */
|
|
5045
|
-
if (listeners.length === count
|
|
4919
|
+
if (listeners.length === count) {
|
|
5046
4920
|
this.unload();
|
|
5047
4921
|
const ret = this.#emitter.emit("exit", null, sig);
|
|
5048
4922
|
/* c8 ignore start */
|
|
5049
4923
|
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
5050
|
-
if (!ret) process
|
|
4924
|
+
if (!ret) process.kill(process.pid, s);
|
|
5051
4925
|
}
|
|
5052
4926
|
};
|
|
5053
|
-
this.#originalProcessReallyExit = process
|
|
5054
|
-
this.#originalProcessEmit = process
|
|
4927
|
+
this.#originalProcessReallyExit = process.reallyExit;
|
|
4928
|
+
this.#originalProcessEmit = process.emit;
|
|
5055
4929
|
}
|
|
5056
4930
|
onExit(cb, opts) {
|
|
5057
4931
|
/* c8 ignore start */
|
|
@@ -5073,8 +4947,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
5073
4947
|
const fn = this.#sigListeners[sig];
|
|
5074
4948
|
if (fn) this.#process.on(sig, fn);
|
|
5075
4949
|
} catch (_) {}
|
|
5076
|
-
this.#process.emit = (ev, ...a
|
|
5077
|
-
return this.#processEmit(ev, ...a
|
|
4950
|
+
this.#process.emit = (ev, ...a) => {
|
|
4951
|
+
return this.#processEmit(ev, ...a);
|
|
5078
4952
|
};
|
|
5079
4953
|
this.#process.reallyExit = (code) => {
|
|
5080
4954
|
return this.#processReallyExit(code);
|
|
@@ -5120,7 +4994,6 @@ var SignalExit = class extends SignalExitBase {
|
|
|
5120
4994
|
};
|
|
5121
4995
|
const process$2 = globalThis.process;
|
|
5122
4996
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
5123
|
-
|
|
5124
4997
|
//#endregion
|
|
5125
4998
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
|
|
5126
4999
|
const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
@@ -5132,7 +5005,6 @@ const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
|
5132
5005
|
removeExitHandler();
|
|
5133
5006
|
});
|
|
5134
5007
|
};
|
|
5135
|
-
|
|
5136
5008
|
//#endregion
|
|
5137
5009
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/pipe-arguments.js
|
|
5138
5010
|
const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
|
|
@@ -5200,7 +5072,6 @@ const getSourceStream = (source, from) => {
|
|
|
5200
5072
|
return { sourceError: error };
|
|
5201
5073
|
}
|
|
5202
5074
|
};
|
|
5203
|
-
|
|
5204
5075
|
//#endregion
|
|
5205
5076
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/throw.js
|
|
5206
5077
|
const handlePipeArgumentsError = ({ sourceStream, sourceError, destinationStream, destinationError, fileDescriptors, sourceOptions, startTime }) => {
|
|
@@ -5238,7 +5109,6 @@ const createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTim
|
|
|
5238
5109
|
isSync: false
|
|
5239
5110
|
});
|
|
5240
5111
|
const PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
|
|
5241
|
-
|
|
5242
5112
|
//#endregion
|
|
5243
5113
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/sequence.js
|
|
5244
5114
|
const waitForBothSubprocesses = async (subprocessPromises) => {
|
|
@@ -5248,7 +5118,6 @@ const waitForBothSubprocesses = async (subprocessPromises) => {
|
|
|
5248
5118
|
if (sourceStatus === "rejected") throw sourceResult;
|
|
5249
5119
|
return destinationResult;
|
|
5250
5120
|
};
|
|
5251
|
-
|
|
5252
5121
|
//#endregion
|
|
5253
5122
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/streaming.js
|
|
5254
5123
|
const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
|
|
@@ -5282,7 +5151,6 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
|
|
|
5282
5151
|
const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
|
|
5283
5152
|
const SOURCE_LISTENERS_PER_PIPE = 2;
|
|
5284
5153
|
const DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
5285
|
-
|
|
5286
5154
|
//#endregion
|
|
5287
5155
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/abort.js
|
|
5288
5156
|
const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
|
|
@@ -5296,7 +5164,6 @@ const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, f
|
|
|
5296
5164
|
startTime
|
|
5297
5165
|
});
|
|
5298
5166
|
};
|
|
5299
|
-
|
|
5300
5167
|
//#endregion
|
|
5301
5168
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/setup.js
|
|
5302
5169
|
const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
|
|
@@ -5307,7 +5174,7 @@ const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
|
|
|
5307
5174
|
...pipeArguments[0]
|
|
5308
5175
|
}
|
|
5309
5176
|
});
|
|
5310
|
-
const { destination
|
|
5177
|
+
const { destination, ...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
|
|
5311
5178
|
const promise = handlePipePromise({
|
|
5312
5179
|
...normalizedInfo,
|
|
5313
5180
|
destination
|
|
@@ -5346,7 +5213,6 @@ const handlePipePromise = async ({ sourcePromise, sourceStream, sourceOptions, s
|
|
|
5346
5213
|
}
|
|
5347
5214
|
};
|
|
5348
5215
|
const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
|
|
5349
|
-
|
|
5350
5216
|
//#endregion
|
|
5351
5217
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/iterate.js
|
|
5352
5218
|
const iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
|
|
@@ -5369,7 +5235,7 @@ const stopReadingOnExit = async (subprocess, controller) => {
|
|
|
5369
5235
|
controller.abort();
|
|
5370
5236
|
}
|
|
5371
5237
|
};
|
|
5372
|
-
const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline
|
|
5238
|
+
const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline, allMixed }) => {
|
|
5373
5239
|
const controller = new AbortController();
|
|
5374
5240
|
stopReadingOnStreamEnd(onStreamEnd, controller, stream);
|
|
5375
5241
|
const objectMode = stream.readableObjectMode && !allMixed;
|
|
@@ -5380,7 +5246,7 @@ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewl
|
|
|
5380
5246
|
shouldEncode: !objectMode,
|
|
5381
5247
|
encoding,
|
|
5382
5248
|
shouldSplit: !objectMode && lines,
|
|
5383
|
-
preserveNewlines: !stripFinalNewline
|
|
5249
|
+
preserveNewlines: !stripFinalNewline
|
|
5384
5250
|
});
|
|
5385
5251
|
};
|
|
5386
5252
|
const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
|
|
@@ -5426,10 +5292,9 @@ const iterateOnData = async function* ({ onStdoutChunk, controller, binary, shou
|
|
|
5426
5292
|
}
|
|
5427
5293
|
};
|
|
5428
5294
|
const getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [getEncodingTransformGenerator(binary, encoding, !shouldEncode), getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})].filter(Boolean);
|
|
5429
|
-
|
|
5430
5295
|
//#endregion
|
|
5431
5296
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/contents.js
|
|
5432
|
-
const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline
|
|
5297
|
+
const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
|
|
5433
5298
|
const logPromise = logOutputAsync({
|
|
5434
5299
|
stream,
|
|
5435
5300
|
onStreamEnd,
|
|
@@ -5448,7 +5313,7 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
|
|
|
5448
5313
|
onStreamEnd,
|
|
5449
5314
|
lines,
|
|
5450
5315
|
encoding,
|
|
5451
|
-
stripFinalNewline: getStripFinalNewline(stripFinalNewline
|
|
5316
|
+
stripFinalNewline: getStripFinalNewline(stripFinalNewline, fdNumber),
|
|
5452
5317
|
allMixed
|
|
5453
5318
|
});
|
|
5454
5319
|
const [output] = await Promise.all([getStreamContents({
|
|
@@ -5505,7 +5370,6 @@ const getBufferedData = async (streamPromise) => {
|
|
|
5505
5370
|
}
|
|
5506
5371
|
};
|
|
5507
5372
|
const handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
|
|
5508
|
-
|
|
5509
5373
|
//#endregion
|
|
5510
5374
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-stream.js
|
|
5511
5375
|
const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
|
|
@@ -5548,10 +5412,9 @@ const shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection =
|
|
|
5548
5412
|
const isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
|
|
5549
5413
|
const isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
|
|
5550
5414
|
const isStreamEpipe = (error) => error?.code === "EPIPE";
|
|
5551
|
-
|
|
5552
5415
|
//#endregion
|
|
5553
5416
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/stdio.js
|
|
5554
|
-
const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline
|
|
5417
|
+
const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
|
|
5555
5418
|
stream,
|
|
5556
5419
|
fdNumber,
|
|
5557
5420
|
encoding,
|
|
@@ -5559,11 +5422,11 @@ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, s
|
|
|
5559
5422
|
maxBuffer: maxBuffer[fdNumber],
|
|
5560
5423
|
lines: lines[fdNumber],
|
|
5561
5424
|
allMixed: false,
|
|
5562
|
-
stripFinalNewline
|
|
5425
|
+
stripFinalNewline,
|
|
5563
5426
|
verboseInfo,
|
|
5564
5427
|
streamInfo
|
|
5565
5428
|
}));
|
|
5566
|
-
const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline
|
|
5429
|
+
const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
|
|
5567
5430
|
if (!stream) return;
|
|
5568
5431
|
const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
|
|
5569
5432
|
if (isInputFileDescriptor(streamInfo, fdNumber)) {
|
|
@@ -5579,24 +5442,23 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
|
|
|
5579
5442
|
maxBuffer,
|
|
5580
5443
|
lines,
|
|
5581
5444
|
allMixed,
|
|
5582
|
-
stripFinalNewline
|
|
5445
|
+
stripFinalNewline,
|
|
5583
5446
|
verboseInfo,
|
|
5584
5447
|
streamInfo
|
|
5585
5448
|
}), onStreamEnd]);
|
|
5586
5449
|
return output;
|
|
5587
5450
|
};
|
|
5588
|
-
|
|
5589
5451
|
//#endregion
|
|
5590
5452
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-async.js
|
|
5591
5453
|
const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
|
|
5592
|
-
const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline
|
|
5454
|
+
const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => waitForSubprocessStream({
|
|
5593
5455
|
...getAllStream(subprocess, buffer),
|
|
5594
5456
|
fdNumber: "all",
|
|
5595
5457
|
encoding,
|
|
5596
5458
|
maxBuffer: maxBuffer[1] + maxBuffer[2],
|
|
5597
5459
|
lines: lines[1] || lines[2],
|
|
5598
5460
|
allMixed: getAllMixed(subprocess),
|
|
5599
|
-
stripFinalNewline
|
|
5461
|
+
stripFinalNewline,
|
|
5600
5462
|
verboseInfo,
|
|
5601
5463
|
streamInfo
|
|
5602
5464
|
});
|
|
@@ -5620,7 +5482,6 @@ const getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =
|
|
|
5620
5482
|
};
|
|
5621
5483
|
};
|
|
5622
5484
|
const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
|
|
5623
|
-
|
|
5624
5485
|
//#endregion
|
|
5625
5486
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/ipc.js
|
|
5626
5487
|
const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
|
|
@@ -5632,12 +5493,11 @@ const logIpcOutput = (message, verboseInfo) => {
|
|
|
5632
5493
|
verboseInfo
|
|
5633
5494
|
});
|
|
5634
5495
|
};
|
|
5635
|
-
|
|
5636
5496
|
//#endregion
|
|
5637
5497
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/buffer-messages.js
|
|
5638
5498
|
const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: maxBufferArray, ipc, ipcOutput, verboseInfo }) => {
|
|
5639
5499
|
if (!ipc) return ipcOutput;
|
|
5640
|
-
const isVerbose
|
|
5500
|
+
const isVerbose = shouldLogIpc(verboseInfo);
|
|
5641
5501
|
const buffer = getFdSpecificValue(bufferArray, "ipc");
|
|
5642
5502
|
const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
|
|
5643
5503
|
for await (const message of loopOnMessages({
|
|
@@ -5652,7 +5512,7 @@ const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: ma
|
|
|
5652
5512
|
checkIpcMaxBuffer(subprocess, ipcOutput, maxBuffer);
|
|
5653
5513
|
ipcOutput.push(message);
|
|
5654
5514
|
}
|
|
5655
|
-
if (isVerbose
|
|
5515
|
+
if (isVerbose) logIpcOutput(message, verboseInfo);
|
|
5656
5516
|
}
|
|
5657
5517
|
return ipcOutput;
|
|
5658
5518
|
};
|
|
@@ -5660,10 +5520,9 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
|
|
|
5660
5520
|
await Promise.allSettled([ipcOutputPromise]);
|
|
5661
5521
|
return ipcOutput;
|
|
5662
5522
|
};
|
|
5663
|
-
|
|
5664
5523
|
//#endregion
|
|
5665
5524
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-subprocess.js
|
|
5666
|
-
const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline
|
|
5525
|
+
const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
|
|
5667
5526
|
const exitPromise = waitForExit(subprocess, context);
|
|
5668
5527
|
const streamInfo = {
|
|
5669
5528
|
originalStreams,
|
|
@@ -5678,7 +5537,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
|
|
|
5678
5537
|
buffer,
|
|
5679
5538
|
maxBuffer,
|
|
5680
5539
|
lines,
|
|
5681
|
-
stripFinalNewline
|
|
5540
|
+
stripFinalNewline,
|
|
5682
5541
|
verboseInfo,
|
|
5683
5542
|
streamInfo
|
|
5684
5543
|
});
|
|
@@ -5688,7 +5547,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
|
|
|
5688
5547
|
buffer,
|
|
5689
5548
|
maxBuffer,
|
|
5690
5549
|
lines,
|
|
5691
|
-
stripFinalNewline
|
|
5550
|
+
stripFinalNewline,
|
|
5692
5551
|
verboseInfo,
|
|
5693
5552
|
streamInfo
|
|
5694
5553
|
});
|
|
@@ -5756,7 +5615,6 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
|
5756
5615
|
const [error] = await once(subprocess, "error", { signal });
|
|
5757
5616
|
throw error;
|
|
5758
5617
|
};
|
|
5759
|
-
|
|
5760
5618
|
//#endregion
|
|
5761
5619
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
|
|
5762
5620
|
const initializeConcurrentStreams = () => ({
|
|
@@ -5780,7 +5638,6 @@ const waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
|
|
|
5780
5638
|
const [isSubprocessExit] = await Promise.race([Promise.allSettled([true, subprocess]), Promise.all([false, ...promises])]);
|
|
5781
5639
|
return !isSubprocessExit;
|
|
5782
5640
|
};
|
|
5783
|
-
|
|
5784
5641
|
//#endregion
|
|
5785
5642
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/shared.js
|
|
5786
5643
|
const safeWaitForSubprocessStdin = async (subprocessStdin) => {
|
|
@@ -5817,7 +5674,6 @@ const destroyOtherStream = (stream, isOpen, error) => {
|
|
|
5817
5674
|
if (error && !isStreamAbort(error)) stream.destroy(error);
|
|
5818
5675
|
else if (isOpen) stream.destroy();
|
|
5819
5676
|
};
|
|
5820
|
-
|
|
5821
5677
|
//#endregion
|
|
5822
5678
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/readable.js
|
|
5823
5679
|
const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
|
|
@@ -5831,7 +5687,7 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
|
|
|
5831
5687
|
encoding,
|
|
5832
5688
|
preserveNewlines
|
|
5833
5689
|
});
|
|
5834
|
-
const readable
|
|
5690
|
+
const readable = new Readable({
|
|
5835
5691
|
read,
|
|
5836
5692
|
destroy: callbackify(onReadableDestroy.bind(void 0, {
|
|
5837
5693
|
subprocessStdout,
|
|
@@ -5845,10 +5701,10 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
|
|
|
5845
5701
|
onStdoutFinished({
|
|
5846
5702
|
subprocessStdout,
|
|
5847
5703
|
onStdoutDataDone,
|
|
5848
|
-
readable
|
|
5704
|
+
readable,
|
|
5849
5705
|
subprocess
|
|
5850
5706
|
});
|
|
5851
|
-
return readable
|
|
5707
|
+
return readable;
|
|
5852
5708
|
};
|
|
5853
5709
|
const getSubprocessStdout = (subprocess, from, concurrentStreams) => {
|
|
5854
5710
|
const subprocessStdout = getFromStream(subprocess, from);
|
|
@@ -5883,23 +5739,23 @@ const getReadableMethods = ({ subprocessStdout, subprocess, binary, encoding, pr
|
|
|
5883
5739
|
onStdoutDataDone
|
|
5884
5740
|
};
|
|
5885
5741
|
};
|
|
5886
|
-
const onRead = async (readable
|
|
5742
|
+
const onRead = async (readable, onStdoutData, onStdoutDataDone) => {
|
|
5887
5743
|
try {
|
|
5888
5744
|
const { value, done } = await onStdoutData.next();
|
|
5889
5745
|
if (done) onStdoutDataDone.resolve();
|
|
5890
|
-
else readable
|
|
5746
|
+
else readable.push(value);
|
|
5891
5747
|
} catch {}
|
|
5892
5748
|
};
|
|
5893
|
-
const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable
|
|
5749
|
+
const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable, subprocess, subprocessStdin }) => {
|
|
5894
5750
|
try {
|
|
5895
5751
|
await waitForSubprocessStdout(subprocessStdout);
|
|
5896
5752
|
await subprocess;
|
|
5897
5753
|
await safeWaitForSubprocessStdin(subprocessStdin);
|
|
5898
5754
|
await onStdoutDataDone;
|
|
5899
|
-
if (readable
|
|
5755
|
+
if (readable.readable) readable.push(null);
|
|
5900
5756
|
} catch (error) {
|
|
5901
5757
|
await safeWaitForSubprocessStdin(subprocessStdin);
|
|
5902
|
-
destroyOtherReadable(readable
|
|
5758
|
+
destroyOtherReadable(readable, error);
|
|
5903
5759
|
}
|
|
5904
5760
|
};
|
|
5905
5761
|
const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestroy }, error) => {
|
|
@@ -5911,12 +5767,11 @@ const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDes
|
|
|
5911
5767
|
const destroyOtherReadable = (stream, error) => {
|
|
5912
5768
|
destroyOtherStream(stream, stream.readable, error);
|
|
5913
5769
|
};
|
|
5914
|
-
|
|
5915
5770
|
//#endregion
|
|
5916
5771
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/writable.js
|
|
5917
5772
|
const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
|
|
5918
5773
|
const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
|
|
5919
|
-
const writable
|
|
5774
|
+
const writable = new Writable({
|
|
5920
5775
|
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
5921
5776
|
destroy: callbackify(onWritableDestroy.bind(void 0, {
|
|
5922
5777
|
subprocessStdin,
|
|
@@ -5927,8 +5782,8 @@ const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
|
|
|
5927
5782
|
highWaterMark: subprocessStdin.writableHighWaterMark,
|
|
5928
5783
|
objectMode: subprocessStdin.writableObjectMode
|
|
5929
5784
|
});
|
|
5930
|
-
onStdinFinished(subprocessStdin, writable
|
|
5931
|
-
return writable
|
|
5785
|
+
onStdinFinished(subprocessStdin, writable);
|
|
5786
|
+
return writable;
|
|
5932
5787
|
};
|
|
5933
5788
|
const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
|
|
5934
5789
|
const subprocessStdin = getToStream(subprocess, to);
|
|
@@ -5952,13 +5807,13 @@ const onWritableFinal = async (subprocessStdin, subprocess, waitWritableFinal) =
|
|
|
5952
5807
|
await subprocess;
|
|
5953
5808
|
}
|
|
5954
5809
|
};
|
|
5955
|
-
const onStdinFinished = async (subprocessStdin, writable
|
|
5810
|
+
const onStdinFinished = async (subprocessStdin, writable, subprocessStdout) => {
|
|
5956
5811
|
try {
|
|
5957
5812
|
await waitForSubprocessStdin(subprocessStdin);
|
|
5958
|
-
if (writable
|
|
5813
|
+
if (writable.writable) writable.end();
|
|
5959
5814
|
} catch (error) {
|
|
5960
5815
|
await safeWaitForSubprocessStdout(subprocessStdout);
|
|
5961
|
-
destroyOtherWritable(writable
|
|
5816
|
+
destroyOtherWritable(writable, error);
|
|
5962
5817
|
}
|
|
5963
5818
|
};
|
|
5964
5819
|
const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy }, error) => {
|
|
@@ -5971,7 +5826,6 @@ const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFina
|
|
|
5971
5826
|
const destroyOtherWritable = (stream, error) => {
|
|
5972
5827
|
destroyOtherStream(stream, stream.writable, error);
|
|
5973
5828
|
};
|
|
5974
|
-
|
|
5975
5829
|
//#endregion
|
|
5976
5830
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/duplex.js
|
|
5977
5831
|
const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
|
|
@@ -5986,7 +5840,7 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
|
|
|
5986
5840
|
encoding,
|
|
5987
5841
|
preserveNewlines
|
|
5988
5842
|
});
|
|
5989
|
-
const duplex
|
|
5843
|
+
const duplex = new Duplex({
|
|
5990
5844
|
read,
|
|
5991
5845
|
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
5992
5846
|
destroy: callbackify(onDuplexDestroy.bind(void 0, {
|
|
@@ -6006,12 +5860,12 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
|
|
|
6006
5860
|
onStdoutFinished({
|
|
6007
5861
|
subprocessStdout,
|
|
6008
5862
|
onStdoutDataDone,
|
|
6009
|
-
readable: duplex
|
|
5863
|
+
readable: duplex,
|
|
6010
5864
|
subprocess,
|
|
6011
5865
|
subprocessStdin
|
|
6012
5866
|
});
|
|
6013
|
-
onStdinFinished(subprocessStdin, duplex
|
|
6014
|
-
return duplex
|
|
5867
|
+
onStdinFinished(subprocessStdin, duplex, subprocessStdout);
|
|
5868
|
+
return duplex;
|
|
6015
5869
|
};
|
|
6016
5870
|
const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, waitReadableDestroy, waitWritableFinal, waitWritableDestroy }, error) => {
|
|
6017
5871
|
await Promise.all([onReadableDestroy({
|
|
@@ -6025,7 +5879,6 @@ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess,
|
|
|
6025
5879
|
waitWritableDestroy
|
|
6026
5880
|
}, error)]);
|
|
6027
5881
|
};
|
|
6028
|
-
|
|
6029
5882
|
//#endregion
|
|
6030
5883
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/iterable.js
|
|
6031
5884
|
const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
|
|
@@ -6048,7 +5901,6 @@ const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, sub
|
|
|
6048
5901
|
await subprocess;
|
|
6049
5902
|
}
|
|
6050
5903
|
};
|
|
6051
|
-
|
|
6052
5904
|
//#endregion
|
|
6053
5905
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/add.js
|
|
6054
5906
|
const addConvertedStreams = (subprocess, { encoding }) => {
|
|
@@ -6070,7 +5922,6 @@ const addConvertedStreams = (subprocess, { encoding }) => {
|
|
|
6070
5922
|
subprocess.iterable = createIterable.bind(void 0, subprocess, encoding);
|
|
6071
5923
|
subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
|
|
6072
5924
|
};
|
|
6073
|
-
|
|
6074
5925
|
//#endregion
|
|
6075
5926
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/promise.js
|
|
6076
5927
|
const mergePromise = (subprocess, promise) => {
|
|
@@ -6088,7 +5939,6 @@ const descriptors = [
|
|
|
6088
5939
|
"catch",
|
|
6089
5940
|
"finally"
|
|
6090
5941
|
].map((property) => [property, Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)]);
|
|
6091
|
-
|
|
6092
5942
|
//#endregion
|
|
6093
5943
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js
|
|
6094
5944
|
const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
|
|
@@ -6131,7 +5981,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
|
6131
5981
|
fileDescriptors: handleStdioAsync(options, verboseInfo)
|
|
6132
5982
|
};
|
|
6133
5983
|
};
|
|
6134
|
-
const handleAsyncOptions = ({ timeout, signal
|
|
5984
|
+
const handleAsyncOptions = ({ timeout, signal, ...options }) => {
|
|
6135
5985
|
if (signal !== void 0) throw new TypeError("The \"signal\" option has been renamed to \"cancelSignal\" instead.");
|
|
6136
5986
|
return {
|
|
6137
5987
|
...options,
|
|
@@ -6241,7 +6091,6 @@ const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, co
|
|
|
6241
6091
|
options,
|
|
6242
6092
|
startTime
|
|
6243
6093
|
});
|
|
6244
|
-
|
|
6245
6094
|
//#endregion
|
|
6246
6095
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/bind.js
|
|
6247
6096
|
const mergeOptions = (boundOptions, options) => {
|
|
@@ -6259,11 +6108,10 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => {
|
|
|
6259
6108
|
return optionValue;
|
|
6260
6109
|
};
|
|
6261
6110
|
const DEEP_OPTIONS = new Set(["env", ...FD_SPECIFIC_OPTIONS]);
|
|
6262
|
-
|
|
6263
6111
|
//#endregion
|
|
6264
6112
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/create.js
|
|
6265
6113
|
const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
|
|
6266
|
-
const createNested = (mapArguments
|
|
6114
|
+
const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
|
|
6267
6115
|
const boundExeca = (...execaArguments) => callBoundExeca({
|
|
6268
6116
|
mapArguments,
|
|
6269
6117
|
deepOptions,
|
|
@@ -6300,7 +6148,6 @@ const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOption
|
|
|
6300
6148
|
isSync
|
|
6301
6149
|
};
|
|
6302
6150
|
};
|
|
6303
|
-
|
|
6304
6151
|
//#endregion
|
|
6305
6152
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/command.js
|
|
6306
6153
|
const mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
|
|
@@ -6329,7 +6176,6 @@ const parseCommandString = (command) => {
|
|
|
6329
6176
|
return tokens;
|
|
6330
6177
|
};
|
|
6331
6178
|
const SPACES_REGEXP = / +/g;
|
|
6332
|
-
|
|
6333
6179
|
//#endregion
|
|
6334
6180
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/script.js
|
|
6335
6181
|
const setScriptSync = (boundExeca, createNested, boundOptions) => {
|
|
@@ -6347,17 +6193,15 @@ const getScriptOptions = (options) => ({ options: {
|
|
|
6347
6193
|
} });
|
|
6348
6194
|
const getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
|
|
6349
6195
|
const deepScriptOptions = { preferLocal: true };
|
|
6350
|
-
|
|
6351
6196
|
//#endregion
|
|
6352
6197
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/index.js
|
|
6353
6198
|
const execa = createExeca(() => ({}));
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6199
|
+
createExeca(() => ({ isSync: true }));
|
|
6200
|
+
createExeca(mapCommandAsync);
|
|
6201
|
+
createExeca(mapCommandSync);
|
|
6202
|
+
createExeca(mapNode);
|
|
6203
|
+
createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
6359
6204
|
const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
|
|
6360
|
-
|
|
6361
6205
|
//#endregion
|
|
6362
6206
|
//#region src/resolveMain.ts
|
|
6363
6207
|
/**
|
|
@@ -6392,13 +6236,12 @@ function resolveMain(cwd) {
|
|
|
6392
6236
|
throw new Error(`Cannot resolve "main" entry "${mainField}" (tried module specifier and file path "${mainFilePath}"): ${err.message}`);
|
|
6393
6237
|
}
|
|
6394
6238
|
}
|
|
6395
|
-
|
|
6396
6239
|
//#endregion
|
|
6397
6240
|
//#region src/util/prebuild.ts
|
|
6398
6241
|
/**
|
|
6399
6242
|
* Run expo `prebuild` command
|
|
6400
6243
|
*/
|
|
6401
|
-
const runExpoPrebuild = async ({ platform
|
|
6244
|
+
const runExpoPrebuild = async ({ platform }) => {
|
|
6402
6245
|
const spinner = p.spinner();
|
|
6403
6246
|
try {
|
|
6404
6247
|
spinner.start("Run expo prebuild");
|
|
@@ -6406,7 +6249,7 @@ const runExpoPrebuild = async ({ platform: platform$1 }) => {
|
|
|
6406
6249
|
"expo",
|
|
6407
6250
|
"prebuild",
|
|
6408
6251
|
"--platform",
|
|
6409
|
-
platform
|
|
6252
|
+
platform,
|
|
6410
6253
|
"--no-install"
|
|
6411
6254
|
];
|
|
6412
6255
|
spinner.stop("Expo prebuild done");
|
|
@@ -6418,30 +6261,31 @@ const runExpoPrebuild = async ({ platform: platform$1 }) => {
|
|
|
6418
6261
|
process.exit(1);
|
|
6419
6262
|
}
|
|
6420
6263
|
};
|
|
6421
|
-
|
|
6422
6264
|
//#endregion
|
|
6423
6265
|
//#region src/expo.ts
|
|
6424
|
-
const isHermesEnabled = (cwd, platform
|
|
6266
|
+
const isHermesEnabled = (cwd, platform) => {
|
|
6425
6267
|
try {
|
|
6426
6268
|
const appJsonPath = path$1.join(cwd, "app.json");
|
|
6427
|
-
const { expo
|
|
6428
|
-
const platformJsEngine = expo
|
|
6429
|
-
const commonJsEngine = expo
|
|
6269
|
+
const { expo } = JSON.parse(fs.readFileSync(appJsonPath, "utf-8"));
|
|
6270
|
+
const platformJsEngine = expo?.[platform]?.jsEngine;
|
|
6271
|
+
const commonJsEngine = expo?.jsEngine;
|
|
6430
6272
|
if (platformJsEngine !== void 0) return platformJsEngine === "hermes";
|
|
6431
6273
|
if (commonJsEngine !== void 0) return commonJsEngine === "hermes";
|
|
6432
6274
|
} catch {}
|
|
6433
6275
|
return true;
|
|
6434
6276
|
};
|
|
6435
|
-
const runBundle = async ({ cwd, platform
|
|
6436
|
-
const filename = `index.${platform
|
|
6277
|
+
const runBundle = async ({ cwd, platform, buildPath, sourcemap }) => {
|
|
6278
|
+
const filename = `index.${platform}`;
|
|
6437
6279
|
const bundleOutput = path$1.join(buildPath, `${filename}.bundle`);
|
|
6280
|
+
const entryFile = resolveMain(cwd);
|
|
6281
|
+
const bundleId = uuidv7();
|
|
6438
6282
|
const args = [
|
|
6439
6283
|
"expo",
|
|
6440
6284
|
"export:embed",
|
|
6441
6285
|
"--platform",
|
|
6442
|
-
platform
|
|
6286
|
+
platform,
|
|
6443
6287
|
"--entry-file",
|
|
6444
|
-
|
|
6288
|
+
entryFile,
|
|
6445
6289
|
"--bundle-output",
|
|
6446
6290
|
bundleOutput,
|
|
6447
6291
|
"--dev",
|
|
@@ -6456,25 +6300,12 @@ const runBundle = async ({ cwd, platform: platform$1, buildPath, sourcemap }) =>
|
|
|
6456
6300
|
try {
|
|
6457
6301
|
stdout = (await execa("npx", args, {
|
|
6458
6302
|
cwd,
|
|
6459
|
-
env: {
|
|
6460
|
-
...process.env,
|
|
6461
|
-
BUILD_OUT_DIR: buildPath
|
|
6462
|
-
},
|
|
6463
6303
|
reject: true
|
|
6464
6304
|
})).stdout;
|
|
6465
6305
|
} catch (error) {
|
|
6466
6306
|
if (error instanceof ExecaError) throw error.stderr;
|
|
6467
6307
|
}
|
|
6468
|
-
|
|
6469
|
-
if (!bundleId) throw new Error(`If you are using Babel, please check if 'hot-updater/babel-plugin' is configured in babel.config.js
|
|
6470
|
-
Example:
|
|
6471
|
-
module.exports = {
|
|
6472
|
-
plugins: [
|
|
6473
|
-
["hot-updater/babel-plugin"]
|
|
6474
|
-
]
|
|
6475
|
-
}
|
|
6476
|
-
`);
|
|
6477
|
-
if (isHermesEnabled(cwd, platform$1)) {
|
|
6308
|
+
if (isHermesEnabled(cwd, platform)) {
|
|
6478
6309
|
const { hermesVersion } = await compileHermes({
|
|
6479
6310
|
cwd,
|
|
6480
6311
|
inputJsFile: bundleOutput,
|
|
@@ -6496,10 +6327,10 @@ const expo = (config = {
|
|
|
6496
6327
|
}) => ({ cwd }) => {
|
|
6497
6328
|
const { outDir = "dist", sourcemap = false } = config;
|
|
6498
6329
|
return {
|
|
6499
|
-
nativeBuild: { prebuild: async ({ platform
|
|
6500
|
-
await runExpoPrebuild({ platform
|
|
6330
|
+
nativeBuild: { prebuild: async ({ platform }) => {
|
|
6331
|
+
await runExpoPrebuild({ platform });
|
|
6501
6332
|
} },
|
|
6502
|
-
build: async ({ platform
|
|
6333
|
+
build: async ({ platform }) => {
|
|
6503
6334
|
const buildPath = path$1.join(cwd, outDir);
|
|
6504
6335
|
await fs.promises.rm(buildPath, {
|
|
6505
6336
|
recursive: true,
|
|
@@ -6508,7 +6339,7 @@ const expo = (config = {
|
|
|
6508
6339
|
await fs.promises.mkdir(buildPath, { recursive: true });
|
|
6509
6340
|
const { bundleId, stdout } = await runBundle({
|
|
6510
6341
|
cwd,
|
|
6511
|
-
platform
|
|
6342
|
+
platform,
|
|
6512
6343
|
buildPath,
|
|
6513
6344
|
sourcemap
|
|
6514
6345
|
});
|
|
@@ -6521,6 +6352,5 @@ const expo = (config = {
|
|
|
6521
6352
|
name: "expo"
|
|
6522
6353
|
};
|
|
6523
6354
|
};
|
|
6524
|
-
|
|
6525
6355
|
//#endregion
|
|
6526
|
-
export { expo };
|
|
6356
|
+
export { expo };
|