@prisma/internals 5.19.0-dev.12 → 5.19.0-dev.14

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 (60) hide show
  1. package/dist/{chunk-QL3K6JIN.js → chunk-244YD7SK.js} +7 -7
  2. package/dist/{chunk-P7PMCE2W.js → chunk-2547PJOS.js} +16 -16
  3. package/dist/{chunk-3DGPDGD3.js → chunk-52WHZIYV.js} +5 -5
  4. package/dist/{chunk-2GL5KAYM.js → chunk-5ANINUBN.js} +5 -5
  5. package/dist/{chunk-4KELZQEZ.js → chunk-7G6PW7SC.js} +23 -23
  6. package/dist/{chunk-4A5ZK522.js → chunk-7MD6344A.js} +3 -3
  7. package/dist/{chunk-GHYJGM56.js → chunk-7SPHTPDV.js} +5 -5
  8. package/dist/{chunk-SLGMG65I.js → chunk-EBLDSWRI.js} +20 -14
  9. package/dist/{chunk-4RKJ76H7.js → chunk-EUUFBYFR.js} +5 -5
  10. package/dist/{chunk-OKF6INNR.js → chunk-FQMLECK4.js} +22 -22
  11. package/dist/{chunk-3CEAGGAZ.js → chunk-GTWUIJIK.js} +5 -5
  12. package/dist/{chunk-J3L6JLSQ.js → chunk-HBK7F45X.js} +5 -5
  13. package/dist/{chunk-5M5ACSPI.js → chunk-HYNAWCHD.js} +35 -35
  14. package/dist/{chunk-KUMD5MBR.js → chunk-IAEMHQAC.js} +10 -10
  15. package/dist/{chunk-B7JVEC2F.js → chunk-IG4YJK6N.js} +5 -5
  16. package/dist/{chunk-RDUPLVMD.js → chunk-JJKQ5442.js} +5 -5
  17. package/dist/{chunk-AFG6YPOK.js → chunk-KQH5GTIL.js} +5 -5
  18. package/dist/{chunk-6TPLIQJ5.js → chunk-LMOM7YIO.js} +15 -15
  19. package/dist/{chunk-VU4BZAMD.js → chunk-M6CGEYIX.js} +6 -6
  20. package/dist/{chunk-AP37UO7C.js → chunk-MMVW76LG.js} +5 -5
  21. package/dist/{chunk-EYOPVHNV.js → chunk-NDEGWMVS.js} +28 -28
  22. package/dist/{chunk-QOTVZEEZ.js → chunk-PFLLVWZX.js} +4 -4
  23. package/dist/{chunk-JBKRHDKT.js → chunk-QITIBPMX.js} +16 -16
  24. package/dist/{chunk-RZG4NJ36.js → chunk-QXCVTFEV.js} +15 -15
  25. package/dist/{chunk-6J3WFMQY.js → chunk-R5VLWKUU.js} +35 -35
  26. package/dist/{chunk-YM3CE76B.js → chunk-S3323RUL.js} +48 -48
  27. package/dist/{chunk-3I7L4PJV.js → chunk-TTXXVXZB.js} +22 -22
  28. package/dist/{chunk-NQ7OW3TG.js → chunk-W7HTQASZ.js} +23 -23
  29. package/dist/{chunk-PN2OFBAO.js → chunk-X4GRUQLB.js} +5 -5
  30. package/dist/cli/checkUnsupportedDataProxy.js +21 -21
  31. package/dist/cli/getSchema.js +26 -26
  32. package/dist/cli/hashes.js +21 -21
  33. package/dist/engine-commands/errorHelpers.js +4 -4
  34. package/dist/engine-commands/formatSchema.js +20 -20
  35. package/dist/engine-commands/getConfig.js +13 -13
  36. package/dist/engine-commands/getDmmf.js +10 -10
  37. package/dist/engine-commands/getEngineVersion.js +5 -5
  38. package/dist/engine-commands/getEnginesMetaInfo.js +8 -8
  39. package/dist/engine-commands/index.js +31 -31
  40. package/dist/engine-commands/lintSchema.js +8 -8
  41. package/dist/engine-commands/mergeSchemas.js +10 -10
  42. package/dist/engine-commands/queryEngineCommons.js +7 -7
  43. package/dist/engine-commands/validate.js +10 -10
  44. package/dist/get-generators/generatorResolvers/generatorResolvers.js +20 -20
  45. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +20 -20
  46. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +20 -20
  47. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +21 -21
  48. package/dist/get-generators/getGenerators.js +23 -23
  49. package/dist/getPackedPackage.js +2 -2
  50. package/dist/index.js +59 -59
  51. package/dist/resolveBinary.js +7 -7
  52. package/dist/schemaEngineCommands.js +8 -8
  53. package/dist/sendPanic.js +20 -20
  54. package/dist/utils/fs-functional.js +9 -9
  55. package/dist/utils/getEnvPaths.js +20 -20
  56. package/dist/utils/getVersionFromPackageJson.js +3 -3
  57. package/dist/utils/handlePanic.js +20 -20
  58. package/dist/utils/loadEnvFile.js +20 -20
  59. package/dist/wasm.js +4 -4
  60. package/package.json +9 -9
@@ -16,16 +16,16 @@ 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_QL3K6JIN_exports = {};
20
- __export(chunk_QL3K6JIN_exports, {
19
+ var chunk_244YD7SK_exports = {};
20
+ __export(chunk_244YD7SK_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_QL3K6JIN_exports);
24
+ module.exports = __toCommonJS(chunk_244YD7SK_exports);
25
25
  var import_chunk_S4LINK5Y = require("./chunk-S4LINK5Y.js");
26
26
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
27
- var import_chunk_GHYJGM56 = require("./chunk-GHYJGM56.js");
28
- var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
27
+ var import_chunk_7SPHTPDV = require("./chunk-7SPHTPDV.js");
28
+ var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
29
29
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
30
30
  var import_engines = require("@prisma/engines");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_GHYJGM56.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_7SPHTPDV.resolveBinary)(binaryName, enginePath);
39
39
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
40
40
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
41
41
  (0, import_get_platform.assertNodeAPISupported)();
@@ -47,7 +47,7 @@ async function getEngineVersion(enginePath, binaryName) {
47
47
  }
48
48
  }
49
49
  function safeGetEngineVersion(enginePath, binaryName) {
50
- return (0, import_chunk_4A5ZK522.tryCatch2)(
50
+ return (0, import_chunk_7MD6344A.tryCatch2)(
51
51
  () => getEngineVersion(enginePath, binaryName),
52
52
  (error) => error
53
53
  );
@@ -26,25 +26,25 @@ 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_P7PMCE2W_exports = {};
30
- __export(chunk_P7PMCE2W_exports, {
29
+ var chunk_2547PJOS_exports = {};
30
+ __export(chunk_2547PJOS_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_P7PMCE2W_exports);
34
+ module.exports = __toCommonJS(chunk_2547PJOS_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
36
+ var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
37
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_AFG6YPOK = require("./chunk-AFG6YPOK.js");
39
- var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
38
+ var import_chunk_EUUFBYFR = require("./chunk-EUUFBYFR.js");
39
+ var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_J3L6JLSQ = require("./chunk-J3L6JLSQ.js");
41
+ var import_chunk_HBK7F45X = require("./chunk-HBK7F45X.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
- var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
43
+ var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
46
46
  var import_debug = __toESM(require("@prisma/debug"));
47
- var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
47
+ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
48
48
  var debug = (0, import_debug.default)("prisma:validate");
49
49
  var ValidateError = class extends Error {
50
50
  constructor(params) {
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_AFG6YPOK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_EUUFBYFR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
- (0, import_chunk_4A5ZK522.tryCatch)(
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_J3L6JLSQ.prismaSchemaWasm.debug_panic();
75
+ import_chunk_HBK7F45X.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_J3L6JLSQ.prismaSchemaWasm.validate(params);
81
+ import_chunk_HBK7F45X.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -87,7 +87,7 @@ function validate(options) {
87
87
  })
88
88
  )
89
89
  );
90
- if ((0, import_chunk_4A5ZK522.isRight)(validateEither)) {
90
+ if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
91
91
  return;
92
92
  }
93
93
  const error = (0, import_chunk_H3T4L34H.$)(validateEither.left).with({ type: "wasm-error" }, (e) => {
@@ -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_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_IAEMHQAC.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_3DGPDGD3_exports = {};
20
- __export(chunk_3DGPDGD3_exports, {
19
+ var chunk_52WHZIYV_exports = {};
20
+ __export(chunk_52WHZIYV_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_3DGPDGD3_exports);
23
+ module.exports = __toCommonJS(chunk_52WHZIYV_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -69,7 +69,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
69
69
  execa: "5.1.1",
70
70
  "fast-glob": "3.3.2",
71
71
  "find-up": "5.0.0",
72
- "fp-ts": "2.16.8",
72
+ "fp-ts": "2.16.9",
73
73
  "fs-extra": "11.1.1",
74
74
  "fs-jetpack": "5.1.0",
75
75
  "global-dirs": "4.0.0",
@@ -107,7 +107,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
107
107
  "@prisma/fetch-engine": "workspace:*",
108
108
  "@prisma/generator-helper": "workspace:*",
109
109
  "@prisma/get-platform": "workspace:*",
110
- "@prisma/prisma-schema-wasm": "5.19.0-23.c356d1b4064663e128504e183e2b0cbe5fcdb063",
110
+ "@prisma/prisma-schema-wasm": "5.19.0-26.8a3982b39f6dc8065ba99a0d212b3e18a5cd2d1d",
111
111
  "@prisma/schema-files-loader": "workspace:*",
112
112
  arg: "5.0.2",
113
113
  prompts: "2.4.2"
@@ -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_2GL5KAYM_exports = {};
20
- __export(chunk_2GL5KAYM_exports, {
19
+ var chunk_5ANINUBN_exports = {};
20
+ __export(chunk_5ANINUBN_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_2GL5KAYM_exports);
24
- var import_chunk_3DGPDGD3 = require("./chunk-3DGPDGD3.js");
25
- var packageJson = (0, import_chunk_3DGPDGD3.require_package)();
23
+ module.exports = __toCommonJS(chunk_5ANINUBN_exports);
24
+ var import_chunk_52WHZIYV = require("./chunk-52WHZIYV.js");
25
+ var packageJson = (0, import_chunk_52WHZIYV.require_package)();
26
26
  var version = packageJson.version;
@@ -26,29 +26,29 @@ 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_4KELZQEZ_exports = {};
30
- __export(chunk_4KELZQEZ_exports, {
29
+ var chunk_7G6PW7SC_exports = {};
30
+ __export(chunk_7G6PW7SC_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_4KELZQEZ_exports);
37
+ module.exports = __toCommonJS(chunk_7G6PW7SC_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
39
+ var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
40
40
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
41
- var import_chunk_AFG6YPOK = require("./chunk-AFG6YPOK.js");
42
- var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
41
+ var import_chunk_KQH5GTIL = require("./chunk-KQH5GTIL.js");
42
+ var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
43
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
44
- var import_chunk_J3L6JLSQ = require("./chunk-J3L6JLSQ.js");
44
+ var import_chunk_JJKQ5442 = require("./chunk-JJKQ5442.js");
45
45
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
46
- var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
46
+ var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
48
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
49
49
  var import_debug = __toESM(require("@prisma/debug"));
50
50
  var import_get_platform = require("@prisma/get-platform");
51
- var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
51
+ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
52
52
  var debug = (0, import_debug.default)("prisma:getConfig");
53
53
  var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
54
54
  var GetConfigError = class extends Error {
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_AFG6YPOK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_KQH5GTIL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
83
83
  return urlFromValue ?? urlEnvVarValue;
84
84
  }
85
85
  async function getConfig(options) {
86
- const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "getConfigWasm");
87
87
  debug(`Using getConfig Wasm`);
88
88
  const configEither = (0, import_function.pipe)(
89
- (0, import_chunk_4A5ZK522.tryCatch)(
89
+ (0, import_chunk_7MD6344A.tryCatch)(
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_J3L6JLSQ.prismaSchemaWasm.debug_panic();
93
+ import_chunk_JJKQ5442.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_J3L6JLSQ.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_JJKQ5442.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -107,11 +107,11 @@ async function getConfig(options) {
107
107
  error: e
108
108
  })
109
109
  ),
110
- (0, import_chunk_4A5ZK522.map)((result) => ({ result })),
111
- (0, import_chunk_4A5ZK522.chainW)(
110
+ (0, import_chunk_7MD6344A.map)((result) => ({ result })),
111
+ (0, import_chunk_7MD6344A.chainW)(
112
112
  ({ result }) => (
113
113
  // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
114
- (0, import_chunk_4A5ZK522.tryCatch)(
114
+ (0, import_chunk_7MD6344A.tryCatch)(
115
115
  () => JSON.parse(result),
116
116
  (e) => ({
117
117
  type: "parse-json",
@@ -121,18 +121,18 @@ async function getConfig(options) {
121
121
  )
122
122
  )
123
123
  ),
124
- (0, import_chunk_4A5ZK522.chainW)((response) => {
124
+ (0, import_chunk_7MD6344A.chainW)((response) => {
125
125
  if (response.errors.length > 0) {
126
- return (0, import_chunk_4A5ZK522.left)({
126
+ return (0, import_chunk_7MD6344A.left)({
127
127
  type: "validation-error",
128
128
  reason: "(get-config wasm)",
129
129
  error: response.errors
130
130
  });
131
131
  }
132
- return (0, import_chunk_4A5ZK522.right)(response.config);
132
+ return (0, import_chunk_7MD6344A.right)(response.config);
133
133
  })
134
134
  );
135
- if ((0, import_chunk_4A5ZK522.isRight)(configEither)) {
135
+ if ((0, import_chunk_7MD6344A.isRight)(configEither)) {
136
136
  debug("config data retrieved without errors in getConfig Wasm");
137
137
  const { right: data } = configEither;
138
138
  for (const generator of data.generators) {
@@ -160,12 +160,12 @@ async function getConfig(options) {
160
160
  return panic;
161
161
  }
162
162
  const errorOutput = e.error.message;
163
- return new GetConfigError((0, import_chunk_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
164
164
  }).with({ type: "validation-error" }, (e) => {
165
165
  return new GetConfigError({
166
166
  _tag: "parsed",
167
167
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
168
- reason: (0, import_chunk_KUMD5MBR.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_IAEMHQAC.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((e) => {
@@ -16,8 +16,8 @@ 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_4A5ZK522_exports = {};
20
- __export(chunk_4A5ZK522_exports, {
19
+ var chunk_7MD6344A_exports = {};
20
+ __export(chunk_7MD6344A_exports, {
21
21
  as: () => as,
22
22
  asUnit: () => asUnit,
23
23
  chain: () => chain,
@@ -41,7 +41,7 @@ __export(chunk_4A5ZK522_exports, {
41
41
  tryCatch: () => tryCatch,
42
42
  tryCatch2: () => tryCatch2
43
43
  });
44
- module.exports = __toCommonJS(chunk_4A5ZK522_exports);
44
+ module.exports = __toCommonJS(chunk_7MD6344A_exports);
45
45
  var __spreadArray = function(to, from, pack) {
46
46
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
47
47
  if (ar || !(i in from)) {
@@ -26,19 +26,19 @@ 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_GHYJGM56_exports = {};
30
- __export(chunk_GHYJGM56_exports, {
29
+ var chunk_7SPHTPDV_exports = {};
30
+ __export(chunk_7SPHTPDV_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_GHYJGM56_exports);
37
+ module.exports = __toCommonJS(chunk_7SPHTPDV_exports);
38
38
  var import_chunk_RQPDQSHK = require("./chunk-RQPDQSHK.js");
39
39
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
- var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
41
+ var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
42
42
  var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
43
43
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
44
44
  var import_engines = require("@prisma/engines");
@@ -90,7 +90,7 @@ async function resolveBinary(name, proposedPath) {
90
90
  );
91
91
  }
92
92
  function safeResolveBinary(name, proposedPath) {
93
- return (0, import_chunk_4A5ZK522.tryCatch2)(
93
+ return (0, import_chunk_7MD6344A.tryCatch2)(
94
94
  () => resolveBinary(name, proposedPath),
95
95
  (error) => error
96
96
  );
@@ -26,8 +26,8 @@ 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_SLGMG65I_exports = {};
30
- __export(chunk_SLGMG65I_exports, {
29
+ var chunk_EBLDSWRI_exports = {};
30
+ __export(chunk_EBLDSWRI_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  readPackageUp: () => readPackageUp,
33
33
  require_glob: () => require_glob,
@@ -35,7 +35,7 @@ __export(chunk_SLGMG65I_exports, {
35
35
  require_minimatch: () => require_minimatch,
36
36
  require_p_map: () => require_p_map
37
37
  });
38
- module.exports = __toCommonJS(chunk_SLGMG65I_exports);
38
+ module.exports = __toCommonJS(chunk_EBLDSWRI_exports);
39
39
  var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
40
40
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
41
41
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
@@ -5169,7 +5169,7 @@ ${frame}`;
5169
5169
  }
5170
5170
  });
5171
5171
  var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
5172
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"(exports, module2) {
5172
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module2) {
5173
5173
  "use strict";
5174
5174
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
5175
5175
  };
@@ -5177,7 +5177,7 @@ var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
5177
5177
  }
5178
5178
  });
5179
5179
  var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
5180
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"(exports, module2) {
5180
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module2) {
5181
5181
  "use strict";
5182
5182
  var SEMVER_SPEC_VERSION = "2.0.0";
5183
5183
  var MAX_LENGTH = 256;
@@ -5207,7 +5207,7 @@ var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
5207
5207
  }
5208
5208
  });
5209
5209
  var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
5210
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"(exports, module2) {
5210
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module2) {
5211
5211
  "use strict";
5212
5212
  var {
5213
5213
  MAX_SAFE_COMPONENT_LENGTH,
@@ -5291,7 +5291,7 @@ var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
5291
5291
  }
5292
5292
  });
5293
5293
  var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
5294
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"(exports, module2) {
5294
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module2) {
5295
5295
  "use strict";
5296
5296
  var looseOption = Object.freeze({ loose: true });
5297
5297
  var emptyOpts = Object.freeze({});
@@ -5308,7 +5308,7 @@ var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
5308
5308
  }
5309
5309
  });
5310
5310
  var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
5311
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js"(exports, module2) {
5311
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module2) {
5312
5312
  "use strict";
5313
5313
  var numeric = /^[0-9]+$/;
5314
5314
  var compareIdentifiers = (a, b) => {
@@ -5328,7 +5328,7 @@ var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
5328
5328
  }
5329
5329
  });
5330
5330
  var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
5331
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"(exports, module2) {
5331
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module2) {
5332
5332
  "use strict";
5333
5333
  var debug = require_debug();
5334
5334
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -5569,7 +5569,7 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
5569
5569
  }
5570
5570
  });
5571
5571
  var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
5572
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports, module2) {
5572
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module2) {
5573
5573
  "use strict";
5574
5574
  var SemVer = require_semver();
5575
5575
  var parse = (version, options, throwErrors = false) => {
@@ -5589,7 +5589,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
5589
5589
  }
5590
5590
  });
5591
5591
  var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
5592
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports, module2) {
5592
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module2) {
5593
5593
  "use strict";
5594
5594
  var parse = require_parse();
5595
5595
  var valid = (version, options) => {
@@ -5600,7 +5600,7 @@ var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
5600
5600
  }
5601
5601
  });
5602
5602
  var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
5603
- "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports, module2) {
5603
+ "../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module2) {
5604
5604
  "use strict";
5605
5605
  var parse = require_parse();
5606
5606
  var clean = (version, options) => {
@@ -5611,7 +5611,7 @@ var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
5611
5611
  }
5612
5612
  });
5613
5613
  var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
5614
- "../../node_modules/.pnpm/spdx-license-ids@3.0.18/node_modules/spdx-license-ids/index.json"(exports, module2) {
5614
+ "../../node_modules/.pnpm/spdx-license-ids@3.0.20/node_modules/spdx-license-ids/index.json"(exports, module2) {
5615
5615
  module2.exports = [
5616
5616
  "0BSD",
5617
5617
  "3D-Slicer-1.0",
@@ -5811,6 +5811,8 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
5811
5811
  "DRL-1.0",
5812
5812
  "DRL-1.1",
5813
5813
  "DSDP",
5814
+ "DocBook-Schema",
5815
+ "DocBook-XML",
5814
5816
  "Dotseqn",
5815
5817
  "ECL-1.0",
5816
5818
  "ECL-2.0",
@@ -5874,6 +5876,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
5874
5876
  "Glulxe",
5875
5877
  "Graphics-Gems",
5876
5878
  "Gutmann",
5879
+ "HIDAPI",
5877
5880
  "HP-1986",
5878
5881
  "HP-1989",
5879
5882
  "HPND",
@@ -5884,6 +5887,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
5884
5887
  "HPND-Kevlin-Henney",
5885
5888
  "HPND-MIT-disclaimer",
5886
5889
  "HPND-Markus-Kuhn",
5890
+ "HPND-Netrek",
5887
5891
  "HPND-Pbmplus",
5888
5892
  "HPND-UC",
5889
5893
  "HPND-UC-export-US",
@@ -6017,7 +6021,6 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
6017
6021
  "NTP",
6018
6022
  "NTP-0",
6019
6023
  "Naumen",
6020
- "Net-SNMP",
6021
6024
  "NetCDF",
6022
6025
  "Newsletr",
6023
6026
  "Nokia",
@@ -6099,6 +6102,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
6099
6102
  "RSCPL",
6100
6103
  "Rdisc",
6101
6104
  "Ruby",
6105
+ "Ruby-pty",
6102
6106
  "SAX-PD",
6103
6107
  "SAX-PD-2.0",
6104
6108
  "SCEA",
@@ -6155,6 +6159,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
6155
6159
  "UMich-Merit",
6156
6160
  "UPL-1.0",
6157
6161
  "URT-RLE",
6162
+ "Ubuntu-font-1.0",
6158
6163
  "Unicode-3.0",
6159
6164
  "Unicode-DFS-2015",
6160
6165
  "Unicode-DFS-2016",
@@ -6173,6 +6178,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
6173
6178
  "Wsuipa",
6174
6179
  "X11",
6175
6180
  "X11-distribute-modifications-variant",
6181
+ "X11-swapped",
6176
6182
  "XFree86-1.1",
6177
6183
  "XSkat",
6178
6184
  "Xdebug-1.03",
@@ -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_4RKJ76H7_exports = {};
20
- __export(chunk_4RKJ76H7_exports, {
19
+ var chunk_EUUFBYFR_exports = {};
20
+ __export(chunk_EUUFBYFR_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_4RKJ76H7_exports);
24
- var import_chunk_B7JVEC2F = require("./chunk-B7JVEC2F.js");
23
+ module.exports = __toCommonJS(chunk_EUUFBYFR_exports);
24
+ var import_chunk_5ANINUBN = require("./chunk-5ANINUBN.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_B7JVEC2F.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_5ANINUBN.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,25 +26,25 @@ 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_OKF6INNR_exports = {};
30
- __export(chunk_OKF6INNR_exports, {
29
+ var chunk_FQMLECK4_exports = {};
30
+ __export(chunk_FQMLECK4_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_OKF6INNR_exports);
34
+ module.exports = __toCommonJS(chunk_FQMLECK4_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
- var import_chunk_AFG6YPOK = require("./chunk-AFG6YPOK.js");
38
- var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
36
+ var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
+ var import_chunk_KQH5GTIL = require("./chunk-KQH5GTIL.js");
38
+ var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
39
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
40
- var import_chunk_J3L6JLSQ = require("./chunk-J3L6JLSQ.js");
40
+ var import_chunk_JJKQ5442 = require("./chunk-JJKQ5442.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
- var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
42
+ var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
45
45
  var import_debug = __toESM(require("@prisma/debug"));
46
46
  var import_fs = __toESM(require("fs"));
47
- var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
47
+ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
48
48
  var debug = (0, import_debug.default)("prisma:getDMMF");
49
49
  var GetDmmfError = class extends Error {
50
50
  constructor(params) {
@@ -60,16 +60,16 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_AFG6YPOK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_KQH5GTIL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
67
67
  async function getDMMF(options) {
68
68
  warnOnDeprecatedFeatureFlag(options.previewFeatures);
69
- const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "getDmmfWasm");
69
+ const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "getDmmfWasm");
70
70
  debug(`Using getDmmf Wasm`);
71
71
  const dmmfPipeline = (0, import_function.pipe)(
72
- (0, import_chunk_4A5ZK522.tryCatch2)(
72
+ (0, import_chunk_7MD6344A.tryCatch2)(
73
73
  () => {
74
74
  if (options.datamodel) {
75
75
  debug("Using given datamodel");
@@ -85,19 +85,19 @@ async function getDMMF(options) {
85
85
  datamodelPath: options.datamodelPath
86
86
  })
87
87
  ),
88
- (0, import_chunk_4A5ZK522.chainW2)((datamodel) => {
88
+ (0, import_chunk_7MD6344A.chainW2)((datamodel) => {
89
89
  return (0, import_function.pipe)(
90
- (0, import_chunk_4A5ZK522.tryCatch)(
90
+ (0, import_chunk_7MD6344A.tryCatch)(
91
91
  () => {
92
92
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
93
93
  debug("Triggering a Rust panic...");
94
- import_chunk_J3L6JLSQ.prismaSchemaWasm.debug_panic();
94
+ import_chunk_JJKQ5442.prismaSchemaWasm.debug_panic();
95
95
  }
96
96
  const params = JSON.stringify({
97
97
  prismaSchema: datamodel,
98
98
  noColor: Boolean(process.env.NO_COLOR)
99
99
  });
100
- const data = import_chunk_J3L6JLSQ.prismaSchemaWasm.get_dmmf(params);
100
+ const data = import_chunk_JJKQ5442.prismaSchemaWasm.get_dmmf(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -106,11 +106,11 @@ async function getDMMF(options) {
106
106
  error: e
107
107
  })
108
108
  ),
109
- (0, import_chunk_4A5ZK522.map)((result) => ({ result })),
110
- (0, import_chunk_4A5ZK522.chainW)(
109
+ (0, import_chunk_7MD6344A.map)((result) => ({ result })),
110
+ (0, import_chunk_7MD6344A.chainW)(
111
111
  ({ result }) => (
112
112
  // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
113
- (0, import_chunk_4A5ZK522.tryCatch)(
113
+ (0, import_chunk_7MD6344A.tryCatch)(
114
114
  () => JSON.parse(result),
115
115
  (e) => ({
116
116
  type: "parse-json",
@@ -120,12 +120,12 @@ async function getDMMF(options) {
120
120
  )
121
121
  )
122
122
  ),
123
- import_chunk_4A5ZK522.fromEither
123
+ import_chunk_7MD6344A.fromEither
124
124
  );
125
125
  })
126
126
  );
127
127
  const dmmfEither = await dmmfPipeline();
128
- if ((0, import_chunk_4A5ZK522.isRight)(dmmfEither)) {
128
+ if ((0, import_chunk_7MD6344A.isRight)(dmmfEither)) {
129
129
  debug("dmmf data retrieved without errors in getDmmf Wasm");
130
130
  const { right: data } = dmmfEither;
131
131
  return Promise.resolve(data);
@@ -158,7 +158,7 @@ Datamodel path: "${e.datamodelPath}"`,
158
158
  return panic;
159
159
  }
160
160
  const errorOutput = e.error.message;
161
- return new GetDmmfError((0, import_chunk_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
161
+ return new GetDmmfError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
162
162
  }).with({ type: "parse-json" }, (e) => {
163
163
  debugErrorType(e);
164
164
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });