@prisma/internals 6.19.0-integration-engines-6-19-0-32-next-568b222d0ab829bbbe5f2fd48ed587836813346c.1 → 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 (116) hide show
  1. package/dist/{chunk-DK5SCKNO.js → chunk-2KREE2OX.js} +5 -5
  2. package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
  3. package/dist/{chunk-ISSTUMGH.js → chunk-2THJ6XVV.js} +12 -12
  4. package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
  5. package/dist/{chunk-4HCWAIVZ.js → chunk-33FYCEWF.js} +14 -20
  6. package/dist/{chunk-FYZCPL2Z.js → chunk-3CAPLXKF.js} +5 -8
  7. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  8. package/dist/{chunk-U2GOPCRA.js → chunk-4AHWN4VZ.js} +5 -5
  9. package/dist/{chunk-OAT7ZJED.js → chunk-4YDN7W7B.js} +7 -20
  10. package/dist/{chunk-TGOAMULH.js → chunk-4ZYCASUI.js} +8 -9
  11. package/dist/{chunk-SH2TNBI6.js → chunk-5B5U2HVK.js} +7 -8
  12. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  13. package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
  14. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  15. package/dist/{chunk-2MJTY4KQ.js → chunk-6FP5PMMX.js} +5 -5
  16. package/dist/{chunk-YU52YNDP.js → chunk-6QTJ35DP.js} +12 -12
  17. package/dist/{chunk-PWLNUJDJ.js → chunk-7PEHIVPK.js} +5 -5
  18. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  19. package/dist/{chunk-HFFWZTVM.js → chunk-BUQN4WLU.js} +7 -9
  20. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  21. package/dist/{chunk-GMW36QQF.js → chunk-DOO45FN6.js} +7 -7
  22. package/dist/chunk-DYV47NUW.js +796 -0
  23. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  24. package/dist/{chunk-ZKW5OHDA.js → chunk-FP5T5YD3.js} +5 -5
  25. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  26. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  27. package/dist/{chunk-VDOBMNYY.js → chunk-HBU4ZVCA.js} +11 -11
  28. package/dist/{chunk-DSG2XXJJ.js → chunk-HQE53CGA.js} +11 -11
  29. package/dist/{chunk-UHI6VYFX.js → chunk-IHC4ZVPQ.js} +5 -5
  30. package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
  31. package/dist/{chunk-UQUWZJVN.js → chunk-IU77SCOB.js} +9 -9
  32. package/dist/{chunk-RIACS7RB.js → chunk-JGAJWFOG.js} +5 -5
  33. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  34. package/dist/{chunk-LBEUT2S6.js → chunk-KZ5SMOBR.js} +5 -5
  35. package/dist/{chunk-AX5N26KG.js → chunk-L2CX3ZWZ.js} +6 -6
  36. package/dist/{chunk-JD36HS5L.js → chunk-LQA25XWD.js} +14 -20
  37. package/dist/{chunk-RKDOMYIG.js → chunk-M6PZRD57.js} +38 -71
  38. package/dist/{chunk-DX7WJ45H.js → chunk-MEBZK5AR.js} +5 -5
  39. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  40. package/dist/{chunk-PZEUONUZ.js → chunk-MK4IWFSR.js} +11 -11
  41. package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
  42. package/dist/{chunk-7QC5VORA.js → chunk-MYLPCGTT.js} +5 -5
  43. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  44. package/dist/{chunk-IKIW52QS.js → chunk-PSACKRZB.js} +11 -11
  45. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  46. package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
  47. package/dist/{chunk-N3UPGHTD.js → chunk-WC5A3H4V.js} +38 -71
  48. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  49. package/dist/cli/checkUnsupportedDataProxy.js +56 -62
  50. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +56 -62
  51. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  52. package/dist/cli/getSchema.d.ts +1 -15
  53. package/dist/cli/getSchema.js +4 -5
  54. package/dist/cli/hashes.js +4 -4
  55. package/dist/cli/schemaContext.d.ts +1 -3
  56. package/dist/cli/schemaContext.js +56 -62
  57. package/dist/engine-commands/errorHelpers.js +4 -4
  58. package/dist/engine-commands/formatSchema.js +55 -61
  59. package/dist/engine-commands/getConfig.d.ts +0 -1
  60. package/dist/engine-commands/getConfig.js +13 -13
  61. package/dist/engine-commands/getDmmf.js +10 -10
  62. package/dist/engine-commands/getEngineVersion.js +6 -9
  63. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  64. package/dist/engine-commands/getEnginesInfo.js +7 -9
  65. package/dist/engine-commands/index.js +67 -73
  66. package/dist/engine-commands/lintSchema.js +9 -9
  67. package/dist/engine-commands/mergeSchemas.js +10 -10
  68. package/dist/engine-commands/queryEngineCommons.js +6 -6
  69. package/dist/engine-commands/validate.js +10 -10
  70. package/dist/errorReporting.js +6 -6
  71. package/dist/get-generators/getGenerators.d.ts +0 -1
  72. package/dist/get-generators/getGenerators.js +58 -64
  73. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  74. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  75. package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
  76. package/dist/getPackedPackage.js +4 -3
  77. package/dist/index.d.ts +1 -8
  78. package/dist/index.js +101 -115
  79. package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
  80. package/dist/resolveBinary.js +8 -7
  81. package/dist/schemaEngineCommands.js +9 -8
  82. package/dist/sendPanic.js +4 -4
  83. package/dist/utils/canPrompt.js +3 -3
  84. package/dist/utils/cloudflareD1.js +3 -3
  85. package/dist/utils/drawBox.js +2 -2
  86. package/dist/utils/fs-functional.js +10 -10
  87. package/dist/utils/fs-utils.js +8 -8
  88. package/dist/utils/getVersionFromPackageJson.js +3 -3
  89. package/dist/utils/handlePanic.js +8 -8
  90. package/dist/utils/link.js +2 -2
  91. package/dist/utils/missingDatasource.js +3 -3
  92. package/dist/utils/missingGeneratorMessage.js +5 -5
  93. package/dist/utils/serializeQueryEngineName.js +2 -2
  94. package/dist/wasm.js +5 -5
  95. package/package.json +15 -16
  96. package/dist/chunk-3FP46GUV.js +0 -471
  97. package/dist/chunk-46ABODUM.js +0 -186
  98. package/dist/chunk-6TTRTZXU.js +0 -37
  99. package/dist/chunk-DZYINYAA.js +0 -68
  100. package/dist/chunk-ERSH2BQA.js +0 -58
  101. package/dist/chunk-PZMRR772.js +0 -41
  102. package/dist/chunk-T2PM5TKT.js +0 -55
  103. package/dist/client/getClientEngineType.d.ts +0 -7
  104. package/dist/client/getClientEngineType.js +0 -26
  105. package/dist/dotenvExpand.d.ts +0 -35
  106. package/dist/dotenvExpand.js +0 -25
  107. package/dist/utils/getEnvPaths.d.ts +0 -14
  108. package/dist/utils/getEnvPaths.js +0 -29
  109. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  110. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  111. package/dist/utils/load.d.ts +0 -6
  112. package/dist/utils/load.js +0 -28
  113. package/dist/utils/loadEnvFile.d.ts +0 -10
  114. package/dist/utils/loadEnvFile.js +0 -30
  115. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  116. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -26,15 +26,15 @@ 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_ZKW5OHDA_exports = {};
30
- __export(chunk_ZKW5OHDA_exports, {
29
+ var chunk_FP5T5YD3_exports = {};
30
+ __export(chunk_FP5T5YD3_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_ZKW5OHDA_exports);
37
- var import_chunk_TGOAMULH = require("./chunk-TGOAMULH.js");
36
+ module.exports = __toCommonJS(chunk_FP5T5YD3_exports);
37
+ var import_chunk_4ZYCASUI = require("./chunk-4ZYCASUI.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_TGOAMULH.require_package)();
49
+ var { dependencies } = (0, import_chunk_4ZYCASUI.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -16,21 +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_4CGPN5SR_exports = {};
20
- __export(chunk_4CGPN5SR_exports, {
19
+ var chunk_GJSFP4V4_exports = {};
20
+ __export(chunk_GJSFP4V4_exports, {
21
21
  engineTypeToBinaryType: () => engineTypeToBinaryType
22
22
  });
23
- module.exports = __toCommonJS(chunk_4CGPN5SR_exports);
23
+ module.exports = __toCommonJS(chunk_GJSFP4V4_exports);
24
24
  var import_fetch_engine = require("@prisma/fetch-engine");
25
25
  function engineTypeToBinaryType(engineType) {
26
26
  if (engineType === "schemaEngine") {
27
27
  return import_fetch_engine.BinaryType.SchemaEngineBinary;
28
28
  }
29
- if (engineType === "queryEngine") {
30
- return import_fetch_engine.BinaryType.QueryEngineBinary;
31
- }
32
- if (engineType === "libqueryEngine") {
33
- return import_fetch_engine.BinaryType.QueryEngineLibrary;
34
- }
35
29
  throw new Error(`Could not convert engine type ${engineType}`);
36
30
  }
@@ -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_4JCVHBYR_exports = {};
30
- __export(chunk_4JCVHBYR_exports, {
29
+ var chunk_GL7OANR6_exports = {};
30
+ __export(chunk_GL7OANR6_exports, {
31
31
  getCLIPathHash: () => getCLIPathHash,
32
32
  getProjectHash: () => getProjectHash
33
33
  });
34
- module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
35
- var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
34
+ module.exports = __toCommonJS(chunk_GL7OANR6_exports);
35
+ var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
36
36
  var import_crypto = __toESM(require("crypto"));
37
37
  async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
38
- const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
38
+ const projectPath = (await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
39
39
  return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
40
40
  }
41
41
  function getCLIPathHash() {
@@ -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_VDOBMNYY_exports = {};
30
- __export(chunk_VDOBMNYY_exports, {
29
+ var chunk_HBU4ZVCA_exports = {};
30
+ __export(chunk_HBU4ZVCA_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_VDOBMNYY_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_HBU4ZVCA_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_U2GOPCRA = require("./chunk-U2GOPCRA.js");
38
- var import_chunk_DX7WJ45H = require("./chunk-DX7WJ45H.js");
37
+ var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
38
+ var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,25 +58,25 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_U2GOPCRA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
65
65
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
66
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
67
67
  debug(`Using getDmmf Wasm`);
68
68
  const dmmfPipeline = (0, import_function.pipe)(
69
69
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_DX7WJ45H.prismaSchemaWasm.debug_panic();
73
+ import_chunk_MEBZK5AR.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_DX7WJ45H.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_MEBZK5AR.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -124,7 +124,7 @@ async function getDMMF(options) {
124
124
  return panic;
125
125
  }
126
126
  const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
127
+ return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
128
128
  }).with({ type: "parse-json" }, (e) => {
129
129
  debugErrorType(e);
130
130
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -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_DSG2XXJJ_exports = {};
30
- __export(chunk_DSG2XXJJ_exports, {
29
+ var chunk_HQE53CGA_exports = {};
30
+ __export(chunk_HQE53CGA_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_DSG2XXJJ_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_HQE53CGA_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
37
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_DK5SCKNO = require("./chunk-DK5SCKNO.js");
39
- var import_chunk_ZKW5OHDA = require("./chunk-ZKW5OHDA.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,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_DK5SCKNO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_ZKW5OHDA.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_MEBZK5AR.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -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_UHI6VYFX_exports = {};
20
- __export(chunk_UHI6VYFX_exports, {
19
+ var chunk_IHC4ZVPQ_exports = {};
20
+ __export(chunk_IHC4ZVPQ_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
27
+ module.exports = __toCommonJS(chunk_IHC4ZVPQ_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
29
+ var import_chunk_3CAPLXKF = require("./chunk-3CAPLXKF.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -139,7 +139,7 @@ async function execaCommand({
139
139
  schemaEnginePath,
140
140
  engineCommandName
141
141
  }) {
142
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_3CAPLXKF.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
143
143
  try {
144
144
  return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
145
145
  cwd,
@@ -26,18 +26,18 @@ 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_D4VDA2TZ_exports = {};
30
- __export(chunk_D4VDA2TZ_exports, {
29
+ var chunk_IRWX4FCC_exports = {};
30
+ __export(chunk_IRWX4FCC_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_D4VDA2TZ_exports);
33
+ module.exports = __toCommonJS(chunk_IRWX4FCC_exports);
34
34
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
35
- var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
35
+ var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
36
36
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
37
37
  var import_node_path = __toESM(require("node:path"));
38
38
  var import_node_process = __toESM(require("node:process"));
39
- var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_out)());
40
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
39
+ var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_out)());
40
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_globby)());
41
41
  var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
42
42
  async function locateLocalCloudflareD1({ arg }) {
43
43
  const cwd = import_node_process.default.cwd();
@@ -26,19 +26,19 @@ 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_UQUWZJVN_exports = {};
30
- __export(chunk_UQUWZJVN_exports, {
29
+ var chunk_IU77SCOB_exports = {};
30
+ __export(chunk_IU77SCOB_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
- var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
33
+ module.exports = __toCommonJS(chunk_IU77SCOB_exports);
34
+ var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
- var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
36
+ var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
37
+ var import_chunk_BUQN4WLU = require("./chunk-BUQN4WLU.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
41
- if (!(0, import_chunk_FCYHZHVW.canPrompt)()) {
41
+ if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
42
42
  throw args.error;
43
43
  }
44
44
  await panicDialog(args);
@@ -56,7 +56,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
56
56
 
57
57
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
58
58
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
59
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/telemetry")}`)}
59
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/telemetry")}`)}
60
60
  `);
61
61
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
62
62
  type: "select",
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_BUQN4WLU.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -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_RIACS7RB_exports = {};
20
- __export(chunk_RIACS7RB_exports, {
19
+ var chunk_JGAJWFOG_exports = {};
20
+ __export(chunk_JGAJWFOG_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_RIACS7RB_exports);
28
- var import_chunk_ZKW5OHDA = require("./chunk-ZKW5OHDA.js");
27
+ module.exports = __toCommonJS(chunk_JGAJWFOG_exports);
28
+ var import_chunk_FP5T5YD3 = require("./chunk-FP5T5YD3.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_ZKW5OHDA.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_FP5T5YD3.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }