@prisma/fetch-engine 7.2.0 → 7.3.0-integration-prisma6-fix-cloudflare-engine.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.
@@ -26,17 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_CTLNI6CP_exports = {};
30
- __export(chunk_CTLNI6CP_exports, {
29
+ var chunk_VAPNG6TS_exports = {};
30
+ __export(chunk_VAPNG6TS_exports, {
31
31
  getProxyAgent: () => getProxyAgent
32
32
  });
33
- module.exports = __toCommonJS(chunk_CTLNI6CP_exports);
34
- var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
35
- var import_node_process = __toESM(require("node:process"));
36
- var import_node_os = __toESM(require("node:os"));
37
- var import_node_tty = __toESM(require("node:tty"));
33
+ module.exports = __toCommonJS(chunk_VAPNG6TS_exports);
34
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
38
35
  var import_debug = __toESM(require("@prisma/debug"));
39
- var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
36
+ var require_ms = (0, import_chunk_QGM4M3NI.__commonJS)({
40
37
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
41
38
  "use strict";
42
39
  var s = 1e3;
@@ -151,10 +148,10 @@ var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
151
148
  }
152
149
  }
153
150
  });
154
- var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
155
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js"(exports, module2) {
151
+ var require_common = (0, import_chunk_QGM4M3NI.__commonJS)({
152
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
156
153
  "use strict";
157
- function setup(env2) {
154
+ function setup(env) {
158
155
  createDebug.debug = createDebug;
159
156
  createDebug.default = createDebug;
160
157
  createDebug.coerce = coerce;
@@ -163,8 +160,8 @@ var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
163
160
  createDebug.enabled = enabled;
164
161
  createDebug.humanize = require_ms();
165
162
  createDebug.destroy = destroy;
166
- Object.keys(env2).forEach((key) => {
167
- createDebug[key] = env2[key];
163
+ Object.keys(env).forEach((key) => {
164
+ createDebug[key] = env[key];
168
165
  });
169
166
  createDebug.names = [];
170
167
  createDebug.skips = [];
@@ -327,8 +324,8 @@ var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
327
324
  module2.exports = setup;
328
325
  }
329
326
  });
330
- var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
331
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports, module2) {
327
+ var require_browser = (0, import_chunk_QGM4M3NI.__commonJS)({
328
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
332
329
  "use strict";
333
330
  exports.formatArgs = formatArgs;
334
331
  exports.save = save;
@@ -496,156 +493,134 @@ var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
496
493
  };
497
494
  }
498
495
  });
499
- var supports_color_exports = {};
500
- (0, import_chunk_2ESYSVXG.__export)(supports_color_exports, {
501
- createSupportsColor: () => createSupportsColor,
502
- default: () => supports_color_default
503
- });
504
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
505
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
506
- const position = argv.indexOf(prefix + flag);
507
- const terminatorPosition = argv.indexOf("--");
508
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
509
- }
510
- function envForceColor() {
511
- if (!("FORCE_COLOR" in env)) {
512
- return;
513
- }
514
- if (env.FORCE_COLOR === "true") {
515
- return 1;
516
- }
517
- if (env.FORCE_COLOR === "false") {
518
- return 0;
519
- }
520
- if (env.FORCE_COLOR.length === 0) {
521
- return 1;
522
- }
523
- const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
524
- if (![0, 1, 2, 3].includes(level)) {
525
- return;
526
- }
527
- return level;
528
- }
529
- function translateLevel(level) {
530
- if (level === 0) {
531
- return false;
532
- }
533
- return {
534
- level,
535
- hasBasic: true,
536
- has256: level >= 2,
537
- has16m: level >= 3
538
- };
539
- }
540
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
541
- const noFlagForceColor = envForceColor();
542
- if (noFlagForceColor !== void 0) {
543
- flagForceColor = noFlagForceColor;
544
- }
545
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
546
- if (forceColor === 0) {
547
- return 0;
548
- }
549
- if (sniffFlags) {
550
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
551
- return 3;
552
- }
553
- if (hasFlag("color=256")) {
554
- return 2;
555
- }
556
- }
557
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
558
- return 1;
559
- }
560
- if (haveStream && !streamIsTTY && forceColor === void 0) {
561
- return 0;
562
- }
563
- const min = forceColor || 0;
564
- if (env.TERM === "dumb") {
565
- return min;
496
+ var require_has_flag = (0, import_chunk_QGM4M3NI.__commonJS)({
497
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
498
+ "use strict";
499
+ module2.exports = (flag, argv = process.argv) => {
500
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
501
+ const position = argv.indexOf(prefix + flag);
502
+ const terminatorPosition = argv.indexOf("--");
503
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
504
+ };
566
505
  }
567
- if (import_node_process.default.platform === "win32") {
568
- const osRelease = import_node_os.default.release().split(".");
569
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
570
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
506
+ });
507
+ var require_supports_color = (0, import_chunk_QGM4M3NI.__commonJS)({
508
+ "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
509
+ "use strict";
510
+ var os = (0, import_chunk_QGM4M3NI.__require)("os");
511
+ var tty = (0, import_chunk_QGM4M3NI.__require)("tty");
512
+ var hasFlag = require_has_flag();
513
+ var { env } = process;
514
+ var flagForceColor;
515
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
516
+ flagForceColor = 0;
517
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
518
+ flagForceColor = 1;
571
519
  }
572
- return 1;
573
- }
574
- if ("CI" in env) {
575
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
576
- return 3;
520
+ function envForceColor() {
521
+ if ("FORCE_COLOR" in env) {
522
+ if (env.FORCE_COLOR === "true") {
523
+ return 1;
524
+ }
525
+ if (env.FORCE_COLOR === "false") {
526
+ return 0;
527
+ }
528
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
529
+ }
577
530
  }
578
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
579
- return 1;
531
+ function translateLevel(level) {
532
+ if (level === 0) {
533
+ return false;
534
+ }
535
+ return {
536
+ level,
537
+ hasBasic: true,
538
+ has256: level >= 2,
539
+ has16m: level >= 3
540
+ };
580
541
  }
581
- return min;
582
- }
583
- if ("TEAMCITY_VERSION" in env) {
584
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
585
- }
586
- if (env.COLORTERM === "truecolor") {
587
- return 3;
588
- }
589
- if (env.TERM === "xterm-kitty") {
590
- return 3;
591
- }
592
- if (env.TERM === "xterm-ghostty") {
593
- return 3;
594
- }
595
- if (env.TERM === "wezterm") {
596
- return 3;
597
- }
598
- if ("TERM_PROGRAM" in env) {
599
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
600
- switch (env.TERM_PROGRAM) {
601
- case "iTerm.app": {
602
- return version >= 3 ? 3 : 2;
542
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
543
+ const noFlagForceColor = envForceColor();
544
+ if (noFlagForceColor !== void 0) {
545
+ flagForceColor = noFlagForceColor;
546
+ }
547
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
548
+ if (forceColor === 0) {
549
+ return 0;
550
+ }
551
+ if (sniffFlags) {
552
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
553
+ return 3;
554
+ }
555
+ if (hasFlag("color=256")) {
556
+ return 2;
557
+ }
558
+ }
559
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
560
+ return 0;
561
+ }
562
+ const min = forceColor || 0;
563
+ if (env.TERM === "dumb") {
564
+ return min;
565
+ }
566
+ if (process.platform === "win32") {
567
+ const osRelease = os.release().split(".");
568
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
569
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
570
+ }
571
+ return 1;
572
+ }
573
+ if ("CI" in env) {
574
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
575
+ return 1;
576
+ }
577
+ return min;
578
+ }
579
+ if ("TEAMCITY_VERSION" in env) {
580
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
581
+ }
582
+ if (env.COLORTERM === "truecolor") {
583
+ return 3;
584
+ }
585
+ if ("TERM_PROGRAM" in env) {
586
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
587
+ switch (env.TERM_PROGRAM) {
588
+ case "iTerm.app":
589
+ return version >= 3 ? 3 : 2;
590
+ case "Apple_Terminal":
591
+ return 2;
592
+ }
603
593
  }
604
- case "Apple_Terminal": {
594
+ if (/-256(color)?$/i.test(env.TERM)) {
605
595
  return 2;
606
596
  }
597
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
598
+ return 1;
599
+ }
600
+ if ("COLORTERM" in env) {
601
+ return 1;
602
+ }
603
+ return min;
607
604
  }
608
- }
609
- if (/-256(color)?$/i.test(env.TERM)) {
610
- return 2;
611
- }
612
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
613
- return 1;
614
- }
615
- if ("COLORTERM" in env) {
616
- return 1;
617
- }
618
- return min;
619
- }
620
- function createSupportsColor(stream, options = {}) {
621
- const level = _supportsColor(stream, {
622
- streamIsTTY: stream && stream.isTTY,
623
- ...options
624
- });
625
- return translateLevel(level);
626
- }
627
- var env, flagForceColor, supportsColor, supports_color_default;
628
- var init_supports_color = (0, import_chunk_2ESYSVXG.__esm)({
629
- "../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
630
- "use strict";
631
- ({ env } = import_node_process.default);
632
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
633
- flagForceColor = 0;
634
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
635
- flagForceColor = 1;
605
+ function getSupportLevel(stream, options = {}) {
606
+ const level = supportsColor(stream, {
607
+ streamIsTTY: stream && stream.isTTY,
608
+ ...options
609
+ });
610
+ return translateLevel(level);
636
611
  }
637
- supportsColor = {
638
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
639
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
612
+ module2.exports = {
613
+ supportsColor: getSupportLevel,
614
+ stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
615
+ stderr: getSupportLevel({ isTTY: tty.isatty(2) })
640
616
  };
641
- supports_color_default = supportsColor;
642
617
  }
643
618
  });
644
- var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
645
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js"(exports, module2) {
619
+ var require_node = (0, import_chunk_QGM4M3NI.__commonJS)({
620
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
646
621
  "use strict";
647
- var tty2 = (0, import_chunk_2ESYSVXG.__require)("tty");
648
- var util = (0, import_chunk_2ESYSVXG.__require)("util");
622
+ var tty = (0, import_chunk_QGM4M3NI.__require)("tty");
623
+ var util = (0, import_chunk_QGM4M3NI.__require)("util");
649
624
  exports.init = init;
650
625
  exports.log = log;
651
626
  exports.formatArgs = formatArgs;
@@ -659,8 +634,8 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
659
634
  );
660
635
  exports.colors = [6, 2, 3, 4, 5, 1];
661
636
  try {
662
- const supportsColor2 = (init_supports_color(), (0, import_chunk_2ESYSVXG.__toCommonJS)(supports_color_exports));
663
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
637
+ const supportsColor = require_supports_color();
638
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
664
639
  exports.colors = [
665
640
  20,
666
641
  21,
@@ -762,7 +737,7 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
762
737
  return obj;
763
738
  }, {});
764
739
  function useColors() {
765
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
740
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
766
741
  }
767
742
  function formatArgs(args) {
768
743
  const { namespace: name, useColors: useColors2 } = this;
@@ -814,8 +789,8 @@ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
814
789
  };
815
790
  }
816
791
  });
817
- var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
818
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports, module2) {
792
+ var require_src = (0, import_chunk_QGM4M3NI.__commonJS)({
793
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
819
794
  "use strict";
820
795
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
821
796
  module2.exports = require_browser();
@@ -824,7 +799,7 @@ var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
824
799
  }
825
800
  }
826
801
  });
827
- var require_helpers = (0, import_chunk_2ESYSVXG.__commonJS)({
802
+ var require_helpers = (0, import_chunk_QGM4M3NI.__commonJS)({
828
803
  "../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/helpers.js"(exports) {
829
804
  "use strict";
830
805
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -856,8 +831,8 @@ var require_helpers = (0, import_chunk_2ESYSVXG.__commonJS)({
856
831
  };
857
832
  Object.defineProperty(exports, "__esModule", { value: true });
858
833
  exports.req = exports.json = exports.toBuffer = void 0;
859
- var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
860
- var https = __importStar((0, import_chunk_2ESYSVXG.__require)("https"));
834
+ var http = __importStar((0, import_chunk_QGM4M3NI.__require)("http"));
835
+ var https = __importStar((0, import_chunk_QGM4M3NI.__require)("https"));
861
836
  async function toBuffer(stream) {
862
837
  let length = 0;
863
838
  const chunks = [];
@@ -892,7 +867,7 @@ var require_helpers = (0, import_chunk_2ESYSVXG.__commonJS)({
892
867
  exports.req = req;
893
868
  }
894
869
  });
895
- var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
870
+ var require_dist = (0, import_chunk_QGM4M3NI.__commonJS)({
896
871
  "../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/index.js"(exports) {
897
872
  "use strict";
898
873
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -927,7 +902,7 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
927
902
  };
928
903
  Object.defineProperty(exports, "__esModule", { value: true });
929
904
  exports.Agent = void 0;
930
- var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
905
+ var http = __importStar((0, import_chunk_QGM4M3NI.__require)("http"));
931
906
  __exportStar(require_helpers(), exports);
932
907
  var INTERNAL = Symbol("AgentBaseInternalState");
933
908
  var Agent = class extends http.Agent {
@@ -993,7 +968,7 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
993
968
  exports.Agent = Agent;
994
969
  }
995
970
  });
996
- var require_dist2 = (0, import_chunk_2ESYSVXG.__commonJS)({
971
+ var require_dist2 = (0, import_chunk_QGM4M3NI.__commonJS)({
997
972
  "../../node_modules/.pnpm/http-proxy-agent@7.0.2/node_modules/http-proxy-agent/dist/index.js"(exports) {
998
973
  "use strict";
999
974
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -1028,12 +1003,12 @@ var require_dist2 = (0, import_chunk_2ESYSVXG.__commonJS)({
1028
1003
  };
1029
1004
  Object.defineProperty(exports, "__esModule", { value: true });
1030
1005
  exports.HttpProxyAgent = void 0;
1031
- var net = __importStar((0, import_chunk_2ESYSVXG.__require)("net"));
1032
- var tls = __importStar((0, import_chunk_2ESYSVXG.__require)("tls"));
1006
+ var net = __importStar((0, import_chunk_QGM4M3NI.__require)("net"));
1007
+ var tls = __importStar((0, import_chunk_QGM4M3NI.__require)("tls"));
1033
1008
  var debug_1 = __importDefault(require_src());
1034
- var events_1 = (0, import_chunk_2ESYSVXG.__require)("events");
1009
+ var events_1 = (0, import_chunk_QGM4M3NI.__require)("events");
1035
1010
  var agent_base_1 = require_dist();
1036
- var url_1 = (0, import_chunk_2ESYSVXG.__require)("url");
1011
+ var url_1 = (0, import_chunk_QGM4M3NI.__require)("url");
1037
1012
  var debug2 = (0, debug_1.default)("http-proxy-agent");
1038
1013
  var HttpProxyAgent2 = class extends agent_base_1.Agent {
1039
1014
  constructor(proxy, opts) {
@@ -1121,7 +1096,7 @@ var require_dist2 = (0, import_chunk_2ESYSVXG.__commonJS)({
1121
1096
  }
1122
1097
  }
1123
1098
  });
1124
- var require_helpers2 = (0, import_chunk_2ESYSVXG.__commonJS)({
1099
+ var require_helpers2 = (0, import_chunk_QGM4M3NI.__commonJS)({
1125
1100
  "../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/helpers.js"(exports) {
1126
1101
  "use strict";
1127
1102
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -1153,8 +1128,8 @@ var require_helpers2 = (0, import_chunk_2ESYSVXG.__commonJS)({
1153
1128
  };
1154
1129
  Object.defineProperty(exports, "__esModule", { value: true });
1155
1130
  exports.req = exports.json = exports.toBuffer = void 0;
1156
- var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
1157
- var https = __importStar((0, import_chunk_2ESYSVXG.__require)("https"));
1131
+ var http = __importStar((0, import_chunk_QGM4M3NI.__require)("http"));
1132
+ var https = __importStar((0, import_chunk_QGM4M3NI.__require)("https"));
1158
1133
  async function toBuffer(stream) {
1159
1134
  let length = 0;
1160
1135
  const chunks = [];
@@ -1189,7 +1164,7 @@ var require_helpers2 = (0, import_chunk_2ESYSVXG.__commonJS)({
1189
1164
  exports.req = req;
1190
1165
  }
1191
1166
  });
1192
- var require_dist3 = (0, import_chunk_2ESYSVXG.__commonJS)({
1167
+ var require_dist3 = (0, import_chunk_QGM4M3NI.__commonJS)({
1193
1168
  "../../node_modules/.pnpm/agent-base@7.1.3/node_modules/agent-base/dist/index.js"(exports) {
1194
1169
  "use strict";
1195
1170
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -1224,9 +1199,9 @@ var require_dist3 = (0, import_chunk_2ESYSVXG.__commonJS)({
1224
1199
  };
1225
1200
  Object.defineProperty(exports, "__esModule", { value: true });
1226
1201
  exports.Agent = void 0;
1227
- var net = __importStar((0, import_chunk_2ESYSVXG.__require)("net"));
1228
- var http = __importStar((0, import_chunk_2ESYSVXG.__require)("http"));
1229
- var https_1 = (0, import_chunk_2ESYSVXG.__require)("https");
1202
+ var net = __importStar((0, import_chunk_QGM4M3NI.__require)("net"));
1203
+ var http = __importStar((0, import_chunk_QGM4M3NI.__require)("http"));
1204
+ var https_1 = (0, import_chunk_QGM4M3NI.__require)("https");
1230
1205
  __exportStar(require_helpers2(), exports);
1231
1206
  var INTERNAL = Symbol("AgentBaseInternalState");
1232
1207
  var Agent = class extends http.Agent {
@@ -1343,8 +1318,8 @@ var require_dist3 = (0, import_chunk_2ESYSVXG.__commonJS)({
1343
1318
  exports.Agent = Agent;
1344
1319
  }
1345
1320
  });
1346
- var require_parse_proxy_response = (0, import_chunk_2ESYSVXG.__commonJS)({
1347
- "../../node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@10.2.2/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
1321
+ var require_parse_proxy_response = (0, import_chunk_QGM4M3NI.__commonJS)({
1322
+ "../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
1348
1323
  "use strict";
1349
1324
  var __importDefault = exports && exports.__importDefault || function(mod) {
1350
1325
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -1437,8 +1412,8 @@ var require_parse_proxy_response = (0, import_chunk_2ESYSVXG.__commonJS)({
1437
1412
  exports.parseProxyResponse = parseProxyResponse;
1438
1413
  }
1439
1414
  });
1440
- var require_dist4 = (0, import_chunk_2ESYSVXG.__commonJS)({
1441
- "../../node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@10.2.2/node_modules/https-proxy-agent/dist/index.js"(exports) {
1415
+ var require_dist4 = (0, import_chunk_QGM4M3NI.__commonJS)({
1416
+ "../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js"(exports) {
1442
1417
  "use strict";
1443
1418
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
1444
1419
  if (k2 === void 0) k2 = k;
@@ -1472,12 +1447,12 @@ var require_dist4 = (0, import_chunk_2ESYSVXG.__commonJS)({
1472
1447
  };
1473
1448
  Object.defineProperty(exports, "__esModule", { value: true });
1474
1449
  exports.HttpsProxyAgent = void 0;
1475
- var net = __importStar((0, import_chunk_2ESYSVXG.__require)("net"));
1476
- var tls = __importStar((0, import_chunk_2ESYSVXG.__require)("tls"));
1477
- var assert_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("assert"));
1450
+ var net = __importStar((0, import_chunk_QGM4M3NI.__require)("net"));
1451
+ var tls = __importStar((0, import_chunk_QGM4M3NI.__require)("tls"));
1452
+ var assert_1 = __importDefault((0, import_chunk_QGM4M3NI.__require)("assert"));
1478
1453
  var debug_1 = __importDefault(require_src());
1479
1454
  var agent_base_1 = require_dist3();
1480
- var url_1 = (0, import_chunk_2ESYSVXG.__require)("url");
1455
+ var url_1 = (0, import_chunk_QGM4M3NI.__require)("url");
1481
1456
  var parse_proxy_response_1 = require_parse_proxy_response();
1482
1457
  var debug2 = (0, debug_1.default)("https-proxy-agent");
1483
1458
  var setServernameFromNonIpHost = (options) => {
@@ -1585,8 +1560,8 @@ var require_dist4 = (0, import_chunk_2ESYSVXG.__commonJS)({
1585
1560
  }
1586
1561
  }
1587
1562
  });
1588
- var import_http_proxy_agent = (0, import_chunk_2ESYSVXG.__toESM)(require_dist2());
1589
- var import_https_proxy_agent = (0, import_chunk_2ESYSVXG.__toESM)(require_dist4());
1563
+ var import_http_proxy_agent = (0, import_chunk_QGM4M3NI.__toESM)(require_dist2());
1564
+ var import_https_proxy_agent = (0, import_chunk_QGM4M3NI.__toESM)(require_dist4());
1590
1565
  var debug = (0, import_debug.default)("prisma:fetch-engine:getProxyAgent");
1591
1566
  function formatHostname(hostname) {
1592
1567
  return hostname.replace(/^\.*/, ".").toLowerCase();
@@ -16,12 +16,14 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_66KG5WKV_exports = {};
20
- __export(chunk_66KG5WKV_exports, {
19
+ var chunk_X37PZICB_exports = {};
20
+ __export(chunk_X37PZICB_exports, {
21
21
  BinaryType: () => BinaryType
22
22
  });
23
- module.exports = __toCommonJS(chunk_66KG5WKV_exports);
23
+ module.exports = __toCommonJS(chunk_X37PZICB_exports);
24
24
  var BinaryType = /* @__PURE__ */ ((BinaryType2) => {
25
+ BinaryType2["QueryEngineBinary"] = "query-engine";
26
+ BinaryType2["QueryEngineLibrary"] = "libquery-engine";
25
27
  BinaryType2["SchemaEngineBinary"] = "schema-engine";
26
28
  return BinaryType2;
27
29
  })(BinaryType || {});
@@ -18,10 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var cleanupCache_exports = {};
20
20
  __export(cleanupCache_exports, {
21
- cleanupCache: () => import_chunk_4GGGRRIN.cleanupCache
21
+ cleanupCache: () => import_chunk_3VVCXIQ5.cleanupCache
22
22
  });
23
23
  module.exports = __toCommonJS(cleanupCache_exports);
24
- var import_chunk_4GGGRRIN = require("./chunk-4GGGRRIN.js");
25
- var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
26
- var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
27
- var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
24
+ var import_chunk_3VVCXIQ5 = require("./chunk-3VVCXIQ5.js");
25
+ var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
26
+ var import_chunk_LONQL55G = require("./chunk-LONQL55G.js");
27
+ var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
28
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -21,7 +21,7 @@ export interface DownloadOptions {
21
21
  skipCacheIntegrityCheck?: boolean;
22
22
  }
23
23
  export declare function download(options: DownloadOptions): Promise<BinaryPaths>;
24
- export declare function getVersion(enginePath: string, _binaryName: string): Promise<string | undefined>;
24
+ export declare function getVersion(enginePath: string, binaryName: string): Promise<string | undefined>;
25
25
  export declare function getBinaryName(binaryName: BinaryType, binaryTarget: BinaryTarget): string;
26
26
  export declare function maybeCopyToTmp(file: string): Promise<string>;
27
27
  export declare function plusX(file: any): void;
package/dist/download.js CHANGED
@@ -18,24 +18,24 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var download_exports = {};
20
20
  __export(download_exports, {
21
- download: () => import_chunk_WKMQAEST.download,
22
- getBinaryName: () => import_chunk_WKMQAEST.getBinaryName,
23
- getVersion: () => import_chunk_WKMQAEST.getVersion,
24
- maybeCopyToTmp: () => import_chunk_WKMQAEST.maybeCopyToTmp,
25
- plusX: () => import_chunk_WKMQAEST.plusX,
26
- vercelPkgPathRegex: () => import_chunk_WKMQAEST.vercelPkgPathRegex
21
+ download: () => import_chunk_S72ULGMC.download,
22
+ getBinaryName: () => import_chunk_S72ULGMC.getBinaryName,
23
+ getVersion: () => import_chunk_S72ULGMC.getVersion,
24
+ maybeCopyToTmp: () => import_chunk_S72ULGMC.maybeCopyToTmp,
25
+ plusX: () => import_chunk_S72ULGMC.plusX,
26
+ vercelPkgPathRegex: () => import_chunk_S72ULGMC.vercelPkgPathRegex
27
27
  });
28
28
  module.exports = __toCommonJS(download_exports);
29
- var import_chunk_WKMQAEST = require("./chunk-WKMQAEST.js");
30
- var import_chunk_5564WBCW = require("./chunk-5564WBCW.js");
29
+ var import_chunk_S72ULGMC = require("./chunk-S72ULGMC.js");
30
+ var import_chunk_MWVY55RY = require("./chunk-MWVY55RY.js");
31
31
  var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
32
- var import_chunk_4GGGRRIN = require("./chunk-4GGGRRIN.js");
33
- var import_chunk_FNYZ6ABB = require("./chunk-FNYZ6ABB.js");
34
- var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
35
- var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
36
- var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
37
- var import_chunk_XNR2KDTK = require("./chunk-XNR2KDTK.js");
38
- var import_chunk_66KG5WKV = require("./chunk-66KG5WKV.js");
32
+ var import_chunk_3VVCXIQ5 = require("./chunk-3VVCXIQ5.js");
33
+ var import_chunk_CY52DY2B = require("./chunk-CY52DY2B.js");
34
+ var import_chunk_RXM4EBGR = require("./chunk-RXM4EBGR.js");
35
+ var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
36
+ var import_chunk_LONQL55G = require("./chunk-LONQL55G.js");
37
+ var import_chunk_QFA3XBMW = require("./chunk-QFA3XBMW.js");
38
+ var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
39
39
  var import_chunk_FKGWOTGU = require("./chunk-FKGWOTGU.js");
40
- var import_chunk_CTLNI6CP = require("./chunk-CTLNI6CP.js");
41
- var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
40
+ var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
41
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -18,12 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var downloadZip_exports = {};
20
20
  __export(downloadZip_exports, {
21
- downloadZip: () => import_chunk_FNYZ6ABB.downloadZip
21
+ downloadZip: () => import_chunk_CY52DY2B.downloadZip
22
22
  });
23
23
  module.exports = __toCommonJS(downloadZip_exports);
24
- var import_chunk_FNYZ6ABB = require("./chunk-FNYZ6ABB.js");
25
- var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
26
- var import_chunk_7AOUSONO = require("./chunk-7AOUSONO.js");
27
- var import_chunk_4MDZEOKU = require("./chunk-4MDZEOKU.js");
28
- var import_chunk_CTLNI6CP = require("./chunk-CTLNI6CP.js");
29
- var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
24
+ var import_chunk_CY52DY2B = require("./chunk-CY52DY2B.js");
25
+ var import_chunk_RXM4EBGR = require("./chunk-RXM4EBGR.js");
26
+ var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
27
+ var import_chunk_LONQL55G = require("./chunk-LONQL55G.js");
28
+ var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
+ var import_chunk_VAPNG6TS = require("./chunk-VAPNG6TS.js");
30
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/env.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { BinaryType } from './BinaryType';
2
2
  export declare const engineEnvVarMap: {
3
+ "query-engine": string;
4
+ "libquery-engine": string;
3
5
  "schema-engine": string;
4
6
  };
5
7
  export declare const deprecatedEnvVarMap: Partial<typeof engineEnvVarMap>;