@prisma/internals 6.6.0-dev.27 → 6.6.0-dev.29

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 (57) hide show
  1. package/dist/{chunk-JIWNUGZM.js → chunk-6MKM2Y64.js} +5 -5
  2. package/dist/{chunk-GJTVX7D7.js → chunk-6NGSWOJ2.js} +11 -11
  3. package/dist/{chunk-IVUMKFGZ.js → chunk-6ZNAFJ6H.js} +12 -12
  4. package/dist/{chunk-CDL6HTAV.js → chunk-7MS6PDSK.js} +5 -5
  5. package/dist/{chunk-35GKAHSZ.js → chunk-BKFFD3K3.js} +5 -5
  6. package/dist/{chunk-LXE3T6RS.js → chunk-CQPAFPZS.js} +131 -86
  7. package/dist/{chunk-Z4ALPGAK.js → chunk-DB2ZXQNZ.js} +7 -7
  8. package/dist/{chunk-UJ725NXW.js → chunk-EDPM4TAT.js} +5 -5
  9. package/dist/{chunk-EZQCZVUB.js → chunk-HU4MELC4.js} +5 -5
  10. package/dist/{chunk-ZSMNFBKT.js → chunk-KIKNJN6E.js} +5 -5
  11. package/dist/{chunk-GSUMZPVL.js → chunk-LOUKMUSU.js} +11 -11
  12. package/dist/{chunk-4URMCTG6.js → chunk-PSYMCJ4B.js} +4 -4
  13. package/dist/{chunk-SXXEVLXO.js → chunk-PTGGTC2X.js} +5 -5
  14. package/dist/{chunk-NVH7RTDD.js → chunk-QGCWSCAS.js} +11 -11
  15. package/dist/{chunk-JRVJL4KD.js → chunk-QODB7AUQ.js} +5 -5
  16. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  17. package/dist/{chunk-JTWAYHDZ.js → chunk-RRUPCUEK.js} +12 -12
  18. package/dist/{chunk-6GYVGU5I.js → chunk-TXO7SYD5.js} +4 -4
  19. package/dist/{chunk-VJVTJYO6.js → chunk-TYHSGPVG.js} +5 -5
  20. package/dist/{chunk-7WZO4C7P.js → chunk-V3C2TMWM.js} +131 -86
  21. package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
  22. package/dist/{chunk-FA73SMDO.js → chunk-YIFSM2JM.js} +13 -13
  23. package/dist/{chunk-OYDGDQKS.js → chunk-YPUOGZEE.js} +13 -13
  24. package/dist/{chunk-FIQCRCUE.js → chunk-Z4NZOOL2.js} +11 -11
  25. package/dist/{chunk-VZJZYI6E.js → chunk-ZBZ7CJXT.js} +5 -5
  26. package/dist/cli/checkUnsupportedDataProxy.js +27 -27
  27. package/dist/cli/getSchema.js +31 -31
  28. package/dist/cli/hashes.js +27 -27
  29. package/dist/cli/schemaContext.d.ts +43 -0
  30. package/dist/cli/schemaContext.js +135 -0
  31. package/dist/engine-commands/errorHelpers.js +4 -4
  32. package/dist/engine-commands/formatSchema.js +26 -26
  33. package/dist/engine-commands/getConfig.js +12 -12
  34. package/dist/engine-commands/getDmmf.js +9 -9
  35. package/dist/engine-commands/index.js +35 -35
  36. package/dist/engine-commands/lintSchema.js +8 -8
  37. package/dist/engine-commands/mergeSchemas.js +9 -9
  38. package/dist/engine-commands/queryEngineCommons.js +6 -6
  39. package/dist/engine-commands/validate.js +9 -9
  40. package/dist/get-generators/generatorResolvers/generatorResolvers.js +26 -26
  41. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +26 -26
  42. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +27 -27
  43. package/dist/get-generators/getGenerators.js +29 -29
  44. package/dist/highlight/highlight.js +5 -5
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +60 -59
  47. package/dist/migrateTypes.d.ts +63 -0
  48. package/dist/sendPanic.js +26 -26
  49. package/dist/utils/canPrompt.js +3 -3
  50. package/dist/utils/getEnvPaths.js +26 -26
  51. package/dist/utils/getVersionFromPackageJson.js +3 -3
  52. package/dist/utils/handlePanic.js +26 -26
  53. package/dist/utils/loadEnvFile.js +26 -26
  54. package/dist/utils/missingDatasource.js +4 -4
  55. package/dist/utils/missingGeneratorMessage.js +6 -6
  56. package/dist/wasm.js +4 -4
  57. package/package.json +9 -9
@@ -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_UJ725NXW_exports = {};
20
- __export(chunk_UJ725NXW_exports, {
19
+ var chunk_EDPM4TAT_exports = {};
20
+ __export(chunk_EDPM4TAT_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_UJ725NXW_exports);
23
+ module.exports = __toCommonJS(chunk_EDPM4TAT_exports);
24
24
  var import_chunk_XXDGZSJ4 = require("./chunk-XXDGZSJ4.js");
25
- var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
25
+ var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
28
28
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("datasource")} defined in your ${(0, import_chunk_PG5FDKSF.bold)("schema.prisma")}.
29
29
  You can define a datasource like this:
30
30
 
31
31
  ${(0, import_chunk_PG5FDKSF.bold)(
32
- (0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
32
+ (0, import_chunk_VNIE2AZB.highlightDatamodel)(`datasource db {
33
33
  provider = "postgresql"
34
34
  url = env("DB_URL")
35
35
  }`)
@@ -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_EZQCZVUB_exports = {};
20
- __export(chunk_EZQCZVUB_exports, {
19
+ var chunk_HU4MELC4_exports = {};
20
+ __export(chunk_HU4MELC4_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_EZQCZVUB_exports);
24
- var import_chunk_VZJZYI6E = require("./chunk-VZJZYI6E.js");
23
+ module.exports = __toCommonJS(chunk_HU4MELC4_exports);
24
+ var import_chunk_ZBZ7CJXT = require("./chunk-ZBZ7CJXT.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_VZJZYI6E.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_ZBZ7CJXT.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,21 +16,21 @@ 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_ZSMNFBKT_exports = {};
20
- __export(chunk_ZSMNFBKT_exports, {
19
+ var chunk_KIKNJN6E_exports = {};
20
+ __export(chunk_KIKNJN6E_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_ZSMNFBKT_exports);
27
+ module.exports = __toCommonJS(chunk_KIKNJN6E_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_JIWNUGZM = require("./chunk-JIWNUGZM.js");
29
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
30
30
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_JIWNUGZM.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_QODB7AUQ.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -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_GSUMZPVL_exports = {};
30
- __export(chunk_GSUMZPVL_exports, {
29
+ var chunk_LOUKMUSU_exports = {};
30
+ __export(chunk_LOUKMUSU_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_GSUMZPVL_exports);
34
+ module.exports = __toCommonJS(chunk_LOUKMUSU_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_4URMCTG6 = require("./chunk-4URMCTG6.js");
37
- var import_chunk_EZQCZVUB = require("./chunk-EZQCZVUB.js");
36
+ var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
38
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
+ var import_chunk_7MS6PDSK = require("./chunk-7MS6PDSK.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_JRVJL4KD = require("./chunk-JRVJL4KD.js");
40
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
41
41
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_EZQCZVUB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
67
67
  async function getDMMF(options) {
68
- const debugErrorType = (0, import_chunk_4URMCTG6.createDebugErrorType)(debug, "getDmmfWasm");
68
+ const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "getDmmfWasm");
69
69
  debug(`Using getDmmf Wasm`);
70
70
  const dmmfPipeline = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch2)(
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_JRVJL4KD.prismaSchemaWasm.debug_panic();
93
+ import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_JRVJL4KD.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_QODB7AUQ.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -157,7 +157,7 @@ Datamodel path: "${e.datamodelPath}"`,
157
157
  return panic;
158
158
  }
159
159
  const errorOutput = e.error.message;
160
- return new GetDmmfError((0, import_chunk_4URMCTG6.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
+ return new GetDmmfError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
161
161
  }).with({ type: "parse-json" }, (e) => {
162
162
  debugErrorType(e);
163
163
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -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_4URMCTG6_exports = {};
30
- __export(chunk_4URMCTG6_exports, {
29
+ var chunk_PSYMCJ4B_exports = {};
30
+ __export(chunk_PSYMCJ4B_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_4URMCTG6_exports);
37
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
36
+ module.exports = __toCommonJS(chunk_PSYMCJ4B_exports);
38
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
40
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
41
41
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -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_SXXEVLXO_exports = {};
20
- __export(chunk_SXXEVLXO_exports, {
19
+ var chunk_PTGGTC2X_exports = {};
20
+ __export(chunk_PTGGTC2X_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_SXXEVLXO_exports);
23
+ module.exports = __toCommonJS(chunk_PTGGTC2X_exports);
24
24
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
25
25
  var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.6.0-dev.27",
29
+ version: "6.6.0-dev.29",
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",
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.6.0-20.9f8c15a33bec92b7c6d2a261f499c94ab1fa69bc",
114
+ "@prisma/prisma-schema-wasm": "6.6.0-21.d1dbe8880430b6f753dffc4264de1a7f39e4a15a",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
@@ -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_NVH7RTDD_exports = {};
30
- __export(chunk_NVH7RTDD_exports, {
29
+ var chunk_QGCWSCAS_exports = {};
30
+ __export(chunk_QGCWSCAS_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_NVH7RTDD_exports);
34
+ module.exports = __toCommonJS(chunk_QGCWSCAS_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_4URMCTG6 = require("./chunk-4URMCTG6.js");
37
- var import_chunk_CDL6HTAV = require("./chunk-CDL6HTAV.js");
36
+ var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
38
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
+ var import_chunk_HU4MELC4 = require("./chunk-HU4MELC4.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_JIWNUGZM = require("./chunk-JIWNUGZM.js");
40
+ var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
41
41
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_CDL6HTAV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
67
67
  async function getDMMF(options) {
68
- const debugErrorType = (0, import_chunk_4URMCTG6.createDebugErrorType)(debug, "getDmmfWasm");
68
+ const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "getDmmfWasm");
69
69
  debug(`Using getDmmf Wasm`);
70
70
  const dmmfPipeline = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch2)(
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_JIWNUGZM.prismaSchemaWasm.debug_panic();
93
+ import_chunk_6MKM2Y64.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_JIWNUGZM.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_6MKM2Y64.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -157,7 +157,7 @@ Datamodel path: "${e.datamodelPath}"`,
157
157
  return panic;
158
158
  }
159
159
  const errorOutput = e.error.message;
160
- return new GetDmmfError((0, import_chunk_4URMCTG6.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
+ return new GetDmmfError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
161
161
  }).with({ type: "parse-json" }, (e) => {
162
162
  debugErrorType(e);
163
163
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -26,14 +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_JRVJL4KD_exports = {};
30
- __export(chunk_JRVJL4KD_exports, {
29
+ var chunk_QODB7AUQ_exports = {};
30
+ __export(chunk_QODB7AUQ_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_JRVJL4KD_exports);
36
- var import_chunk_6GYVGU5I = require("./chunk-6GYVGU5I.js");
35
+ module.exports = __toCommonJS(chunk_QODB7AUQ_exports);
36
+ var import_chunk_TXO7SYD5 = require("./chunk-TXO7SYD5.js");
37
37
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_6GYVGU5I.require_package)();
45
+ var { dependencies } = (0, import_chunk_TXO7SYD5.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
@@ -26,13 +26,13 @@ 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_FCYHZHVW_exports = {};
30
- __export(chunk_FCYHZHVW_exports, {
29
+ var chunk_R3J2O23S_exports = {};
30
+ __export(chunk_R3J2O23S_exports, {
31
31
  canPrompt: () => canPrompt
32
32
  });
33
- module.exports = __toCommonJS(chunk_FCYHZHVW_exports);
34
- var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
33
+ module.exports = __toCommonJS(chunk_R3J2O23S_exports);
35
34
  var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
35
+ var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
36
36
  var import_prompts = __toESM(require("prompts"));
37
37
  var canPrompt = () => {
38
38
  const injectedCount = import_prompts.default._injected?.length;
@@ -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_JTWAYHDZ_exports = {};
30
- __export(chunk_JTWAYHDZ_exports, {
29
+ var chunk_RRUPCUEK_exports = {};
30
+ __export(chunk_RRUPCUEK_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_JTWAYHDZ_exports);
34
+ module.exports = __toCommonJS(chunk_RRUPCUEK_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_4URMCTG6 = require("./chunk-4URMCTG6.js");
37
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_CDL6HTAV = require("./chunk-CDL6HTAV.js");
36
+ var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
39
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
+ var import_chunk_7MS6PDSK = require("./chunk-7MS6PDSK.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_JIWNUGZM = require("./chunk-JIWNUGZM.js");
41
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_CDL6HTAV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_4URMCTG6.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_JIWNUGZM.prismaSchemaWasm.debug_panic();
75
+ import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_JIWNUGZM.prismaSchemaWasm.validate(params);
81
+ import_chunk_QODB7AUQ.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_4URMCTG6.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -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_6GYVGU5I_exports = {};
20
- __export(chunk_6GYVGU5I_exports, {
19
+ var chunk_TXO7SYD5_exports = {};
20
+ __export(chunk_TXO7SYD5_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_6GYVGU5I_exports);
23
+ module.exports = __toCommonJS(chunk_TXO7SYD5_exports);
24
24
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
25
25
  var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.6.0-20.9f8c15a33bec92b7c6d2a261f499c94ab1fa69bc",
114
+ "@prisma/prisma-schema-wasm": "6.6.0-21.d1dbe8880430b6f753dffc4264de1a7f39e4a15a",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
@@ -16,21 +16,21 @@ 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_VJVTJYO6_exports = {};
20
- __export(chunk_VJVTJYO6_exports, {
19
+ var chunk_TYHSGPVG_exports = {};
20
+ __export(chunk_TYHSGPVG_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_VJVTJYO6_exports);
27
+ module.exports = __toCommonJS(chunk_TYHSGPVG_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_JRVJL4KD = require("./chunk-JRVJL4KD.js");
29
+ var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
30
30
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_JRVJL4KD.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_6MKM2Y64.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }