@prisma/internals 6.19.0-integration-next.3 → 6.19.0-integration-engines-6-19-0-1-push-qtpkxwkvolmz-389b05cecb76e4e93db0ae07c19800226f238242.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.
Files changed (51) hide show
  1. package/dist/{chunk-IV6ZGJI6.js → chunk-2GNTDXXZ.js} +5 -5
  2. package/dist/{chunk-2MH4OKV3.js → chunk-3W6JG5QX.js} +7 -7
  3. package/dist/{chunk-6QTN4DDB.js → chunk-46ABODUM.js} +21 -6
  4. package/dist/{chunk-FYIQ63ZN.js → chunk-4AB6ADLX.js} +23 -23
  5. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  6. package/dist/{chunk-NB26UB36.js → chunk-5BWCYP44.js} +8 -8
  7. package/dist/{chunk-PELP7NEY.js → chunk-64GSOKLI.js} +5 -5
  8. package/dist/{chunk-PNLK5PK2.js → chunk-6Y26IVLY.js} +8 -8
  9. package/dist/{chunk-KYQ4XCGS.js → chunk-CDAC37LR.js} +8 -8
  10. package/dist/{chunk-SCDLOI36.js → chunk-EJZZZ4XK.js} +23 -23
  11. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  12. package/dist/{chunk-3GX3XWYB.js → chunk-F5CB64I3.js} +7 -7
  13. package/dist/{chunk-NMWKLRPM.js → chunk-FHQO3J4S.js} +5 -5
  14. package/dist/{chunk-GSH4BXBI.js → chunk-HFFWZTVM.js} +6 -4
  15. package/dist/{chunk-DGWYSK57.js → chunk-MHQUGI5W.js} +8 -8
  16. package/dist/{chunk-BXLJID4Q.js → chunk-MSFTYENN.js} +7 -7
  17. package/dist/{chunk-FURGECAD.js → chunk-PZMRR772.js} +6 -6
  18. package/dist/{chunk-4XXX5FAL.js → chunk-Q7GDIUCT.js} +8 -8
  19. package/dist/{chunk-HEJWJKAQ.js → chunk-S5HQSPZU.js} +5 -5
  20. package/dist/{chunk-XE6RNVGQ.js → chunk-SG7OCTEL.js} +8 -8
  21. package/dist/{chunk-TE6SZEUD.js → chunk-T37624B7.js} +8 -8
  22. package/dist/{chunk-ZGOQNALR.js → chunk-T4CG3XXO.js} +5 -5
  23. package/dist/{chunk-2AYJLW73.js → chunk-TKJCHPXO.js} +5 -5
  24. package/dist/{chunk-KIFFN3IT.js → chunk-UQUWZJVN.js} +5 -5
  25. package/dist/{chunk-D4HTHJOT.js → chunk-Y3TATLRO.js} +5 -5
  26. package/dist/{chunk-ZQYZW6EF.js → chunk-ZTBH33ES.js} +5 -5
  27. package/dist/cli/checkUnsupportedDataProxy.js +18 -18
  28. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +18 -18
  29. package/dist/cli/getSchema.d.ts +15 -1
  30. package/dist/cli/getSchema.js +5 -4
  31. package/dist/cli/hashes.js +4 -4
  32. package/dist/cli/schemaContext.js +18 -18
  33. package/dist/engine-commands/errorHelpers.js +4 -4
  34. package/dist/engine-commands/formatSchema.js +17 -17
  35. package/dist/engine-commands/getConfig.js +10 -10
  36. package/dist/engine-commands/getDmmf.js +7 -7
  37. package/dist/engine-commands/index.js +26 -26
  38. package/dist/engine-commands/lintSchema.js +8 -8
  39. package/dist/engine-commands/mergeSchemas.js +7 -7
  40. package/dist/engine-commands/validate.js +7 -7
  41. package/dist/get-generators/getGenerators.js +20 -20
  42. package/dist/index.js +46 -46
  43. package/dist/sendPanic.js +2 -2
  44. package/dist/utils/getEnvPaths.d.ts +1 -1
  45. package/dist/utils/getEnvPaths.js +3 -2
  46. package/dist/utils/getVersionFromPackageJson.js +3 -3
  47. package/dist/utils/handlePanic.js +3 -3
  48. package/dist/utils/loadEnvFile.d.ts +1 -1
  49. package/dist/utils/loadEnvFile.js +4 -3
  50. package/dist/wasm.js +5 -5
  51. package/package.json +15 -15
@@ -26,14 +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_OKVM3CW4_exports = {};
30
- __export(chunk_OKVM3CW4_exports, {
29
+ var chunk_EYVG6XQS_exports = {};
30
+ __export(chunk_EYVG6XQS_exports, {
31
+ getSchemaFromPackageJson: () => getSchemaFromPackageJson,
31
32
  getSchemaWithPath: () => getSchemaWithPath,
32
33
  getSchemaWithPathOptional: () => getSchemaWithPathOptional,
33
34
  printSchemaLoadedMessage: () => printSchemaLoadedMessage
34
35
  });
35
- module.exports = __toCommonJS(chunk_OKVM3CW4_exports);
36
+ module.exports = __toCommonJS(chunk_EYVG6XQS_exports);
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
+ var import_config = require("@prisma/config");
37
39
  var import_debug = require("@prisma/debug");
38
40
  var import_schema_files_loader = require("@prisma/schema-files-loader");
39
41
  var import_fs = __toESM(require("fs"));
@@ -117,6 +119,10 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfi
117
119
  if (prismaConfigResult.ok) {
118
120
  return prismaConfigResult;
119
121
  }
122
+ const pkgJsonResult = await getSchemaFromPackageJson(cwd);
123
+ if (pkgJsonResult.ok) {
124
+ return pkgJsonResult;
125
+ }
120
126
  const defaultResult = await getDefaultSchema(cwd);
121
127
  if (defaultResult.ok) {
122
128
  return defaultResult;
@@ -173,6 +179,36 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
173
179
  }
174
180
  return schemaResult;
175
181
  }
182
+ async function getSchemaFromPackageJson(cwd) {
183
+ const prismaConfig = await (0, import_config.loadConfigFromPackageJson)(cwd);
184
+ debug("prismaConfig", prismaConfig);
185
+ if (!prismaConfig || !prismaConfig.config?.schema) {
186
+ return { ok: false, error: { kind: "PackageJsonNotConfigured" } };
187
+ }
188
+ const schemaPathFromPkgJson = prismaConfig.config.schema;
189
+ if (typeof schemaPathFromPkgJson !== "string") {
190
+ throw new Error(
191
+ `Provided schema path \`${schemaPathFromPkgJson}\` from \`${import_path.default.relative(
192
+ cwd,
193
+ prismaConfig.loadedFromFile
194
+ )}\` must be of type string`
195
+ );
196
+ }
197
+ const absoluteSchemaPath = import_path.default.isAbsolute(schemaPathFromPkgJson) ? schemaPathFromPkgJson : import_path.default.resolve(import_path.default.dirname(prismaConfig.loadedFromFile), schemaPathFromPkgJson);
198
+ const lookupResult = await readSchemaFromFileOrDirectory(absoluteSchemaPath);
199
+ if (!lookupResult.ok) {
200
+ throw new Error(
201
+ `Could not load schema from \`${import_path.default.relative(
202
+ cwd,
203
+ absoluteSchemaPath
204
+ )}\` provided by "prisma.schema" config of \`${import_path.default.relative(
205
+ cwd,
206
+ prismaConfig.loadedFromFile
207
+ )}\`: ${renderLookupError(lookupResult.error)}`
208
+ );
209
+ }
210
+ return lookupResult;
211
+ }
176
212
  async function getDefaultSchema(cwd, failures = []) {
177
213
  const lookupPaths = [import_path.default.join(cwd, "schema.prisma"), import_path.default.join(cwd, "prisma", "schema.prisma")];
178
214
  for (const path2 of lookupPaths) {
@@ -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_3GX3XWYB_exports = {};
30
- __export(chunk_3GX3XWYB_exports, {
29
+ var chunk_F5CB64I3_exports = {};
30
+ __export(chunk_F5CB64I3_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_3GX3XWYB_exports);
34
+ module.exports = __toCommonJS(chunk_F5CB64I3_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_IV6ZGJI6 = require("./chunk-IV6ZGJI6.js");
39
- var import_chunk_HEJWJKAQ = require("./chunk-HEJWJKAQ.js");
38
+ var import_chunk_2GNTDXXZ = require("./chunk-2GNTDXXZ.js");
39
+ var import_chunk_T4CG3XXO = require("./chunk-T4CG3XXO.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,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_IV6ZGJI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2GNTDXXZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_HEJWJKAQ.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_T4CG3XXO.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_NMWKLRPM_exports = {};
20
- __export(chunk_NMWKLRPM_exports, {
19
+ var chunk_FHQO3J4S_exports = {};
20
+ __export(chunk_FHQO3J4S_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_NMWKLRPM_exports);
24
- var import_chunk_ZQYZW6EF = require("./chunk-ZQYZW6EF.js");
23
+ module.exports = __toCommonJS(chunk_FHQO3J4S_exports);
24
+ var import_chunk_ZTBH33ES = require("./chunk-ZTBH33ES.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_ZQYZW6EF.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_ZTBH33ES.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,11 +26,11 @@ 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_HFFWZTVM_exports = {};
30
+ __export(chunk_HFFWZTVM_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_GSH4BXBI_exports);
33
+ module.exports = __toCommonJS(chunk_HFFWZTVM_exports);
34
34
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
35
35
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
36
36
  var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
@@ -1813,7 +1813,9 @@ async function sendPanic({
1813
1813
  return id;
1814
1814
  }
1815
1815
  function getCommand() {
1816
- if (process.argv[2] === "db" && process.argv[3] === "pull") {
1816
+ if (process.argv[2] === "introspect") {
1817
+ return "introspect";
1818
+ } else if (process.argv[2] === "db" && process.argv[3] === "pull") {
1817
1819
  return "db pull";
1818
1820
  }
1819
1821
  return process.argv.slice(2).join(" ");
@@ -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_DGWYSK57_exports = {};
30
- __export(chunk_DGWYSK57_exports, {
29
+ var chunk_MHQUGI5W_exports = {};
30
+ __export(chunk_MHQUGI5W_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_DGWYSK57_exports);
37
+ module.exports = __toCommonJS(chunk_MHQUGI5W_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_IV6ZGJI6 = require("./chunk-IV6ZGJI6.js");
42
- var import_chunk_HEJWJKAQ = require("./chunk-HEJWJKAQ.js");
41
+ var import_chunk_FHQO3J4S = require("./chunk-FHQO3J4S.js");
42
+ var import_chunk_S5HQSPZU = require("./chunk-S5HQSPZU.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_IV6ZGJI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_FHQO3J4S.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_HEJWJKAQ.prismaSchemaWasm.debug_panic();
92
+ import_chunk_S5HQSPZU.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_HEJWJKAQ.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_S5HQSPZU.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -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_BXLJID4Q_exports = {};
20
- __export(chunk_BXLJID4Q_exports, {
19
+ var chunk_MSFTYENN_exports = {};
20
+ __export(chunk_MSFTYENN_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_BXLJID4Q_exports);
23
+ module.exports = __toCommonJS(chunk_MSFTYENN_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": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
@@ -109,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
109
109
  "@prisma/generator": "workspace:*",
110
110
  "@prisma/generator-helper": "workspace:*",
111
111
  "@prisma/get-platform": "workspace:*",
112
- "@prisma/prisma-schema-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
113
- "@prisma/schema-engine-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-1.push-qtpkxwkvolmz-389b05cecb76e4e93db0ae07c19800226f238242",
113
+ "@prisma/schema-engine-wasm": "6.19.0-1.push-qtpkxwkvolmz-389b05cecb76e4e93db0ae07c19800226f238242",
114
114
  "@prisma/schema-files-loader": "workspace:*",
115
115
  arg: "5.0.2",
116
116
  prompts: "2.4.2"
117
117
  },
118
118
  peerDependencies: {
119
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
120
120
  },
121
121
  peerDependenciesMeta: {
122
122
  typescript: {
@@ -16,14 +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_FURGECAD_exports = {};
20
- __export(chunk_FURGECAD_exports, {
19
+ var chunk_PZMRR772_exports = {};
20
+ __export(chunk_PZMRR772_exports, {
21
21
  loadEnvFile: () => loadEnvFile
22
22
  });
23
- module.exports = __toCommonJS(chunk_FURGECAD_exports);
24
- var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
23
+ module.exports = __toCommonJS(chunk_PZMRR772_exports);
24
+ var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
25
25
  var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
26
- function loadEnvFile({
26
+ async function loadEnvFile({
27
27
  schemaPath,
28
28
  config,
29
29
  printMessage = false
@@ -33,7 +33,7 @@ function loadEnvFile({
33
33
  `);
34
34
  return;
35
35
  }
36
- const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaPath);
36
+ const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaPath);
37
37
  const envData = (0, import_chunk_3FP46GUV.tryLoadEnvs)(envPaths, { conflictCheck: "error" });
38
38
  if (printMessage && envData && envData.message) {
39
39
  process.stderr.write(envData.message + "\n");
@@ -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_4XXX5FAL_exports = {};
30
- __export(chunk_4XXX5FAL_exports, {
29
+ var chunk_Q7GDIUCT_exports = {};
30
+ __export(chunk_Q7GDIUCT_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_4XXX5FAL_exports);
34
+ module.exports = __toCommonJS(chunk_Q7GDIUCT_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_IV6ZGJI6 = require("./chunk-IV6ZGJI6.js");
38
- var import_chunk_HEJWJKAQ = require("./chunk-HEJWJKAQ.js");
37
+ var import_chunk_2GNTDXXZ = require("./chunk-2GNTDXXZ.js");
38
+ var import_chunk_T4CG3XXO = require("./chunk-T4CG3XXO.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,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_IV6ZGJI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_2GNTDXXZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_HEJWJKAQ.prismaSchemaWasm.debug_panic();
73
+ import_chunk_T4CG3XXO.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_HEJWJKAQ.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_T4CG3XXO.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_HEJWJKAQ_exports = {};
30
- __export(chunk_HEJWJKAQ_exports, {
29
+ var chunk_S5HQSPZU_exports = {};
30
+ __export(chunk_S5HQSPZU_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_HEJWJKAQ_exports);
37
- var import_chunk_BXLJID4Q = require("./chunk-BXLJID4Q.js");
36
+ module.exports = __toCommonJS(chunk_S5HQSPZU_exports);
37
+ var import_chunk_MSFTYENN = require("./chunk-MSFTYENN.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_BXLJID4Q.require_package)();
49
+ var { dependencies } = (0, import_chunk_MSFTYENN.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_XE6RNVGQ_exports = {};
30
- __export(chunk_XE6RNVGQ_exports, {
29
+ var chunk_SG7OCTEL_exports = {};
30
+ __export(chunk_SG7OCTEL_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_XE6RNVGQ_exports);
37
+ module.exports = __toCommonJS(chunk_SG7OCTEL_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_NMWKLRPM = require("./chunk-NMWKLRPM.js");
42
- var import_chunk_ZGOQNALR = require("./chunk-ZGOQNALR.js");
41
+ var import_chunk_2GNTDXXZ = require("./chunk-2GNTDXXZ.js");
42
+ var import_chunk_T4CG3XXO = require("./chunk-T4CG3XXO.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_NMWKLRPM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_2GNTDXXZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_ZGOQNALR.prismaSchemaWasm.debug_panic();
92
+ import_chunk_T4CG3XXO.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_ZGOQNALR.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_T4CG3XXO.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -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_TE6SZEUD_exports = {};
20
- __export(chunk_TE6SZEUD_exports, {
19
+ var chunk_T37624B7_exports = {};
20
+ __export(chunk_T37624B7_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_TE6SZEUD_exports);
23
+ module.exports = __toCommonJS(chunk_T37624B7_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.3",
29
+ version: "6.19.0-integration-engines-6-19-0-1-push-qtpkxwkvolmz-389b05cecb76e4e93db0ae07c19800226f238242.1",
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": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
@@ -109,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
109
109
  "@prisma/generator": "workspace:*",
110
110
  "@prisma/generator-helper": "workspace:*",
111
111
  "@prisma/get-platform": "workspace:*",
112
- "@prisma/prisma-schema-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
113
- "@prisma/schema-engine-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-1.push-qtpkxwkvolmz-389b05cecb76e4e93db0ae07c19800226f238242",
113
+ "@prisma/schema-engine-wasm": "6.19.0-1.push-qtpkxwkvolmz-389b05cecb76e4e93db0ae07c19800226f238242",
114
114
  "@prisma/schema-files-loader": "workspace:*",
115
115
  arg: "5.0.2",
116
116
  prompts: "2.4.2"
117
117
  },
118
118
  peerDependencies: {
119
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
120
120
  },
121
121
  peerDependenciesMeta: {
122
122
  typescript: {
@@ -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_ZGOQNALR_exports = {};
30
- __export(chunk_ZGOQNALR_exports, {
29
+ var chunk_T4CG3XXO_exports = {};
30
+ __export(chunk_T4CG3XXO_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_ZGOQNALR_exports);
37
- var import_chunk_TE6SZEUD = require("./chunk-TE6SZEUD.js");
36
+ module.exports = __toCommonJS(chunk_T4CG3XXO_exports);
37
+ var import_chunk_T37624B7 = require("./chunk-T37624B7.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_TE6SZEUD.require_package)();
49
+ var { dependencies } = (0, import_chunk_T37624B7.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_2AYJLW73_exports = {};
20
- __export(chunk_2AYJLW73_exports, {
19
+ var chunk_TKJCHPXO_exports = {};
20
+ __export(chunk_TKJCHPXO_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_2AYJLW73_exports);
24
- var import_chunk_BXLJID4Q = require("./chunk-BXLJID4Q.js");
25
- var packageJson = (0, import_chunk_BXLJID4Q.require_package)();
23
+ module.exports = __toCommonJS(chunk_TKJCHPXO_exports);
24
+ var import_chunk_T37624B7 = require("./chunk-T37624B7.js");
25
+ var packageJson = (0, import_chunk_T37624B7.require_package)();
26
26
  var version = packageJson.version;
@@ -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_KIFFN3IT_exports = {};
30
- __export(chunk_KIFFN3IT_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_KIFFN3IT_exports);
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
34
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
36
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_GSH4BXBI = require("./chunk-GSH4BXBI.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.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) {
@@ -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_GSH4BXBI.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.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_D4HTHJOT_exports = {};
20
- __export(chunk_D4HTHJOT_exports, {
19
+ var chunk_Y3TATLRO_exports = {};
20
+ __export(chunk_Y3TATLRO_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_D4HTHJOT_exports);
28
- var import_chunk_ZGOQNALR = require("./chunk-ZGOQNALR.js");
27
+ module.exports = __toCommonJS(chunk_Y3TATLRO_exports);
28
+ var import_chunk_T4CG3XXO = require("./chunk-T4CG3XXO.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_ZGOQNALR.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_T4CG3XXO.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_ZQYZW6EF_exports = {};
20
- __export(chunk_ZQYZW6EF_exports, {
19
+ var chunk_ZTBH33ES_exports = {};
20
+ __export(chunk_ZTBH33ES_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_ZQYZW6EF_exports);
24
- var import_chunk_TE6SZEUD = require("./chunk-TE6SZEUD.js");
25
- var packageJson = (0, import_chunk_TE6SZEUD.require_package)();
23
+ module.exports = __toCommonJS(chunk_ZTBH33ES_exports);
24
+ var import_chunk_MSFTYENN = require("./chunk-MSFTYENN.js");
25
+ var packageJson = (0, import_chunk_MSFTYENN.require_package)();
26
26
  var version = packageJson.version;