@kubb/cli 4.1.3 → 4.1.4
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/README.md +7 -8
- package/dist/{generate-z0xL-KdK.cjs → generate-BALD2C5T.cjs} +176 -104
- package/dist/generate-BALD2C5T.cjs.map +1 -0
- package/dist/{generate-MZHwytlj.js → generate-BqNABk2X.js} +4 -3
- package/dist/{generate-MZHwytlj.js.map → generate-BqNABk2X.js.map} +1 -1
- package/dist/{generate-BvnEYuGd.cjs → generate-DKlT22M0.cjs} +4 -3
- package/dist/{generate-BvnEYuGd.cjs.map → generate-DKlT22M0.cjs.map} +1 -1
- package/dist/{generate-Cc3YLh0Y.js → generate-vHDmA5Mm.js} +176 -104
- package/dist/generate-vHDmA5Mm.js.map +1 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/generate-Cc3YLh0Y.js.map +0 -1
- package/dist/generate-z0xL-KdK.cjs.map +0 -1
|
@@ -142,7 +142,8 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
|
142
142
|
const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
|
|
143
143
|
if (index === expressions.length) return newTokens;
|
|
144
144
|
const expression = expressions[index];
|
|
145
|
-
|
|
145
|
+
const expressionTokens = Array.isArray(expression) ? expression.map((expression$1) => parseExpression(expression$1)) : [parseExpression(expression)];
|
|
146
|
+
return concatTokens(newTokens, expressionTokens, trailingWhitespaces);
|
|
146
147
|
};
|
|
147
148
|
const splitByWhitespaces = (template, rawTemplate) => {
|
|
148
149
|
if (rawTemplate.length === 0) return {
|
|
@@ -229,7 +230,8 @@ const normalizeFdSpecificOptions = (options) => {
|
|
|
229
230
|
};
|
|
230
231
|
const normalizeFdSpecificOption = (options, optionName) => {
|
|
231
232
|
const optionBaseArray = Array.from({ length: getStdioLength(options) + 1 });
|
|
232
|
-
|
|
233
|
+
const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName);
|
|
234
|
+
return addDefaultValue$1(optionArray, optionName);
|
|
233
235
|
};
|
|
234
236
|
const getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;
|
|
235
237
|
const normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);
|
|
@@ -296,9 +298,11 @@ const VERBOSE_VALUES = [
|
|
|
296
298
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/arguments/escape.js
|
|
297
299
|
const joinCommand = (filePath, rawArguments) => {
|
|
298
300
|
const fileAndArguments = [filePath, ...rawArguments];
|
|
301
|
+
const command = fileAndArguments.join(" ");
|
|
302
|
+
const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
|
|
299
303
|
return {
|
|
300
|
-
command
|
|
301
|
-
escapedCommand
|
|
304
|
+
command,
|
|
305
|
+
escapedCommand
|
|
302
306
|
};
|
|
303
307
|
};
|
|
304
308
|
const escapeLines = (lines) => (0, node_util.stripVTControlCharacters)(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
|
|
@@ -740,11 +744,13 @@ const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine
|
|
|
740
744
|
//#endregion
|
|
741
745
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/log.js
|
|
742
746
|
const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
|
|
743
|
-
const
|
|
747
|
+
const verboseObject = getVerboseObject({
|
|
744
748
|
type,
|
|
745
749
|
result,
|
|
746
750
|
verboseInfo
|
|
747
|
-
})
|
|
751
|
+
});
|
|
752
|
+
const printedLines = getPrintedLines(verboseMessage, verboseObject);
|
|
753
|
+
const finalLines = applyVerboseOnLines(printedLines, verboseInfo, fdNumber);
|
|
748
754
|
if (finalLines !== "") console.warn(finalLines.slice(0, -1));
|
|
749
755
|
};
|
|
750
756
|
const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false,...options } } }) => ({
|
|
@@ -767,7 +773,8 @@ const getPrintedLine = (verboseObject) => {
|
|
|
767
773
|
};
|
|
768
774
|
};
|
|
769
775
|
const serializeVerboseMessage = (message) => {
|
|
770
|
-
|
|
776
|
+
const messageString = typeof message === "string" ? message : (0, node_util.inspect)(message);
|
|
777
|
+
return escapeLines(messageString).replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
771
778
|
};
|
|
772
779
|
const TAB_SIZE = 2;
|
|
773
780
|
|
|
@@ -786,10 +793,11 @@ const logCommand = (escapedCommand, verboseInfo) => {
|
|
|
786
793
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/info.js
|
|
787
794
|
const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
|
|
788
795
|
validateVerbose(verbose);
|
|
796
|
+
const commandId = getCommandId(verbose);
|
|
789
797
|
return {
|
|
790
798
|
verbose,
|
|
791
799
|
escapedCommand,
|
|
792
|
-
commandId
|
|
800
|
+
commandId,
|
|
793
801
|
rawOptions
|
|
794
802
|
};
|
|
795
803
|
};
|
|
@@ -816,7 +824,8 @@ const getDurationMs = (startTime) => Number(node_process.hrtime.bigint() - start
|
|
|
816
824
|
const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
817
825
|
const startTime = getStartTime();
|
|
818
826
|
const { command, escapedCommand } = joinCommand(filePath, rawArguments);
|
|
819
|
-
const
|
|
827
|
+
const verbose = normalizeFdSpecificOption(rawOptions, "verbose");
|
|
828
|
+
const verboseInfo = getVerboseInfo(verbose, escapedCommand, { ...rawOptions });
|
|
820
829
|
logCommand(escapedCommand, verboseInfo);
|
|
821
830
|
return {
|
|
822
831
|
command,
|
|
@@ -966,7 +975,8 @@ var require_which = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modul
|
|
|
966
975
|
const ppRaw = pathEnv[i$1];
|
|
967
976
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
968
977
|
const pCmd = path$9.join(pathPart, cmd);
|
|
969
|
-
|
|
978
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
979
|
+
resolve(subStep(p, i$1, 0));
|
|
970
980
|
});
|
|
971
981
|
const subStep = (p, i$1, ii) => new Promise((resolve, reject) => {
|
|
972
982
|
if (ii === pathExt.length) return resolve(step(i$1 + 1));
|
|
@@ -1294,7 +1304,9 @@ const npmRunPathEnv = ({ env = node_process.default.env,...options } = {}) => {
|
|
|
1294
1304
|
//#endregion
|
|
1295
1305
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/return/final-error.js
|
|
1296
1306
|
const getFinalError = (originalError, message, isSync) => {
|
|
1297
|
-
|
|
1307
|
+
const ErrorClass = isSync ? ExecaSyncError : ExecaError;
|
|
1308
|
+
const options = originalError instanceof DiscardedError ? {} : { cause: originalError };
|
|
1309
|
+
return new ErrorClass(message, options);
|
|
1298
1310
|
};
|
|
1299
1311
|
var DiscardedError = class extends Error {};
|
|
1300
1312
|
const setErrorName = (ErrorClass, value) => {
|
|
@@ -2032,7 +2044,8 @@ const isConnected = (anyProcess) => {
|
|
|
2032
2044
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/ipc/strict.js
|
|
2033
2045
|
const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
|
|
2034
2046
|
if (!strict) return message;
|
|
2035
|
-
const
|
|
2047
|
+
const ipcEmitter = getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
2048
|
+
const hasListeners = hasMessageListeners(anyProcess, ipcEmitter);
|
|
2036
2049
|
return {
|
|
2037
2050
|
id: count++,
|
|
2038
2051
|
type: REQUEST_TYPE,
|
|
@@ -2105,9 +2118,11 @@ const RESPONSE_TYPE = "execa:ipc:response";
|
|
|
2105
2118
|
const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
2106
2119
|
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
|
|
2107
2120
|
const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
|
|
2121
|
+
const onMessageSent = createDeferred();
|
|
2122
|
+
const id = strict ? wrappedMessage.id : void 0;
|
|
2108
2123
|
const outgoingMessage = {
|
|
2109
|
-
onMessageSent
|
|
2110
|
-
id
|
|
2124
|
+
onMessageSent,
|
|
2125
|
+
id
|
|
2111
2126
|
};
|
|
2112
2127
|
outgoingMessages.add(outgoingMessage);
|
|
2113
2128
|
return {
|
|
@@ -2268,7 +2283,8 @@ const throwOnGracefulCancel = ({ subprocess, cancelSignal, gracefulCancel, force
|
|
|
2268
2283
|
})] : [];
|
|
2269
2284
|
const sendOnAbort = async ({ subprocess, cancelSignal, forceKillAfterDelay, context, controller: { signal } }) => {
|
|
2270
2285
|
await onAbortedSignal(cancelSignal, signal);
|
|
2271
|
-
|
|
2286
|
+
const reason = getReason(cancelSignal);
|
|
2287
|
+
await sendAbort(subprocess, reason);
|
|
2272
2288
|
killOnTimeout({
|
|
2273
2289
|
kill: subprocess.kill,
|
|
2274
2290
|
forceKillAfterDelay,
|
|
@@ -2442,7 +2458,8 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
2442
2458
|
rawOptions.cwd = normalizeCwd(rawOptions.cwd);
|
|
2443
2459
|
const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
|
|
2444
2460
|
const { command: file, args: commandArguments, options: initialOptions } = import_cross_spawn.default._parse(processedFile, processedArguments, processedOptions);
|
|
2445
|
-
const
|
|
2461
|
+
const fdOptions = normalizeFdSpecificOptions(initialOptions);
|
|
2462
|
+
const options = addDefaultOptions(fdOptions);
|
|
2446
2463
|
validateTimeout(options);
|
|
2447
2464
|
validateEncoding(options);
|
|
2448
2465
|
validateIpcInputOption(options);
|
|
@@ -2611,7 +2628,7 @@ const u = Object.create(a, {
|
|
|
2611
2628
|
}
|
|
2612
2629
|
});
|
|
2613
2630
|
function h({ preventCancel: r = !1 } = {}) {
|
|
2614
|
-
const
|
|
2631
|
+
const e = this.getReader(), t = new c(e, r), s = Object.create(u);
|
|
2615
2632
|
return s[n] = t, s;
|
|
2616
2633
|
}
|
|
2617
2634
|
|
|
@@ -2660,14 +2677,18 @@ const getStreamContents$1 = async (stream, { init, convertChunk, getSize, trunca
|
|
|
2660
2677
|
const state = init();
|
|
2661
2678
|
state.length = 0;
|
|
2662
2679
|
try {
|
|
2663
|
-
for await (const chunk of asyncIterable)
|
|
2664
|
-
|
|
2665
|
-
state
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2680
|
+
for await (const chunk of asyncIterable) {
|
|
2681
|
+
const chunkType = getChunkType(chunk);
|
|
2682
|
+
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
2683
|
+
appendChunk({
|
|
2684
|
+
convertedChunk,
|
|
2685
|
+
state,
|
|
2686
|
+
getSize,
|
|
2687
|
+
truncateChunk,
|
|
2688
|
+
addChunk,
|
|
2689
|
+
maxBuffer
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2671
2692
|
appendFinalChunk({
|
|
2672
2693
|
state,
|
|
2673
2694
|
convertChunk,
|
|
@@ -2857,9 +2878,10 @@ const stringMethods = {
|
|
|
2857
2878
|
const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
|
|
2858
2879
|
if (!(error instanceof MaxBufferError)) throw error;
|
|
2859
2880
|
if (fdNumber === "all") return error;
|
|
2881
|
+
const unit = getMaxBufferUnit(readableObjectMode, lines, encoding);
|
|
2860
2882
|
error.maxBufferInfo = {
|
|
2861
2883
|
fdNumber,
|
|
2862
|
-
unit
|
|
2884
|
+
unit
|
|
2863
2885
|
};
|
|
2864
2886
|
stream.destroy();
|
|
2865
2887
|
throw error;
|
|
@@ -2929,16 +2951,19 @@ const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDe
|
|
|
2929
2951
|
killSignal
|
|
2930
2952
|
});
|
|
2931
2953
|
const originalMessage = getOriginalMessage(originalError, cwd);
|
|
2932
|
-
const
|
|
2954
|
+
const suffix = originalMessage === void 0 ? "" : `\n${originalMessage}`;
|
|
2955
|
+
const shortMessage = `${prefix}: ${escapedCommand}${suffix}`;
|
|
2956
|
+
const messageStdio = all === void 0 ? [stdio[2], stdio[1]] : [all];
|
|
2957
|
+
const message = [
|
|
2958
|
+
shortMessage,
|
|
2959
|
+
...messageStdio,
|
|
2960
|
+
...stdio.slice(3),
|
|
2961
|
+
ipcOutput.map((ipcMessage) => serializeIpcMessage(ipcMessage)).join("\n")
|
|
2962
|
+
].map((messagePart) => escapeLines(stripFinalNewline(serializeMessagePart(messagePart)))).filter(Boolean).join("\n\n");
|
|
2933
2963
|
return {
|
|
2934
2964
|
originalMessage,
|
|
2935
2965
|
shortMessage,
|
|
2936
|
-
message
|
|
2937
|
-
shortMessage,
|
|
2938
|
-
...all === void 0 ? [stdio[2], stdio[1]] : [all],
|
|
2939
|
-
...stdio.slice(3),
|
|
2940
|
-
ipcOutput.map((ipcMessage) => serializeIpcMessage(ipcMessage)).join("\n")
|
|
2941
|
-
].map((messagePart) => escapeLines(stripFinalNewline(serializeMessagePart(messagePart)))).filter(Boolean).join("\n\n")
|
|
2966
|
+
message
|
|
2942
2967
|
};
|
|
2943
2968
|
};
|
|
2944
2969
|
const getErrorPrefix = ({ originalError, timedOut, timeout, isMaxBuffer, maxBuffer, errorCode, signal, signalDescription, exitCode, isCanceled, isGracefullyCanceled, isForcefullyTerminated, forceKillAfterDelay, killSignal }) => {
|
|
@@ -2959,7 +2984,8 @@ const getErrorPrefix = ({ originalError, timedOut, timeout, isMaxBuffer, maxBuff
|
|
|
2959
2984
|
const getForcefulSuffix = (isForcefullyTerminated, forceKillAfterDelay) => isForcefullyTerminated ? ` and was forcefully terminated after ${forceKillAfterDelay} milliseconds` : "";
|
|
2960
2985
|
const getOriginalMessage = (originalError, cwd) => {
|
|
2961
2986
|
if (originalError instanceof DiscardedError) return;
|
|
2962
|
-
const
|
|
2987
|
+
const originalMessage = isExecaError(originalError) ? originalError.originalMessage : String(originalError?.message ?? originalError);
|
|
2988
|
+
const escapedOriginalMessage = escapeLines(fixCwdError(originalMessage, cwd));
|
|
2963
2989
|
return escapedOriginalMessage === "" ? void 0 : escapedOriginalMessage;
|
|
2964
2990
|
};
|
|
2965
2991
|
const serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : (0, node_util.inspect)(ipcMessage);
|
|
@@ -3081,10 +3107,11 @@ const omitUndefinedProperties = (result) => Object.fromEntries(Object.entries(re
|
|
|
3081
3107
|
const normalizeExitPayload = (rawExitCode, rawSignal) => {
|
|
3082
3108
|
const exitCode = rawExitCode === null ? void 0 : rawExitCode;
|
|
3083
3109
|
const signal = rawSignal === null ? void 0 : rawSignal;
|
|
3110
|
+
const signalDescription = signal === void 0 ? void 0 : getSignalDescription(rawSignal);
|
|
3084
3111
|
return {
|
|
3085
3112
|
exitCode,
|
|
3086
3113
|
signal,
|
|
3087
|
-
signalDescription
|
|
3114
|
+
signalDescription
|
|
3088
3115
|
};
|
|
3089
3116
|
};
|
|
3090
3117
|
|
|
@@ -3190,7 +3217,9 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3190
3217
|
add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
|
|
3191
3218
|
}
|
|
3192
3219
|
} else {
|
|
3193
|
-
const
|
|
3220
|
+
const seconds = (isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1e3 % 60;
|
|
3221
|
+
const secondsDecimalDigits = typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1;
|
|
3222
|
+
const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
|
|
3194
3223
|
const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
|
|
3195
3224
|
add(Number.parseFloat(secondsString), "second", "s", secondsString);
|
|
3196
3225
|
}
|
|
@@ -3219,9 +3248,10 @@ const logResult = (result, verboseInfo) => {
|
|
|
3219
3248
|
logDuration(result, verboseInfo);
|
|
3220
3249
|
};
|
|
3221
3250
|
const logDuration = (result, verboseInfo) => {
|
|
3251
|
+
const verboseMessage = `(done in ${prettyMilliseconds(result.durationMs)})`;
|
|
3222
3252
|
verboseLog({
|
|
3223
3253
|
type: "duration",
|
|
3224
|
-
verboseMessage
|
|
3254
|
+
verboseMessage,
|
|
3225
3255
|
verboseInfo,
|
|
3226
3256
|
result
|
|
3227
3257
|
});
|
|
@@ -3355,9 +3385,10 @@ const getOutputObjectModes = (objectMode, index, newTransforms) => {
|
|
|
3355
3385
|
};
|
|
3356
3386
|
const getInputObjectModes = (objectMode, index, newTransforms) => {
|
|
3357
3387
|
const writableObjectMode = index === 0 ? objectMode === true : newTransforms[index - 1].value.readableObjectMode;
|
|
3388
|
+
const readableObjectMode = index !== newTransforms.length - 1 && (objectMode ?? writableObjectMode);
|
|
3358
3389
|
return {
|
|
3359
3390
|
writableObjectMode,
|
|
3360
|
-
readableObjectMode
|
|
3391
|
+
readableObjectMode
|
|
3361
3392
|
};
|
|
3362
3393
|
};
|
|
3363
3394
|
const getFdObjectMode = (stdioItems, direction) => {
|
|
@@ -3666,7 +3697,8 @@ const validateDuplicateStreamSync = ({ otherStdioItems, type, value, optionName,
|
|
|
3666
3697
|
const getDuplicateStreamInstance = ({ otherStdioItems, type, value, optionName, direction }) => {
|
|
3667
3698
|
const duplicateStdioItems = otherStdioItems.filter((stdioItem) => hasSameValue(stdioItem, value));
|
|
3668
3699
|
if (duplicateStdioItems.length === 0) return;
|
|
3669
|
-
|
|
3700
|
+
const differentStdioItem = duplicateStdioItems.find((stdioItem) => stdioItem.direction !== direction);
|
|
3701
|
+
throwOnDuplicateStream(differentStdioItem, optionName, type);
|
|
3670
3702
|
return direction === "output" ? duplicateStdioItems[0].stream : void 0;
|
|
3671
3703
|
};
|
|
3672
3704
|
const hasSameValue = ({ type, value }, secondValue) => {
|
|
@@ -3675,7 +3707,8 @@ const hasSameValue = ({ type, value }, secondValue) => {
|
|
|
3675
3707
|
return value === secondValue;
|
|
3676
3708
|
};
|
|
3677
3709
|
const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }) => {
|
|
3678
|
-
|
|
3710
|
+
const duplicateStdioItem = otherStdioItems.find(({ value: { transform } }) => transform === value.transform);
|
|
3711
|
+
throwOnDuplicateStream(duplicateStdioItem, optionName, type);
|
|
3679
3712
|
};
|
|
3680
3713
|
const throwOnDuplicateStream = (stdioItem, optionName, type) => {
|
|
3681
3714
|
if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
|
|
@@ -3684,13 +3717,14 @@ const throwOnDuplicateStream = (stdioItem, optionName, type) => {
|
|
|
3684
3717
|
//#endregion
|
|
3685
3718
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle.js
|
|
3686
3719
|
const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
|
|
3720
|
+
const initialFileDescriptors = normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
|
|
3721
|
+
stdioOption,
|
|
3722
|
+
fdNumber,
|
|
3723
|
+
options,
|
|
3724
|
+
isSync
|
|
3725
|
+
}));
|
|
3687
3726
|
const fileDescriptors = getFinalFileDescriptors({
|
|
3688
|
-
initialFileDescriptors
|
|
3689
|
-
stdioOption,
|
|
3690
|
-
fdNumber,
|
|
3691
|
-
options,
|
|
3692
|
-
isSync
|
|
3693
|
-
})),
|
|
3727
|
+
initialFileDescriptors,
|
|
3694
3728
|
addProperties: addProperties$2,
|
|
3695
3729
|
options,
|
|
3696
3730
|
isSync
|
|
@@ -3707,13 +3741,14 @@ const getFileDescriptor = ({ stdioOption, fdNumber, options, isSync }) => {
|
|
|
3707
3741
|
optionName
|
|
3708
3742
|
});
|
|
3709
3743
|
const direction = getStreamDirection(initialStdioItems, fdNumber, optionName);
|
|
3710
|
-
const
|
|
3744
|
+
const stdioItems = initialStdioItems.map((stdioItem) => handleNativeStream({
|
|
3711
3745
|
stdioItem,
|
|
3712
3746
|
isStdioArray,
|
|
3713
3747
|
fdNumber,
|
|
3714
3748
|
direction,
|
|
3715
3749
|
isSync
|
|
3716
|
-
}))
|
|
3750
|
+
}));
|
|
3751
|
+
const normalizedStdioItems = normalizeTransforms(stdioItems, optionName, direction, options);
|
|
3717
3752
|
const objectMode = getFdObjectMode(normalizedStdioItems, direction);
|
|
3718
3753
|
validateFileObjectMode(normalizedStdioItems, objectMode);
|
|
3719
3754
|
return {
|
|
@@ -3723,7 +3758,8 @@ const getFileDescriptor = ({ stdioOption, fdNumber, options, isSync }) => {
|
|
|
3723
3758
|
};
|
|
3724
3759
|
};
|
|
3725
3760
|
const initializeStdioItems = ({ stdioOption, fdNumber, options, optionName }) => {
|
|
3726
|
-
const
|
|
3761
|
+
const initialStdioItems = [...(Array.isArray(stdioOption) ? stdioOption : [stdioOption]).map((value) => initializeStdioItem(value, optionName)), ...handleInputOptions(options, fdNumber)];
|
|
3762
|
+
const stdioItems = filterDuplicates(initialStdioItems);
|
|
3727
3763
|
const isStdioArray = stdioItems.length > 1;
|
|
3728
3764
|
validateStdioArray(stdioItems, isStdioArray, optionName);
|
|
3729
3765
|
validateStreams(stdioItems);
|
|
@@ -3773,17 +3809,18 @@ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addPro
|
|
|
3773
3809
|
}
|
|
3774
3810
|
};
|
|
3775
3811
|
const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties: addProperties$2, options, isSync }) => {
|
|
3812
|
+
const finalStdioItems = stdioItems.map((stdioItem) => addStreamProperties({
|
|
3813
|
+
stdioItem,
|
|
3814
|
+
addProperties: addProperties$2,
|
|
3815
|
+
direction,
|
|
3816
|
+
options,
|
|
3817
|
+
fileDescriptors,
|
|
3818
|
+
isSync
|
|
3819
|
+
}));
|
|
3776
3820
|
return {
|
|
3777
3821
|
direction,
|
|
3778
3822
|
objectMode,
|
|
3779
|
-
stdioItems:
|
|
3780
|
-
stdioItem,
|
|
3781
|
-
addProperties: addProperties$2,
|
|
3782
|
-
direction,
|
|
3783
|
-
options,
|
|
3784
|
-
fileDescriptors,
|
|
3785
|
-
isSync
|
|
3786
|
-
}))
|
|
3823
|
+
stdioItems: finalStdioItems
|
|
3787
3824
|
};
|
|
3788
3825
|
};
|
|
3789
3826
|
const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direction, options, fileDescriptors, isSync }) => {
|
|
@@ -4079,7 +4116,10 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
|
|
|
4079
4116
|
const runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
|
|
4080
4117
|
const generators = stdioItems.filter(({ type }) => type === "generator");
|
|
4081
4118
|
const reversedGenerators = isInput ? generators.reverse() : generators;
|
|
4082
|
-
for (const { value, optionName } of reversedGenerators)
|
|
4119
|
+
for (const { value, optionName } of reversedGenerators) {
|
|
4120
|
+
const generators$1 = addInternalGenerators(value, encoding, optionName);
|
|
4121
|
+
chunks = runTransformSync(generators$1, chunks);
|
|
4122
|
+
}
|
|
4083
4123
|
return chunks;
|
|
4084
4124
|
};
|
|
4085
4125
|
const addInternalGenerators = ({ transform, final, binary, writableObjectMode, readableObjectMode, preserveNewlines }, encoding, optionName) => {
|
|
@@ -4116,7 +4156,8 @@ const addInputOptionSync = (fileDescriptors, fdNumber, options) => {
|
|
|
4116
4156
|
const [{ type, optionName }] = allStdioItems;
|
|
4117
4157
|
throw new TypeError(`Only the \`stdin\` option, not \`${optionName}\`, can be ${TYPE_TO_MESSAGE[type]} with synchronous methods.`);
|
|
4118
4158
|
}
|
|
4119
|
-
|
|
4159
|
+
const transformedContents = allStdioItems.map(({ contents }) => contents).map((contents) => applySingleInputGeneratorsSync(contents, stdioItems));
|
|
4160
|
+
options.input = joinToUint8Array(transformedContents);
|
|
4120
4161
|
};
|
|
4121
4162
|
const applySingleInputGeneratorsSync = (contents, stdioItems) => {
|
|
4122
4163
|
const newContents = runGeneratorsSync(contents, stdioItems, "utf8", true);
|
|
@@ -4141,9 +4182,10 @@ const logLinesSync = (linesArray, fdNumber, verboseInfo) => {
|
|
|
4141
4182
|
};
|
|
4142
4183
|
const isPipingStream = (stream) => stream._readableState.pipes.length > 0;
|
|
4143
4184
|
const logLine = (line, fdNumber, verboseInfo) => {
|
|
4185
|
+
const verboseMessage = serializeVerboseMessage(line);
|
|
4144
4186
|
verboseLog({
|
|
4145
4187
|
type: "output",
|
|
4146
|
-
verboseMessage
|
|
4188
|
+
verboseMessage,
|
|
4147
4189
|
fdNumber,
|
|
4148
4190
|
verboseInfo
|
|
4149
4191
|
});
|
|
@@ -4170,10 +4212,12 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
|
|
|
4170
4212
|
};
|
|
4171
4213
|
const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline: stripFinalNewline$1, maxBuffer }) => {
|
|
4172
4214
|
if (result === null) return;
|
|
4173
|
-
const
|
|
4215
|
+
const truncatedResult = truncateMaxBufferSync(result, isMaxBuffer, maxBuffer);
|
|
4216
|
+
const uint8ArrayResult = bufferToUint8Array(truncatedResult);
|
|
4174
4217
|
const { stdioItems, objectMode } = fileDescriptors[fdNumber];
|
|
4218
|
+
const chunks = runOutputGeneratorsSync([uint8ArrayResult], stdioItems, encoding, state);
|
|
4175
4219
|
const { serializedResult, finalResult = serializedResult } = serializeChunks({
|
|
4176
|
-
chunks
|
|
4220
|
+
chunks,
|
|
4177
4221
|
objectMode,
|
|
4178
4222
|
encoding,
|
|
4179
4223
|
lines,
|
|
@@ -4284,12 +4328,14 @@ const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
|
|
|
4284
4328
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/resolve/exit-sync.js
|
|
4285
4329
|
const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
|
|
4286
4330
|
const resultError = getResultError(error, exitCode, signal);
|
|
4331
|
+
const timedOut = resultError?.code === "ETIMEDOUT";
|
|
4332
|
+
const isMaxBuffer = isMaxBufferSync(resultError, output, maxBuffer);
|
|
4287
4333
|
return {
|
|
4288
4334
|
resultError,
|
|
4289
4335
|
exitCode,
|
|
4290
4336
|
signal,
|
|
4291
|
-
timedOut
|
|
4292
|
-
isMaxBuffer
|
|
4337
|
+
timedOut,
|
|
4338
|
+
isMaxBuffer
|
|
4293
4339
|
};
|
|
4294
4340
|
};
|
|
4295
4341
|
const getResultError = (error, exitCode, signal) => {
|
|
@@ -4301,7 +4347,7 @@ const getResultError = (error, exitCode, signal) => {
|
|
|
4301
4347
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/methods/main-sync.js
|
|
4302
4348
|
const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
|
|
4303
4349
|
const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleSyncArguments(rawFile, rawArguments, rawOptions);
|
|
4304
|
-
|
|
4350
|
+
const result = spawnSubprocessSync({
|
|
4305
4351
|
file,
|
|
4306
4352
|
commandArguments,
|
|
4307
4353
|
options,
|
|
@@ -4310,12 +4356,15 @@ const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
|
|
|
4310
4356
|
verboseInfo,
|
|
4311
4357
|
fileDescriptors,
|
|
4312
4358
|
startTime
|
|
4313
|
-
})
|
|
4359
|
+
});
|
|
4360
|
+
return handleResult(result, verboseInfo, options);
|
|
4314
4361
|
};
|
|
4315
4362
|
const handleSyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
4316
4363
|
const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
|
|
4317
|
-
const
|
|
4364
|
+
const syncOptions = normalizeSyncOptions(rawOptions);
|
|
4365
|
+
const { file, commandArguments, options } = normalizeOptions(rawFile, rawArguments, syncOptions);
|
|
4318
4366
|
validateSyncOptions(options);
|
|
4367
|
+
const fileDescriptors = handleStdioSync(options, verboseInfo);
|
|
4319
4368
|
return {
|
|
4320
4369
|
file,
|
|
4321
4370
|
commandArguments,
|
|
@@ -4324,7 +4373,7 @@ const handleSyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
|
4324
4373
|
startTime,
|
|
4325
4374
|
verboseInfo,
|
|
4326
4375
|
options,
|
|
4327
|
-
fileDescriptors
|
|
4376
|
+
fileDescriptors
|
|
4328
4377
|
};
|
|
4329
4378
|
};
|
|
4330
4379
|
const normalizeSyncOptions = (options) => options.node && !options.ipc ? {
|
|
@@ -4359,14 +4408,16 @@ const spawnSubprocessSync = ({ file, commandArguments, options, command, escaped
|
|
|
4359
4408
|
isMaxBuffer,
|
|
4360
4409
|
verboseInfo
|
|
4361
4410
|
});
|
|
4411
|
+
const stdio = output.map((stdioOutput, fdNumber) => stripNewline(stdioOutput, options, fdNumber));
|
|
4412
|
+
const all = stripNewline(getAllSync(output, options), options, "all");
|
|
4362
4413
|
return getSyncResult({
|
|
4363
4414
|
error,
|
|
4364
4415
|
exitCode,
|
|
4365
4416
|
signal,
|
|
4366
4417
|
timedOut,
|
|
4367
4418
|
isMaxBuffer,
|
|
4368
|
-
stdio
|
|
4369
|
-
all
|
|
4419
|
+
stdio,
|
|
4420
|
+
all,
|
|
4370
4421
|
options,
|
|
4371
4422
|
command,
|
|
4372
4423
|
escapedCommand,
|
|
@@ -4376,7 +4427,8 @@ const spawnSubprocessSync = ({ file, commandArguments, options, command, escaped
|
|
|
4376
4427
|
const runSubprocessSync = ({ file, commandArguments, options, command, escapedCommand, fileDescriptors, startTime }) => {
|
|
4377
4428
|
try {
|
|
4378
4429
|
addInputOptionsSync(fileDescriptors, options);
|
|
4379
|
-
|
|
4430
|
+
const normalizedOptions = normalizeSpawnSyncOptions(options);
|
|
4431
|
+
return (0, node_child_process.spawnSync)(...concatenateShell(file, commandArguments, normalizedOptions));
|
|
4380
4432
|
} catch (error) {
|
|
4381
4433
|
return makeEarlyError({
|
|
4382
4434
|
error,
|
|
@@ -4594,17 +4646,19 @@ const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, opt
|
|
|
4594
4646
|
writable,
|
|
4595
4647
|
duplex
|
|
4596
4648
|
});
|
|
4649
|
+
const earlyError = makeEarlyError({
|
|
4650
|
+
error,
|
|
4651
|
+
command,
|
|
4652
|
+
escapedCommand,
|
|
4653
|
+
fileDescriptors,
|
|
4654
|
+
options,
|
|
4655
|
+
startTime,
|
|
4656
|
+
isSync: false
|
|
4657
|
+
});
|
|
4658
|
+
const promise = handleDummyPromise(earlyError, verboseInfo, options);
|
|
4597
4659
|
return {
|
|
4598
4660
|
subprocess,
|
|
4599
|
-
promise
|
|
4600
|
-
error,
|
|
4601
|
-
command,
|
|
4602
|
-
escapedCommand,
|
|
4603
|
-
fileDescriptors,
|
|
4604
|
-
options,
|
|
4605
|
-
startTime,
|
|
4606
|
-
isSync: false
|
|
4607
|
-
}), verboseInfo, options)
|
|
4661
|
+
promise
|
|
4608
4662
|
};
|
|
4609
4663
|
};
|
|
4610
4664
|
const createDummyStreams = (subprocess, fileDescriptors) => {
|
|
@@ -4899,7 +4953,10 @@ const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
|
4899
4953
|
controller
|
|
4900
4954
|
});
|
|
4901
4955
|
}
|
|
4902
|
-
for (const [outputStream, inputStreams] of pipeGroups.entries())
|
|
4956
|
+
for (const [outputStream, inputStreams] of pipeGroups.entries()) {
|
|
4957
|
+
const inputStream = inputStreams.length === 1 ? inputStreams[0] : mergeStreams(inputStreams);
|
|
4958
|
+
pipeStreams(inputStream, outputStream);
|
|
4959
|
+
}
|
|
4903
4960
|
};
|
|
4904
4961
|
const pipeTransform = (subprocess, stream, direction, fdNumber) => {
|
|
4905
4962
|
if (direction === "output") pipeStreams(subprocess.stdio[fdNumber], stream);
|
|
@@ -5161,9 +5218,10 @@ const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNes
|
|
|
5161
5218
|
const getDestinationStream = (boundOptions, createNested, pipeArguments) => {
|
|
5162
5219
|
try {
|
|
5163
5220
|
const { destination, pipeOptions: { from, to, unpipeSignal } = {} } = getDestination(boundOptions, createNested, ...pipeArguments);
|
|
5221
|
+
const destinationStream = getToStream(destination, to);
|
|
5164
5222
|
return {
|
|
5165
5223
|
destination,
|
|
5166
|
-
destinationStream
|
|
5224
|
+
destinationStream,
|
|
5167
5225
|
from,
|
|
5168
5226
|
unpipeSignal
|
|
5169
5227
|
};
|
|
@@ -5398,12 +5456,13 @@ const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
|
|
|
5398
5456
|
}
|
|
5399
5457
|
};
|
|
5400
5458
|
const iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
|
|
5459
|
+
const onStdoutChunk = (0, node_events.on)(stream, "data", {
|
|
5460
|
+
signal: controller.signal,
|
|
5461
|
+
highWaterMark: HIGH_WATER_MARK,
|
|
5462
|
+
highWatermark: HIGH_WATER_MARK
|
|
5463
|
+
});
|
|
5401
5464
|
return iterateOnData({
|
|
5402
|
-
onStdoutChunk
|
|
5403
|
-
signal: controller.signal,
|
|
5404
|
-
highWaterMark: HIGH_WATER_MARK,
|
|
5405
|
-
highWatermark: HIGH_WATER_MARK
|
|
5406
|
-
}),
|
|
5465
|
+
onStdoutChunk,
|
|
5407
5466
|
controller,
|
|
5408
5467
|
binary,
|
|
5409
5468
|
shouldEncode,
|
|
@@ -5448,12 +5507,13 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
|
|
|
5448
5507
|
await Promise.all([resumeStream(stream), logPromise]);
|
|
5449
5508
|
return;
|
|
5450
5509
|
}
|
|
5510
|
+
const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline$1, fdNumber);
|
|
5451
5511
|
const iterable = iterateForResult({
|
|
5452
5512
|
stream,
|
|
5453
5513
|
onStreamEnd,
|
|
5454
5514
|
lines,
|
|
5455
5515
|
encoding,
|
|
5456
|
-
stripFinalNewline:
|
|
5516
|
+
stripFinalNewline: stripFinalNewlineValue,
|
|
5457
5517
|
allMixed
|
|
5458
5518
|
});
|
|
5459
5519
|
const [output] = await Promise.all([getStreamContents({
|
|
@@ -5473,14 +5533,15 @@ const logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixe
|
|
|
5473
5533
|
verboseInfo,
|
|
5474
5534
|
fdNumber
|
|
5475
5535
|
})) return;
|
|
5476
|
-
|
|
5536
|
+
const linesIterable = iterateForResult({
|
|
5477
5537
|
stream,
|
|
5478
5538
|
onStreamEnd,
|
|
5479
5539
|
lines: true,
|
|
5480
5540
|
encoding,
|
|
5481
5541
|
stripFinalNewline: true,
|
|
5482
5542
|
allMixed
|
|
5483
|
-
})
|
|
5543
|
+
});
|
|
5544
|
+
await logLines(linesIterable, stream, fdNumber, verboseInfo);
|
|
5484
5545
|
};
|
|
5485
5546
|
const resumeStream = async (stream) => {
|
|
5486
5547
|
await (0, node_timers_promises.setImmediate)();
|
|
@@ -5630,9 +5691,10 @@ const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdo
|
|
|
5630
5691
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/verbose/ipc.js
|
|
5631
5692
|
const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
|
|
5632
5693
|
const logIpcOutput = (message, verboseInfo) => {
|
|
5694
|
+
const verboseMessage = serializeVerboseMessage(message);
|
|
5633
5695
|
verboseLog({
|
|
5634
5696
|
type: "ipc",
|
|
5635
|
-
verboseMessage
|
|
5697
|
+
verboseMessage,
|
|
5636
5698
|
fdNumber: "ipc",
|
|
5637
5699
|
verboseInfo
|
|
5638
5700
|
});
|
|
@@ -5857,9 +5919,10 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
|
|
|
5857
5919
|
};
|
|
5858
5920
|
const getSubprocessStdout = (subprocess, from, concurrentStreams) => {
|
|
5859
5921
|
const subprocessStdout = getFromStream(subprocess, from);
|
|
5922
|
+
const waitReadableDestroy = addConcurrentStream(concurrentStreams, subprocessStdout, "readableDestroy");
|
|
5860
5923
|
return {
|
|
5861
5924
|
subprocessStdout,
|
|
5862
|
-
waitReadableDestroy
|
|
5925
|
+
waitReadableDestroy
|
|
5863
5926
|
};
|
|
5864
5927
|
};
|
|
5865
5928
|
const getReadableOptions = ({ readableEncoding, readableObjectMode, readableHighWaterMark }, binary) => binary ? {
|
|
@@ -5937,10 +6000,12 @@ const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
|
|
|
5937
6000
|
};
|
|
5938
6001
|
const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
|
|
5939
6002
|
const subprocessStdin = getToStream(subprocess, to);
|
|
6003
|
+
const waitWritableFinal = addConcurrentStream(concurrentStreams, subprocessStdin, "writableFinal");
|
|
6004
|
+
const waitWritableDestroy = addConcurrentStream(concurrentStreams, subprocessStdin, "writableDestroy");
|
|
5940
6005
|
return {
|
|
5941
6006
|
subprocessStdin,
|
|
5942
|
-
waitWritableFinal
|
|
5943
|
-
waitWritableDestroy
|
|
6007
|
+
waitWritableFinal,
|
|
6008
|
+
waitWritableDestroy
|
|
5944
6009
|
};
|
|
5945
6010
|
};
|
|
5946
6011
|
const getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({
|
|
@@ -6036,14 +6101,15 @@ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess,
|
|
|
6036
6101
|
const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
|
|
6037
6102
|
const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
|
|
6038
6103
|
const subprocessStdout = getFromStream(subprocess, from);
|
|
6039
|
-
|
|
6104
|
+
const onStdoutData = iterateOnSubprocessStream({
|
|
6040
6105
|
subprocessStdout,
|
|
6041
6106
|
subprocess,
|
|
6042
6107
|
binary,
|
|
6043
6108
|
shouldEncode: true,
|
|
6044
6109
|
encoding,
|
|
6045
6110
|
preserveNewlines
|
|
6046
|
-
})
|
|
6111
|
+
});
|
|
6112
|
+
return iterateOnStdoutData(onStdoutData, subprocessStdout, subprocess);
|
|
6047
6113
|
};
|
|
6048
6114
|
const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, subprocess) {
|
|
6049
6115
|
try {
|
|
@@ -6125,6 +6191,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
|
6125
6191
|
const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
|
|
6126
6192
|
const { file, commandArguments, options: normalizedOptions } = normalizeOptions(rawFile, rawArguments, rawOptions);
|
|
6127
6193
|
const options = handleAsyncOptions(normalizedOptions);
|
|
6194
|
+
const fileDescriptors = handleStdioAsync(options, verboseInfo);
|
|
6128
6195
|
return {
|
|
6129
6196
|
file,
|
|
6130
6197
|
commandArguments,
|
|
@@ -6133,7 +6200,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
|
6133
6200
|
startTime,
|
|
6134
6201
|
verboseInfo,
|
|
6135
6202
|
options,
|
|
6136
|
-
fileDescriptors
|
|
6203
|
+
fileDescriptors
|
|
6137
6204
|
};
|
|
6138
6205
|
};
|
|
6139
6206
|
const handleAsyncOptions = ({ timeout, signal,...options }) => {
|
|
@@ -6206,19 +6273,22 @@ const handlePromise = async ({ subprocess, options, startTime, verboseInfo, file
|
|
|
6206
6273
|
});
|
|
6207
6274
|
controller.abort();
|
|
6208
6275
|
onInternalError.resolve();
|
|
6209
|
-
|
|
6276
|
+
const stdio = stdioResults.map((stdioResult, fdNumber) => stripNewline(stdioResult, options, fdNumber));
|
|
6277
|
+
const all = stripNewline(allResult, options, "all");
|
|
6278
|
+
const result = getAsyncResult({
|
|
6210
6279
|
errorInfo,
|
|
6211
6280
|
exitCode,
|
|
6212
6281
|
signal,
|
|
6213
|
-
stdio
|
|
6214
|
-
all
|
|
6282
|
+
stdio,
|
|
6283
|
+
all,
|
|
6215
6284
|
ipcOutput,
|
|
6216
6285
|
context,
|
|
6217
6286
|
options,
|
|
6218
6287
|
command,
|
|
6219
6288
|
escapedCommand,
|
|
6220
6289
|
startTime
|
|
6221
|
-
})
|
|
6290
|
+
});
|
|
6291
|
+
return handleResult(result, verboseInfo, options);
|
|
6222
6292
|
};
|
|
6223
6293
|
const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, context, options, command, escapedCommand, startTime }) => "error" in errorInfo ? makeError({
|
|
6224
6294
|
error: errorInfo.error,
|
|
@@ -6291,7 +6361,8 @@ const callBoundExeca = ({ mapArguments, deepOptions = {}, boundOptions = {}, set
|
|
|
6291
6361
|
return isSync ? execaCoreSync(file, commandArguments, options) : execaCoreAsync(file, commandArguments, options, createNested);
|
|
6292
6362
|
};
|
|
6293
6363
|
const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOptions, boundOptions }) => {
|
|
6294
|
-
const
|
|
6364
|
+
const callArguments = isTemplateString(firstArgument) ? parseTemplates(firstArgument, nextArguments) : [firstArgument, ...nextArguments];
|
|
6365
|
+
const [initialFile, initialArguments, initialOptions] = normalizeParameters(...callArguments);
|
|
6295
6366
|
const mergedOptions = mergeOptions(mergeOptions(deepOptions, boundOptions), initialOptions);
|
|
6296
6367
|
const { file = initialFile, commandArguments = initialArguments, options = mergedOptions, isSync = false } = mapArguments({
|
|
6297
6368
|
file: initialFile,
|
|
@@ -6449,8 +6520,9 @@ function getSummary({ pluginManager, filesCreated, status, hrStart, config }) {
|
|
|
6449
6520
|
//#region src/runners/generate.ts
|
|
6450
6521
|
async function generate({ input, config, progressCache, args }) {
|
|
6451
6522
|
const hrStart = node_process.default.hrtime();
|
|
6523
|
+
const logLevel = __kubb_core_logger.LogMapper[args.logLevel] || 3;
|
|
6452
6524
|
const logger = (0, __kubb_core_logger.createLogger)({
|
|
6453
|
-
logLevel
|
|
6525
|
+
logLevel,
|
|
6454
6526
|
name: config.name
|
|
6455
6527
|
});
|
|
6456
6528
|
const { root = node_process.default.cwd(),...userConfig } = config;
|
|
@@ -6621,4 +6693,4 @@ async function generate({ input, config, progressCache, args }) {
|
|
|
6621
6693
|
|
|
6622
6694
|
//#endregion
|
|
6623
6695
|
exports.generate = generate;
|
|
6624
|
-
//# sourceMappingURL=generate-
|
|
6696
|
+
//# sourceMappingURL=generate-BALD2C5T.cjs.map
|