@kubb/cli 3.18.3 → 4.0.2
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/{generate-CKnWsDnu.cjs → generate-BALD2C5T.cjs} +84 -92
- package/dist/generate-BALD2C5T.cjs.map +1 -0
- package/dist/{generate-jMDBjxTU.js → generate-BqNABk2X.js} +56 -95
- package/dist/generate-BqNABk2X.js.map +1 -0
- package/dist/{generate-Bu9WyH1N.cjs → generate-DKlT22M0.cjs} +74 -104
- package/dist/generate-DKlT22M0.cjs.map +1 -0
- package/dist/{generate-DvSF6lmv.js → generate-vHDmA5Mm.js} +44 -72
- package/dist/generate-vHDmA5Mm.js.map +1 -0
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/{mcp-DcaOAt6B.js → mcp-C4KjGtQv.js} +9 -10
- package/dist/mcp-C4KjGtQv.js.map +1 -0
- package/dist/{mcp-Cmiw4RpU.cjs → mcp-CLmIdoaC.cjs} +17 -14
- package/dist/mcp-CLmIdoaC.cjs.map +1 -0
- package/dist/{validate-DD5UaudC.js → validate-8i6chavn.js} +18 -20
- package/dist/validate-8i6chavn.js.map +1 -0
- package/dist/{validate-ClewPP5U.cjs → validate-DNbDDWp4.cjs} +26 -24
- package/dist/validate-DNbDDWp4.cjs.map +1 -0
- package/package.json +8 -11
- package/src/commands/generate.ts +0 -43
- package/dist/generate-Bu9WyH1N.cjs.map +0 -1
- package/dist/generate-CKnWsDnu.cjs.map +0 -1
- package/dist/generate-DvSF6lmv.js.map +0 -1
- package/dist/generate-jMDBjxTU.js.map +0 -1
- package/dist/mcp-Cmiw4RpU.cjs.map +0 -1
- package/dist/mcp-DcaOAt6B.js.map +0 -1
- package/dist/validate-ClewPP5U.cjs.map +0 -1
- package/dist/validate-DD5UaudC.js.map +0 -1
|
@@ -1,24 +1,44 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
let node_path = require("node:path");
|
|
3
|
+
node_path = require_chunk.__toESM(node_path);
|
|
4
|
+
let node_process = require("node:process");
|
|
5
|
+
node_process = require_chunk.__toESM(node_process);
|
|
6
|
+
let __kubb_core = require("@kubb/core");
|
|
7
|
+
__kubb_core = require_chunk.__toESM(__kubb_core);
|
|
8
|
+
let __kubb_core_logger = require("@kubb/core/logger");
|
|
9
|
+
__kubb_core_logger = require_chunk.__toESM(__kubb_core_logger);
|
|
10
|
+
let picocolors = require("picocolors");
|
|
11
|
+
picocolors = require_chunk.__toESM(picocolors);
|
|
12
|
+
let cli_progress = require("cli-progress");
|
|
13
|
+
cli_progress = require_chunk.__toESM(cli_progress);
|
|
14
|
+
let node_url = require("node:url");
|
|
15
|
+
node_url = require_chunk.__toESM(node_url);
|
|
16
|
+
let node_child_process = require("node:child_process");
|
|
17
|
+
node_child_process = require_chunk.__toESM(node_child_process);
|
|
18
|
+
let node_string_decoder = require("node:string_decoder");
|
|
19
|
+
node_string_decoder = require_chunk.__toESM(node_string_decoder);
|
|
20
|
+
let node_util = require("node:util");
|
|
21
|
+
node_util = require_chunk.__toESM(node_util);
|
|
22
|
+
let node_tty = require("node:tty");
|
|
23
|
+
node_tty = require_chunk.__toESM(node_tty);
|
|
24
|
+
let node_timers_promises = require("node:timers/promises");
|
|
25
|
+
node_timers_promises = require_chunk.__toESM(node_timers_promises);
|
|
26
|
+
let node_os = require("node:os");
|
|
27
|
+
node_os = require_chunk.__toESM(node_os);
|
|
28
|
+
let node_events = require("node:events");
|
|
29
|
+
node_events = require_chunk.__toESM(node_events);
|
|
30
|
+
let node_v8 = require("node:v8");
|
|
31
|
+
node_v8 = require_chunk.__toESM(node_v8);
|
|
32
|
+
let node_fs = require("node:fs");
|
|
33
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
34
|
+
let node_stream_promises = require("node:stream/promises");
|
|
35
|
+
node_stream_promises = require_chunk.__toESM(node_stream_promises);
|
|
36
|
+
let node_stream = require("node:stream");
|
|
37
|
+
node_stream = require_chunk.__toESM(node_stream);
|
|
38
|
+
let node_buffer = require("node:buffer");
|
|
39
|
+
node_buffer = require_chunk.__toESM(node_buffer);
|
|
40
|
+
let string_argv = require("string-argv");
|
|
41
|
+
string_argv = require_chunk.__toESM(string_argv);
|
|
22
42
|
|
|
23
43
|
//#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
24
44
|
function isPlainObject(value) {
|
|
@@ -67,8 +87,7 @@ const stringToUint8Array = (string) => textEncoder$1.encode(string);
|
|
|
67
87
|
const textDecoder = new TextDecoder();
|
|
68
88
|
const uint8ArrayToString = (uint8Array) => textDecoder.decode(uint8Array);
|
|
69
89
|
const joinToString = (uint8ArraysOrStrings, encoding) => {
|
|
70
|
-
|
|
71
|
-
return strings.join("");
|
|
90
|
+
return uint8ArraysToStrings(uint8ArraysOrStrings, encoding).join("");
|
|
72
91
|
};
|
|
73
92
|
const uint8ArraysToStrings = (uint8ArraysOrStrings, encoding) => {
|
|
74
93
|
if (encoding === "utf8" && uint8ArraysOrStrings.every((uint8ArrayOrString) => typeof uint8ArrayOrString === "string")) return uint8ArraysOrStrings;
|
|
@@ -242,12 +261,11 @@ const parseFd = (fdName) => {
|
|
|
242
261
|
};
|
|
243
262
|
const FD_REGEXP = /^fd(\d+)$/;
|
|
244
263
|
const addDefaultValue$1 = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
|
|
245
|
-
const verboseDefault = (0, node_util.debuglog)("execa").enabled ? "full" : "none";
|
|
246
264
|
const DEFAULT_OPTIONS = {
|
|
247
265
|
lines: false,
|
|
248
266
|
buffer: true,
|
|
249
267
|
maxBuffer: 1e3 * 1e3 * 100,
|
|
250
|
-
verbose:
|
|
268
|
+
verbose: (0, node_util.debuglog)("execa").enabled ? "full" : "none",
|
|
251
269
|
stripFinalNewline: true
|
|
252
270
|
};
|
|
253
271
|
const FD_SPECIFIC_OPTIONS = [
|
|
@@ -612,7 +630,7 @@ var figures_default = figures;
|
|
|
612
630
|
const replacements = Object.entries(specialMainSymbols);
|
|
613
631
|
|
|
614
632
|
//#endregion
|
|
615
|
-
//#region ../../node_modules/.pnpm/yoctocolors@2.1.
|
|
633
|
+
//#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
616
634
|
const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
617
635
|
const format = (open, close) => {
|
|
618
636
|
if (!hasColors) return (input) => input;
|
|
@@ -624,8 +642,9 @@ const format = (open, close) => {
|
|
|
624
642
|
if (index === -1) return openCode + string + closeCode;
|
|
625
643
|
let result = openCode;
|
|
626
644
|
let lastIndex = 0;
|
|
645
|
+
const replaceCode = (close === 22 ? closeCode : "") + openCode;
|
|
627
646
|
while (index !== -1) {
|
|
628
|
-
result += string.slice(lastIndex, index) +
|
|
647
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
|
629
648
|
lastIndex = index + closeCode.length;
|
|
630
649
|
index = string.indexOf(closeCode, lastIndex);
|
|
631
650
|
}
|
|
@@ -748,16 +767,14 @@ const getPrintedLines = (verboseMessage, verboseObject) => verboseMessage.split(
|
|
|
748
767
|
message
|
|
749
768
|
}));
|
|
750
769
|
const getPrintedLine = (verboseObject) => {
|
|
751
|
-
const verboseLine = defaultVerboseFunction(verboseObject);
|
|
752
770
|
return {
|
|
753
|
-
verboseLine,
|
|
771
|
+
verboseLine: defaultVerboseFunction(verboseObject),
|
|
754
772
|
verboseObject
|
|
755
773
|
};
|
|
756
774
|
};
|
|
757
775
|
const serializeVerboseMessage = (message) => {
|
|
758
776
|
const messageString = typeof message === "string" ? message : (0, node_util.inspect)(message);
|
|
759
|
-
|
|
760
|
-
return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
777
|
+
return escapeLines(messageString).replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
761
778
|
};
|
|
762
779
|
const TAB_SIZE = 2;
|
|
763
780
|
|
|
@@ -876,8 +893,7 @@ var require_mode = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_module
|
|
|
876
893
|
var g = parseInt("010", 8);
|
|
877
894
|
var o$1 = parseInt("001", 8);
|
|
878
895
|
var ug = u$1 | g;
|
|
879
|
-
|
|
880
|
-
return ret;
|
|
896
|
+
return mod & o$1 || mod & g && gid === myGid || mod & u$1 && uid === myUid || mod & ug && myUid === 0;
|
|
881
897
|
}
|
|
882
898
|
}) });
|
|
883
899
|
|
|
@@ -985,8 +1001,7 @@ var require_which = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modul
|
|
|
985
1001
|
for (let j = 0; j < pathExt.length; j++) {
|
|
986
1002
|
const cur = p + pathExt[j];
|
|
987
1003
|
try {
|
|
988
|
-
|
|
989
|
-
if (is) if (opt.all) found.push(cur);
|
|
1004
|
+
if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
|
|
990
1005
|
else return cur;
|
|
991
1006
|
} catch (ex) {}
|
|
992
1007
|
}
|
|
@@ -1004,8 +1019,7 @@ var require_which = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modul
|
|
|
1004
1019
|
var require_path_key = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
|
|
1005
1020
|
const pathKey$1 = (options = {}) => {
|
|
1006
1021
|
const environment = options.env || process.env;
|
|
1007
|
-
|
|
1008
|
-
if (platform$1 !== "win32") return "PATH";
|
|
1022
|
+
if ((options.platform || process.platform) !== "win32") return "PATH";
|
|
1009
1023
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
1010
1024
|
};
|
|
1011
1025
|
module.exports = pathKey$1;
|
|
@@ -1133,12 +1147,11 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modul
|
|
|
1133
1147
|
parsed.command = path$7.normalize(parsed.command);
|
|
1134
1148
|
parsed.command = escape.command(parsed.command);
|
|
1135
1149
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
1136
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
1137
1150
|
parsed.args = [
|
|
1138
1151
|
"/d",
|
|
1139
1152
|
"/s",
|
|
1140
1153
|
"/c",
|
|
1141
|
-
`"${
|
|
1154
|
+
`"${[parsed.command].concat(parsed.args).join(" ")}"`
|
|
1142
1155
|
];
|
|
1143
1156
|
parsed.command = process.env.comspec || "cmd.exe";
|
|
1144
1157
|
parsed.options.windowsVerbatimArguments = true;
|
|
@@ -1612,16 +1625,14 @@ const SIGNALS = [
|
|
|
1612
1625
|
//#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
|
|
1613
1626
|
const getSignals = () => {
|
|
1614
1627
|
const realtimeSignals = getRealtimeSignals();
|
|
1615
|
-
|
|
1616
|
-
return signals$1;
|
|
1628
|
+
return [...SIGNALS, ...realtimeSignals].map(normalizeSignal$1);
|
|
1617
1629
|
};
|
|
1618
1630
|
const normalizeSignal$1 = ({ name, number: defaultNumber, description, action, forced = false, standard }) => {
|
|
1619
1631
|
const { signals: { [name]: constantSignal } } = node_os.constants;
|
|
1620
1632
|
const supported = constantSignal !== void 0;
|
|
1621
|
-
const number = supported ? constantSignal : defaultNumber;
|
|
1622
1633
|
return {
|
|
1623
1634
|
name,
|
|
1624
|
-
number,
|
|
1635
|
+
number: supported ? constantSignal : defaultNumber,
|
|
1625
1636
|
description,
|
|
1626
1637
|
supported,
|
|
1627
1638
|
action,
|
|
@@ -3140,7 +3151,7 @@ function parseMilliseconds(milliseconds) {
|
|
|
3140
3151
|
}
|
|
3141
3152
|
|
|
3142
3153
|
//#endregion
|
|
3143
|
-
//#region ../../node_modules/.pnpm/pretty-ms@9.
|
|
3154
|
+
//#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
|
|
3144
3155
|
const isZero = (value) => value === 0 || value === 0n;
|
|
3145
3156
|
const pluralize = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
|
|
3146
3157
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
@@ -3165,8 +3176,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3165
3176
|
let result = [];
|
|
3166
3177
|
const floorDecimals = (value, decimalDigits) => {
|
|
3167
3178
|
const flooredInterimValue = Math.floor(value * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON);
|
|
3168
|
-
|
|
3169
|
-
return flooredValue.toFixed(decimalDigits);
|
|
3179
|
+
return (Math.round(flooredInterimValue) / 10 ** decimalDigits).toFixed(decimalDigits);
|
|
3170
3180
|
};
|
|
3171
3181
|
const add = (value, long, short, valueString) => {
|
|
3172
3182
|
if ((result.length === 0 || !options.colonNotation) && isZero(value) && !(options.colonNotation && short === "m")) return;
|
|
@@ -3190,7 +3200,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3190
3200
|
add(Number(parsed.hours), "hour", "h");
|
|
3191
3201
|
}
|
|
3192
3202
|
add(Number(parsed.minutes), "minute", "m");
|
|
3193
|
-
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
3203
|
+
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
|
|
3194
3204
|
const seconds = Number(parsed.seconds);
|
|
3195
3205
|
const milliseconds$1 = Number(parsed.milliseconds);
|
|
3196
3206
|
const microseconds = Number(parsed.microseconds);
|
|
@@ -3203,8 +3213,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3203
3213
|
} else {
|
|
3204
3214
|
const millisecondsAndBelow = milliseconds$1 + microseconds / 1e3 + nanoseconds / 1e6;
|
|
3205
3215
|
const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
|
|
3206
|
-
const
|
|
3207
|
-
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMilliseconds;
|
|
3216
|
+
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
3208
3217
|
add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
|
|
3209
3218
|
}
|
|
3210
3219
|
} else {
|
|
@@ -3369,10 +3378,9 @@ const TYPE_TO_MESSAGE = {
|
|
|
3369
3378
|
const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
|
|
3370
3379
|
const getOutputObjectModes = (objectMode, index, newTransforms) => {
|
|
3371
3380
|
const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
|
|
3372
|
-
const readableObjectMode = objectMode ?? writableObjectMode;
|
|
3373
3381
|
return {
|
|
3374
3382
|
writableObjectMode,
|
|
3375
|
-
readableObjectMode
|
|
3383
|
+
readableObjectMode: objectMode ?? writableObjectMode
|
|
3376
3384
|
};
|
|
3377
3385
|
};
|
|
3378
3386
|
const getInputObjectModes = (objectMode, index, newTransforms) => {
|
|
@@ -3709,8 +3717,7 @@ const throwOnDuplicateStream = (stdioItem, optionName, type) => {
|
|
|
3709
3717
|
//#endregion
|
|
3710
3718
|
//#region ../../node_modules/.pnpm/execa@9.6.0/node_modules/execa/lib/stdio/handle.js
|
|
3711
3719
|
const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
|
|
3712
|
-
const
|
|
3713
|
-
const initialFileDescriptors = stdio.map((stdioOption, fdNumber) => getFileDescriptor({
|
|
3720
|
+
const initialFileDescriptors = normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
|
|
3714
3721
|
stdioOption,
|
|
3715
3722
|
fdNumber,
|
|
3716
3723
|
options,
|
|
@@ -3751,8 +3758,7 @@ const getFileDescriptor = ({ stdioOption, fdNumber, options, isSync }) => {
|
|
|
3751
3758
|
};
|
|
3752
3759
|
};
|
|
3753
3760
|
const initializeStdioItems = ({ stdioOption, fdNumber, options, optionName }) => {
|
|
3754
|
-
const
|
|
3755
|
-
const initialStdioItems = [...values.map((value) => initializeStdioItem(value, optionName)), ...handleInputOptions(options, fdNumber)];
|
|
3761
|
+
const initialStdioItems = [...(Array.isArray(stdioOption) ? stdioOption : [stdioOption]).map((value) => initializeStdioItem(value, optionName)), ...handleInputOptions(options, fdNumber)];
|
|
3756
3762
|
const stdioItems = filterDuplicates(initialStdioItems);
|
|
3757
3763
|
const isStdioArray = stdioItems.length > 1;
|
|
3758
3764
|
validateStdioArray(stdioItems, isStdioArray, optionName);
|
|
@@ -3944,8 +3950,7 @@ const appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
|
|
|
3944
3950
|
yield chunk;
|
|
3945
3951
|
return;
|
|
3946
3952
|
}
|
|
3947
|
-
|
|
3948
|
-
yield concatBytes(chunk, newline);
|
|
3953
|
+
yield concatBytes(chunk, isWindowsNewline ? windowsNewline : unixNewline);
|
|
3949
3954
|
};
|
|
3950
3955
|
const concatString = (firstChunk, secondChunk) => `${firstChunk}${secondChunk}`;
|
|
3951
3956
|
const linesStringInfo = {
|
|
@@ -4090,7 +4095,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
|
|
|
4090
4095
|
const transformMethod = transformAsync ? pushChunks.bind(void 0, transformChunk, state) : pushChunksSync.bind(void 0, transformChunkSync);
|
|
4091
4096
|
const finalMethod = transformAsync || finalAsync ? pushChunks.bind(void 0, finalChunks, state) : pushChunksSync.bind(void 0, finalChunksSync);
|
|
4092
4097
|
const destroyMethod = transformAsync || finalAsync ? destroyTransform.bind(void 0, state) : void 0;
|
|
4093
|
-
|
|
4098
|
+
return { stream: new node_stream.Transform({
|
|
4094
4099
|
writableObjectMode,
|
|
4095
4100
|
writableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(writableObjectMode),
|
|
4096
4101
|
readableObjectMode,
|
|
@@ -4106,8 +4111,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
|
|
|
4106
4111
|
finalMethod([generators], this, done);
|
|
4107
4112
|
},
|
|
4108
4113
|
destroy: destroyMethod
|
|
4109
|
-
});
|
|
4110
|
-
return { stream };
|
|
4114
|
+
}) };
|
|
4111
4115
|
};
|
|
4112
4116
|
const runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
|
|
4113
4117
|
const generators = stdioItems.filter(({ type }) => type === "generator");
|
|
@@ -4152,8 +4156,7 @@ const addInputOptionSync = (fileDescriptors, fdNumber, options) => {
|
|
|
4152
4156
|
const [{ type, optionName }] = allStdioItems;
|
|
4153
4157
|
throw new TypeError(`Only the \`stdin\` option, not \`${optionName}\`, can be ${TYPE_TO_MESSAGE[type]} with synchronous methods.`);
|
|
4154
4158
|
}
|
|
4155
|
-
const
|
|
4156
|
-
const transformedContents = allContents.map((contents) => applySingleInputGeneratorsSync(contents, stdioItems));
|
|
4159
|
+
const transformedContents = allStdioItems.map(({ contents }) => contents).map((contents) => applySingleInputGeneratorsSync(contents, stdioItems));
|
|
4157
4160
|
options.input = joinToUint8Array(transformedContents);
|
|
4158
4161
|
};
|
|
4159
4162
|
const applySingleInputGeneratorsSync = (contents, stdioItems) => {
|
|
@@ -4194,17 +4197,16 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
|
|
|
4194
4197
|
if (output === null) return { output: Array.from({ length: 3 }) };
|
|
4195
4198
|
const state = {};
|
|
4196
4199
|
const outputFiles = /* @__PURE__ */ new Set([]);
|
|
4197
|
-
const transformedOutput = output.map((result, fdNumber) => transformOutputResultSync({
|
|
4198
|
-
result,
|
|
4199
|
-
fileDescriptors,
|
|
4200
|
-
fdNumber,
|
|
4201
|
-
state,
|
|
4202
|
-
outputFiles,
|
|
4203
|
-
isMaxBuffer,
|
|
4204
|
-
verboseInfo
|
|
4205
|
-
}, options));
|
|
4206
4200
|
return {
|
|
4207
|
-
output:
|
|
4201
|
+
output: output.map((result, fdNumber) => transformOutputResultSync({
|
|
4202
|
+
result,
|
|
4203
|
+
fileDescriptors,
|
|
4204
|
+
fdNumber,
|
|
4205
|
+
state,
|
|
4206
|
+
outputFiles,
|
|
4207
|
+
isMaxBuffer,
|
|
4208
|
+
verboseInfo
|
|
4209
|
+
}, options)),
|
|
4208
4210
|
...state
|
|
4209
4211
|
};
|
|
4210
4212
|
};
|
|
@@ -4705,8 +4707,7 @@ const addProperties = {
|
|
|
4705
4707
|
nodeStream: ({ value }) => ({ stream: value }),
|
|
4706
4708
|
webTransform({ value: { transform, writableObjectMode, readableObjectMode } }) {
|
|
4707
4709
|
const objectMode = writableObjectMode || readableObjectMode;
|
|
4708
|
-
|
|
4709
|
-
return { stream };
|
|
4710
|
+
return { stream: node_stream.Duplex.fromWeb(transform, { objectMode }) };
|
|
4710
4711
|
},
|
|
4711
4712
|
duplex: ({ value: { transform } }) => ({ stream: transform }),
|
|
4712
4713
|
native() {}
|
|
@@ -5229,19 +5230,15 @@ const getDestinationStream = (boundOptions, createNested, pipeArguments) => {
|
|
|
5229
5230
|
}
|
|
5230
5231
|
};
|
|
5231
5232
|
const getDestination = (boundOptions, createNested, firstArgument, ...pipeArguments) => {
|
|
5232
|
-
if (Array.isArray(firstArgument)) {
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
pipeOptions: boundOptions
|
|
5237
|
-
};
|
|
5238
|
-
}
|
|
5233
|
+
if (Array.isArray(firstArgument)) return {
|
|
5234
|
+
destination: createNested(mapDestinationArguments, boundOptions)(firstArgument, ...pipeArguments),
|
|
5235
|
+
pipeOptions: boundOptions
|
|
5236
|
+
};
|
|
5239
5237
|
if (typeof firstArgument === "string" || firstArgument instanceof URL || isDenoExecPath(firstArgument)) {
|
|
5240
5238
|
if (Object.keys(boundOptions).length > 0) throw new TypeError("Please use .pipe(\"file\", ..., options) or .pipe(execa(\"file\", ..., options)) instead of .pipe(options)(\"file\", ...).");
|
|
5241
5239
|
const [rawFile, rawArguments, rawOptions] = normalizeParameters(firstArgument, ...pipeArguments);
|
|
5242
|
-
const destination = createNested(mapDestinationArguments)(rawFile, rawArguments, rawOptions);
|
|
5243
5240
|
return {
|
|
5244
|
-
destination,
|
|
5241
|
+
destination: createNested(mapDestinationArguments)(rawFile, rawArguments, rawOptions),
|
|
5245
5242
|
pipeOptions: rawOptions
|
|
5246
5243
|
};
|
|
5247
5244
|
}
|
|
@@ -5261,8 +5258,7 @@ const mapDestinationArguments = ({ options }) => ({ options: {
|
|
|
5261
5258
|
} });
|
|
5262
5259
|
const getSourceStream = (source, from) => {
|
|
5263
5260
|
try {
|
|
5264
|
-
|
|
5265
|
-
return { sourceStream };
|
|
5261
|
+
return { sourceStream: getFromStream(source, from) };
|
|
5266
5262
|
} catch (error) {
|
|
5267
5263
|
return { sourceError: error };
|
|
5268
5264
|
}
|
|
@@ -5356,9 +5352,8 @@ const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ?
|
|
|
5356
5352
|
const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
|
|
5357
5353
|
await (0, node_util.aborted)(unpipeSignal, sourceStream);
|
|
5358
5354
|
await mergedStream.remove(sourceStream);
|
|
5359
|
-
const error = /* @__PURE__ */ new Error("Pipe canceled by `unpipeSignal` option.");
|
|
5360
5355
|
throw createNonCommandError({
|
|
5361
|
-
error,
|
|
5356
|
+
error: /* @__PURE__ */ new Error("Pipe canceled by `unpipeSignal` option."),
|
|
5362
5357
|
fileDescriptors,
|
|
5363
5358
|
sourceOptions,
|
|
5364
5359
|
startTime
|
|
@@ -5842,9 +5837,8 @@ const addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
|
5842
5837
|
const promises = weakMap.get(stream);
|
|
5843
5838
|
const promise = createDeferred();
|
|
5844
5839
|
promises.push(promise);
|
|
5845
|
-
const resolve = promise.resolve.bind(promise);
|
|
5846
5840
|
return {
|
|
5847
|
-
resolve,
|
|
5841
|
+
resolve: promise.resolve.bind(promise),
|
|
5848
5842
|
promises
|
|
5849
5843
|
};
|
|
5850
5844
|
};
|
|
@@ -6492,8 +6486,7 @@ function getErrorCauses(errors) {
|
|
|
6492
6486
|
//#endregion
|
|
6493
6487
|
//#region src/utils/parseHrtimeToSeconds.ts
|
|
6494
6488
|
function parseHrtimeToSeconds(hrtime$1) {
|
|
6495
|
-
|
|
6496
|
-
return seconds;
|
|
6489
|
+
return (hrtime$1[0] + hrtime$1[1] / 1e9).toFixed(3);
|
|
6497
6490
|
}
|
|
6498
6491
|
|
|
6499
6492
|
//#endregion
|
|
@@ -6519,7 +6512,6 @@ function getSummary({ pluginManager, filesCreated, status, hrStart, config }) {
|
|
|
6519
6512
|
[`${picocolors.default.bold("Output:")} ${meta.output}`, true]
|
|
6520
6513
|
].map((item) => {
|
|
6521
6514
|
if (item.at(1)) return item.at(0);
|
|
6522
|
-
return void 0;
|
|
6523
6515
|
}).filter(Boolean).join("\n"));
|
|
6524
6516
|
return [...logs];
|
|
6525
6517
|
}
|
|
@@ -6701,4 +6693,4 @@ async function generate({ input, config, progressCache, args }) {
|
|
|
6701
6693
|
|
|
6702
6694
|
//#endregion
|
|
6703
6695
|
exports.generate = generate;
|
|
6704
|
-
//# sourceMappingURL=generate-
|
|
6696
|
+
//# sourceMappingURL=generate-BALD2C5T.cjs.map
|