prisma 6.6.0-integration-mcp.10 → 6.6.0-integration-push-yrztmmmwtryl.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/build/index.js +1176 -1225
- package/build/schema_engine_bg.wasm +0 -0
- package/package.json +15 -18
- package/prisma-client/generator-build/index.js +2104 -21
- package/prisma-client/package.json +4 -4
- package/prisma-client/runtime/binary.js +11 -11
- package/prisma-client/runtime/binary.mjs +5 -5
- package/prisma-client/runtime/client.js +4 -4
- package/prisma-client/runtime/client.mjs +4 -4
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/library.js +3 -3
- package/prisma-client/runtime/library.mjs +3 -3
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.mysql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.mjs +1 -1
- package/prisma-client/runtime/react-native.js +15 -15
- package/prisma-client/scripts/default-index.js +3 -3
@@ -385,6 +385,1968 @@ var require_pluralize = __commonJS({
|
|
385
385
|
}
|
386
386
|
});
|
387
387
|
|
388
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
389
|
+
var require_windows = __commonJS({
|
390
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
|
391
|
+
"use strict";
|
392
|
+
module2.exports = isexe2;
|
393
|
+
isexe2.sync = sync2;
|
394
|
+
var fs5 = require("fs");
|
395
|
+
function checkPathExt2(path11, options2) {
|
396
|
+
var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
|
397
|
+
if (!pathext) {
|
398
|
+
return true;
|
399
|
+
}
|
400
|
+
pathext = pathext.split(";");
|
401
|
+
if (pathext.indexOf("") !== -1) {
|
402
|
+
return true;
|
403
|
+
}
|
404
|
+
for (var i2 = 0; i2 < pathext.length; i2++) {
|
405
|
+
var p2 = pathext[i2].toLowerCase();
|
406
|
+
if (p2 && path11.substr(-p2.length).toLowerCase() === p2) {
|
407
|
+
return true;
|
408
|
+
}
|
409
|
+
}
|
410
|
+
return false;
|
411
|
+
}
|
412
|
+
function checkStat2(stat, path11, options2) {
|
413
|
+
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
414
|
+
return false;
|
415
|
+
}
|
416
|
+
return checkPathExt2(path11, options2);
|
417
|
+
}
|
418
|
+
function isexe2(path11, options2, cb) {
|
419
|
+
fs5.stat(path11, function(er, stat) {
|
420
|
+
cb(er, er ? false : checkStat2(stat, path11, options2));
|
421
|
+
});
|
422
|
+
}
|
423
|
+
function sync2(path11, options2) {
|
424
|
+
return checkStat2(fs5.statSync(path11), path11, options2);
|
425
|
+
}
|
426
|
+
}
|
427
|
+
});
|
428
|
+
|
429
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
430
|
+
var require_mode = __commonJS({
|
431
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
|
432
|
+
"use strict";
|
433
|
+
module2.exports = isexe2;
|
434
|
+
isexe2.sync = sync2;
|
435
|
+
var fs5 = require("fs");
|
436
|
+
function isexe2(path11, options2, cb) {
|
437
|
+
fs5.stat(path11, function(er, stat) {
|
438
|
+
cb(er, er ? false : checkStat2(stat, options2));
|
439
|
+
});
|
440
|
+
}
|
441
|
+
function sync2(path11, options2) {
|
442
|
+
return checkStat2(fs5.statSync(path11), options2);
|
443
|
+
}
|
444
|
+
function checkStat2(stat, options2) {
|
445
|
+
return stat.isFile() && checkMode2(stat, options2);
|
446
|
+
}
|
447
|
+
function checkMode2(stat, options2) {
|
448
|
+
var mod = stat.mode;
|
449
|
+
var uid = stat.uid;
|
450
|
+
var gid = stat.gid;
|
451
|
+
var myUid = options2.uid !== void 0 ? options2.uid : process.getuid && process.getuid();
|
452
|
+
var myGid = options2.gid !== void 0 ? options2.gid : process.getgid && process.getgid();
|
453
|
+
var u2 = parseInt("100", 8);
|
454
|
+
var g = parseInt("010", 8);
|
455
|
+
var o2 = parseInt("001", 8);
|
456
|
+
var ug = u2 | g;
|
457
|
+
var ret = mod & o2 || mod & g && gid === myGid || mod & u2 && uid === myUid || mod & ug && myUid === 0;
|
458
|
+
return ret;
|
459
|
+
}
|
460
|
+
}
|
461
|
+
});
|
462
|
+
|
463
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
464
|
+
var require_isexe = __commonJS({
|
465
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
466
|
+
"use strict";
|
467
|
+
var fs5 = require("fs");
|
468
|
+
var core2;
|
469
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
470
|
+
core2 = require_windows();
|
471
|
+
} else {
|
472
|
+
core2 = require_mode();
|
473
|
+
}
|
474
|
+
module2.exports = isexe2;
|
475
|
+
isexe2.sync = sync2;
|
476
|
+
function isexe2(path11, options2, cb) {
|
477
|
+
if (typeof options2 === "function") {
|
478
|
+
cb = options2;
|
479
|
+
options2 = {};
|
480
|
+
}
|
481
|
+
if (!cb) {
|
482
|
+
if (typeof Promise !== "function") {
|
483
|
+
throw new TypeError("callback not provided");
|
484
|
+
}
|
485
|
+
return new Promise(function(resolve3, reject) {
|
486
|
+
isexe2(path11, options2 || {}, function(er, is) {
|
487
|
+
if (er) {
|
488
|
+
reject(er);
|
489
|
+
} else {
|
490
|
+
resolve3(is);
|
491
|
+
}
|
492
|
+
});
|
493
|
+
});
|
494
|
+
}
|
495
|
+
core2(path11, options2 || {}, function(er, is) {
|
496
|
+
if (er) {
|
497
|
+
if (er.code === "EACCES" || options2 && options2.ignoreErrors) {
|
498
|
+
er = null;
|
499
|
+
is = false;
|
500
|
+
}
|
501
|
+
}
|
502
|
+
cb(er, is);
|
503
|
+
});
|
504
|
+
}
|
505
|
+
function sync2(path11, options2) {
|
506
|
+
try {
|
507
|
+
return core2.sync(path11, options2 || {});
|
508
|
+
} catch (er) {
|
509
|
+
if (options2 && options2.ignoreErrors || er.code === "EACCES") {
|
510
|
+
return false;
|
511
|
+
} else {
|
512
|
+
throw er;
|
513
|
+
}
|
514
|
+
}
|
515
|
+
}
|
516
|
+
}
|
517
|
+
});
|
518
|
+
|
519
|
+
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
520
|
+
var require_which = __commonJS({
|
521
|
+
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
|
522
|
+
"use strict";
|
523
|
+
var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
524
|
+
var path11 = require("path");
|
525
|
+
var COLON2 = isWindows2 ? ";" : ":";
|
526
|
+
var isexe2 = require_isexe();
|
527
|
+
var getNotFoundError2 = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
528
|
+
var getPathInfo2 = (cmd, opt) => {
|
529
|
+
const colon = opt.colon || COLON2;
|
530
|
+
const pathEnv = cmd.match(/\//) || isWindows2 && cmd.match(/\\/) ? [""] : [
|
531
|
+
// windows always checks the cwd first
|
532
|
+
...isWindows2 ? [process.cwd()] : [],
|
533
|
+
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
534
|
+
"").split(colon)
|
535
|
+
];
|
536
|
+
const pathExtExe = isWindows2 ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
537
|
+
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
538
|
+
if (isWindows2) {
|
539
|
+
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
540
|
+
pathExt.unshift("");
|
541
|
+
}
|
542
|
+
return {
|
543
|
+
pathEnv,
|
544
|
+
pathExt,
|
545
|
+
pathExtExe
|
546
|
+
};
|
547
|
+
};
|
548
|
+
var which2 = (cmd, opt, cb) => {
|
549
|
+
if (typeof opt === "function") {
|
550
|
+
cb = opt;
|
551
|
+
opt = {};
|
552
|
+
}
|
553
|
+
if (!opt)
|
554
|
+
opt = {};
|
555
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd, opt);
|
556
|
+
const found = [];
|
557
|
+
const step = (i2) => new Promise((resolve3, reject) => {
|
558
|
+
if (i2 === pathEnv.length)
|
559
|
+
return opt.all && found.length ? resolve3(found) : reject(getNotFoundError2(cmd));
|
560
|
+
const ppRaw = pathEnv[i2];
|
561
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
562
|
+
const pCmd = path11.join(pathPart, cmd);
|
563
|
+
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
564
|
+
resolve3(subStep(p2, i2, 0));
|
565
|
+
});
|
566
|
+
const subStep = (p2, i2, ii) => new Promise((resolve3, reject) => {
|
567
|
+
if (ii === pathExt.length)
|
568
|
+
return resolve3(step(i2 + 1));
|
569
|
+
const ext = pathExt[ii];
|
570
|
+
isexe2(p2 + ext, { pathExt: pathExtExe }, (er, is) => {
|
571
|
+
if (!er && is) {
|
572
|
+
if (opt.all)
|
573
|
+
found.push(p2 + ext);
|
574
|
+
else
|
575
|
+
return resolve3(p2 + ext);
|
576
|
+
}
|
577
|
+
return resolve3(subStep(p2, i2, ii + 1));
|
578
|
+
});
|
579
|
+
});
|
580
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
581
|
+
};
|
582
|
+
var whichSync2 = (cmd, opt) => {
|
583
|
+
opt = opt || {};
|
584
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd, opt);
|
585
|
+
const found = [];
|
586
|
+
for (let i2 = 0; i2 < pathEnv.length; i2++) {
|
587
|
+
const ppRaw = pathEnv[i2];
|
588
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
589
|
+
const pCmd = path11.join(pathPart, cmd);
|
590
|
+
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
591
|
+
for (let j2 = 0; j2 < pathExt.length; j2++) {
|
592
|
+
const cur = p2 + pathExt[j2];
|
593
|
+
try {
|
594
|
+
const is = isexe2.sync(cur, { pathExt: pathExtExe });
|
595
|
+
if (is) {
|
596
|
+
if (opt.all)
|
597
|
+
found.push(cur);
|
598
|
+
else
|
599
|
+
return cur;
|
600
|
+
}
|
601
|
+
} catch (ex) {
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
if (opt.all && found.length)
|
606
|
+
return found;
|
607
|
+
if (opt.nothrow)
|
608
|
+
return null;
|
609
|
+
throw getNotFoundError2(cmd);
|
610
|
+
};
|
611
|
+
module2.exports = which2;
|
612
|
+
which2.sync = whichSync2;
|
613
|
+
}
|
614
|
+
});
|
615
|
+
|
616
|
+
// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
617
|
+
var require_path_key = __commonJS({
|
618
|
+
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
|
619
|
+
"use strict";
|
620
|
+
var pathKey2 = (options2 = {}) => {
|
621
|
+
const environment = options2.env || process.env;
|
622
|
+
const platform = options2.platform || process.platform;
|
623
|
+
if (platform !== "win32") {
|
624
|
+
return "PATH";
|
625
|
+
}
|
626
|
+
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
627
|
+
};
|
628
|
+
module2.exports = pathKey2;
|
629
|
+
module2.exports.default = pathKey2;
|
630
|
+
}
|
631
|
+
});
|
632
|
+
|
633
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
|
634
|
+
var require_resolveCommand = __commonJS({
|
635
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
636
|
+
"use strict";
|
637
|
+
var path11 = require("path");
|
638
|
+
var which2 = require_which();
|
639
|
+
var getPathKey2 = require_path_key();
|
640
|
+
function resolveCommandAttempt2(parsed, withoutPathExt) {
|
641
|
+
const env3 = parsed.options.env || process.env;
|
642
|
+
const cwd2 = process.cwd();
|
643
|
+
const hasCustomCwd = parsed.options.cwd != null;
|
644
|
+
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
645
|
+
if (shouldSwitchCwd) {
|
646
|
+
try {
|
647
|
+
process.chdir(parsed.options.cwd);
|
648
|
+
} catch (err) {
|
649
|
+
}
|
650
|
+
}
|
651
|
+
let resolved;
|
652
|
+
try {
|
653
|
+
resolved = which2.sync(parsed.command, {
|
654
|
+
path: env3[getPathKey2({ env: env3 })],
|
655
|
+
pathExt: withoutPathExt ? path11.delimiter : void 0
|
656
|
+
});
|
657
|
+
} catch (e2) {
|
658
|
+
} finally {
|
659
|
+
if (shouldSwitchCwd) {
|
660
|
+
process.chdir(cwd2);
|
661
|
+
}
|
662
|
+
}
|
663
|
+
if (resolved) {
|
664
|
+
resolved = path11.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
665
|
+
}
|
666
|
+
return resolved;
|
667
|
+
}
|
668
|
+
function resolveCommand2(parsed) {
|
669
|
+
return resolveCommandAttempt2(parsed) || resolveCommandAttempt2(parsed, true);
|
670
|
+
}
|
671
|
+
module2.exports = resolveCommand2;
|
672
|
+
}
|
673
|
+
});
|
674
|
+
|
675
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
|
676
|
+
var require_escape = __commonJS({
|
677
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
678
|
+
"use strict";
|
679
|
+
var metaCharsRegExp2 = /([()\][%!^"`<>&|;, *?])/g;
|
680
|
+
function escapeCommand2(arg) {
|
681
|
+
arg = arg.replace(metaCharsRegExp2, "^$1");
|
682
|
+
return arg;
|
683
|
+
}
|
684
|
+
function escapeArgument2(arg, doubleEscapeMetaChars) {
|
685
|
+
arg = `${arg}`;
|
686
|
+
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
687
|
+
arg = arg.replace(/(\\*)$/, "$1$1");
|
688
|
+
arg = `"${arg}"`;
|
689
|
+
arg = arg.replace(metaCharsRegExp2, "^$1");
|
690
|
+
if (doubleEscapeMetaChars) {
|
691
|
+
arg = arg.replace(metaCharsRegExp2, "^$1");
|
692
|
+
}
|
693
|
+
return arg;
|
694
|
+
}
|
695
|
+
module2.exports.command = escapeCommand2;
|
696
|
+
module2.exports.argument = escapeArgument2;
|
697
|
+
}
|
698
|
+
});
|
699
|
+
|
700
|
+
// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
701
|
+
var require_shebang_regex = __commonJS({
|
702
|
+
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
|
703
|
+
"use strict";
|
704
|
+
module2.exports = /^#!(.*)/;
|
705
|
+
}
|
706
|
+
});
|
707
|
+
|
708
|
+
// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
709
|
+
var require_shebang_command = __commonJS({
|
710
|
+
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
|
711
|
+
"use strict";
|
712
|
+
var shebangRegex2 = require_shebang_regex();
|
713
|
+
module2.exports = (string = "") => {
|
714
|
+
const match = string.match(shebangRegex2);
|
715
|
+
if (!match) {
|
716
|
+
return null;
|
717
|
+
}
|
718
|
+
const [path11, argument] = match[0].replace(/#! ?/, "").split(" ");
|
719
|
+
const binary = path11.split("/").pop();
|
720
|
+
if (binary === "env") {
|
721
|
+
return argument;
|
722
|
+
}
|
723
|
+
return argument ? `${binary} ${argument}` : binary;
|
724
|
+
};
|
725
|
+
}
|
726
|
+
});
|
727
|
+
|
728
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
|
729
|
+
var require_readShebang = __commonJS({
|
730
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
731
|
+
"use strict";
|
732
|
+
var fs5 = require("fs");
|
733
|
+
var shebangCommand2 = require_shebang_command();
|
734
|
+
function readShebang2(command) {
|
735
|
+
const size = 150;
|
736
|
+
const buffer = Buffer.alloc(size);
|
737
|
+
let fd;
|
738
|
+
try {
|
739
|
+
fd = fs5.openSync(command, "r");
|
740
|
+
fs5.readSync(fd, buffer, 0, size, 0);
|
741
|
+
fs5.closeSync(fd);
|
742
|
+
} catch (e2) {
|
743
|
+
}
|
744
|
+
return shebangCommand2(buffer.toString());
|
745
|
+
}
|
746
|
+
module2.exports = readShebang2;
|
747
|
+
}
|
748
|
+
});
|
749
|
+
|
750
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
|
751
|
+
var require_parse = __commonJS({
|
752
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
753
|
+
"use strict";
|
754
|
+
var path11 = require("path");
|
755
|
+
var resolveCommand2 = require_resolveCommand();
|
756
|
+
var escape2 = require_escape();
|
757
|
+
var readShebang2 = require_readShebang();
|
758
|
+
var isWin2 = process.platform === "win32";
|
759
|
+
var isExecutableRegExp2 = /\.(?:com|exe)$/i;
|
760
|
+
var isCmdShimRegExp2 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
761
|
+
function detectShebang2(parsed) {
|
762
|
+
parsed.file = resolveCommand2(parsed);
|
763
|
+
const shebang = parsed.file && readShebang2(parsed.file);
|
764
|
+
if (shebang) {
|
765
|
+
parsed.args.unshift(parsed.file);
|
766
|
+
parsed.command = shebang;
|
767
|
+
return resolveCommand2(parsed);
|
768
|
+
}
|
769
|
+
return parsed.file;
|
770
|
+
}
|
771
|
+
function parseNonShell2(parsed) {
|
772
|
+
if (!isWin2) {
|
773
|
+
return parsed;
|
774
|
+
}
|
775
|
+
const commandFile = detectShebang2(parsed);
|
776
|
+
const needsShell = !isExecutableRegExp2.test(commandFile);
|
777
|
+
if (parsed.options.forceShell || needsShell) {
|
778
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp2.test(commandFile);
|
779
|
+
parsed.command = path11.normalize(parsed.command);
|
780
|
+
parsed.command = escape2.command(parsed.command);
|
781
|
+
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
782
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
783
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
784
|
+
parsed.command = process.env.comspec || "cmd.exe";
|
785
|
+
parsed.options.windowsVerbatimArguments = true;
|
786
|
+
}
|
787
|
+
return parsed;
|
788
|
+
}
|
789
|
+
function parse2(command, args, options2) {
|
790
|
+
if (args && !Array.isArray(args)) {
|
791
|
+
options2 = args;
|
792
|
+
args = null;
|
793
|
+
}
|
794
|
+
args = args ? args.slice(0) : [];
|
795
|
+
options2 = Object.assign({}, options2);
|
796
|
+
const parsed = {
|
797
|
+
command,
|
798
|
+
args,
|
799
|
+
options: options2,
|
800
|
+
file: void 0,
|
801
|
+
original: {
|
802
|
+
command,
|
803
|
+
args
|
804
|
+
}
|
805
|
+
};
|
806
|
+
return options2.shell ? parsed : parseNonShell2(parsed);
|
807
|
+
}
|
808
|
+
module2.exports = parse2;
|
809
|
+
}
|
810
|
+
});
|
811
|
+
|
812
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
|
813
|
+
var require_enoent = __commonJS({
|
814
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
815
|
+
"use strict";
|
816
|
+
var isWin2 = process.platform === "win32";
|
817
|
+
function notFoundError2(original, syscall) {
|
818
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
819
|
+
code: "ENOENT",
|
820
|
+
errno: "ENOENT",
|
821
|
+
syscall: `${syscall} ${original.command}`,
|
822
|
+
path: original.command,
|
823
|
+
spawnargs: original.args
|
824
|
+
});
|
825
|
+
}
|
826
|
+
function hookChildProcess2(cp2, parsed) {
|
827
|
+
if (!isWin2) {
|
828
|
+
return;
|
829
|
+
}
|
830
|
+
const originalEmit = cp2.emit;
|
831
|
+
cp2.emit = function(name, arg1) {
|
832
|
+
if (name === "exit") {
|
833
|
+
const err = verifyENOENT2(arg1, parsed, "spawn");
|
834
|
+
if (err) {
|
835
|
+
return originalEmit.call(cp2, "error", err);
|
836
|
+
}
|
837
|
+
}
|
838
|
+
return originalEmit.apply(cp2, arguments);
|
839
|
+
};
|
840
|
+
}
|
841
|
+
function verifyENOENT2(status, parsed) {
|
842
|
+
if (isWin2 && status === 1 && !parsed.file) {
|
843
|
+
return notFoundError2(parsed.original, "spawn");
|
844
|
+
}
|
845
|
+
return null;
|
846
|
+
}
|
847
|
+
function verifyENOENTSync2(status, parsed) {
|
848
|
+
if (isWin2 && status === 1 && !parsed.file) {
|
849
|
+
return notFoundError2(parsed.original, "spawnSync");
|
850
|
+
}
|
851
|
+
return null;
|
852
|
+
}
|
853
|
+
module2.exports = {
|
854
|
+
hookChildProcess: hookChildProcess2,
|
855
|
+
verifyENOENT: verifyENOENT2,
|
856
|
+
verifyENOENTSync: verifyENOENTSync2,
|
857
|
+
notFoundError: notFoundError2
|
858
|
+
};
|
859
|
+
}
|
860
|
+
});
|
861
|
+
|
862
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
|
863
|
+
var require_cross_spawn = __commonJS({
|
864
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
|
865
|
+
"use strict";
|
866
|
+
var cp2 = require("child_process");
|
867
|
+
var parse2 = require_parse();
|
868
|
+
var enoent2 = require_enoent();
|
869
|
+
function spawn2(command, args, options2) {
|
870
|
+
const parsed = parse2(command, args, options2);
|
871
|
+
const spawned = cp2.spawn(parsed.command, parsed.args, parsed.options);
|
872
|
+
enoent2.hookChildProcess(spawned, parsed);
|
873
|
+
return spawned;
|
874
|
+
}
|
875
|
+
function spawnSync2(command, args, options2) {
|
876
|
+
const parsed = parse2(command, args, options2);
|
877
|
+
const result = cp2.spawnSync(parsed.command, parsed.args, parsed.options);
|
878
|
+
result.error = result.error || enoent2.verifyENOENTSync(result.status, parsed);
|
879
|
+
return result;
|
880
|
+
}
|
881
|
+
module2.exports = spawn2;
|
882
|
+
module2.exports.spawn = spawn2;
|
883
|
+
module2.exports.sync = spawnSync2;
|
884
|
+
module2.exports._parse = parse2;
|
885
|
+
module2.exports._enoent = enoent2;
|
886
|
+
}
|
887
|
+
});
|
888
|
+
|
889
|
+
// ../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js
|
890
|
+
var require_strip_final_newline = __commonJS({
|
891
|
+
"../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports2, module2) {
|
892
|
+
"use strict";
|
893
|
+
module2.exports = (input) => {
|
894
|
+
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
895
|
+
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
896
|
+
if (input[input.length - 1] === LF) {
|
897
|
+
input = input.slice(0, input.length - 1);
|
898
|
+
}
|
899
|
+
if (input[input.length - 1] === CR) {
|
900
|
+
input = input.slice(0, input.length - 1);
|
901
|
+
}
|
902
|
+
return input;
|
903
|
+
};
|
904
|
+
}
|
905
|
+
});
|
906
|
+
|
907
|
+
// ../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js
|
908
|
+
var require_npm_run_path = __commonJS({
|
909
|
+
"../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module2) {
|
910
|
+
"use strict";
|
911
|
+
var path11 = require("path");
|
912
|
+
var pathKey2 = require_path_key();
|
913
|
+
var npmRunPath2 = (options2) => {
|
914
|
+
options2 = {
|
915
|
+
cwd: process.cwd(),
|
916
|
+
path: process.env[pathKey2()],
|
917
|
+
execPath: process.execPath,
|
918
|
+
...options2
|
919
|
+
};
|
920
|
+
let previous;
|
921
|
+
let cwdPath = path11.resolve(options2.cwd);
|
922
|
+
const result = [];
|
923
|
+
while (previous !== cwdPath) {
|
924
|
+
result.push(path11.join(cwdPath, "node_modules/.bin"));
|
925
|
+
previous = cwdPath;
|
926
|
+
cwdPath = path11.resolve(cwdPath, "..");
|
927
|
+
}
|
928
|
+
const execPathDir = path11.resolve(options2.cwd, options2.execPath, "..");
|
929
|
+
result.push(execPathDir);
|
930
|
+
return result.concat(options2.path).join(path11.delimiter);
|
931
|
+
};
|
932
|
+
module2.exports = npmRunPath2;
|
933
|
+
module2.exports.default = npmRunPath2;
|
934
|
+
module2.exports.env = (options2) => {
|
935
|
+
options2 = {
|
936
|
+
env: process.env,
|
937
|
+
...options2
|
938
|
+
};
|
939
|
+
const env3 = { ...options2.env };
|
940
|
+
const path12 = pathKey2({ env: env3 });
|
941
|
+
options2.path = env3[path12];
|
942
|
+
env3[path12] = module2.exports(options2);
|
943
|
+
return env3;
|
944
|
+
};
|
945
|
+
}
|
946
|
+
});
|
947
|
+
|
948
|
+
// ../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
|
949
|
+
var require_mimic_fn = __commonJS({
|
950
|
+
"../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports2, module2) {
|
951
|
+
"use strict";
|
952
|
+
var mimicFn = (to, from) => {
|
953
|
+
for (const prop of Reflect.ownKeys(from)) {
|
954
|
+
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
|
955
|
+
}
|
956
|
+
return to;
|
957
|
+
};
|
958
|
+
module2.exports = mimicFn;
|
959
|
+
module2.exports.default = mimicFn;
|
960
|
+
}
|
961
|
+
});
|
962
|
+
|
963
|
+
// ../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js
|
964
|
+
var require_onetime = __commonJS({
|
965
|
+
"../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports2, module2) {
|
966
|
+
"use strict";
|
967
|
+
var mimicFn = require_mimic_fn();
|
968
|
+
var calledFunctions2 = /* @__PURE__ */ new WeakMap();
|
969
|
+
var onetime2 = (function_, options2 = {}) => {
|
970
|
+
if (typeof function_ !== "function") {
|
971
|
+
throw new TypeError("Expected a function");
|
972
|
+
}
|
973
|
+
let returnValue;
|
974
|
+
let callCount = 0;
|
975
|
+
const functionName = function_.displayName || function_.name || "<anonymous>";
|
976
|
+
const onetime3 = function(...arguments_) {
|
977
|
+
calledFunctions2.set(onetime3, ++callCount);
|
978
|
+
if (callCount === 1) {
|
979
|
+
returnValue = function_.apply(this, arguments_);
|
980
|
+
function_ = null;
|
981
|
+
} else if (options2.throw === true) {
|
982
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
983
|
+
}
|
984
|
+
return returnValue;
|
985
|
+
};
|
986
|
+
mimicFn(onetime3, function_);
|
987
|
+
calledFunctions2.set(onetime3, callCount);
|
988
|
+
return onetime3;
|
989
|
+
};
|
990
|
+
module2.exports = onetime2;
|
991
|
+
module2.exports.default = onetime2;
|
992
|
+
module2.exports.callCount = (function_) => {
|
993
|
+
if (!calledFunctions2.has(function_)) {
|
994
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
995
|
+
}
|
996
|
+
return calledFunctions2.get(function_);
|
997
|
+
};
|
998
|
+
}
|
999
|
+
});
|
1000
|
+
|
1001
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js
|
1002
|
+
var require_core = __commonJS({
|
1003
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports2) {
|
1004
|
+
"use strict";
|
1005
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
1006
|
+
exports2.SIGNALS = void 0;
|
1007
|
+
var SIGNALS2 = [
|
1008
|
+
{
|
1009
|
+
name: "SIGHUP",
|
1010
|
+
number: 1,
|
1011
|
+
action: "terminate",
|
1012
|
+
description: "Terminal closed",
|
1013
|
+
standard: "posix"
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
name: "SIGINT",
|
1017
|
+
number: 2,
|
1018
|
+
action: "terminate",
|
1019
|
+
description: "User interruption with CTRL-C",
|
1020
|
+
standard: "ansi"
|
1021
|
+
},
|
1022
|
+
{
|
1023
|
+
name: "SIGQUIT",
|
1024
|
+
number: 3,
|
1025
|
+
action: "core",
|
1026
|
+
description: "User interruption with CTRL-\\",
|
1027
|
+
standard: "posix"
|
1028
|
+
},
|
1029
|
+
{
|
1030
|
+
name: "SIGILL",
|
1031
|
+
number: 4,
|
1032
|
+
action: "core",
|
1033
|
+
description: "Invalid machine instruction",
|
1034
|
+
standard: "ansi"
|
1035
|
+
},
|
1036
|
+
{
|
1037
|
+
name: "SIGTRAP",
|
1038
|
+
number: 5,
|
1039
|
+
action: "core",
|
1040
|
+
description: "Debugger breakpoint",
|
1041
|
+
standard: "posix"
|
1042
|
+
},
|
1043
|
+
{
|
1044
|
+
name: "SIGABRT",
|
1045
|
+
number: 6,
|
1046
|
+
action: "core",
|
1047
|
+
description: "Aborted",
|
1048
|
+
standard: "ansi"
|
1049
|
+
},
|
1050
|
+
{
|
1051
|
+
name: "SIGIOT",
|
1052
|
+
number: 6,
|
1053
|
+
action: "core",
|
1054
|
+
description: "Aborted",
|
1055
|
+
standard: "bsd"
|
1056
|
+
},
|
1057
|
+
{
|
1058
|
+
name: "SIGBUS",
|
1059
|
+
number: 7,
|
1060
|
+
action: "core",
|
1061
|
+
description: "Bus error due to misaligned, non-existing address or paging error",
|
1062
|
+
standard: "bsd"
|
1063
|
+
},
|
1064
|
+
{
|
1065
|
+
name: "SIGEMT",
|
1066
|
+
number: 7,
|
1067
|
+
action: "terminate",
|
1068
|
+
description: "Command should be emulated but is not implemented",
|
1069
|
+
standard: "other"
|
1070
|
+
},
|
1071
|
+
{
|
1072
|
+
name: "SIGFPE",
|
1073
|
+
number: 8,
|
1074
|
+
action: "core",
|
1075
|
+
description: "Floating point arithmetic error",
|
1076
|
+
standard: "ansi"
|
1077
|
+
},
|
1078
|
+
{
|
1079
|
+
name: "SIGKILL",
|
1080
|
+
number: 9,
|
1081
|
+
action: "terminate",
|
1082
|
+
description: "Forced termination",
|
1083
|
+
standard: "posix",
|
1084
|
+
forced: true
|
1085
|
+
},
|
1086
|
+
{
|
1087
|
+
name: "SIGUSR1",
|
1088
|
+
number: 10,
|
1089
|
+
action: "terminate",
|
1090
|
+
description: "Application-specific signal",
|
1091
|
+
standard: "posix"
|
1092
|
+
},
|
1093
|
+
{
|
1094
|
+
name: "SIGSEGV",
|
1095
|
+
number: 11,
|
1096
|
+
action: "core",
|
1097
|
+
description: "Segmentation fault",
|
1098
|
+
standard: "ansi"
|
1099
|
+
},
|
1100
|
+
{
|
1101
|
+
name: "SIGUSR2",
|
1102
|
+
number: 12,
|
1103
|
+
action: "terminate",
|
1104
|
+
description: "Application-specific signal",
|
1105
|
+
standard: "posix"
|
1106
|
+
},
|
1107
|
+
{
|
1108
|
+
name: "SIGPIPE",
|
1109
|
+
number: 13,
|
1110
|
+
action: "terminate",
|
1111
|
+
description: "Broken pipe or socket",
|
1112
|
+
standard: "posix"
|
1113
|
+
},
|
1114
|
+
{
|
1115
|
+
name: "SIGALRM",
|
1116
|
+
number: 14,
|
1117
|
+
action: "terminate",
|
1118
|
+
description: "Timeout or timer",
|
1119
|
+
standard: "posix"
|
1120
|
+
},
|
1121
|
+
{
|
1122
|
+
name: "SIGTERM",
|
1123
|
+
number: 15,
|
1124
|
+
action: "terminate",
|
1125
|
+
description: "Termination",
|
1126
|
+
standard: "ansi"
|
1127
|
+
},
|
1128
|
+
{
|
1129
|
+
name: "SIGSTKFLT",
|
1130
|
+
number: 16,
|
1131
|
+
action: "terminate",
|
1132
|
+
description: "Stack is empty or overflowed",
|
1133
|
+
standard: "other"
|
1134
|
+
},
|
1135
|
+
{
|
1136
|
+
name: "SIGCHLD",
|
1137
|
+
number: 17,
|
1138
|
+
action: "ignore",
|
1139
|
+
description: "Child process terminated, paused or unpaused",
|
1140
|
+
standard: "posix"
|
1141
|
+
},
|
1142
|
+
{
|
1143
|
+
name: "SIGCLD",
|
1144
|
+
number: 17,
|
1145
|
+
action: "ignore",
|
1146
|
+
description: "Child process terminated, paused or unpaused",
|
1147
|
+
standard: "other"
|
1148
|
+
},
|
1149
|
+
{
|
1150
|
+
name: "SIGCONT",
|
1151
|
+
number: 18,
|
1152
|
+
action: "unpause",
|
1153
|
+
description: "Unpaused",
|
1154
|
+
standard: "posix",
|
1155
|
+
forced: true
|
1156
|
+
},
|
1157
|
+
{
|
1158
|
+
name: "SIGSTOP",
|
1159
|
+
number: 19,
|
1160
|
+
action: "pause",
|
1161
|
+
description: "Paused",
|
1162
|
+
standard: "posix",
|
1163
|
+
forced: true
|
1164
|
+
},
|
1165
|
+
{
|
1166
|
+
name: "SIGTSTP",
|
1167
|
+
number: 20,
|
1168
|
+
action: "pause",
|
1169
|
+
description: 'Paused using CTRL-Z or "suspend"',
|
1170
|
+
standard: "posix"
|
1171
|
+
},
|
1172
|
+
{
|
1173
|
+
name: "SIGTTIN",
|
1174
|
+
number: 21,
|
1175
|
+
action: "pause",
|
1176
|
+
description: "Background process cannot read terminal input",
|
1177
|
+
standard: "posix"
|
1178
|
+
},
|
1179
|
+
{
|
1180
|
+
name: "SIGBREAK",
|
1181
|
+
number: 21,
|
1182
|
+
action: "terminate",
|
1183
|
+
description: "User interruption with CTRL-BREAK",
|
1184
|
+
standard: "other"
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
name: "SIGTTOU",
|
1188
|
+
number: 22,
|
1189
|
+
action: "pause",
|
1190
|
+
description: "Background process cannot write to terminal output",
|
1191
|
+
standard: "posix"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
name: "SIGURG",
|
1195
|
+
number: 23,
|
1196
|
+
action: "ignore",
|
1197
|
+
description: "Socket received out-of-band data",
|
1198
|
+
standard: "bsd"
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
name: "SIGXCPU",
|
1202
|
+
number: 24,
|
1203
|
+
action: "core",
|
1204
|
+
description: "Process timed out",
|
1205
|
+
standard: "bsd"
|
1206
|
+
},
|
1207
|
+
{
|
1208
|
+
name: "SIGXFSZ",
|
1209
|
+
number: 25,
|
1210
|
+
action: "core",
|
1211
|
+
description: "File too big",
|
1212
|
+
standard: "bsd"
|
1213
|
+
},
|
1214
|
+
{
|
1215
|
+
name: "SIGVTALRM",
|
1216
|
+
number: 26,
|
1217
|
+
action: "terminate",
|
1218
|
+
description: "Timeout or timer",
|
1219
|
+
standard: "bsd"
|
1220
|
+
},
|
1221
|
+
{
|
1222
|
+
name: "SIGPROF",
|
1223
|
+
number: 27,
|
1224
|
+
action: "terminate",
|
1225
|
+
description: "Timeout or timer",
|
1226
|
+
standard: "bsd"
|
1227
|
+
},
|
1228
|
+
{
|
1229
|
+
name: "SIGWINCH",
|
1230
|
+
number: 28,
|
1231
|
+
action: "ignore",
|
1232
|
+
description: "Terminal window size changed",
|
1233
|
+
standard: "bsd"
|
1234
|
+
},
|
1235
|
+
{
|
1236
|
+
name: "SIGIO",
|
1237
|
+
number: 29,
|
1238
|
+
action: "terminate",
|
1239
|
+
description: "I/O is available",
|
1240
|
+
standard: "other"
|
1241
|
+
},
|
1242
|
+
{
|
1243
|
+
name: "SIGPOLL",
|
1244
|
+
number: 29,
|
1245
|
+
action: "terminate",
|
1246
|
+
description: "Watched event",
|
1247
|
+
standard: "other"
|
1248
|
+
},
|
1249
|
+
{
|
1250
|
+
name: "SIGINFO",
|
1251
|
+
number: 29,
|
1252
|
+
action: "ignore",
|
1253
|
+
description: "Request for process information",
|
1254
|
+
standard: "other"
|
1255
|
+
},
|
1256
|
+
{
|
1257
|
+
name: "SIGPWR",
|
1258
|
+
number: 30,
|
1259
|
+
action: "terminate",
|
1260
|
+
description: "Device running out of power",
|
1261
|
+
standard: "systemv"
|
1262
|
+
},
|
1263
|
+
{
|
1264
|
+
name: "SIGSYS",
|
1265
|
+
number: 31,
|
1266
|
+
action: "core",
|
1267
|
+
description: "Invalid system call",
|
1268
|
+
standard: "other"
|
1269
|
+
},
|
1270
|
+
{
|
1271
|
+
name: "SIGUNUSED",
|
1272
|
+
number: 31,
|
1273
|
+
action: "terminate",
|
1274
|
+
description: "Invalid system call",
|
1275
|
+
standard: "other"
|
1276
|
+
}
|
1277
|
+
];
|
1278
|
+
exports2.SIGNALS = SIGNALS2;
|
1279
|
+
}
|
1280
|
+
});
|
1281
|
+
|
1282
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js
|
1283
|
+
var require_realtime = __commonJS({
|
1284
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports2) {
|
1285
|
+
"use strict";
|
1286
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
1287
|
+
exports2.SIGRTMAX = exports2.getRealtimeSignals = void 0;
|
1288
|
+
var getRealtimeSignals2 = function() {
|
1289
|
+
const length = SIGRTMAX2 - SIGRTMIN2 + 1;
|
1290
|
+
return Array.from({ length }, getRealtimeSignal2);
|
1291
|
+
};
|
1292
|
+
exports2.getRealtimeSignals = getRealtimeSignals2;
|
1293
|
+
var getRealtimeSignal2 = function(value, index) {
|
1294
|
+
return {
|
1295
|
+
name: `SIGRT${index + 1}`,
|
1296
|
+
number: SIGRTMIN2 + index,
|
1297
|
+
action: "terminate",
|
1298
|
+
description: "Application-specific signal (realtime)",
|
1299
|
+
standard: "posix"
|
1300
|
+
};
|
1301
|
+
};
|
1302
|
+
var SIGRTMIN2 = 34;
|
1303
|
+
var SIGRTMAX2 = 64;
|
1304
|
+
exports2.SIGRTMAX = SIGRTMAX2;
|
1305
|
+
}
|
1306
|
+
});
|
1307
|
+
|
1308
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js
|
1309
|
+
var require_signals = __commonJS({
|
1310
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports2) {
|
1311
|
+
"use strict";
|
1312
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
1313
|
+
exports2.getSignals = void 0;
|
1314
|
+
var _os = require("os");
|
1315
|
+
var _core = require_core();
|
1316
|
+
var _realtime = require_realtime();
|
1317
|
+
var getSignals2 = function() {
|
1318
|
+
const realtimeSignals = (0, _realtime.getRealtimeSignals)();
|
1319
|
+
const signals2 = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal2);
|
1320
|
+
return signals2;
|
1321
|
+
};
|
1322
|
+
exports2.getSignals = getSignals2;
|
1323
|
+
var normalizeSignal2 = function({
|
1324
|
+
name,
|
1325
|
+
number: defaultNumber,
|
1326
|
+
description,
|
1327
|
+
action: action2,
|
1328
|
+
forced = false,
|
1329
|
+
standard
|
1330
|
+
}) {
|
1331
|
+
const {
|
1332
|
+
signals: { [name]: constantSignal }
|
1333
|
+
} = _os.constants;
|
1334
|
+
const supported = constantSignal !== void 0;
|
1335
|
+
const number2 = supported ? constantSignal : defaultNumber;
|
1336
|
+
return { name, number: number2, description, supported, action: action2, forced, standard };
|
1337
|
+
};
|
1338
|
+
}
|
1339
|
+
});
|
1340
|
+
|
1341
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js
|
1342
|
+
var require_main = __commonJS({
|
1343
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports2) {
|
1344
|
+
"use strict";
|
1345
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
1346
|
+
exports2.signalsByNumber = exports2.signalsByName = void 0;
|
1347
|
+
var _os = require("os");
|
1348
|
+
var _signals = require_signals();
|
1349
|
+
var _realtime = require_realtime();
|
1350
|
+
var getSignalsByName2 = function() {
|
1351
|
+
const signals2 = (0, _signals.getSignals)();
|
1352
|
+
return signals2.reduce(getSignalByName2, {});
|
1353
|
+
};
|
1354
|
+
var getSignalByName2 = function(signalByNameMemo, { name, number: number2, description, supported, action: action2, forced, standard }) {
|
1355
|
+
return {
|
1356
|
+
...signalByNameMemo,
|
1357
|
+
[name]: { name, number: number2, description, supported, action: action2, forced, standard }
|
1358
|
+
};
|
1359
|
+
};
|
1360
|
+
var signalsByName2 = getSignalsByName2();
|
1361
|
+
exports2.signalsByName = signalsByName2;
|
1362
|
+
var getSignalsByNumber2 = function() {
|
1363
|
+
const signals2 = (0, _signals.getSignals)();
|
1364
|
+
const length = _realtime.SIGRTMAX + 1;
|
1365
|
+
const signalsA = Array.from({ length }, (value, number2) => getSignalByNumber2(number2, signals2));
|
1366
|
+
return Object.assign({}, ...signalsA);
|
1367
|
+
};
|
1368
|
+
var getSignalByNumber2 = function(number2, signals2) {
|
1369
|
+
const signal = findSignalByNumber2(number2, signals2);
|
1370
|
+
if (signal === void 0) {
|
1371
|
+
return {};
|
1372
|
+
}
|
1373
|
+
const { name, description, supported, action: action2, forced, standard } = signal;
|
1374
|
+
return {
|
1375
|
+
[number2]: {
|
1376
|
+
name,
|
1377
|
+
number: number2,
|
1378
|
+
description,
|
1379
|
+
supported,
|
1380
|
+
action: action2,
|
1381
|
+
forced,
|
1382
|
+
standard
|
1383
|
+
}
|
1384
|
+
};
|
1385
|
+
};
|
1386
|
+
var findSignalByNumber2 = function(number2, signals2) {
|
1387
|
+
const signal = signals2.find(({ name }) => _os.constants.signals[name] === number2);
|
1388
|
+
if (signal !== void 0) {
|
1389
|
+
return signal;
|
1390
|
+
}
|
1391
|
+
return signals2.find((signalA) => signalA.number === number2);
|
1392
|
+
};
|
1393
|
+
var signalsByNumber = getSignalsByNumber2();
|
1394
|
+
exports2.signalsByNumber = signalsByNumber;
|
1395
|
+
}
|
1396
|
+
});
|
1397
|
+
|
1398
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js
|
1399
|
+
var require_error = __commonJS({
|
1400
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports2, module2) {
|
1401
|
+
"use strict";
|
1402
|
+
var { signalsByName: signalsByName2 } = require_main();
|
1403
|
+
var getErrorPrefix2 = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
1404
|
+
if (timedOut) {
|
1405
|
+
return `timed out after ${timeout} milliseconds`;
|
1406
|
+
}
|
1407
|
+
if (isCanceled) {
|
1408
|
+
return "was canceled";
|
1409
|
+
}
|
1410
|
+
if (errorCode !== void 0) {
|
1411
|
+
return `failed with ${errorCode}`;
|
1412
|
+
}
|
1413
|
+
if (signal !== void 0) {
|
1414
|
+
return `was killed with ${signal} (${signalDescription})`;
|
1415
|
+
}
|
1416
|
+
if (exitCode !== void 0) {
|
1417
|
+
return `failed with exit code ${exitCode}`;
|
1418
|
+
}
|
1419
|
+
return "failed";
|
1420
|
+
};
|
1421
|
+
var makeError2 = ({
|
1422
|
+
stdout,
|
1423
|
+
stderr,
|
1424
|
+
all,
|
1425
|
+
error,
|
1426
|
+
signal,
|
1427
|
+
exitCode,
|
1428
|
+
command,
|
1429
|
+
escapedCommand,
|
1430
|
+
timedOut,
|
1431
|
+
isCanceled,
|
1432
|
+
killed,
|
1433
|
+
parsed: { options: { timeout } }
|
1434
|
+
}) => {
|
1435
|
+
exitCode = exitCode === null ? void 0 : exitCode;
|
1436
|
+
signal = signal === null ? void 0 : signal;
|
1437
|
+
const signalDescription = signal === void 0 ? void 0 : signalsByName2[signal].description;
|
1438
|
+
const errorCode = error && error.code;
|
1439
|
+
const prefix = getErrorPrefix2({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
1440
|
+
const execaMessage = `Command ${prefix}: ${command}`;
|
1441
|
+
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
1442
|
+
const shortMessage = isError ? `${execaMessage}
|
1443
|
+
${error.message}` : execaMessage;
|
1444
|
+
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
1445
|
+
if (isError) {
|
1446
|
+
error.originalMessage = error.message;
|
1447
|
+
error.message = message;
|
1448
|
+
} else {
|
1449
|
+
error = new Error(message);
|
1450
|
+
}
|
1451
|
+
error.shortMessage = shortMessage;
|
1452
|
+
error.command = command;
|
1453
|
+
error.escapedCommand = escapedCommand;
|
1454
|
+
error.exitCode = exitCode;
|
1455
|
+
error.signal = signal;
|
1456
|
+
error.signalDescription = signalDescription;
|
1457
|
+
error.stdout = stdout;
|
1458
|
+
error.stderr = stderr;
|
1459
|
+
if (all !== void 0) {
|
1460
|
+
error.all = all;
|
1461
|
+
}
|
1462
|
+
if ("bufferedData" in error) {
|
1463
|
+
delete error.bufferedData;
|
1464
|
+
}
|
1465
|
+
error.failed = true;
|
1466
|
+
error.timedOut = Boolean(timedOut);
|
1467
|
+
error.isCanceled = isCanceled;
|
1468
|
+
error.killed = killed && !timedOut;
|
1469
|
+
return error;
|
1470
|
+
};
|
1471
|
+
module2.exports = makeError2;
|
1472
|
+
}
|
1473
|
+
});
|
1474
|
+
|
1475
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js
|
1476
|
+
var require_stdio = __commonJS({
|
1477
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports2, module2) {
|
1478
|
+
"use strict";
|
1479
|
+
var aliases2 = ["stdin", "stdout", "stderr"];
|
1480
|
+
var hasAlias2 = (options2) => aliases2.some((alias) => options2[alias] !== void 0);
|
1481
|
+
var normalizeStdio2 = (options2) => {
|
1482
|
+
if (!options2) {
|
1483
|
+
return;
|
1484
|
+
}
|
1485
|
+
const { stdio } = options2;
|
1486
|
+
if (stdio === void 0) {
|
1487
|
+
return aliases2.map((alias) => options2[alias]);
|
1488
|
+
}
|
1489
|
+
if (hasAlias2(options2)) {
|
1490
|
+
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases2.map((alias) => `\`${alias}\``).join(", ")}`);
|
1491
|
+
}
|
1492
|
+
if (typeof stdio === "string") {
|
1493
|
+
return stdio;
|
1494
|
+
}
|
1495
|
+
if (!Array.isArray(stdio)) {
|
1496
|
+
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
1497
|
+
}
|
1498
|
+
const length = Math.max(stdio.length, aliases2.length);
|
1499
|
+
return Array.from({ length }, (value, index) => stdio[index]);
|
1500
|
+
};
|
1501
|
+
module2.exports = normalizeStdio2;
|
1502
|
+
module2.exports.node = (options2) => {
|
1503
|
+
const stdio = normalizeStdio2(options2);
|
1504
|
+
if (stdio === "ipc") {
|
1505
|
+
return "ipc";
|
1506
|
+
}
|
1507
|
+
if (stdio === void 0 || typeof stdio === "string") {
|
1508
|
+
return [stdio, stdio, stdio, "ipc"];
|
1509
|
+
}
|
1510
|
+
if (stdio.includes("ipc")) {
|
1511
|
+
return stdio;
|
1512
|
+
}
|
1513
|
+
return [...stdio, "ipc"];
|
1514
|
+
};
|
1515
|
+
}
|
1516
|
+
});
|
1517
|
+
|
1518
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
1519
|
+
var require_signals2 = __commonJS({
|
1520
|
+
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
|
1521
|
+
"use strict";
|
1522
|
+
module2.exports = [
|
1523
|
+
"SIGABRT",
|
1524
|
+
"SIGALRM",
|
1525
|
+
"SIGHUP",
|
1526
|
+
"SIGINT",
|
1527
|
+
"SIGTERM"
|
1528
|
+
];
|
1529
|
+
if (process.platform !== "win32") {
|
1530
|
+
module2.exports.push(
|
1531
|
+
"SIGVTALRM",
|
1532
|
+
"SIGXCPU",
|
1533
|
+
"SIGXFSZ",
|
1534
|
+
"SIGUSR2",
|
1535
|
+
"SIGTRAP",
|
1536
|
+
"SIGSYS",
|
1537
|
+
"SIGQUIT",
|
1538
|
+
"SIGIOT"
|
1539
|
+
// should detect profiler and enable/disable accordingly.
|
1540
|
+
// see #21
|
1541
|
+
// 'SIGPROF'
|
1542
|
+
);
|
1543
|
+
}
|
1544
|
+
if (process.platform === "linux") {
|
1545
|
+
module2.exports.push(
|
1546
|
+
"SIGIO",
|
1547
|
+
"SIGPOLL",
|
1548
|
+
"SIGPWR",
|
1549
|
+
"SIGSTKFLT",
|
1550
|
+
"SIGUNUSED"
|
1551
|
+
);
|
1552
|
+
}
|
1553
|
+
}
|
1554
|
+
});
|
1555
|
+
|
1556
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
1557
|
+
var require_signal_exit = __commonJS({
|
1558
|
+
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
|
1559
|
+
"use strict";
|
1560
|
+
var process3 = global.process;
|
1561
|
+
var processOk2 = function(process4) {
|
1562
|
+
return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
1563
|
+
};
|
1564
|
+
if (!processOk2(process3)) {
|
1565
|
+
module2.exports = function() {
|
1566
|
+
return function() {
|
1567
|
+
};
|
1568
|
+
};
|
1569
|
+
} else {
|
1570
|
+
assert = require("assert");
|
1571
|
+
signals2 = require_signals2();
|
1572
|
+
isWin2 = /^win/i.test(process3.platform);
|
1573
|
+
EE = require("events");
|
1574
|
+
if (typeof EE !== "function") {
|
1575
|
+
EE = EE.EventEmitter;
|
1576
|
+
}
|
1577
|
+
if (process3.__signal_exit_emitter__) {
|
1578
|
+
emitter = process3.__signal_exit_emitter__;
|
1579
|
+
} else {
|
1580
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
1581
|
+
emitter.count = 0;
|
1582
|
+
emitter.emitted = {};
|
1583
|
+
}
|
1584
|
+
if (!emitter.infinite) {
|
1585
|
+
emitter.setMaxListeners(Infinity);
|
1586
|
+
emitter.infinite = true;
|
1587
|
+
}
|
1588
|
+
module2.exports = function(cb, opts) {
|
1589
|
+
if (!processOk2(global.process)) {
|
1590
|
+
return function() {
|
1591
|
+
};
|
1592
|
+
}
|
1593
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
1594
|
+
if (loaded === false) {
|
1595
|
+
load2();
|
1596
|
+
}
|
1597
|
+
var ev = "exit";
|
1598
|
+
if (opts && opts.alwaysLast) {
|
1599
|
+
ev = "afterexit";
|
1600
|
+
}
|
1601
|
+
var remove2 = function() {
|
1602
|
+
emitter.removeListener(ev, cb);
|
1603
|
+
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
1604
|
+
unload2();
|
1605
|
+
}
|
1606
|
+
};
|
1607
|
+
emitter.on(ev, cb);
|
1608
|
+
return remove2;
|
1609
|
+
};
|
1610
|
+
unload2 = function unload3() {
|
1611
|
+
if (!loaded || !processOk2(global.process)) {
|
1612
|
+
return;
|
1613
|
+
}
|
1614
|
+
loaded = false;
|
1615
|
+
signals2.forEach(function(sig) {
|
1616
|
+
try {
|
1617
|
+
process3.removeListener(sig, sigListeners[sig]);
|
1618
|
+
} catch (er) {
|
1619
|
+
}
|
1620
|
+
});
|
1621
|
+
process3.emit = originalProcessEmit;
|
1622
|
+
process3.reallyExit = originalProcessReallyExit;
|
1623
|
+
emitter.count -= 1;
|
1624
|
+
};
|
1625
|
+
module2.exports.unload = unload2;
|
1626
|
+
emit = function emit2(event, code, signal) {
|
1627
|
+
if (emitter.emitted[event]) {
|
1628
|
+
return;
|
1629
|
+
}
|
1630
|
+
emitter.emitted[event] = true;
|
1631
|
+
emitter.emit(event, code, signal);
|
1632
|
+
};
|
1633
|
+
sigListeners = {};
|
1634
|
+
signals2.forEach(function(sig) {
|
1635
|
+
sigListeners[sig] = function listener() {
|
1636
|
+
if (!processOk2(global.process)) {
|
1637
|
+
return;
|
1638
|
+
}
|
1639
|
+
var listeners = process3.listeners(sig);
|
1640
|
+
if (listeners.length === emitter.count) {
|
1641
|
+
unload2();
|
1642
|
+
emit("exit", null, sig);
|
1643
|
+
emit("afterexit", null, sig);
|
1644
|
+
if (isWin2 && sig === "SIGHUP") {
|
1645
|
+
sig = "SIGINT";
|
1646
|
+
}
|
1647
|
+
process3.kill(process3.pid, sig);
|
1648
|
+
}
|
1649
|
+
};
|
1650
|
+
});
|
1651
|
+
module2.exports.signals = function() {
|
1652
|
+
return signals2;
|
1653
|
+
};
|
1654
|
+
loaded = false;
|
1655
|
+
load2 = function load3() {
|
1656
|
+
if (loaded || !processOk2(global.process)) {
|
1657
|
+
return;
|
1658
|
+
}
|
1659
|
+
loaded = true;
|
1660
|
+
emitter.count += 1;
|
1661
|
+
signals2 = signals2.filter(function(sig) {
|
1662
|
+
try {
|
1663
|
+
process3.on(sig, sigListeners[sig]);
|
1664
|
+
return true;
|
1665
|
+
} catch (er) {
|
1666
|
+
return false;
|
1667
|
+
}
|
1668
|
+
});
|
1669
|
+
process3.emit = processEmit;
|
1670
|
+
process3.reallyExit = processReallyExit;
|
1671
|
+
};
|
1672
|
+
module2.exports.load = load2;
|
1673
|
+
originalProcessReallyExit = process3.reallyExit;
|
1674
|
+
processReallyExit = function processReallyExit2(code) {
|
1675
|
+
if (!processOk2(global.process)) {
|
1676
|
+
return;
|
1677
|
+
}
|
1678
|
+
process3.exitCode = code || /* istanbul ignore next */
|
1679
|
+
0;
|
1680
|
+
emit("exit", process3.exitCode, null);
|
1681
|
+
emit("afterexit", process3.exitCode, null);
|
1682
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
1683
|
+
};
|
1684
|
+
originalProcessEmit = process3.emit;
|
1685
|
+
processEmit = function processEmit2(ev, arg) {
|
1686
|
+
if (ev === "exit" && processOk2(global.process)) {
|
1687
|
+
if (arg !== void 0) {
|
1688
|
+
process3.exitCode = arg;
|
1689
|
+
}
|
1690
|
+
var ret = originalProcessEmit.apply(this, arguments);
|
1691
|
+
emit("exit", process3.exitCode, null);
|
1692
|
+
emit("afterexit", process3.exitCode, null);
|
1693
|
+
return ret;
|
1694
|
+
} else {
|
1695
|
+
return originalProcessEmit.apply(this, arguments);
|
1696
|
+
}
|
1697
|
+
};
|
1698
|
+
}
|
1699
|
+
var assert;
|
1700
|
+
var signals2;
|
1701
|
+
var isWin2;
|
1702
|
+
var EE;
|
1703
|
+
var emitter;
|
1704
|
+
var unload2;
|
1705
|
+
var emit;
|
1706
|
+
var sigListeners;
|
1707
|
+
var loaded;
|
1708
|
+
var load2;
|
1709
|
+
var originalProcessReallyExit;
|
1710
|
+
var processReallyExit;
|
1711
|
+
var originalProcessEmit;
|
1712
|
+
var processEmit;
|
1713
|
+
}
|
1714
|
+
});
|
1715
|
+
|
1716
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js
|
1717
|
+
var require_kill = __commonJS({
|
1718
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports2, module2) {
|
1719
|
+
"use strict";
|
1720
|
+
var os3 = require("os");
|
1721
|
+
var onExit2 = require_signal_exit();
|
1722
|
+
var DEFAULT_FORCE_KILL_TIMEOUT2 = 1e3 * 5;
|
1723
|
+
var spawnedKill2 = (kill, signal = "SIGTERM", options2 = {}) => {
|
1724
|
+
const killResult = kill(signal);
|
1725
|
+
setKillTimeout2(kill, signal, options2, killResult);
|
1726
|
+
return killResult;
|
1727
|
+
};
|
1728
|
+
var setKillTimeout2 = (kill, signal, options2, killResult) => {
|
1729
|
+
if (!shouldForceKill2(signal, options2, killResult)) {
|
1730
|
+
return;
|
1731
|
+
}
|
1732
|
+
const timeout = getForceKillAfterTimeout2(options2);
|
1733
|
+
const t2 = setTimeout(() => {
|
1734
|
+
kill("SIGKILL");
|
1735
|
+
}, timeout);
|
1736
|
+
if (t2.unref) {
|
1737
|
+
t2.unref();
|
1738
|
+
}
|
1739
|
+
};
|
1740
|
+
var shouldForceKill2 = (signal, { forceKillAfterTimeout }, killResult) => {
|
1741
|
+
return isSigterm2(signal) && forceKillAfterTimeout !== false && killResult;
|
1742
|
+
};
|
1743
|
+
var isSigterm2 = (signal) => {
|
1744
|
+
return signal === os3.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
1745
|
+
};
|
1746
|
+
var getForceKillAfterTimeout2 = ({ forceKillAfterTimeout = true }) => {
|
1747
|
+
if (forceKillAfterTimeout === true) {
|
1748
|
+
return DEFAULT_FORCE_KILL_TIMEOUT2;
|
1749
|
+
}
|
1750
|
+
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
1751
|
+
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
1752
|
+
}
|
1753
|
+
return forceKillAfterTimeout;
|
1754
|
+
};
|
1755
|
+
var spawnedCancel2 = (spawned, context) => {
|
1756
|
+
const killResult = spawned.kill();
|
1757
|
+
if (killResult) {
|
1758
|
+
context.isCanceled = true;
|
1759
|
+
}
|
1760
|
+
};
|
1761
|
+
var timeoutKill2 = (spawned, signal, reject) => {
|
1762
|
+
spawned.kill(signal);
|
1763
|
+
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
1764
|
+
};
|
1765
|
+
var setupTimeout2 = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
1766
|
+
if (timeout === 0 || timeout === void 0) {
|
1767
|
+
return spawnedPromise;
|
1768
|
+
}
|
1769
|
+
let timeoutId;
|
1770
|
+
const timeoutPromise = new Promise((resolve3, reject) => {
|
1771
|
+
timeoutId = setTimeout(() => {
|
1772
|
+
timeoutKill2(spawned, killSignal, reject);
|
1773
|
+
}, timeout);
|
1774
|
+
});
|
1775
|
+
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
1776
|
+
clearTimeout(timeoutId);
|
1777
|
+
});
|
1778
|
+
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
1779
|
+
};
|
1780
|
+
var validateTimeout2 = ({ timeout }) => {
|
1781
|
+
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
1782
|
+
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
1783
|
+
}
|
1784
|
+
};
|
1785
|
+
var setExitHandler2 = async (spawned, { cleanup, detached }, timedPromise) => {
|
1786
|
+
if (!cleanup || detached) {
|
1787
|
+
return timedPromise;
|
1788
|
+
}
|
1789
|
+
const removeExitHandler = onExit2(() => {
|
1790
|
+
spawned.kill();
|
1791
|
+
});
|
1792
|
+
return timedPromise.finally(() => {
|
1793
|
+
removeExitHandler();
|
1794
|
+
});
|
1795
|
+
};
|
1796
|
+
module2.exports = {
|
1797
|
+
spawnedKill: spawnedKill2,
|
1798
|
+
spawnedCancel: spawnedCancel2,
|
1799
|
+
setupTimeout: setupTimeout2,
|
1800
|
+
validateTimeout: validateTimeout2,
|
1801
|
+
setExitHandler: setExitHandler2
|
1802
|
+
};
|
1803
|
+
}
|
1804
|
+
});
|
1805
|
+
|
1806
|
+
// ../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js
|
1807
|
+
var require_is_stream = __commonJS({
|
1808
|
+
"../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) {
|
1809
|
+
"use strict";
|
1810
|
+
var isStream2 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
|
1811
|
+
isStream2.writable = (stream2) => isStream2(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
|
1812
|
+
isStream2.readable = (stream2) => isStream2(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object";
|
1813
|
+
isStream2.duplex = (stream2) => isStream2.writable(stream2) && isStream2.readable(stream2);
|
1814
|
+
isStream2.transform = (stream2) => isStream2.duplex(stream2) && typeof stream2._transform === "function";
|
1815
|
+
module2.exports = isStream2;
|
1816
|
+
}
|
1817
|
+
});
|
1818
|
+
|
1819
|
+
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js
|
1820
|
+
var require_buffer_stream = __commonJS({
|
1821
|
+
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports2, module2) {
|
1822
|
+
"use strict";
|
1823
|
+
var { PassThrough: PassThroughStream } = require("stream");
|
1824
|
+
module2.exports = (options2) => {
|
1825
|
+
options2 = { ...options2 };
|
1826
|
+
const { array: array2 } = options2;
|
1827
|
+
let { encoding } = options2;
|
1828
|
+
const isBuffer = encoding === "buffer";
|
1829
|
+
let objectMode = false;
|
1830
|
+
if (array2) {
|
1831
|
+
objectMode = !(encoding || isBuffer);
|
1832
|
+
} else {
|
1833
|
+
encoding = encoding || "utf8";
|
1834
|
+
}
|
1835
|
+
if (isBuffer) {
|
1836
|
+
encoding = null;
|
1837
|
+
}
|
1838
|
+
const stream2 = new PassThroughStream({ objectMode });
|
1839
|
+
if (encoding) {
|
1840
|
+
stream2.setEncoding(encoding);
|
1841
|
+
}
|
1842
|
+
let length = 0;
|
1843
|
+
const chunks = [];
|
1844
|
+
stream2.on("data", (chunk) => {
|
1845
|
+
chunks.push(chunk);
|
1846
|
+
if (objectMode) {
|
1847
|
+
length = chunks.length;
|
1848
|
+
} else {
|
1849
|
+
length += chunk.length;
|
1850
|
+
}
|
1851
|
+
});
|
1852
|
+
stream2.getBufferedValue = () => {
|
1853
|
+
if (array2) {
|
1854
|
+
return chunks;
|
1855
|
+
}
|
1856
|
+
return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
|
1857
|
+
};
|
1858
|
+
stream2.getBufferedLength = () => length;
|
1859
|
+
return stream2;
|
1860
|
+
};
|
1861
|
+
}
|
1862
|
+
});
|
1863
|
+
|
1864
|
+
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js
|
1865
|
+
var require_get_stream = __commonJS({
|
1866
|
+
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports2, module2) {
|
1867
|
+
"use strict";
|
1868
|
+
var { constants: BufferConstants } = require("buffer");
|
1869
|
+
var stream2 = require("stream");
|
1870
|
+
var { promisify } = require("util");
|
1871
|
+
var bufferStream = require_buffer_stream();
|
1872
|
+
var streamPipelinePromisified = promisify(stream2.pipeline);
|
1873
|
+
var MaxBufferError2 = class extends Error {
|
1874
|
+
constructor() {
|
1875
|
+
super("maxBuffer exceeded");
|
1876
|
+
this.name = "MaxBufferError";
|
1877
|
+
}
|
1878
|
+
};
|
1879
|
+
async function getStream(inputStream, options2) {
|
1880
|
+
if (!inputStream) {
|
1881
|
+
throw new Error("Expected a stream");
|
1882
|
+
}
|
1883
|
+
options2 = {
|
1884
|
+
maxBuffer: Infinity,
|
1885
|
+
...options2
|
1886
|
+
};
|
1887
|
+
const { maxBuffer } = options2;
|
1888
|
+
const stream3 = bufferStream(options2);
|
1889
|
+
await new Promise((resolve3, reject) => {
|
1890
|
+
const rejectPromise = (error) => {
|
1891
|
+
if (error && stream3.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
|
1892
|
+
error.bufferedData = stream3.getBufferedValue();
|
1893
|
+
}
|
1894
|
+
reject(error);
|
1895
|
+
};
|
1896
|
+
(async () => {
|
1897
|
+
try {
|
1898
|
+
await streamPipelinePromisified(inputStream, stream3);
|
1899
|
+
resolve3();
|
1900
|
+
} catch (error) {
|
1901
|
+
rejectPromise(error);
|
1902
|
+
}
|
1903
|
+
})();
|
1904
|
+
stream3.on("data", () => {
|
1905
|
+
if (stream3.getBufferedLength() > maxBuffer) {
|
1906
|
+
rejectPromise(new MaxBufferError2());
|
1907
|
+
}
|
1908
|
+
});
|
1909
|
+
});
|
1910
|
+
return stream3.getBufferedValue();
|
1911
|
+
}
|
1912
|
+
module2.exports = getStream;
|
1913
|
+
module2.exports.buffer = (stream3, options2) => getStream(stream3, { ...options2, encoding: "buffer" });
|
1914
|
+
module2.exports.array = (stream3, options2) => getStream(stream3, { ...options2, array: true });
|
1915
|
+
module2.exports.MaxBufferError = MaxBufferError2;
|
1916
|
+
}
|
1917
|
+
});
|
1918
|
+
|
1919
|
+
// ../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
|
1920
|
+
var require_merge_stream = __commonJS({
|
1921
|
+
"../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
|
1922
|
+
"use strict";
|
1923
|
+
var { PassThrough: PassThrough2 } = require("stream");
|
1924
|
+
module2.exports = function() {
|
1925
|
+
var sources = [];
|
1926
|
+
var output = new PassThrough2({ objectMode: true });
|
1927
|
+
output.setMaxListeners(0);
|
1928
|
+
output.add = add;
|
1929
|
+
output.isEmpty = isEmpty;
|
1930
|
+
output.on("unpipe", remove2);
|
1931
|
+
Array.prototype.slice.call(arguments).forEach(add);
|
1932
|
+
return output;
|
1933
|
+
function add(source) {
|
1934
|
+
if (Array.isArray(source)) {
|
1935
|
+
source.forEach(add);
|
1936
|
+
return this;
|
1937
|
+
}
|
1938
|
+
sources.push(source);
|
1939
|
+
source.once("end", remove2.bind(null, source));
|
1940
|
+
source.once("error", output.emit.bind(output, "error"));
|
1941
|
+
source.pipe(output, { end: false });
|
1942
|
+
return this;
|
1943
|
+
}
|
1944
|
+
function isEmpty() {
|
1945
|
+
return sources.length == 0;
|
1946
|
+
}
|
1947
|
+
function remove2(source) {
|
1948
|
+
sources = sources.filter(function(it) {
|
1949
|
+
return it !== source;
|
1950
|
+
});
|
1951
|
+
if (!sources.length && output.readable) {
|
1952
|
+
output.end();
|
1953
|
+
}
|
1954
|
+
}
|
1955
|
+
};
|
1956
|
+
}
|
1957
|
+
});
|
1958
|
+
|
1959
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js
|
1960
|
+
var require_stream = __commonJS({
|
1961
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports2, module2) {
|
1962
|
+
"use strict";
|
1963
|
+
var isStream2 = require_is_stream();
|
1964
|
+
var getStream = require_get_stream();
|
1965
|
+
var mergeStream2 = require_merge_stream();
|
1966
|
+
var handleInput2 = (spawned, input) => {
|
1967
|
+
if (input === void 0 || spawned.stdin === void 0) {
|
1968
|
+
return;
|
1969
|
+
}
|
1970
|
+
if (isStream2(input)) {
|
1971
|
+
input.pipe(spawned.stdin);
|
1972
|
+
} else {
|
1973
|
+
spawned.stdin.end(input);
|
1974
|
+
}
|
1975
|
+
};
|
1976
|
+
var makeAllStream2 = (spawned, { all }) => {
|
1977
|
+
if (!all || !spawned.stdout && !spawned.stderr) {
|
1978
|
+
return;
|
1979
|
+
}
|
1980
|
+
const mixed = mergeStream2();
|
1981
|
+
if (spawned.stdout) {
|
1982
|
+
mixed.add(spawned.stdout);
|
1983
|
+
}
|
1984
|
+
if (spawned.stderr) {
|
1985
|
+
mixed.add(spawned.stderr);
|
1986
|
+
}
|
1987
|
+
return mixed;
|
1988
|
+
};
|
1989
|
+
var getBufferedData2 = async (stream2, streamPromise) => {
|
1990
|
+
if (!stream2) {
|
1991
|
+
return;
|
1992
|
+
}
|
1993
|
+
stream2.destroy();
|
1994
|
+
try {
|
1995
|
+
return await streamPromise;
|
1996
|
+
} catch (error) {
|
1997
|
+
return error.bufferedData;
|
1998
|
+
}
|
1999
|
+
};
|
2000
|
+
var getStreamPromise2 = (stream2, { encoding, buffer, maxBuffer }) => {
|
2001
|
+
if (!stream2 || !buffer) {
|
2002
|
+
return;
|
2003
|
+
}
|
2004
|
+
if (encoding) {
|
2005
|
+
return getStream(stream2, { encoding, maxBuffer });
|
2006
|
+
}
|
2007
|
+
return getStream.buffer(stream2, { maxBuffer });
|
2008
|
+
};
|
2009
|
+
var getSpawnedResult2 = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
2010
|
+
const stdoutPromise = getStreamPromise2(stdout, { encoding, buffer, maxBuffer });
|
2011
|
+
const stderrPromise = getStreamPromise2(stderr, { encoding, buffer, maxBuffer });
|
2012
|
+
const allPromise = getStreamPromise2(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
2013
|
+
try {
|
2014
|
+
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
2015
|
+
} catch (error) {
|
2016
|
+
return Promise.all([
|
2017
|
+
{ error, signal: error.signal, timedOut: error.timedOut },
|
2018
|
+
getBufferedData2(stdout, stdoutPromise),
|
2019
|
+
getBufferedData2(stderr, stderrPromise),
|
2020
|
+
getBufferedData2(all, allPromise)
|
2021
|
+
]);
|
2022
|
+
}
|
2023
|
+
};
|
2024
|
+
var validateInputSync = ({ input }) => {
|
2025
|
+
if (isStream2(input)) {
|
2026
|
+
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
2027
|
+
}
|
2028
|
+
};
|
2029
|
+
module2.exports = {
|
2030
|
+
handleInput: handleInput2,
|
2031
|
+
makeAllStream: makeAllStream2,
|
2032
|
+
getSpawnedResult: getSpawnedResult2,
|
2033
|
+
validateInputSync
|
2034
|
+
};
|
2035
|
+
}
|
2036
|
+
});
|
2037
|
+
|
2038
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js
|
2039
|
+
var require_promise = __commonJS({
|
2040
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports2, module2) {
|
2041
|
+
"use strict";
|
2042
|
+
var nativePromisePrototype2 = (async () => {
|
2043
|
+
})().constructor.prototype;
|
2044
|
+
var descriptors2 = ["then", "catch", "finally"].map((property2) => [
|
2045
|
+
property2,
|
2046
|
+
Reflect.getOwnPropertyDescriptor(nativePromisePrototype2, property2)
|
2047
|
+
]);
|
2048
|
+
var mergePromise2 = (spawned, promise2) => {
|
2049
|
+
for (const [property2, descriptor] of descriptors2) {
|
2050
|
+
const value = typeof promise2 === "function" ? (...args) => Reflect.apply(descriptor.value, promise2(), args) : descriptor.value.bind(promise2);
|
2051
|
+
Reflect.defineProperty(spawned, property2, { ...descriptor, value });
|
2052
|
+
}
|
2053
|
+
return spawned;
|
2054
|
+
};
|
2055
|
+
var getSpawnedPromise2 = (spawned) => {
|
2056
|
+
return new Promise((resolve3, reject) => {
|
2057
|
+
spawned.on("exit", (exitCode, signal) => {
|
2058
|
+
resolve3({ exitCode, signal });
|
2059
|
+
});
|
2060
|
+
spawned.on("error", (error) => {
|
2061
|
+
reject(error);
|
2062
|
+
});
|
2063
|
+
if (spawned.stdin) {
|
2064
|
+
spawned.stdin.on("error", (error) => {
|
2065
|
+
reject(error);
|
2066
|
+
});
|
2067
|
+
}
|
2068
|
+
});
|
2069
|
+
};
|
2070
|
+
module2.exports = {
|
2071
|
+
mergePromise: mergePromise2,
|
2072
|
+
getSpawnedPromise: getSpawnedPromise2
|
2073
|
+
};
|
2074
|
+
}
|
2075
|
+
});
|
2076
|
+
|
2077
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js
|
2078
|
+
var require_command = __commonJS({
|
2079
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports2, module2) {
|
2080
|
+
"use strict";
|
2081
|
+
var normalizeArgs2 = (file2, args = []) => {
|
2082
|
+
if (!Array.isArray(args)) {
|
2083
|
+
return [file2];
|
2084
|
+
}
|
2085
|
+
return [file2, ...args];
|
2086
|
+
};
|
2087
|
+
var NO_ESCAPE_REGEXP2 = /^[\w.-]+$/;
|
2088
|
+
var DOUBLE_QUOTES_REGEXP = /"/g;
|
2089
|
+
var escapeArg2 = (arg) => {
|
2090
|
+
if (typeof arg !== "string" || NO_ESCAPE_REGEXP2.test(arg)) {
|
2091
|
+
return arg;
|
2092
|
+
}
|
2093
|
+
return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
|
2094
|
+
};
|
2095
|
+
var joinCommand2 = (file2, args) => {
|
2096
|
+
return normalizeArgs2(file2, args).join(" ");
|
2097
|
+
};
|
2098
|
+
var getEscapedCommand2 = (file2, args) => {
|
2099
|
+
return normalizeArgs2(file2, args).map((arg) => escapeArg2(arg)).join(" ");
|
2100
|
+
};
|
2101
|
+
var SPACES_REGEXP2 = / +/g;
|
2102
|
+
var parseCommand2 = (command) => {
|
2103
|
+
const tokens = [];
|
2104
|
+
for (const token of command.trim().split(SPACES_REGEXP2)) {
|
2105
|
+
const previousToken = tokens[tokens.length - 1];
|
2106
|
+
if (previousToken && previousToken.endsWith("\\")) {
|
2107
|
+
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
2108
|
+
} else {
|
2109
|
+
tokens.push(token);
|
2110
|
+
}
|
2111
|
+
}
|
2112
|
+
return tokens;
|
2113
|
+
};
|
2114
|
+
module2.exports = {
|
2115
|
+
joinCommand: joinCommand2,
|
2116
|
+
getEscapedCommand: getEscapedCommand2,
|
2117
|
+
parseCommand: parseCommand2
|
2118
|
+
};
|
2119
|
+
}
|
2120
|
+
});
|
2121
|
+
|
2122
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js
|
2123
|
+
var require_execa = __commonJS({
|
2124
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports2, module2) {
|
2125
|
+
"use strict";
|
2126
|
+
var path11 = require("path");
|
2127
|
+
var childProcess2 = require("child_process");
|
2128
|
+
var crossSpawn2 = require_cross_spawn();
|
2129
|
+
var stripFinalNewline2 = require_strip_final_newline();
|
2130
|
+
var npmRunPath2 = require_npm_run_path();
|
2131
|
+
var onetime2 = require_onetime();
|
2132
|
+
var makeError2 = require_error();
|
2133
|
+
var normalizeStdio2 = require_stdio();
|
2134
|
+
var { spawnedKill: spawnedKill2, spawnedCancel: spawnedCancel2, setupTimeout: setupTimeout2, validateTimeout: validateTimeout2, setExitHandler: setExitHandler2 } = require_kill();
|
2135
|
+
var { handleInput: handleInput2, getSpawnedResult: getSpawnedResult2, makeAllStream: makeAllStream2, validateInputSync } = require_stream();
|
2136
|
+
var { mergePromise: mergePromise2, getSpawnedPromise: getSpawnedPromise2 } = require_promise();
|
2137
|
+
var { joinCommand: joinCommand2, parseCommand: parseCommand2, getEscapedCommand: getEscapedCommand2 } = require_command();
|
2138
|
+
var DEFAULT_MAX_BUFFER2 = 1e3 * 1e3 * 100;
|
2139
|
+
var getEnv2 = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
2140
|
+
const env3 = extendEnv ? { ...process.env, ...envOption } : envOption;
|
2141
|
+
if (preferLocal) {
|
2142
|
+
return npmRunPath2.env({ env: env3, cwd: localDir, execPath });
|
2143
|
+
}
|
2144
|
+
return env3;
|
2145
|
+
};
|
2146
|
+
var handleArguments2 = (file2, args, options2 = {}) => {
|
2147
|
+
const parsed = crossSpawn2._parse(file2, args, options2);
|
2148
|
+
file2 = parsed.command;
|
2149
|
+
args = parsed.args;
|
2150
|
+
options2 = parsed.options;
|
2151
|
+
options2 = {
|
2152
|
+
maxBuffer: DEFAULT_MAX_BUFFER2,
|
2153
|
+
buffer: true,
|
2154
|
+
stripFinalNewline: true,
|
2155
|
+
extendEnv: true,
|
2156
|
+
preferLocal: false,
|
2157
|
+
localDir: options2.cwd || process.cwd(),
|
2158
|
+
execPath: process.execPath,
|
2159
|
+
encoding: "utf8",
|
2160
|
+
reject: true,
|
2161
|
+
cleanup: true,
|
2162
|
+
all: false,
|
2163
|
+
windowsHide: true,
|
2164
|
+
...options2
|
2165
|
+
};
|
2166
|
+
options2.env = getEnv2(options2);
|
2167
|
+
options2.stdio = normalizeStdio2(options2);
|
2168
|
+
if (process.platform === "win32" && path11.basename(file2, ".exe") === "cmd") {
|
2169
|
+
args.unshift("/q");
|
2170
|
+
}
|
2171
|
+
return { file: file2, args, options: options2, parsed };
|
2172
|
+
};
|
2173
|
+
var handleOutput2 = (options2, value, error) => {
|
2174
|
+
if (typeof value !== "string" && !Buffer.isBuffer(value)) {
|
2175
|
+
return error === void 0 ? void 0 : "";
|
2176
|
+
}
|
2177
|
+
if (options2.stripFinalNewline) {
|
2178
|
+
return stripFinalNewline2(value);
|
2179
|
+
}
|
2180
|
+
return value;
|
2181
|
+
};
|
2182
|
+
var execa3 = (file2, args, options2) => {
|
2183
|
+
const parsed = handleArguments2(file2, args, options2);
|
2184
|
+
const command = joinCommand2(file2, args);
|
2185
|
+
const escapedCommand = getEscapedCommand2(file2, args);
|
2186
|
+
validateTimeout2(parsed.options);
|
2187
|
+
let spawned;
|
2188
|
+
try {
|
2189
|
+
spawned = childProcess2.spawn(parsed.file, parsed.args, parsed.options);
|
2190
|
+
} catch (error) {
|
2191
|
+
const dummySpawned = new childProcess2.ChildProcess();
|
2192
|
+
const errorPromise = Promise.reject(makeError2({
|
2193
|
+
error,
|
2194
|
+
stdout: "",
|
2195
|
+
stderr: "",
|
2196
|
+
all: "",
|
2197
|
+
command,
|
2198
|
+
escapedCommand,
|
2199
|
+
parsed,
|
2200
|
+
timedOut: false,
|
2201
|
+
isCanceled: false,
|
2202
|
+
killed: false
|
2203
|
+
}));
|
2204
|
+
return mergePromise2(dummySpawned, errorPromise);
|
2205
|
+
}
|
2206
|
+
const spawnedPromise = getSpawnedPromise2(spawned);
|
2207
|
+
const timedPromise = setupTimeout2(spawned, parsed.options, spawnedPromise);
|
2208
|
+
const processDone = setExitHandler2(spawned, parsed.options, timedPromise);
|
2209
|
+
const context = { isCanceled: false };
|
2210
|
+
spawned.kill = spawnedKill2.bind(null, spawned.kill.bind(spawned));
|
2211
|
+
spawned.cancel = spawnedCancel2.bind(null, spawned, context);
|
2212
|
+
const handlePromise = async () => {
|
2213
|
+
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult2(spawned, parsed.options, processDone);
|
2214
|
+
const stdout = handleOutput2(parsed.options, stdoutResult);
|
2215
|
+
const stderr = handleOutput2(parsed.options, stderrResult);
|
2216
|
+
const all = handleOutput2(parsed.options, allResult);
|
2217
|
+
if (error || exitCode !== 0 || signal !== null) {
|
2218
|
+
const returnedError = makeError2({
|
2219
|
+
error,
|
2220
|
+
exitCode,
|
2221
|
+
signal,
|
2222
|
+
stdout,
|
2223
|
+
stderr,
|
2224
|
+
all,
|
2225
|
+
command,
|
2226
|
+
escapedCommand,
|
2227
|
+
parsed,
|
2228
|
+
timedOut,
|
2229
|
+
isCanceled: context.isCanceled,
|
2230
|
+
killed: spawned.killed
|
2231
|
+
});
|
2232
|
+
if (!parsed.options.reject) {
|
2233
|
+
return returnedError;
|
2234
|
+
}
|
2235
|
+
throw returnedError;
|
2236
|
+
}
|
2237
|
+
return {
|
2238
|
+
command,
|
2239
|
+
escapedCommand,
|
2240
|
+
exitCode: 0,
|
2241
|
+
stdout,
|
2242
|
+
stderr,
|
2243
|
+
all,
|
2244
|
+
failed: false,
|
2245
|
+
timedOut: false,
|
2246
|
+
isCanceled: false,
|
2247
|
+
killed: false
|
2248
|
+
};
|
2249
|
+
};
|
2250
|
+
const handlePromiseOnce = onetime2(handlePromise);
|
2251
|
+
handleInput2(spawned, parsed.options.input);
|
2252
|
+
spawned.all = makeAllStream2(spawned, parsed.options);
|
2253
|
+
return mergePromise2(spawned, handlePromiseOnce);
|
2254
|
+
};
|
2255
|
+
module2.exports = execa3;
|
2256
|
+
module2.exports.sync = (file2, args, options2) => {
|
2257
|
+
const parsed = handleArguments2(file2, args, options2);
|
2258
|
+
const command = joinCommand2(file2, args);
|
2259
|
+
const escapedCommand = getEscapedCommand2(file2, args);
|
2260
|
+
validateInputSync(parsed.options);
|
2261
|
+
let result;
|
2262
|
+
try {
|
2263
|
+
result = childProcess2.spawnSync(parsed.file, parsed.args, parsed.options);
|
2264
|
+
} catch (error) {
|
2265
|
+
throw makeError2({
|
2266
|
+
error,
|
2267
|
+
stdout: "",
|
2268
|
+
stderr: "",
|
2269
|
+
all: "",
|
2270
|
+
command,
|
2271
|
+
escapedCommand,
|
2272
|
+
parsed,
|
2273
|
+
timedOut: false,
|
2274
|
+
isCanceled: false,
|
2275
|
+
killed: false
|
2276
|
+
});
|
2277
|
+
}
|
2278
|
+
const stdout = handleOutput2(parsed.options, result.stdout, result.error);
|
2279
|
+
const stderr = handleOutput2(parsed.options, result.stderr, result.error);
|
2280
|
+
if (result.error || result.status !== 0 || result.signal !== null) {
|
2281
|
+
const error = makeError2({
|
2282
|
+
stdout,
|
2283
|
+
stderr,
|
2284
|
+
error: result.error,
|
2285
|
+
signal: result.signal,
|
2286
|
+
exitCode: result.status,
|
2287
|
+
command,
|
2288
|
+
escapedCommand,
|
2289
|
+
parsed,
|
2290
|
+
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
2291
|
+
isCanceled: false,
|
2292
|
+
killed: result.signal !== null
|
2293
|
+
});
|
2294
|
+
if (!parsed.options.reject) {
|
2295
|
+
return error;
|
2296
|
+
}
|
2297
|
+
throw error;
|
2298
|
+
}
|
2299
|
+
return {
|
2300
|
+
command,
|
2301
|
+
escapedCommand,
|
2302
|
+
exitCode: 0,
|
2303
|
+
stdout,
|
2304
|
+
stderr,
|
2305
|
+
failed: false,
|
2306
|
+
timedOut: false,
|
2307
|
+
isCanceled: false,
|
2308
|
+
killed: false
|
2309
|
+
};
|
2310
|
+
};
|
2311
|
+
module2.exports.command = (command, options2) => {
|
2312
|
+
const [file2, ...args] = parseCommand2(command);
|
2313
|
+
return execa3(file2, args, options2);
|
2314
|
+
};
|
2315
|
+
module2.exports.commandSync = (command, options2) => {
|
2316
|
+
const [file2, ...args] = parseCommand2(command);
|
2317
|
+
return execa3.sync(file2, args, options2);
|
2318
|
+
};
|
2319
|
+
module2.exports.node = (scriptPath, args, options2 = {}) => {
|
2320
|
+
if (args && !Array.isArray(args) && typeof args === "object") {
|
2321
|
+
options2 = args;
|
2322
|
+
args = [];
|
2323
|
+
}
|
2324
|
+
const stdio = normalizeStdio2.node(options2);
|
2325
|
+
const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
2326
|
+
const {
|
2327
|
+
nodePath = process.execPath,
|
2328
|
+
nodeOptions = defaultExecArgv
|
2329
|
+
} = options2;
|
2330
|
+
return execa3(
|
2331
|
+
nodePath,
|
2332
|
+
[
|
2333
|
+
...nodeOptions,
|
2334
|
+
scriptPath,
|
2335
|
+
...Array.isArray(args) ? args : []
|
2336
|
+
],
|
2337
|
+
{
|
2338
|
+
...options2,
|
2339
|
+
stdin: void 0,
|
2340
|
+
stdout: void 0,
|
2341
|
+
stderr: void 0,
|
2342
|
+
stdio,
|
2343
|
+
shell: false
|
2344
|
+
}
|
2345
|
+
);
|
2346
|
+
};
|
2347
|
+
}
|
2348
|
+
});
|
2349
|
+
|
388
2350
|
// ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
389
2351
|
var require_universalify = __commonJS({
|
390
2352
|
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports2) {
|
@@ -2553,18 +4515,18 @@ var require_common_path_prefix = __commonJS({
|
|
2553
4515
|
}
|
2554
4516
|
});
|
2555
4517
|
|
2556
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.6.0-
|
4518
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75/node_modules/@prisma/engines-version/package.json
|
2557
4519
|
var require_package = __commonJS({
|
2558
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.6.0-
|
4520
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
2559
4521
|
module2.exports = {
|
2560
4522
|
name: "@prisma/engines-version",
|
2561
|
-
version: "6.6.0-
|
4523
|
+
version: "6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75",
|
2562
4524
|
main: "index.js",
|
2563
4525
|
types: "index.d.ts",
|
2564
4526
|
license: "Apache-2.0",
|
2565
4527
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
2566
4528
|
prisma: {
|
2567
|
-
enginesVersion: "
|
4529
|
+
enginesVersion: "b44a0316a6417eddf2f94758d84556d063136b75"
|
2568
4530
|
},
|
2569
4531
|
repository: {
|
2570
4532
|
type: "git",
|
@@ -2586,9 +4548,9 @@ var require_package = __commonJS({
|
|
2586
4548
|
}
|
2587
4549
|
});
|
2588
4550
|
|
2589
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.6.0-
|
4551
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75/node_modules/@prisma/engines-version/index.js
|
2590
4552
|
var require_engines_version = __commonJS({
|
2591
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.6.0-
|
4553
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75/node_modules/@prisma/engines-version/index.js"(exports2) {
|
2592
4554
|
"use strict";
|
2593
4555
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
2594
4556
|
exports2.enginesVersion = void 0;
|
@@ -2878,7 +4840,7 @@ var require_hasown = __commonJS({
|
|
2878
4840
|
});
|
2879
4841
|
|
2880
4842
|
// ../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json
|
2881
|
-
var
|
4843
|
+
var require_core2 = __commonJS({
|
2882
4844
|
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports2, module2) {
|
2883
4845
|
module2.exports = {
|
2884
4846
|
assert: true,
|
@@ -3101,7 +5063,7 @@ var require_is_core_module = __commonJS({
|
|
3101
5063
|
}
|
3102
5064
|
return matchesRange(current, specifierValue);
|
3103
5065
|
}
|
3104
|
-
var data =
|
5066
|
+
var data = require_core2();
|
3105
5067
|
module2.exports = function isCore(x2, nodeVersion) {
|
3106
5068
|
return hasOwn(data, x2) && versionIncluded(nodeVersion, data[x2]);
|
3107
5069
|
};
|
@@ -3405,7 +5367,7 @@ var require_async = __commonJS({
|
|
3405
5367
|
});
|
3406
5368
|
|
3407
5369
|
// ../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json
|
3408
|
-
var
|
5370
|
+
var require_core3 = __commonJS({
|
3409
5371
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(exports2, module2) {
|
3410
5372
|
module2.exports = {
|
3411
5373
|
assert: true,
|
@@ -3573,11 +5535,11 @@ var require_core2 = __commonJS({
|
|
3573
5535
|
});
|
3574
5536
|
|
3575
5537
|
// ../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js
|
3576
|
-
var
|
5538
|
+
var require_core4 = __commonJS({
|
3577
5539
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(exports2, module2) {
|
3578
5540
|
"use strict";
|
3579
5541
|
var isCoreModule = require_is_core_module();
|
3580
|
-
var data =
|
5542
|
+
var data = require_core3();
|
3581
5543
|
var core2 = {};
|
3582
5544
|
for (mod in data) {
|
3583
5545
|
if (Object.prototype.hasOwnProperty.call(data, mod)) {
|
@@ -3799,7 +5761,7 @@ var require_resolve = __commonJS({
|
|
3799
5761
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(exports2, module2) {
|
3800
5762
|
"use strict";
|
3801
5763
|
var async = require_async();
|
3802
|
-
async.core =
|
5764
|
+
async.core = require_core4();
|
3803
5765
|
async.isCore = require_is_core();
|
3804
5766
|
async.sync = require_sync();
|
3805
5767
|
module2.exports = async;
|
@@ -5515,6 +7477,34 @@ function pathToPosix(filePath) {
|
|
5515
7477
|
}
|
5516
7478
|
return filePath.split(import_path2.default.sep).join(import_path2.default.posix.sep);
|
5517
7479
|
}
|
7480
|
+
function longestCommonPathPrefix(pathA, pathB) {
|
7481
|
+
if (!import_path2.default.isAbsolute(pathA) || !import_path2.default.isAbsolute(pathB)) {
|
7482
|
+
throw new Error("longestCommonPathPrefix expects absolute paths");
|
7483
|
+
}
|
7484
|
+
if (process.platform === "win32" && (pathA.startsWith("\\\\") || pathB.startsWith("\\\\"))) {
|
7485
|
+
pathA = import_path2.default.toNamespacedPath(pathA);
|
7486
|
+
pathB = import_path2.default.toNamespacedPath(pathB);
|
7487
|
+
}
|
7488
|
+
const commonPrefix = longestCommonPrefix(pathA.split(import_path2.default.sep), pathB.split(import_path2.default.sep)).join(import_path2.default.sep);
|
7489
|
+
if (commonPrefix === "") {
|
7490
|
+
return process.platform === "win32" ? void 0 : "/";
|
7491
|
+
}
|
7492
|
+
if (process.platform === "win32" && ["\\", "\\\\?", "\\\\."].includes(commonPrefix)) {
|
7493
|
+
return void 0;
|
7494
|
+
}
|
7495
|
+
if (process.platform === "win32" && commonPrefix.endsWith(":")) {
|
7496
|
+
return commonPrefix + "\\";
|
7497
|
+
}
|
7498
|
+
return commonPrefix;
|
7499
|
+
}
|
7500
|
+
function longestCommonPrefix(sequenceA, sequenceB) {
|
7501
|
+
const maxLen = Math.min(sequenceA.length, sequenceB.length);
|
7502
|
+
let sliceLen = 0;
|
7503
|
+
while (sliceLen <= maxLen && sequenceA[sliceLen] === sequenceB[sliceLen]) {
|
7504
|
+
sliceLen++;
|
7505
|
+
}
|
7506
|
+
return sequenceA.slice(0, sliceLen);
|
7507
|
+
}
|
5518
7508
|
|
5519
7509
|
// ../internals/src/utils/hasOwnProperty.ts
|
5520
7510
|
function hasOwnProperty(object, key) {
|
@@ -5547,7 +7537,7 @@ var import_pkg_up = __toESM(require_pkg_up());
|
|
5547
7537
|
// package.json
|
5548
7538
|
var package_default = {
|
5549
7539
|
name: "@prisma/client",
|
5550
|
-
version: "6.6.0-integration-
|
7540
|
+
version: "6.6.0-integration-push-yrztmmmwtryl.1",
|
5551
7541
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
5552
7542
|
keywords: [
|
5553
7543
|
"ORM",
|
@@ -5779,7 +7769,7 @@ var package_default = {
|
|
5779
7769
|
"@prisma/dmmf": "workspace:*",
|
5780
7770
|
"@prisma/driver-adapter-utils": "workspace:*",
|
5781
7771
|
"@prisma/engines": "workspace:*",
|
5782
|
-
"@prisma/engines-version": "6.6.0-
|
7772
|
+
"@prisma/engines-version": "6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75",
|
5783
7773
|
"@prisma/fetch-engine": "workspace:*",
|
5784
7774
|
"@prisma/generator": "workspace:*",
|
5785
7775
|
"@prisma/generator-helper": "workspace:*",
|
@@ -5789,8 +7779,8 @@ var package_default = {
|
|
5789
7779
|
"@prisma/migrate": "workspace:*",
|
5790
7780
|
"@prisma/mini-proxy": "0.9.5",
|
5791
7781
|
"@prisma/pg-worker": "workspace:*",
|
5792
|
-
"@prisma/query-compiler-wasm": "6.6.0-
|
5793
|
-
"@prisma/query-engine-wasm": "6.6.0-
|
7782
|
+
"@prisma/query-compiler-wasm": "6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75",
|
7783
|
+
"@prisma/query-engine-wasm": "6.6.0-50.b44a0316a6417eddf2f94758d84556d063136b75",
|
5794
7784
|
"@prisma/ts-builders": "workspace:*",
|
5795
7785
|
"@snaplet/copycat": "6.0.0",
|
5796
7786
|
"@swc-node/register": "1.10.9",
|
@@ -11517,7 +13507,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
11517
13507
|
var import_engines_version = __toESM(require_engines_version());
|
11518
13508
|
|
11519
13509
|
// ../client-generator-js/package.json
|
11520
|
-
var version = "6.6.0-integration-
|
13510
|
+
var version = "6.6.0-integration-push-yrztmmmwtryl.1";
|
11521
13511
|
|
11522
13512
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
11523
13513
|
var import_promises4 = __toESM(require("node:fs/promises"));
|
@@ -16440,6 +18430,7 @@ function init2(open, close) {
|
|
16440
18430
|
}
|
16441
18431
|
|
16442
18432
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
18433
|
+
var import_execa = __toESM(require_execa());
|
16443
18434
|
var debug3 = Debug("prisma:generator");
|
16444
18435
|
async function resolvePrismaClient(baseDir) {
|
16445
18436
|
const prismaClientDir = await findPrismaClientDir(baseDir);
|
@@ -16454,6 +18445,73 @@ Please try to install it with ${bold(
|
|
16454
18445
|
}
|
16455
18446
|
return prismaClientDir;
|
16456
18447
|
}
|
18448
|
+
async function resolveOrInstallPrismaClient(baseDir, version2) {
|
18449
|
+
let prismaClientDir = await findPrismaClientDir(baseDir);
|
18450
|
+
debug3("baseDir", baseDir);
|
18451
|
+
if (prismaClientDir) {
|
18452
|
+
return prismaClientDir;
|
18453
|
+
}
|
18454
|
+
let projectRoot = longestCommonPathPrefix(baseDir, process.cwd());
|
18455
|
+
debug3("projectRoot", projectRoot);
|
18456
|
+
const warningTag = `${bold("Warning:")} ${dim("[Prisma auto-install on generate]")}`;
|
18457
|
+
if (projectRoot === void 0) {
|
18458
|
+
console.warn(
|
18459
|
+
yellow(
|
18460
|
+
`${warningTag} The Prisma schema directory ${bold(baseDir)} and the current working directory ${bold(
|
18461
|
+
process.cwd()
|
18462
|
+
)} have no common ancestor. The Prisma schema directory will be used as the project root.`
|
18463
|
+
)
|
18464
|
+
);
|
18465
|
+
projectRoot = baseDir;
|
18466
|
+
}
|
18467
|
+
try {
|
18468
|
+
await import_promises4.default.stat(import_node_path2.default.join(projectRoot, "package.json"));
|
18469
|
+
} catch (err) {
|
18470
|
+
if (err.code === "ENOENT") {
|
18471
|
+
console.warn(
|
18472
|
+
yellow(
|
18473
|
+
`${warningTag} Prisma could not find a ${bold("package.json")} file in the inferred project root ${bold(
|
18474
|
+
projectRoot
|
18475
|
+
)}. During the next step, when an auto-install of Prisma package(s) will be attempted, it will then be created by your package manager on the appropriate level if necessary.`
|
18476
|
+
)
|
18477
|
+
);
|
18478
|
+
} else {
|
18479
|
+
throw err;
|
18480
|
+
}
|
18481
|
+
}
|
18482
|
+
const prismaCliDir = await resolvePkg("prisma", { basedir: baseDir });
|
18483
|
+
if (process.platform === "win32" && await isYarnUsed(baseDir)) {
|
18484
|
+
const hasCli = (s2) => prismaCliDir !== void 0 ? s2 : "";
|
18485
|
+
const missingCli = (s2) => prismaCliDir === void 0 ? s2 : "";
|
18486
|
+
throw new Error(
|
18487
|
+
`Could not resolve ${missingCli(`${bold("prisma")} and `)}${bold(
|
18488
|
+
"@prisma/client"
|
18489
|
+
)} in the current project. Please install ${hasCli("it")}${missingCli("them")} with ${missingCli(
|
18490
|
+
`${bold(green(`${await getPackageCmd(baseDir, "add", "prisma", "-D")}`))} and `
|
18491
|
+
)}${bold(green(`${await getPackageCmd(baseDir, "add", "@prisma/client")}`))}, and rerun ${bold(
|
18492
|
+
await getPackageCmd(baseDir, "execute", "prisma generate")
|
18493
|
+
)} \u{1F64F}.`
|
18494
|
+
);
|
18495
|
+
}
|
18496
|
+
if (!prismaCliDir) {
|
18497
|
+
await runPackageCmd(projectRoot, "add", `prisma@${version2}`, "-D", "--silent");
|
18498
|
+
}
|
18499
|
+
await runPackageCmd(projectRoot, "add", `@prisma/client@${version2}`, "--silent");
|
18500
|
+
prismaClientDir = await findPrismaClientDir(import_node_path2.default.join(".", baseDir));
|
18501
|
+
if (!prismaClientDir) {
|
18502
|
+
throw new Error(
|
18503
|
+
`Could not resolve @prisma/client despite the installation that we just tried.
|
18504
|
+
Please try to install it by hand with ${bold(
|
18505
|
+
green(`${await getPackageCmd(baseDir, "add", "@prisma/client")}`)
|
18506
|
+
)} and rerun ${bold(await getPackageCmd(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
|
18507
|
+
);
|
18508
|
+
}
|
18509
|
+
console.info(
|
18510
|
+
`
|
18511
|
+
\u2714 Installed the ${bold(green("@prisma/client"))} and ${bold(green("prisma"))} packages in your project`
|
18512
|
+
);
|
18513
|
+
return prismaClientDir;
|
18514
|
+
}
|
16457
18515
|
async function findPrismaClientDir(baseDir) {
|
16458
18516
|
const resolveOpts = { basedir: baseDir, preserveSymlinks: true };
|
16459
18517
|
const cliDir = await resolvePkg("prisma", resolveOpts);
|
@@ -16468,20 +18526,38 @@ async function findPrismaClientDir(baseDir) {
|
|
16468
18526
|
return resolvedClientDir;
|
16469
18527
|
}
|
16470
18528
|
async function getPackageCmd(cwd2, cmd, ...args) {
|
16471
|
-
const agent = await detect({
|
18529
|
+
const agent = await detect({ cwd: cwd2, autoInstall: false, programmatic: true });
|
16472
18530
|
return getCommand(agent ?? "npm", cmd, args);
|
16473
18531
|
}
|
18532
|
+
async function isYarnUsed(baseDir) {
|
18533
|
+
const agent = await detect({ cwd: baseDir, autoInstall: false, programmatic: true });
|
18534
|
+
return agent === "yarn" || agent === "yarn@berry";
|
18535
|
+
}
|
18536
|
+
async function runPackageCmd(cwd2, cmd, ...args) {
|
18537
|
+
await import_execa.default.command(await getPackageCmd(cwd2, cmd, ...args), {
|
18538
|
+
// we skip this because we are already in the generator
|
18539
|
+
env: { PRISMA_SKIP_POSTINSTALL_GENERATE: "true" },
|
18540
|
+
stdio: "inherit",
|
18541
|
+
cwd: cwd2
|
18542
|
+
});
|
18543
|
+
}
|
16474
18544
|
|
16475
18545
|
// ../client-generator-js/src/generator.ts
|
16476
18546
|
var debug4 = Debug("prisma:client:generator");
|
16477
18547
|
var MISSING_CUSTOM_OUTPUT_PATH_WARNING = `${yellow("Warning:")} You did not specify an output path for your \`generator\` in schema.prisma. This behavior is deprecated and will no longer be supported in Prisma 7.0.0. To learn more visit https://pris.ly/cli/output-path`;
|
16478
18548
|
var PrismaClientJsGenerator = class {
|
16479
18549
|
name = "prisma-client-js";
|
16480
|
-
#shouldResolvePrismaClient
|
18550
|
+
#shouldResolvePrismaClient;
|
18551
|
+
#shouldInstallMissingPackages;
|
16481
18552
|
#runtimePath;
|
16482
18553
|
#cachedPrismaClientPath;
|
16483
|
-
constructor({
|
18554
|
+
constructor({
|
18555
|
+
shouldResolvePrismaClient = true,
|
18556
|
+
shouldInstallMissingPackages = true,
|
18557
|
+
runtimePath
|
18558
|
+
} = {}) {
|
16484
18559
|
this.#shouldResolvePrismaClient = shouldResolvePrismaClient;
|
18560
|
+
this.#shouldInstallMissingPackages = shouldInstallMissingPackages;
|
16485
18561
|
this.#runtimePath = runtimePath;
|
16486
18562
|
}
|
16487
18563
|
async getManifest(config) {
|
@@ -16525,7 +18601,7 @@ var PrismaClientJsGenerator = class {
|
|
16525
18601
|
if (this.#cachedPrismaClientPath) {
|
16526
18602
|
return this.#cachedPrismaClientPath;
|
16527
18603
|
}
|
16528
|
-
this.#cachedPrismaClientPath = await
|
18604
|
+
this.#cachedPrismaClientPath = await this.#resolveOrInstallPrismaClient(import_node_path3.default.dirname(config.sourceFilePath));
|
16529
18605
|
return this.#cachedPrismaClientPath;
|
16530
18606
|
}
|
16531
18607
|
async #getRuntimePath(config) {
|
@@ -16535,6 +18611,13 @@ var PrismaClientJsGenerator = class {
|
|
16535
18611
|
this.#runtimePath = import_node_path3.default.join(await this.#getPrismaClientPath(config), "runtime");
|
16536
18612
|
return this.#runtimePath;
|
16537
18613
|
}
|
18614
|
+
async #resolveOrInstallPrismaClient(baseDir) {
|
18615
|
+
if (this.#shouldInstallMissingPackages && !process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL) {
|
18616
|
+
return await resolveOrInstallPrismaClient(baseDir, version);
|
18617
|
+
} else {
|
18618
|
+
return await resolvePrismaClient(baseDir);
|
18619
|
+
}
|
18620
|
+
}
|
16538
18621
|
};
|
16539
18622
|
|
16540
18623
|
// ../client-generator-js/src/utils/types/dmmfToTypes.ts
|