@prisma/internals 7.10.0-dev.9 → 7.10.0-integration-fix-prisma-publish-token.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 (62) hide show
  1. package/dist/{chunk-3OH47HQH.js → chunk-3IMRWXIL.js} +15 -15
  2. package/dist/{chunk-EBLNHWW6.js → chunk-3VD46SL7.js} +9 -9
  3. package/dist/{chunk-4YZJJPK2.js → chunk-56SGK3FA.js} +15 -15
  4. package/dist/{chunk-H2BTM6QL.js → chunk-5AOTWAVM.js} +14 -14
  5. package/dist/{chunk-AQYN6BFL.js → chunk-5BDP445D.js} +5 -5
  6. package/dist/{chunk-GZY7QBBF.js → chunk-5WRIOIZY.js} +5 -5
  7. package/dist/{chunk-LZ2DP3UC.js → chunk-6QMQ2JYG.js} +7 -7
  8. package/dist/{chunk-TZJROXB3.js → chunk-6Z766KGR.js} +6 -6
  9. package/dist/{chunk-JFFNC4AF.js → chunk-72IC6XXC.js} +5 -5
  10. package/dist/{chunk-KAH2NIWC.js → chunk-74RGCSUJ.js} +5 -5
  11. package/dist/{chunk-5P4WR3QW.js → chunk-7BDW72TQ.js} +13 -13
  12. package/dist/{chunk-3GIVRMID.js → chunk-CF53A7EF.js} +5 -5
  13. package/dist/{chunk-6PILE32P.js → chunk-CULHNO63.js} +29 -29
  14. package/dist/{chunk-GZLJZGHX.js → chunk-DUDEWDFC.js} +7 -7
  15. package/dist/{chunk-MD47SEWA.js → chunk-EWPXLBGE.js} +14 -14
  16. package/dist/{chunk-YXCPS3WU.js → chunk-FRVJZOHP.js} +6 -6
  17. package/dist/{chunk-T3LF4DKH.js → chunk-ISZV63ZU.js} +10 -10
  18. package/dist/{chunk-QKQKSUQO.js → chunk-JFXHOFJA.js} +5 -5
  19. package/dist/{chunk-VMG6ENBV.js → chunk-KVCNBZ75.js} +5 -5
  20. package/dist/{chunk-NZ7DJZZM.js → chunk-MV7NEBFP.js} +8 -8
  21. package/dist/{chunk-SH3LMKTB.js → chunk-PKF53VLJ.js} +5 -5
  22. package/dist/{chunk-PP22IZ7I.js → chunk-Q3A43VXT.js} +5 -5
  23. package/dist/{chunk-L2BUQUNG.js → chunk-QBNYSYZK.js} +5 -5
  24. package/dist/{chunk-6S5MN3NA.js → chunk-QMNPESAP.js} +4 -4
  25. package/dist/{chunk-ZB2V476P.js → chunk-R47SFJ5Z.js} +10 -10
  26. package/dist/{chunk-2BXDHSSY.js → chunk-TPCPXGC5.js} +5 -5
  27. package/dist/{chunk-CR3WUS3D.js → chunk-VUGB2H7M.js} +29 -29
  28. package/dist/{chunk-NUKBOD54.js → chunk-WFMA7DI5.js} +26 -22
  29. package/dist/{chunk-XGQEVNKT.js → chunk-XAAVALN7.js} +13 -13
  30. package/dist/chunk-YNDZCLVL.js +307 -0
  31. package/dist/{chunk-7IKUTPWQ.js → chunk-YXB6APHS.js} +5 -5
  32. package/dist/cli/checkUnsupportedDataProxy.d.ts +5 -5
  33. package/dist/cli/checkUnsupportedDataProxy.js +23 -23
  34. package/dist/cli/completion-values.js +24 -24
  35. package/dist/cli/getSchema.js +7 -7
  36. package/dist/cli/hashes.js +4 -4
  37. package/dist/cli/schemaContext.js +24 -24
  38. package/dist/engine-commands/errorHelpers.js +4 -4
  39. package/dist/engine-commands/formatSchema.js +22 -22
  40. package/dist/engine-commands/getConfig.js +9 -9
  41. package/dist/engine-commands/getDmmf.js +10 -10
  42. package/dist/engine-commands/getEnginesInfo.js +4 -4
  43. package/dist/engine-commands/index.js +33 -33
  44. package/dist/engine-commands/lintSchema.js +8 -8
  45. package/dist/engine-commands/mergeSchemas.js +9 -9
  46. package/dist/engine-commands/queryEngineCommons.js +6 -6
  47. package/dist/engine-commands/validate.js +9 -9
  48. package/dist/get-generators/getGenerators.d.ts +1 -0
  49. package/dist/get-generators/getGenerators.js +25 -25
  50. package/dist/index.js +75 -75
  51. package/dist/migrateTypes.d.ts +1 -1
  52. package/dist/sendPanic.js +3 -3
  53. package/dist/utils/getGitHubIssueUrl.js +4 -4
  54. package/dist/utils/getVersionFromPackageJson.js +3 -3
  55. package/dist/utils/handlePanic.js +5 -5
  56. package/dist/utils/missingGeneratorMessage.d.ts +3 -3
  57. package/dist/utils/missingGeneratorMessage.js +4 -4
  58. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +2 -2
  59. package/dist/utils/validatePrismaConfigWithDatasource.js +3 -3
  60. package/dist/wasm.js +5 -5
  61. package/package.json +16 -16
  62. package/dist/chunk-XKZ6CBLA.js +0 -281
@@ -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_3OH47HQH_exports = {};
30
- __export(chunk_3OH47HQH_exports, {
29
+ var chunk_3IMRWXIL_exports = {};
30
+ __export(chunk_3IMRWXIL_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_3OH47HQH_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_3IMRWXIL_exports);
35
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.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_VMG6ENBV = require("./chunk-VMG6ENBV.js");
39
- var import_chunk_AQYN6BFL = require("./chunk-AQYN6BFL.js");
38
+ var import_chunk_5WRIOIZY = require("./chunk-5WRIOIZY.js");
39
+ var import_chunk_5BDP445D = require("./chunk-5BDP445D.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -49,7 +49,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
49
49
  var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
50
50
  var GetConfigError = class extends Error {
51
51
  constructor(params) {
52
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
53
53
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
54
54
  return `${reason}
55
55
  ${errorCodeMessage}
@@ -61,22 +61,22 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_VMG6ENBV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_5WRIOIZY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
68
68
  async function getConfig(options) {
69
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
69
+ const debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "getConfigWasm");
70
70
  debug(`Using getConfig Wasm`);
71
71
  const configEither = (0, import_function.pipe)(
72
72
  (0, import_chunk_5DBOS77Y.tryCatch)(
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_AQYN6BFL.prismaSchemaWasm.debug_panic();
76
+ import_chunk_5BDP445D.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_AQYN6BFL.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_5BDP445D.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -117,7 +117,7 @@ async function getConfig(options) {
117
117
  }
118
118
  return Promise.resolve(data);
119
119
  }
120
- const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
120
+ const error = (0, import_chunk_YNDZCLVL.M)(configEither.left).with({ type: "wasm-error" }, (e) => {
121
121
  debugErrorType(e);
122
122
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
123
123
  const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
@@ -134,12 +134,12 @@ async function getConfig(options) {
134
134
  return panic;
135
135
  }
136
136
  const errorOutput = e.error.message;
137
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
137
+ return new GetConfigError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
138
138
  }).with({ type: "validation-error" }, (e) => {
139
139
  return new GetConfigError({
140
140
  _tag: "parsed",
141
141
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
142
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
142
+ reason: (0, import_chunk_6Z766KGR.createSchemaValidationError)(e.reason),
143
143
  message: formatErrors(e.error)
144
144
  });
145
145
  }).otherwise((e) => {
@@ -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_EBLNHWW6_exports = {};
30
- __export(chunk_EBLNHWW6_exports, {
29
+ var chunk_3VD46SL7_exports = {};
30
+ __export(chunk_3VD46SL7_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  resolveEngine: () => resolveEngine
33
33
  });
34
- module.exports = __toCommonJS(chunk_EBLNHWW6_exports);
34
+ module.exports = __toCommonJS(chunk_3VD46SL7_exports);
35
35
  var import_chunk_L6V54WGO = require("./chunk-L6V54WGO.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_5PJQQKQI = require("./chunk-5PJQQKQI.js");
38
38
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
39
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
39
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
40
40
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
41
41
  var import_fetch_engine = require("@prisma/fetch-engine");
42
42
  var import_path = __toESM(require("path"));
@@ -104,18 +104,18 @@ var fromNullable = function(a) {
104
104
  };
105
105
  function getEnginesInfo(enginesInfo) {
106
106
  const errors = [];
107
- const resolved = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ fromEnvVar: import_chunk_XKZ6CBLA.N.when(isSome2) }, (_engineInfo) => {
107
+ const resolved = (0, import_chunk_YNDZCLVL.M)(enginesInfo).with({ fromEnvVar: import_chunk_YNDZCLVL.z.when(isSome2) }, (_engineInfo) => {
108
108
  return `, resolved by ${_engineInfo.fromEnvVar.value}`;
109
109
  }).otherwise(() => "");
110
- const absolutePath = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isRight) }, (_engineInfo) => {
110
+ const absolutePath = (0, import_chunk_YNDZCLVL.M)(enginesInfo).with({ path: import_chunk_YNDZCLVL.z.when(import_chunk_5DBOS77Y.isRight) }, (_engineInfo) => {
111
111
  return _engineInfo.path.right;
112
- }).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isLeft) }, (_engineInfo) => {
112
+ }).with({ path: import_chunk_YNDZCLVL.z.when(import_chunk_5DBOS77Y.isLeft) }, (_engineInfo) => {
113
113
  errors.push(_engineInfo.path.left);
114
114
  return "E_CANNOT_RESOLVE_PATH";
115
115
  }).exhaustive();
116
- const version = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isRight) }, (_engineInfo) => {
116
+ const version = (0, import_chunk_YNDZCLVL.M)(enginesInfo).with({ version: import_chunk_YNDZCLVL.z.when(import_chunk_5DBOS77Y.isRight) }, (_engineInfo) => {
117
117
  return _engineInfo.version.right;
118
- }).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isLeft) }, (_engineInfo) => {
118
+ }).with({ version: import_chunk_YNDZCLVL.z.when(import_chunk_5DBOS77Y.isLeft) }, (_engineInfo) => {
119
119
  errors.push(_engineInfo.version.left);
120
120
  return "E_CANNOT_RESOLVE_VERSION";
121
121
  }).exhaustive();
@@ -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_4YZJJPK2_exports = {};
30
- __export(chunk_4YZJJPK2_exports, {
29
+ var chunk_56SGK3FA_exports = {};
30
+ __export(chunk_56SGK3FA_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_4YZJJPK2_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_56SGK3FA_exports);
35
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.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_GZY7QBBF = require("./chunk-GZY7QBBF.js");
39
- var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.js");
38
+ var import_chunk_KVCNBZ75 = require("./chunk-KVCNBZ75.js");
39
+ var import_chunk_Q3A43VXT = require("./chunk-Q3A43VXT.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -49,7 +49,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
49
49
  var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
50
50
  var GetConfigError = class extends Error {
51
51
  constructor(params) {
52
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
53
53
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
54
54
  return `${reason}
55
55
  ${errorCodeMessage}
@@ -61,22 +61,22 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_KVCNBZ75.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
68
68
  async function getConfig(options) {
69
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
69
+ const debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "getConfigWasm");
70
70
  debug(`Using getConfig Wasm`);
71
71
  const configEither = (0, import_function.pipe)(
72
72
  (0, import_chunk_5DBOS77Y.tryCatch)(
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_PP22IZ7I.prismaSchemaWasm.debug_panic();
76
+ import_chunk_Q3A43VXT.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_PP22IZ7I.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_Q3A43VXT.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -117,7 +117,7 @@ async function getConfig(options) {
117
117
  }
118
118
  return Promise.resolve(data);
119
119
  }
120
- const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
120
+ const error = (0, import_chunk_YNDZCLVL.M)(configEither.left).with({ type: "wasm-error" }, (e) => {
121
121
  debugErrorType(e);
122
122
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
123
123
  const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
@@ -134,12 +134,12 @@ async function getConfig(options) {
134
134
  return panic;
135
135
  }
136
136
  const errorOutput = e.error.message;
137
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
137
+ return new GetConfigError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
138
138
  }).with({ type: "validation-error" }, (e) => {
139
139
  return new GetConfigError({
140
140
  _tag: "parsed",
141
141
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
142
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
142
+ reason: (0, import_chunk_6Z766KGR.createSchemaValidationError)(e.reason),
143
143
  message: formatErrors(e.error)
144
144
  });
145
145
  }).otherwise((e) => {
@@ -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_H2BTM6QL_exports = {};
30
- __export(chunk_H2BTM6QL_exports, {
29
+ var chunk_5AOTWAVM_exports = {};
30
+ __export(chunk_5AOTWAVM_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_H2BTM6QL_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_5AOTWAVM_exports);
35
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.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_VMG6ENBV = require("./chunk-VMG6ENBV.js");
39
- var import_chunk_AQYN6BFL = require("./chunk-AQYN6BFL.js");
38
+ var import_chunk_KVCNBZ75 = require("./chunk-KVCNBZ75.js");
39
+ var import_chunk_Q3A43VXT = require("./chunk-Q3A43VXT.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -47,7 +47,7 @@ var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57
47
47
  var debug = (0, import_debug.default)("prisma:validate");
48
48
  var ValidateError = class extends Error {
49
49
  constructor(params) {
50
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
50
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
51
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
52
52
  return `${reason}
53
53
  ${errorCodeMessage}
@@ -59,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_VMG6ENBV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_KVCNBZ75.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_6Z766KGR.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_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_AQYN6BFL.prismaSchemaWasm.debug_panic();
74
+ import_chunk_Q3A43VXT.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_AQYN6BFL.prismaSchemaWasm.validate(params);
80
+ import_chunk_Q3A43VXT.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -89,7 +89,7 @@ function validate(options) {
89
89
  if ((0, import_chunk_5DBOS77Y.isRight)(validateEither)) {
90
90
  return;
91
91
  }
92
- const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
92
+ const error = (0, import_chunk_YNDZCLVL.M)(validateEither.left).with({ type: "wasm-error" }, (e) => {
93
93
  debugErrorType(e);
94
94
  console.error("");
95
95
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.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_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }
@@ -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_AQYN6BFL_exports = {};
30
- __export(chunk_AQYN6BFL_exports, {
29
+ var chunk_5BDP445D_exports = {};
30
+ __export(chunk_5BDP445D_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_AQYN6BFL_exports);
37
- var import_chunk_NZ7DJZZM = require("./chunk-NZ7DJZZM.js");
36
+ module.exports = __toCommonJS(chunk_5BDP445D_exports);
37
+ var import_chunk_6QMQ2JYG = require("./chunk-6QMQ2JYG.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_NZ7DJZZM.require_package)();
49
+ var { dependencies } = (0, import_chunk_6QMQ2JYG.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_GZY7QBBF_exports = {};
20
- __export(chunk_GZY7QBBF_exports, {
19
+ var chunk_5WRIOIZY_exports = {};
20
+ __export(chunk_5WRIOIZY_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_GZY7QBBF_exports);
23
+ module.exports = __toCommonJS(chunk_5WRIOIZY_exports);
24
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_3GIVRMID = require("./chunk-3GIVRMID.js");
25
+ var import_chunk_PKF53VLJ = require("./chunk-PKF53VLJ.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_3GIVRMID.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_PKF53VLJ.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_LZ2DP3UC_exports = {};
20
- __export(chunk_LZ2DP3UC_exports, {
19
+ var chunk_6QMQ2JYG_exports = {};
20
+ __export(chunk_6QMQ2JYG_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_LZ2DP3UC_exports);
23
+ module.exports = __toCommonJS(chunk_6QMQ2JYG_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) {
@@ -62,7 +62,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
62
62
  empathic: "2.0.0",
63
63
  "escape-string-regexp": "5.0.0",
64
64
  execa: "8.0.1",
65
- "find-up": "7.0.0",
65
+ "find-up": "8.0.0",
66
66
  "fp-ts": "2.16.9",
67
67
  "fs-extra": "11.3.0",
68
68
  "global-directory": "4.0.0",
@@ -85,7 +85,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
85
85
  tempy: "1.0.1",
86
86
  "terminal-link": "4.0.0",
87
87
  tmp: "0.2.3",
88
- "ts-pattern": "5.6.2",
88
+ "ts-pattern": "5.9.0",
89
89
  "ts-toolbelt": "9.6.0",
90
90
  typescript: "5.4.5",
91
91
  yarn: "1.22.22"
@@ -101,8 +101,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
101
101
  "@prisma/generator-helper": "workspace:*",
102
102
  "@prisma/get-dmmf": "workspace:*",
103
103
  "@prisma/get-platform": "workspace:*",
104
- "@prisma/prisma-schema-wasm": "7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad",
105
- "@prisma/schema-engine-wasm": "7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad",
104
+ "@prisma/prisma-schema-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
105
+ "@prisma/schema-engine-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
106
106
  "@prisma/schema-files-loader": "workspace:*",
107
107
  "@streamparser/json": "0.0.22",
108
108
  arg: "5.0.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_TZJROXB3_exports = {};
30
- __export(chunk_TZJROXB3_exports, {
29
+ var chunk_6Z766KGR_exports = {};
30
+ __export(chunk_6Z766KGR_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_TZJROXB3_exports);
36
+ module.exports = __toCommonJS(chunk_6Z766KGR_exports);
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
38
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
41
41
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_fs = __toESM(require("fs"));
@@ -72,12 +72,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
72
72
  ),
73
73
  (0, import_chunk_5DBOS77Y.map)((errorOutputAsJSON) => {
74
74
  const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
75
- const getConfigErrorInit = (0, import_chunk_XKZ6CBLA.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
75
+ const getConfigErrorInit = (0, import_chunk_YNDZCLVL.M)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
76
76
  return {
77
77
  reason: createSchemaValidationError(reason),
78
78
  errorCode: eJSON.error_code
79
79
  };
80
- }).with({ error_code: import_chunk_XKZ6CBLA.N.string }, (eJSON) => {
80
+ }).with({ error_code: import_chunk_YNDZCLVL.z.string }, (eJSON) => {
81
81
  return {
82
82
  reason,
83
83
  errorCode: eJSON.error_code
@@ -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_JFFNC4AF_exports = {};
20
- __export(chunk_JFFNC4AF_exports, {
19
+ var chunk_72IC6XXC_exports = {};
20
+ __export(chunk_72IC6XXC_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_JFFNC4AF_exports);
28
- var import_chunk_AQYN6BFL = require("./chunk-AQYN6BFL.js");
27
+ module.exports = __toCommonJS(chunk_72IC6XXC_exports);
28
+ var import_chunk_Q3A43VXT = require("./chunk-Q3A43VXT.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_AQYN6BFL.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_Q3A43VXT.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_KAH2NIWC_exports = {};
30
- __export(chunk_KAH2NIWC_exports, {
29
+ var chunk_74RGCSUJ_exports = {};
30
+ __export(chunk_74RGCSUJ_exports, {
31
31
  getCLIPathHash: () => getCLIPathHash,
32
32
  getProjectHash: () => getProjectHash
33
33
  });
34
- module.exports = __toCommonJS(chunk_KAH2NIWC_exports);
35
- var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
34
+ module.exports = __toCommonJS(chunk_74RGCSUJ_exports);
35
+ var import_chunk_TPCPXGC5 = require("./chunk-TPCPXGC5.js");
36
36
  var import_crypto = __toESM(require("crypto"));
37
37
  async function getProjectHash(schemaPath) {
38
- const projectPath = (await (0, import_chunk_2BXDHSSY.getSchemaWithPath)({ schemaPath }))?.schemaPath ?? process.cwd();
38
+ const projectPath = (await (0, import_chunk_TPCPXGC5.getSchemaWithPath)({ schemaPath }))?.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,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_5P4WR3QW_exports = {};
30
- __export(chunk_5P4WR3QW_exports, {
29
+ var chunk_7BDW72TQ_exports = {};
30
+ __export(chunk_7BDW72TQ_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_5P4WR3QW_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_7BDW72TQ_exports);
35
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.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_GZY7QBBF = require("./chunk-GZY7QBBF.js");
39
- var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.js");
38
+ var import_chunk_KVCNBZ75 = require("./chunk-KVCNBZ75.js");
39
+ var import_chunk_Q3A43VXT = require("./chunk-Q3A43VXT.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -47,7 +47,7 @@ var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57
47
47
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
48
48
  var MergeSchemasError = class extends Error {
49
49
  constructor(params) {
50
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
50
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
51
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
52
52
  return `${reason}
53
53
  ${errorCodeMessage}
@@ -59,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_KVCNBZ75.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_6Z766KGR.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_PP22IZ7I.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_Q3A43VXT.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -84,7 +84,7 @@ function mergeSchemas(options) {
84
84
  if ((0, import_chunk_5DBOS77Y.isRight)(mergeSchemasEither)) {
85
85
  return mergeSchemasEither.right;
86
86
  }
87
- const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
87
+ const error = (0, import_chunk_YNDZCLVL.M)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
88
  debugErrorType(e);
89
89
  console.error("");
90
90
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.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_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -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_3GIVRMID_exports = {};
20
- __export(chunk_3GIVRMID_exports, {
19
+ var chunk_CF53A7EF_exports = {};
20
+ __export(chunk_CF53A7EF_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_3GIVRMID_exports);
24
- var import_chunk_LZ2DP3UC = require("./chunk-LZ2DP3UC.js");
25
- var packageJson = (0, import_chunk_LZ2DP3UC.require_package)();
23
+ module.exports = __toCommonJS(chunk_CF53A7EF_exports);
24
+ var import_chunk_MV7NEBFP = require("./chunk-MV7NEBFP.js");
25
+ var packageJson = (0, import_chunk_MV7NEBFP.require_package)();
26
26
  var version = packageJson.version;