@kubb/agent 4.34.0 → 4.35.1
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +396 -76
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +2 -1
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +2 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/fflate/esm/index.mjs +2679 -0
- package/.output/server/node_modules/fflate/package.json +127 -0
- package/.output/server/node_modules/tinyexec/dist/{main.js → main.mjs} +158 -149
- package/.output/server/node_modules/tinyexec/package.json +15 -14
- package/.output/server/package.json +3 -2
- package/package.json +18 -18
|
@@ -1,72 +1,59 @@
|
|
|
1
|
-
import { createRequire as e } from "module";
|
|
1
|
+
import { createRequire as e } from "node:module";
|
|
2
2
|
import { spawn as t } from "node:child_process";
|
|
3
3
|
import { delimiter as n, dirname as r, normalize as i, resolve as a } from "node:path";
|
|
4
4
|
import { cwd as o } from "node:process";
|
|
5
5
|
import { PassThrough as s } from "node:stream";
|
|
6
6
|
import c from "node:readline";
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var g = (e, t, n, r) => {
|
|
15
|
-
if (t && typeof t === "object" || typeof t === "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {
|
|
16
|
-
s = i[a];
|
|
17
|
-
if (!m.call(e, s) && s !== n) u(e, s, {
|
|
18
|
-
get: ((e) => t[e]).bind(null, s),
|
|
19
|
-
enumerable: !(r = d(t, s)) || r.enumerable
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return e;
|
|
23
|
-
};
|
|
24
|
-
var _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, "default", {
|
|
25
|
-
value: e,
|
|
26
|
-
enumerable: true
|
|
27
|
-
}) : n, e));
|
|
28
|
-
var v = /* @__PURE__ */ e(import.meta.url);
|
|
29
|
-
const y = /^path$/i;
|
|
30
|
-
const b = {
|
|
7
|
+
//#region \0rolldown/runtime.js
|
|
8
|
+
var l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
9
|
+
var u = /* @__PURE__ */ e(import.meta.url);
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/env.ts
|
|
12
|
+
const d = /^path$/i;
|
|
13
|
+
const f = {
|
|
31
14
|
key: "PATH",
|
|
32
15
|
value: ""
|
|
33
16
|
};
|
|
34
|
-
function
|
|
17
|
+
function p(e) {
|
|
35
18
|
for (const t in e) {
|
|
36
|
-
if (!Object.prototype.hasOwnProperty.call(e, t) || !
|
|
19
|
+
if (!Object.prototype.hasOwnProperty.call(e, t) || !d.test(t)) continue;
|
|
37
20
|
const n = e[t];
|
|
38
|
-
if (!n) return
|
|
21
|
+
if (!n) return f;
|
|
39
22
|
return {
|
|
40
23
|
key: t,
|
|
41
24
|
value: n
|
|
42
25
|
};
|
|
43
26
|
}
|
|
44
|
-
return
|
|
27
|
+
return f;
|
|
45
28
|
}
|
|
46
|
-
function
|
|
29
|
+
function m(e, t) {
|
|
47
30
|
const i = t.value.split(n);
|
|
48
|
-
|
|
49
|
-
let s;
|
|
31
|
+
const o = [];
|
|
32
|
+
let s = e;
|
|
33
|
+
let c;
|
|
50
34
|
do {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} while (
|
|
35
|
+
o.push(a(s, "node_modules", ".bin"));
|
|
36
|
+
c = s;
|
|
37
|
+
s = r(s);
|
|
38
|
+
} while (s !== c);
|
|
39
|
+
const l = o.concat(i).join(n);
|
|
55
40
|
return {
|
|
56
41
|
key: t.key,
|
|
57
|
-
value:
|
|
42
|
+
value: l
|
|
58
43
|
};
|
|
59
44
|
}
|
|
60
|
-
function
|
|
45
|
+
function h(e, t) {
|
|
61
46
|
const n = {
|
|
62
47
|
...process.env,
|
|
63
48
|
...t
|
|
64
49
|
};
|
|
65
|
-
const r =
|
|
50
|
+
const r = m(e, p(n));
|
|
66
51
|
n[r.key] = r.value;
|
|
67
52
|
return n;
|
|
68
53
|
}
|
|
69
|
-
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/stream.ts
|
|
56
|
+
const g = (e) => {
|
|
70
57
|
let t = e.length;
|
|
71
58
|
const n = new s();
|
|
72
59
|
const r = () => {
|
|
@@ -78,10 +65,12 @@ const w = (e) => {
|
|
|
78
65
|
}
|
|
79
66
|
return n;
|
|
80
67
|
};
|
|
81
|
-
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/isexe/windows.js
|
|
70
|
+
var _ = /* @__PURE__ */ l(((e, t) => {
|
|
82
71
|
t.exports = a;
|
|
83
72
|
a.sync = o;
|
|
84
|
-
var n =
|
|
73
|
+
var n = u("fs");
|
|
85
74
|
function r(e, t) {
|
|
86
75
|
var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
|
|
87
76
|
if (!n) return true;
|
|
@@ -105,11 +94,13 @@ var T = h((exports, t) => {
|
|
|
105
94
|
function o(e, t) {
|
|
106
95
|
return i(n.statSync(e), e, t);
|
|
107
96
|
}
|
|
108
|
-
});
|
|
109
|
-
|
|
97
|
+
}));
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region node_modules/isexe/mode.js
|
|
100
|
+
var v = /* @__PURE__ */ l(((e, t) => {
|
|
110
101
|
t.exports = r;
|
|
111
102
|
r.sync = i;
|
|
112
|
-
var n =
|
|
103
|
+
var n = u("fs");
|
|
113
104
|
function r(e, t, r) {
|
|
114
105
|
n.stat(e, function(e, n) {
|
|
115
106
|
r(e, e ? false : a(n, t));
|
|
@@ -131,56 +122,59 @@ var E = h((exports, t) => {
|
|
|
131
122
|
var c = parseInt("010", 8);
|
|
132
123
|
var l = parseInt("001", 8);
|
|
133
124
|
var u = s | c;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
125
|
+
return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
|
|
126
|
+
}
|
|
127
|
+
}));
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region node_modules/isexe/index.js
|
|
130
|
+
var y = /* @__PURE__ */ l(((e, t) => {
|
|
131
|
+
u("fs");
|
|
132
|
+
var n;
|
|
133
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) n = _();
|
|
134
|
+
else n = v();
|
|
135
|
+
t.exports = r;
|
|
136
|
+
r.sync = i;
|
|
137
|
+
function r(e, t, i) {
|
|
146
138
|
if (typeof t === "function") {
|
|
147
|
-
|
|
139
|
+
i = t;
|
|
148
140
|
t = {};
|
|
149
141
|
}
|
|
150
|
-
if (!
|
|
142
|
+
if (!i) {
|
|
151
143
|
if (typeof Promise !== "function") throw new TypeError("callback not provided");
|
|
152
|
-
return new Promise(function(n,
|
|
153
|
-
|
|
154
|
-
if (e)
|
|
144
|
+
return new Promise(function(n, i) {
|
|
145
|
+
r(e, t || {}, function(e, t) {
|
|
146
|
+
if (e) i(e);
|
|
155
147
|
else n(t);
|
|
156
148
|
});
|
|
157
149
|
});
|
|
158
150
|
}
|
|
159
|
-
|
|
151
|
+
n(e, t || {}, function(e, n) {
|
|
160
152
|
if (e) {
|
|
161
153
|
if (e.code === "EACCES" || t && t.ignoreErrors) {
|
|
162
154
|
e = null;
|
|
163
|
-
|
|
155
|
+
n = false;
|
|
164
156
|
}
|
|
165
157
|
}
|
|
166
|
-
|
|
158
|
+
i(e, n);
|
|
167
159
|
});
|
|
168
160
|
}
|
|
169
|
-
function
|
|
161
|
+
function i(e, t) {
|
|
170
162
|
try {
|
|
171
|
-
return
|
|
163
|
+
return n.sync(e, t || {});
|
|
172
164
|
} catch (e) {
|
|
173
165
|
if (t && t.ignoreErrors || e.code === "EACCES") return false;
|
|
174
166
|
else throw e;
|
|
175
167
|
}
|
|
176
168
|
}
|
|
177
|
-
});
|
|
178
|
-
|
|
169
|
+
}));
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region node_modules/which/which.js
|
|
172
|
+
var b = /* @__PURE__ */ l(((e, t) => {
|
|
179
173
|
const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
180
|
-
const r =
|
|
174
|
+
const r = u("path");
|
|
181
175
|
const i = n ? ";" : ":";
|
|
182
|
-
const a =
|
|
183
|
-
const o = (e) => Object.assign(new Error(`not found: ${e}`), { code: "ENOENT" });
|
|
176
|
+
const a = y();
|
|
177
|
+
const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
|
|
184
178
|
const s = (e, t) => {
|
|
185
179
|
const r = t.colon || i;
|
|
186
180
|
const a = e.match(/\//) || n && e.match(/\\/) ? [""] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || "").split(r)];
|
|
@@ -208,8 +202,7 @@ var O = h((exports, t) => {
|
|
|
208
202
|
const c = i[n];
|
|
209
203
|
const l = /^".*"$/.test(c) ? c.slice(1, -1) : c;
|
|
210
204
|
const d = r.join(l, e);
|
|
211
|
-
|
|
212
|
-
a(f(p, n, 0));
|
|
205
|
+
a(f(!l && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d, n, 0));
|
|
213
206
|
});
|
|
214
207
|
const f = (e, n, r) => new Promise((i, o) => {
|
|
215
208
|
if (r === c.length) return i(d(n + 1));
|
|
@@ -234,8 +227,7 @@ var O = h((exports, t) => {
|
|
|
234
227
|
for (let e = 0; e < i.length; e++) {
|
|
235
228
|
const n = f + i[e];
|
|
236
229
|
try {
|
|
237
|
-
|
|
238
|
-
if (e) if (t.all) l.push(n);
|
|
230
|
+
if (a.sync(n, { pathExt: c })) if (t.all) l.push(n);
|
|
239
231
|
else return n;
|
|
240
232
|
} catch (e) {}
|
|
241
233
|
}
|
|
@@ -246,21 +238,24 @@ var O = h((exports, t) => {
|
|
|
246
238
|
};
|
|
247
239
|
t.exports = c;
|
|
248
240
|
c.sync = l;
|
|
249
|
-
});
|
|
250
|
-
|
|
241
|
+
}));
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region node_modules/path-key/index.js
|
|
244
|
+
var x = /* @__PURE__ */ l(((e, t) => {
|
|
251
245
|
const n = (e = {}) => {
|
|
252
246
|
const t = e.env || process.env;
|
|
253
|
-
|
|
254
|
-
if (n !== "win32") return "PATH";
|
|
247
|
+
if ((e.platform || process.platform) !== "win32") return "PATH";
|
|
255
248
|
return Object.keys(t).reverse().find((e) => e.toUpperCase() === "PATH") || "Path";
|
|
256
249
|
};
|
|
257
250
|
t.exports = n;
|
|
258
251
|
t.exports.default = n;
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
const
|
|
252
|
+
}));
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
255
|
+
var S = /* @__PURE__ */ l(((e, t) => {
|
|
256
|
+
const n = u("path");
|
|
257
|
+
const r = b();
|
|
258
|
+
const i = x();
|
|
264
259
|
function a(e, t) {
|
|
265
260
|
const a = e.options.env || process.env;
|
|
266
261
|
const o = process.cwd();
|
|
@@ -285,8 +280,10 @@ var A = h((exports, t) => {
|
|
|
285
280
|
return a(e) || a(e, true);
|
|
286
281
|
}
|
|
287
282
|
t.exports = o;
|
|
288
|
-
});
|
|
289
|
-
|
|
283
|
+
}));
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region node_modules/cross-spawn/lib/util/escape.js
|
|
286
|
+
var C = /* @__PURE__ */ l(((e, t) => {
|
|
290
287
|
const n = /([()\][%!^"`<>&|;, *?])/g;
|
|
291
288
|
function r(e) {
|
|
292
289
|
e = e.replace(n, "^$1");
|
|
@@ -294,8 +291,8 @@ var j = h((exports, t) => {
|
|
|
294
291
|
}
|
|
295
292
|
function i(e, t) {
|
|
296
293
|
e = `${e}`;
|
|
297
|
-
e = e.replace(/(
|
|
298
|
-
e = e.replace(/(
|
|
294
|
+
e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
295
|
+
e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
299
296
|
e = `"${e}"`;
|
|
300
297
|
e = e.replace(n, "^$1");
|
|
301
298
|
if (t) e = e.replace(n, "^$1");
|
|
@@ -303,12 +300,16 @@ var j = h((exports, t) => {
|
|
|
303
300
|
}
|
|
304
301
|
t.exports.command = r;
|
|
305
302
|
t.exports.argument = i;
|
|
306
|
-
});
|
|
307
|
-
|
|
303
|
+
}));
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region node_modules/shebang-regex/index.js
|
|
306
|
+
var w = /* @__PURE__ */ l(((e, t) => {
|
|
308
307
|
t.exports = /^#!(.*)/;
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
}));
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region node_modules/shebang-command/index.js
|
|
311
|
+
var T = /* @__PURE__ */ l(((e, t) => {
|
|
312
|
+
const n = w();
|
|
312
313
|
t.exports = (e = "") => {
|
|
313
314
|
const t = e.match(n);
|
|
314
315
|
if (!t) return null;
|
|
@@ -317,10 +318,12 @@ var N = h((exports, t) => {
|
|
|
317
318
|
if (a === "env") return i;
|
|
318
319
|
return i ? `${a} ${i}` : a;
|
|
319
320
|
};
|
|
320
|
-
});
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
}));
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region node_modules/cross-spawn/lib/util/readShebang.js
|
|
324
|
+
var E = /* @__PURE__ */ l(((e, t) => {
|
|
325
|
+
const n = u("fs");
|
|
326
|
+
const r = T();
|
|
324
327
|
function i(e) {
|
|
325
328
|
const t = 150;
|
|
326
329
|
const i = Buffer.alloc(t);
|
|
@@ -333,12 +336,14 @@ var P = h((exports, t) => {
|
|
|
333
336
|
return r(i.toString());
|
|
334
337
|
}
|
|
335
338
|
t.exports = i;
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
const
|
|
341
|
-
const
|
|
339
|
+
}));
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region node_modules/cross-spawn/lib/parse.js
|
|
342
|
+
var D = /* @__PURE__ */ l(((e, t) => {
|
|
343
|
+
const n = u("path");
|
|
344
|
+
const r = S();
|
|
345
|
+
const i = C();
|
|
346
|
+
const a = E();
|
|
342
347
|
const o = process.platform === "win32";
|
|
343
348
|
const s = /\.(?:com|exe)$/i;
|
|
344
349
|
const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
@@ -352,7 +357,7 @@ var F = h((exports, t) => {
|
|
|
352
357
|
}
|
|
353
358
|
return e.file;
|
|
354
359
|
}
|
|
355
|
-
function
|
|
360
|
+
function d(e) {
|
|
356
361
|
if (!o) return e;
|
|
357
362
|
const t = l(e);
|
|
358
363
|
const r = !s.test(t);
|
|
@@ -361,19 +366,18 @@ var F = h((exports, t) => {
|
|
|
361
366
|
e.command = n.normalize(e.command);
|
|
362
367
|
e.command = i.command(e.command);
|
|
363
368
|
e.args = e.args.map((e) => i.argument(e, r));
|
|
364
|
-
const a = [e.command].concat(e.args).join(" ");
|
|
365
369
|
e.args = [
|
|
366
370
|
"/d",
|
|
367
371
|
"/s",
|
|
368
372
|
"/c",
|
|
369
|
-
`"${
|
|
373
|
+
`"${[e.command].concat(e.args).join(" ")}"`
|
|
370
374
|
];
|
|
371
375
|
e.command = process.env.comspec || "cmd.exe";
|
|
372
376
|
e.options.windowsVerbatimArguments = true;
|
|
373
377
|
}
|
|
374
378
|
return e;
|
|
375
379
|
}
|
|
376
|
-
function
|
|
380
|
+
function f(e, t, n) {
|
|
377
381
|
if (t && !Array.isArray(t)) {
|
|
378
382
|
n = t;
|
|
379
383
|
t = null;
|
|
@@ -390,14 +394,16 @@ var F = h((exports, t) => {
|
|
|
390
394
|
args: t
|
|
391
395
|
}
|
|
392
396
|
};
|
|
393
|
-
return n.shell ? r :
|
|
397
|
+
return n.shell ? r : d(r);
|
|
394
398
|
}
|
|
395
|
-
t.exports =
|
|
396
|
-
});
|
|
397
|
-
|
|
399
|
+
t.exports = f;
|
|
400
|
+
}));
|
|
401
|
+
//#endregion
|
|
402
|
+
//#region node_modules/cross-spawn/lib/enoent.js
|
|
403
|
+
var O = /* @__PURE__ */ l(((e, t) => {
|
|
398
404
|
const n = process.platform === "win32";
|
|
399
405
|
function r(e, t) {
|
|
400
|
-
return Object.assign(new Error(`${t} ${e.command} ENOENT`), {
|
|
406
|
+
return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
|
|
401
407
|
code: "ENOENT",
|
|
402
408
|
errno: "ENOENT",
|
|
403
409
|
syscall: `${t} ${e.command}`,
|
|
@@ -410,7 +416,7 @@ var I = h((exports, t) => {
|
|
|
410
416
|
const r = e.emit;
|
|
411
417
|
e.emit = function(n, i) {
|
|
412
418
|
if (n === "exit") {
|
|
413
|
-
const n = a(i, t
|
|
419
|
+
const n = a(i, t);
|
|
414
420
|
if (n) return r.call(e, "error", n);
|
|
415
421
|
}
|
|
416
422
|
return r.apply(e, arguments);
|
|
@@ -430,11 +436,13 @@ var I = h((exports, t) => {
|
|
|
430
436
|
verifyENOENTSync: o,
|
|
431
437
|
notFoundError: r
|
|
432
438
|
};
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
const
|
|
439
|
+
}));
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region node_modules/cross-spawn/index.js
|
|
442
|
+
var k = /* @__PURE__ */ l(((e, t) => {
|
|
443
|
+
const n = u("child_process");
|
|
444
|
+
const r = D();
|
|
445
|
+
const i = O();
|
|
438
446
|
function a(e, t, a) {
|
|
439
447
|
const o = r(e, t, a);
|
|
440
448
|
const s = n.spawn(o.command, o.args, o.options);
|
|
@@ -452,14 +460,15 @@ var L = h((exports, t) => {
|
|
|
452
460
|
t.exports.sync = o;
|
|
453
461
|
t.exports._parse = r;
|
|
454
462
|
t.exports._enoent = i;
|
|
455
|
-
});
|
|
456
|
-
|
|
457
|
-
|
|
463
|
+
}));
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/non-zero-exit-error.ts
|
|
466
|
+
var A = k();
|
|
467
|
+
var j = class extends Error {
|
|
458
468
|
result;
|
|
459
469
|
output;
|
|
460
470
|
get exitCode() {
|
|
461
471
|
if (this.result.exitCode !== null) return this.result.exitCode;
|
|
462
|
-
return void 0;
|
|
463
472
|
}
|
|
464
473
|
constructor(e, t) {
|
|
465
474
|
super(`Process exited with non-zero status (${e.exitCode})`);
|
|
@@ -467,20 +476,20 @@ var z = class extends Error {
|
|
|
467
476
|
this.output = t;
|
|
468
477
|
}
|
|
469
478
|
};
|
|
470
|
-
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region src/main.ts
|
|
481
|
+
const M = {
|
|
471
482
|
timeout: void 0,
|
|
472
483
|
persist: false
|
|
473
484
|
};
|
|
474
|
-
const
|
|
475
|
-
function
|
|
476
|
-
const n = i(e);
|
|
477
|
-
const r = t ?? [];
|
|
485
|
+
const N = { windowsHide: true };
|
|
486
|
+
function P(e, t) {
|
|
478
487
|
return {
|
|
479
|
-
command:
|
|
480
|
-
args:
|
|
488
|
+
command: i(e),
|
|
489
|
+
args: t ?? []
|
|
481
490
|
};
|
|
482
491
|
}
|
|
483
|
-
function
|
|
492
|
+
function F(e) {
|
|
484
493
|
const t = new AbortController();
|
|
485
494
|
for (const n of e) {
|
|
486
495
|
if (n.aborted) {
|
|
@@ -494,12 +503,12 @@ function U(e) {
|
|
|
494
503
|
}
|
|
495
504
|
return t.signal;
|
|
496
505
|
}
|
|
497
|
-
async function
|
|
506
|
+
async function I(e) {
|
|
498
507
|
let t = "";
|
|
499
508
|
for await (const n of e) t += n.toString();
|
|
500
509
|
return t;
|
|
501
510
|
}
|
|
502
|
-
var
|
|
511
|
+
var L = class {
|
|
503
512
|
_process;
|
|
504
513
|
_aborted = false;
|
|
505
514
|
_options;
|
|
@@ -516,11 +525,10 @@ var G = class {
|
|
|
516
525
|
}
|
|
517
526
|
get exitCode() {
|
|
518
527
|
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
519
|
-
return void 0;
|
|
520
528
|
}
|
|
521
529
|
constructor(e, t, n) {
|
|
522
530
|
this._options = {
|
|
523
|
-
...
|
|
531
|
+
...M,
|
|
524
532
|
...n
|
|
525
533
|
};
|
|
526
534
|
this._command = e;
|
|
@@ -539,7 +547,7 @@ var G = class {
|
|
|
539
547
|
return this._process?.killed === true;
|
|
540
548
|
}
|
|
541
549
|
pipe(e, t, n) {
|
|
542
|
-
return
|
|
550
|
+
return z(e, t, {
|
|
543
551
|
...n,
|
|
544
552
|
stdin: this
|
|
545
553
|
});
|
|
@@ -550,18 +558,18 @@ var G = class {
|
|
|
550
558
|
const t = [];
|
|
551
559
|
if (this._streamErr) t.push(this._streamErr);
|
|
552
560
|
if (this._streamOut) t.push(this._streamOut);
|
|
553
|
-
const n =
|
|
561
|
+
const n = g(t);
|
|
554
562
|
const r = c.createInterface({ input: n });
|
|
555
563
|
for await (const e of r) yield e.toString();
|
|
556
564
|
await this._processClosed;
|
|
557
565
|
e.removeAllListeners();
|
|
558
566
|
if (this._thrownError) throw this._thrownError;
|
|
559
|
-
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
567
|
+
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this);
|
|
560
568
|
}
|
|
561
569
|
async _waitForOutput() {
|
|
562
570
|
const e = this._process;
|
|
563
571
|
if (!e) throw new Error("No process was started");
|
|
564
|
-
const [t, n] = await Promise.all([this._streamOut ?
|
|
572
|
+
const [t, n] = await Promise.all([this._streamOut ? I(this._streamOut) : "", this._streamErr ? I(this._streamErr) : ""]);
|
|
565
573
|
await this._processClosed;
|
|
566
574
|
if (this._options?.stdin) await this._options.stdin;
|
|
567
575
|
e.removeAllListeners();
|
|
@@ -571,7 +579,7 @@ var G = class {
|
|
|
571
579
|
stdout: t,
|
|
572
580
|
exitCode: this.exitCode
|
|
573
581
|
};
|
|
574
|
-
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
582
|
+
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this, r);
|
|
575
583
|
return r;
|
|
576
584
|
}
|
|
577
585
|
then(e, t) {
|
|
@@ -583,7 +591,7 @@ var G = class {
|
|
|
583
591
|
const e = o();
|
|
584
592
|
const n = this._options;
|
|
585
593
|
const r = {
|
|
586
|
-
...
|
|
594
|
+
...N,
|
|
587
595
|
...n.nodeOptions
|
|
588
596
|
};
|
|
589
597
|
const i = [];
|
|
@@ -591,10 +599,10 @@ var G = class {
|
|
|
591
599
|
if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
|
|
592
600
|
if (n.signal !== void 0) i.push(n.signal);
|
|
593
601
|
if (n.persist === true) r.detached = true;
|
|
594
|
-
if (i.length > 0) r.signal =
|
|
595
|
-
r.env =
|
|
596
|
-
const { command: a, args: s } =
|
|
597
|
-
const c = (0,
|
|
602
|
+
if (i.length > 0) r.signal = F(i);
|
|
603
|
+
r.env = h(e, r.env);
|
|
604
|
+
const { command: a, args: s } = P(this._command, this._args);
|
|
605
|
+
const c = (0, A._parse)(a, s, r);
|
|
598
606
|
const l = t(c.command, c.args, c.options);
|
|
599
607
|
if (l.stderr) this._streamErr = l.stderr;
|
|
600
608
|
if (l.stdout) this._streamOut = l.stdout;
|
|
@@ -624,10 +632,11 @@ var G = class {
|
|
|
624
632
|
if (this._resolveClose) this._resolveClose();
|
|
625
633
|
};
|
|
626
634
|
};
|
|
627
|
-
const
|
|
628
|
-
const r = new
|
|
635
|
+
const R = (e, t, n) => {
|
|
636
|
+
const r = new L(e, t, n);
|
|
629
637
|
r.spawn();
|
|
630
638
|
return r;
|
|
631
639
|
};
|
|
632
|
-
const
|
|
633
|
-
|
|
640
|
+
const z = R;
|
|
641
|
+
//#endregion
|
|
642
|
+
export { L as ExecProcess, j as NonZeroExitError, z as exec, R as x };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinyexec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A minimal library for executing processes in Node",
|
|
6
|
-
"main": "./dist/main.
|
|
6
|
+
"main": "./dist/main.mjs",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18"
|
|
9
9
|
},
|
|
@@ -38,24 +38,25 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/tinylibs/tinyexec#readme",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@eslint/js": "^
|
|
41
|
+
"@eslint/js": "^10.0.1",
|
|
42
42
|
"@types/cross-spawn": "^6.0.6",
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"@vitest/coverage-v8": "^4.0.
|
|
45
|
-
"cross-spawn": "^7.0.
|
|
46
|
-
"eslint
|
|
47
|
-
"prettier": "^3.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"typescript
|
|
43
|
+
"@types/node": "^25.4.0",
|
|
44
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
45
|
+
"cross-spawn": "^7.0.6",
|
|
46
|
+
"eslint": "^10.0.3",
|
|
47
|
+
"prettier": "^3.8.1",
|
|
48
|
+
"rollup-plugin-license": "^3.7.0",
|
|
49
|
+
"tsdown": "^0.21.1",
|
|
50
|
+
"typescript": "^5.9.3",
|
|
51
|
+
"typescript-eslint": "^8.57.0",
|
|
51
52
|
"vitest": "^4.0.7"
|
|
52
53
|
},
|
|
53
54
|
"exports": {
|
|
54
55
|
".": {
|
|
55
|
-
"types": "./dist/main.d.
|
|
56
|
-
"default": "./dist/main.
|
|
56
|
+
"types": "./dist/main.d.mts",
|
|
57
|
+
"default": "./dist/main.mjs"
|
|
57
58
|
},
|
|
58
59
|
"./package.json": "./package.json"
|
|
59
60
|
},
|
|
60
|
-
"types": "./dist/main.d.
|
|
61
|
+
"types": "./dist/main.d.mts"
|
|
61
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent-prod",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.35.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"fast-deep-equal": "3.1.3",
|
|
52
52
|
"fast-safe-stringify": "2.1.1",
|
|
53
53
|
"fast-uri": "3.1.0",
|
|
54
|
+
"fflate": "0.8.2",
|
|
54
55
|
"handlebars": "4.7.8",
|
|
55
56
|
"http2-client": "1.3.5",
|
|
56
57
|
"iconv-lite": "0.6.3",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"stack-trace": "0.0.10",
|
|
99
100
|
"swagger2openapi": "7.0.8",
|
|
100
101
|
"timers-ext": "0.1.8",
|
|
101
|
-
"tinyexec": "1.0.
|
|
102
|
+
"tinyexec": "1.0.4",
|
|
102
103
|
"tslib": "2.8.1",
|
|
103
104
|
"type": "2.7.3",
|
|
104
105
|
"typescript": "5.9.3",
|