@prisma/internals 6.19.0-integration-next.16 → 6.19.0-integration-feat-remove-library-engine.5

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.
Files changed (89) hide show
  1. package/dist/{chunk-2ONERNWE.js → chunk-2KREE2OX.js} +5 -5
  2. package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
  3. package/dist/{chunk-RXUFT5US.js → chunk-2THJ6XVV.js} +12 -12
  4. package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
  5. package/dist/{chunk-INJO27TY.js → chunk-33FYCEWF.js} +13 -13
  6. package/dist/{chunk-5NV3W7KM.js → chunk-3CAPLXKF.js} +5 -8
  7. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  8. package/dist/{chunk-63H7LVQK.js → chunk-4AHWN4VZ.js} +5 -5
  9. package/dist/{chunk-5FUXDJAN.js → chunk-4YDN7W7B.js} +7 -16
  10. package/dist/{chunk-3GU5WOTV.js → chunk-4ZYCASUI.js} +5 -5
  11. package/dist/{chunk-SVPXYUIM.js → chunk-5B5U2HVK.js} +4 -4
  12. package/dist/{chunk-B22EOFPW.js → chunk-5I4ERIIY.js} +3 -6
  13. package/dist/{chunk-5XFNC2RY.js → chunk-5MHUYAV3.js} +9 -9
  14. package/dist/{chunk-SIMRXUXR.js → chunk-6FP5PMMX.js} +5 -5
  15. package/dist/{chunk-CAACRLTC.js → chunk-6QTJ35DP.js} +12 -12
  16. package/dist/{chunk-XQFPAFQE.js → chunk-7PEHIVPK.js} +5 -5
  17. package/dist/{chunk-GSH4BXBI.js → chunk-BUQN4WLU.js} +6 -6
  18. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  19. package/dist/{chunk-HL6M6I6N.js → chunk-DOO45FN6.js} +7 -7
  20. package/dist/chunk-DYV47NUW.js +796 -0
  21. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  22. package/dist/{chunk-R3RVIOOH.js → chunk-FP5T5YD3.js} +5 -5
  23. package/dist/{chunk-VRGMXDRD.js → chunk-GJSFP4V4.js} +3 -6
  24. package/dist/{chunk-25QIR2OA.js → chunk-HBU4ZVCA.js} +11 -11
  25. package/dist/{chunk-FMYHDVAC.js → chunk-HQE53CGA.js} +11 -11
  26. package/dist/{chunk-SYOFVVNN.js → chunk-IHC4ZVPQ.js} +5 -5
  27. package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
  28. package/dist/{chunk-BLBFB7XV.js → chunk-IU77SCOB.js} +7 -7
  29. package/dist/{chunk-6GH4RAXF.js → chunk-JGAJWFOG.js} +5 -5
  30. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  31. package/dist/{chunk-XCUYCN3Z.js → chunk-KZ5SMOBR.js} +5 -5
  32. package/dist/{chunk-AX5N26KG.js → chunk-L2CX3ZWZ.js} +6 -6
  33. package/dist/{chunk-6OLUZD6G.js → chunk-LQA25XWD.js} +13 -13
  34. package/dist/{chunk-A7LJSXBL.js → chunk-M6PZRD57.js} +32 -47
  35. package/dist/{chunk-I6IIL2R7.js → chunk-MEBZK5AR.js} +5 -5
  36. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  37. package/dist/{chunk-MH5DW7MH.js → chunk-MK4IWFSR.js} +11 -11
  38. package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
  39. package/dist/{chunk-7QC5VORA.js → chunk-MYLPCGTT.js} +5 -5
  40. package/dist/{chunk-NDSHLEAN.js → chunk-PSACKRZB.js} +11 -11
  41. package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
  42. package/dist/{chunk-HC7ALJJ2.js → chunk-WC5A3H4V.js} +32 -47
  43. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  44. package/dist/cli/checkUnsupportedDataProxy.js +46 -48
  45. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +46 -48
  46. package/dist/cli/schemaContext.js +46 -48
  47. package/dist/engine-commands/errorHelpers.js +4 -4
  48. package/dist/engine-commands/formatSchema.js +45 -47
  49. package/dist/engine-commands/getConfig.js +12 -12
  50. package/dist/engine-commands/getDmmf.js +9 -9
  51. package/dist/engine-commands/getEngineVersion.js +6 -9
  52. package/dist/engine-commands/getEnginesInfo.js +7 -9
  53. package/dist/engine-commands/index.js +57 -59
  54. package/dist/engine-commands/lintSchema.js +8 -8
  55. package/dist/engine-commands/mergeSchemas.js +9 -9
  56. package/dist/engine-commands/queryEngineCommons.js +6 -6
  57. package/dist/engine-commands/validate.js +9 -9
  58. package/dist/errorReporting.js +6 -6
  59. package/dist/get-generators/getGenerators.js +48 -50
  60. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  61. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  62. package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
  63. package/dist/getPackedPackage.js +4 -3
  64. package/dist/index.d.ts +1 -4
  65. package/dist/index.js +83 -90
  66. package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
  67. package/dist/resolveBinary.js +8 -7
  68. package/dist/schemaEngineCommands.js +9 -8
  69. package/dist/sendPanic.js +4 -4
  70. package/dist/utils/cloudflareD1.js +3 -3
  71. package/dist/utils/drawBox.js +2 -2
  72. package/dist/utils/fs-functional.js +10 -10
  73. package/dist/utils/fs-utils.js +8 -8
  74. package/dist/utils/getVersionFromPackageJson.js +3 -3
  75. package/dist/utils/handlePanic.js +6 -6
  76. package/dist/utils/link.js +2 -2
  77. package/dist/utils/missingDatasource.js +3 -3
  78. package/dist/utils/missingGeneratorMessage.js +5 -5
  79. package/dist/wasm.js +5 -5
  80. package/package.json +12 -12
  81. package/dist/chunk-6TTRTZXU.js +0 -37
  82. package/dist/chunk-DZYINYAA.js +0 -68
  83. package/dist/chunk-FUYRCYVL.js +0 -53
  84. package/dist/client/getClientEngineType.d.ts +0 -6
  85. package/dist/client/getClientEngineType.js +0 -26
  86. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  87. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  88. package/dist/utils/load.d.ts +0 -6
  89. package/dist/utils/load.js +0 -28
@@ -26,20 +26,20 @@ 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_INJO27TY_exports = {};
30
- __export(chunk_INJO27TY_exports, {
29
+ var chunk_33FYCEWF_exports = {};
30
+ __export(chunk_33FYCEWF_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_INJO27TY_exports);
38
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
+ module.exports = __toCommonJS(chunk_33FYCEWF_exports);
38
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
40
39
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_63H7LVQK = require("./chunk-63H7LVQK.js");
42
- var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.js");
40
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
+ var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
42
+ var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_63H7LVQK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,17 +82,17 @@ function resolveUrl(envValue) {
82
82
  return urlFromValue ?? urlEnvVarValue;
83
83
  }
84
84
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
86
86
  debug(`Using getConfig Wasm`);
87
87
  const configEither = (0, import_function.pipe)(
88
88
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_I6IIL2R7.prismaSchemaWasm.debug_panic();
92
+ import_chunk_MEBZK5AR.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({ prismaSchema: options.datamodel });
95
- return import_chunk_I6IIL2R7.prismaSchemaWasm.get_config(params);
95
+ return import_chunk_MEBZK5AR.prismaSchemaWasm.get_config(params);
96
96
  },
97
97
  (e) => ({
98
98
  type: "wasm-error",
@@ -150,12 +150,12 @@ async function getConfig(options) {
150
150
  return panic;
151
151
  }
152
152
  const errorOutput = e.error.message;
153
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
153
+ return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
154
154
  }).with({ type: "validation-error" }, (e) => {
155
155
  return new GetConfigError({
156
156
  _tag: "parsed",
157
157
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
158
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
158
+ reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
159
159
  message: formatErrors(e.error)
160
160
  });
161
161
  }).otherwise((e) => {
@@ -26,16 +26,16 @@ 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_5NV3W7KM_exports = {};
30
- __export(chunk_5NV3W7KM_exports, {
29
+ var chunk_3CAPLXKF_exports = {};
30
+ __export(chunk_3CAPLXKF_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_5NV3W7KM_exports);
38
- var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
37
+ module.exports = __toCommonJS(chunk_3CAPLXKF_exports);
38
+ var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
39
39
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
41
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
@@ -46,14 +46,11 @@ var import_fetch_engine = require("@prisma/fetch-engine");
46
46
  var import_get_platform = require("@prisma/get-platform");
47
47
  var import_fs = __toESM(require("fs"));
48
48
  var import_path = __toESM(require("path"));
49
- var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
49
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_FF7OLLBP.require_lib)());
50
50
  var import_temp_dir = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_5VQNKCKW.require_temp_dir)());
51
51
  async function getBinaryName(name) {
52
52
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
53
53
  const extension = binaryTarget === "windows" ? ".exe" : "";
54
- if (name === import_fetch_engine.BinaryType.QueryEngineLibrary) {
55
- return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
56
- }
57
54
  return `${name}-${binaryTarget}${extension}`;
58
55
  }
59
56
  async function resolveBinary(name, proposedPath) {
@@ -26,11 +26,11 @@ 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_I6WLABB2_exports = {};
30
- __export(chunk_I6WLABB2_exports, {
29
+ var chunk_3WXUQZS7_exports = {};
30
+ __export(chunk_3WXUQZS7_exports, {
31
31
  link: () => link2
32
32
  });
33
- module.exports = __toCommonJS(chunk_I6WLABB2_exports);
33
+ module.exports = __toCommonJS(chunk_3WXUQZS7_exports);
34
34
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
35
35
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
36
36
  var import_node_process = __toESM(require("node:process"));
@@ -245,9 +245,11 @@ var require_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__commonJS)({
245
245
  });
246
246
  var base_exports = {};
247
247
  (0, import_chunk_4VNS5WPM.__export)(base_exports, {
248
+ ConEmu: () => ConEmu,
248
249
  beep: () => beep,
249
250
  clearScreen: () => clearScreen,
250
251
  clearTerminal: () => clearTerminal,
252
+ clearViewport: () => clearViewport,
251
253
  cursorBackward: () => cursorBackward,
252
254
  cursorDown: () => cursorDown,
253
255
  cursorForward: () => cursorForward,
@@ -275,7 +277,8 @@ var base_exports = {};
275
277
  image: () => image,
276
278
  link: () => link,
277
279
  scrollDown: () => scrollDown,
278
- scrollUp: () => scrollUp
280
+ scrollUp: () => scrollUp,
281
+ setCwd: () => setCwd
279
282
  });
280
283
  var isBrowser = globalThis.window?.document !== void 0;
281
284
  var isNode = globalThis.process?.versions?.node !== void 0;
@@ -359,6 +362,7 @@ var eraseScreen = ESC + "2J";
359
362
  var scrollUp = ESC + "S";
360
363
  var scrollDown = ESC + "T";
361
364
  var clearScreen = "\x1Bc";
365
+ var clearViewport = `${eraseScreen}${ESC}H`;
362
366
  var clearTerminal = isWindows2 ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
363
367
  var enterAlternativeScreen = ESC + "?1049h";
364
368
  var exitAlternativeScreen = ESC + "?1049l";
@@ -388,7 +392,8 @@ var image = (data, options = {}) => {
388
392
  if (options.preserveAspectRatio === false) {
389
393
  returnValue += ";preserveAspectRatio=0";
390
394
  }
391
- return returnValue + ":" + Buffer.from(data).toString("base64") + BEL;
395
+ const imageBuffer = Buffer.from(data);
396
+ return returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL;
392
397
  };
393
398
  var iTerm = {
394
399
  setCwd: (cwd = cwdFunction()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
@@ -409,6 +414,10 @@ var iTerm = {
409
414
  return returnValue + BEL;
410
415
  }
411
416
  };
417
+ var ConEmu = {
418
+ setCwd: (cwd = cwdFunction()) => `${OSC}9;9;${cwd}${BEL}`
419
+ };
420
+ var setCwd = (cwd = cwdFunction()) => iTerm.setCwd(cwd) + ConEmu.setCwd(cwd);
412
421
  var import_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__toESM)(require_supports_hyperlinks(), 1);
413
422
  function terminalLink(text, url, { target = "stdout", ...options } = {}) {
414
423
  if (!import_supports_hyperlinks.default[target]) {
@@ -16,15 +16,15 @@ 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_63H7LVQK_exports = {};
20
- __export(chunk_63H7LVQK_exports, {
19
+ var chunk_4AHWN4VZ_exports = {};
20
+ __export(chunk_4AHWN4VZ_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_63H7LVQK_exports);
24
- var import_chunk_XQFPAFQE = require("./chunk-XQFPAFQE.js");
23
+ module.exports = __toCommonJS(chunk_4AHWN4VZ_exports);
24
+ var import_chunk_7PEHIVPK = require("./chunk-7PEHIVPK.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_XQFPAFQE.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_7PEHIVPK.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,29 +16,20 @@ 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_5FUXDJAN_exports = {};
20
- __export(chunk_5FUXDJAN_exports, {
19
+ var chunk_4YDN7W7B_exports = {};
20
+ __export(chunk_4YDN7W7B_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_5FUXDJAN_exports);
25
- var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
24
+ module.exports = __toCommonJS(chunk_4YDN7W7B_exports);
26
25
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
27
- var import_chunk_5NV3W7KM = require("./chunk-5NV3W7KM.js");
26
+ var import_chunk_3CAPLXKF = require("./chunk-3CAPLXKF.js");
28
27
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
28
  var import_fetch_engine = require("@prisma/fetch-engine");
30
- var import_get_platform = require("@prisma/get-platform");
31
29
  async function getEngineVersion(enginePath, binaryName) {
32
- enginePath = await (0, import_chunk_5NV3W7KM.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.QueryEngineLibrary, enginePath);
33
- const platformInfo = await (0, import_get_platform.getPlatformInfo)();
34
- if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
35
- (0, import_get_platform.assertNodeAPISupported)();
36
- const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
37
- return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
38
- } else {
39
- const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
40
- return stdout;
41
- }
30
+ enginePath = await (0, import_chunk_3CAPLXKF.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
31
+ const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
32
+ return stdout;
42
33
  }
43
34
  function safeGetEngineVersion(enginePath, binaryName) {
44
35
  return (0, import_chunk_5DBOS77Y.tryCatch2)(
@@ -16,17 +16,17 @@ 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_3GU5WOTV_exports = {};
20
- __export(chunk_3GU5WOTV_exports, {
19
+ var chunk_4ZYCASUI_exports = {};
20
+ __export(chunk_4ZYCASUI_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_3GU5WOTV_exports);
23
+ module.exports = __toCommonJS(chunk_4ZYCASUI_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.19.0-integration-next.16",
29
+ version: "6.19.0-integration-feat-remove-library-engine.5",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -59,7 +59,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "~20.19.0",
62
+ "@types/node": "~20.19.24",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
@@ -16,11 +16,11 @@ 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_SVPXYUIM_exports = {};
20
- __export(chunk_SVPXYUIM_exports, {
19
+ var chunk_5B5U2HVK_exports = {};
20
+ __export(chunk_5B5U2HVK_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_SVPXYUIM_exports);
23
+ module.exports = __toCommonJS(chunk_5B5U2HVK_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -59,7 +59,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "~20.19.0",
62
+ "@types/node": "~20.19.24",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
@@ -16,18 +16,15 @@ 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_B22EOFPW_exports = {};
20
- __export(chunk_B22EOFPW_exports, {
19
+ var chunk_5I4ERIIY_exports = {};
20
+ __export(chunk_5I4ERIIY_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_B22EOFPW_exports);
23
+ module.exports = __toCommonJS(chunk_5I4ERIIY_exports);
24
24
  var import_fetch_engine = require("@prisma/fetch-engine");
25
25
  function binaryTypeToEngineType(binaryType) {
26
26
  if (binaryType === import_fetch_engine.BinaryType.SchemaEngineBinary) {
27
27
  return "schemaEngine";
28
28
  }
29
- if (binaryType === import_fetch_engine.BinaryType.QueryEngineLibrary) {
30
- return "libqueryEngine";
31
- }
32
29
  throw new Error(`Could not convert binary type ${binaryType}`);
33
30
  }
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_5XFNC2RY_exports = {};
30
- __export(chunk_5XFNC2RY_exports, {
29
+ var chunk_5MHUYAV3_exports = {};
30
+ __export(chunk_5MHUYAV3_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_5XFNC2RY_exports);
34
- var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
35
- var import_chunk_VRGMXDRD = require("./chunk-VRGMXDRD.js");
33
+ module.exports = __toCommonJS(chunk_5MHUYAV3_exports);
34
+ var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
35
+ var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
- var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
38
+ var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_engines = require("@prisma/engines");
41
41
  var import_fetch_engine = require("@prisma/fetch-engine");
42
42
  var import_path = __toESM2(require("path"));
43
- var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
43
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_FF7OLLBP.require_lib)());
44
44
  async function getBinaryPathsByVersion({
45
45
  neededVersions,
46
46
  detectBinaryTarget,
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
91
91
  }
92
92
  const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
93
93
  if (!binaryPathsOverride?.[curr]) {
94
- acc[(0, import_chunk_VRGMXDRD.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
94
+ acc[(0, import_chunk_GJSFP4V4.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
95
95
  }
96
96
  return acc;
97
97
  }, /* @__PURE__ */ Object.create(null));
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
107
107
  skipDownload
108
108
  };
109
109
  const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
110
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_B22EOFPW.binaryTypeToEngineType);
110
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_5I4ERIIY.binaryTypeToEngineType);
111
111
  binaryPathsByVersion[currentVersion] = binaryPaths;
112
112
  }
113
113
  if (binaryPathsOverride) {
@@ -16,20 +16,20 @@ 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_SIMRXUXR_exports = {};
20
- __export(chunk_SIMRXUXR_exports, {
19
+ var chunk_6FP5PMMX_exports = {};
20
+ __export(chunk_6FP5PMMX_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_SIMRXUXR_exports);
28
- var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.js");
27
+ module.exports = __toCommonJS(chunk_6FP5PMMX_exports);
28
+ var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_I6IIL2R7.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_MEBZK5AR.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -26,17 +26,17 @@ 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_CAACRLTC_exports = {};
30
- __export(chunk_CAACRLTC_exports, {
29
+ var chunk_6QTJ35DP_exports = {};
30
+ __export(chunk_6QTJ35DP_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_CAACRLTC_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_6QTJ35DP_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
37
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_2ONERNWE = require("./chunk-2ONERNWE.js");
39
- var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
39
+ var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_2ONERNWE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "validateWasm");
68
68
  debug(`Using validate Wasm`);
69
69
  const validateEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_R3RVIOOH.prismaSchemaWasm.debug_panic();
74
+ import_chunk_MEBZK5AR.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_R3RVIOOH.prismaSchemaWasm.validate(params);
80
+ import_chunk_MEBZK5AR.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -109,7 +109,7 @@ function validate(options) {
109
109
  return panic;
110
110
  }
111
111
  const errorOutput = e.error.message;
112
- return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }
@@ -16,11 +16,11 @@ 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_XQFPAFQE_exports = {};
20
- __export(chunk_XQFPAFQE_exports, {
19
+ var chunk_7PEHIVPK_exports = {};
20
+ __export(chunk_7PEHIVPK_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_XQFPAFQE_exports);
24
- var import_chunk_3GU5WOTV = require("./chunk-3GU5WOTV.js");
25
- var packageJson = (0, import_chunk_3GU5WOTV.require_package)();
23
+ module.exports = __toCommonJS(chunk_7PEHIVPK_exports);
24
+ var import_chunk_4ZYCASUI = require("./chunk-4ZYCASUI.js");
25
+ var packageJson = (0, import_chunk_4ZYCASUI.require_package)();
26
26
  var version = packageJson.version;
@@ -26,14 +26,14 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_GSH4BXBI_exports = {};
30
- __export(chunk_GSH4BXBI_exports, {
29
+ var chunk_BUQN4WLU_exports = {};
30
+ __export(chunk_BUQN4WLU_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_GSH4BXBI_exports);
33
+ module.exports = __toCommonJS(chunk_BUQN4WLU_exports);
34
34
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
35
35
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
36
- var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
36
+ var import_chunk_MEOOYUIZ = require("./chunk-MEOOYUIZ.js");
37
37
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
38
38
  var import_node_util = require("node:util");
39
39
  var import_get_platform = require("@prisma/get-platform");
@@ -1808,8 +1808,8 @@ async function sendPanic({
1808
1808
  sqlDump: void 0,
1809
1809
  dbVersion
1810
1810
  };
1811
- const signedUrl = await (0, import_chunk_5AI4FIZ3.createErrorReport)(params);
1812
- const id = await (0, import_chunk_5AI4FIZ3.makeErrorReportCompleted)(signedUrl);
1811
+ const signedUrl = await (0, import_chunk_MEOOYUIZ.createErrorReport)(params);
1812
+ const id = await (0, import_chunk_MEOOYUIZ.makeErrorReportCompleted)(signedUrl);
1813
1813
  return id;
1814
1814
  }
1815
1815
  function getCommand() {