@prisma/internals 5.23.0-dev.3 → 5.23.0-dev.31

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 (77) hide show
  1. package/dist/{chunk-4ILHL6B6.js → chunk-2NKS77KZ.js} +5 -5
  2. package/dist/{chunk-INHGTPT5.js → chunk-3RTZP252.js} +14 -14
  3. package/dist/{chunk-BATSRJXK.js → chunk-4URKTYJN.js} +8 -8
  4. package/dist/{chunk-QEVSPE5U.js → chunk-4ZWQEFR7.js} +5 -5
  5. package/dist/{chunk-5I4BOTBV.js → chunk-5MCWLJSR.js} +3 -9
  6. package/dist/{chunk-7NNOHWLC.js → chunk-5YHOO7GQ.js} +837 -177
  7. package/dist/{chunk-IABMG3F4.js → chunk-77IC3DNO.js} +5 -5
  8. package/dist/{chunk-5UACJAAB.js → chunk-A4XQ4XQQ.js} +13 -13
  9. package/dist/{chunk-RAJSVWMK.js → chunk-BF23BTR5.js} +14 -14
  10. package/dist/{chunk-WMIBAVWZ.js → chunk-C47SCASR.js} +5 -5
  11. package/dist/{chunk-J3JE5NVO.js → chunk-CZDIXJEO.js} +56 -32
  12. package/dist/{chunk-U5YRV2DX.js → chunk-DLOPZF44.js} +12 -12
  13. package/dist/{chunk-ARF6SWJF.js → chunk-EFCETLMO.js} +61 -172
  14. package/dist/{chunk-LIB5PV7H.js → chunk-EJGKMYNQ.js} +5 -5
  15. package/dist/{chunk-OSOXVAZB.js → chunk-HPF5G47V.js} +9 -9
  16. package/dist/{chunk-IAEMHQAC.js → chunk-I4467NNA.js} +5 -5
  17. package/dist/{chunk-WJNKNGND.js → chunk-IVMOQ76O.js} +13 -13
  18. package/dist/{chunk-KRKPM7DP.js → chunk-JVFUHMFK.js} +5 -5
  19. package/dist/{chunk-4NFLAUKD.js → chunk-KQOJB3ZW.js} +70 -70
  20. package/dist/{chunk-3U2ANLD3.js → chunk-MGZOEY6N.js} +6 -6
  21. package/dist/{chunk-CSRUIX22.js → chunk-POKKMERM.js} +11 -11
  22. package/dist/{chunk-PK7HIANT.js → chunk-Q2A737XO.js} +7 -7
  23. package/dist/{chunk-ZMMFFAZY.js → chunk-QAT3BYWE.js} +5 -5
  24. package/dist/{chunk-4M4LPJPC.js → chunk-RRXVYT7O.js} +5 -5
  25. package/dist/{chunk-FTS2IEWX.js → chunk-S57RMXZW.js} +5 -5
  26. package/dist/{chunk-XLYQ6PQW.js → chunk-SLBBRUQS.js} +15 -15
  27. package/dist/{chunk-KVN73FD7.js → chunk-SW5AQHTQ.js} +11 -11
  28. package/dist/{chunk-ZY4F5GPM.js → chunk-TMKC3ODZ.js} +5 -5
  29. package/dist/{chunk-CCFQQATH.js → chunk-TUVTMPMA.js} +5 -5
  30. package/dist/{chunk-WCRKL55L.js → chunk-V2ZF7ETH.js} +7 -7
  31. package/dist/{chunk-YDZVEVUG.js → chunk-VRT7T6MF.js} +73 -73
  32. package/dist/{chunk-SZKPXBSP.js → chunk-WKA72AGK.js} +12 -12
  33. package/dist/{chunk-ZA3RMW2P.js → chunk-ZKAW5JSN.js} +5 -8
  34. package/dist/cli/checkUnsupportedDataProxy.js +25 -25
  35. package/dist/cli/getSchema.js +30 -30
  36. package/dist/cli/hashes.js +25 -25
  37. package/dist/engine-commands/errorHelpers.js +4 -4
  38. package/dist/engine-commands/formatSchema.js +24 -24
  39. package/dist/engine-commands/getConfig.js +12 -12
  40. package/dist/engine-commands/getDmmf.js +9 -9
  41. package/dist/engine-commands/index.js +33 -33
  42. package/dist/engine-commands/lintSchema.js +8 -8
  43. package/dist/engine-commands/mergeSchemas.js +9 -9
  44. package/dist/engine-commands/queryEngineCommons.js +6 -6
  45. package/dist/engine-commands/relativizePathInPSLError.js +2 -2
  46. package/dist/engine-commands/validate.js +9 -9
  47. package/dist/errorReporting.js +6 -6
  48. package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -24
  49. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
  50. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -24
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
  53. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -25
  54. package/dist/get-generators/getGenerators.js +27 -27
  55. package/dist/getPackedPackage.js +2 -2
  56. package/dist/index.js +58 -58
  57. package/dist/{multipart-parser-LCETWFPE.js → multipart-parser-32AROPTR.js} +9 -6
  58. package/dist/sendPanic.js +24 -24
  59. package/dist/utils/cloudflareD1.js +2 -2
  60. package/dist/utils/getCommandWithExecutor.js +3 -3
  61. package/dist/utils/getEnvPaths.js +24 -24
  62. package/dist/utils/getGitHubIssueUrl.js +3 -3
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +24 -24
  65. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  66. package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
  67. package/dist/utils/loadEnvFile.js +24 -24
  68. package/dist/wasm.js +4 -4
  69. package/package.json +11 -11
  70. package/dist/chunk-2DXAGCPS.js +0 -177
  71. package/dist/chunk-5XRQ7ONW.js +0 -122
  72. package/dist/chunk-QIVUAERL.js +0 -2202
  73. package/dist/chunk-QJZIYUVB.js +0 -110
  74. package/dist/chunk-TFSZCVKC.js +0 -166
  75. package/dist/chunk-V2VWODV3.js +0 -54
  76. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
  77. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +0 -132
@@ -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_IABMG3F4_exports = {};
20
- __export(chunk_IABMG3F4_exports, {
19
+ var chunk_77IC3DNO_exports = {};
20
+ __export(chunk_77IC3DNO_exports, {
21
21
  runPackageCmd: () => runPackageCmd
22
22
  });
23
- module.exports = __toCommonJS(chunk_IABMG3F4_exports);
24
- var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
23
+ module.exports = __toCommonJS(chunk_77IC3DNO_exports);
24
+ var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
25
25
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
26
26
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
27
27
  var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
28
28
  async function runPackageCmd(cwd, cmd, ...args) {
29
- await import_execa.default.command(await (0, import_chunk_3U2ANLD3.getPackageCmd)(cwd, cmd, ...args), {
29
+ await import_execa.default.command(await (0, import_chunk_MGZOEY6N.getPackageCmd)(cwd, cmd, ...args), {
30
30
  // we skip this because we are already in the generator
31
31
  env: { PRISMA_SKIP_POSTINSTALL_GENERATE: "true" },
32
32
  stdio: "inherit",
@@ -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_5UACJAAB_exports = {};
30
- __export(chunk_5UACJAAB_exports, {
29
+ var chunk_A4XQ4XQQ_exports = {};
30
+ __export(chunk_A4XQ4XQQ_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_5UACJAAB_exports);
34
+ module.exports = __toCommonJS(chunk_A4XQ4XQQ_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
- var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_LIB5PV7H = require("./chunk-LIB5PV7H.js");
36
+ var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_EJGKMYNQ = require("./chunk-EJGKMYNQ.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_QEVSPE5U = require("./chunk-QEVSPE5U.js");
41
+ var import_chunk_4ZWQEFR7 = require("./chunk-4ZWQEFR7.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -52,7 +52,7 @@ var ValidateError = class extends Error {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
55
- ${(0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(message)}`;
55
+ ${(0, import_chunk_C47SCASR.relativizePathInPSLError)(message)}`;
56
56
  }).with({ _tag: "unparsed" }, ({ message, reason }) => {
57
57
  const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
58
58
  return `${reason}
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_LIB5PV7H.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_EJGKMYNQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_QEVSPE5U.prismaSchemaWasm.debug_panic();
75
+ import_chunk_4ZWQEFR7.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_QEVSPE5U.prismaSchemaWasm.validate(params);
81
+ import_chunk_4ZWQEFR7.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -26,22 +26,22 @@ 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_RAJSVWMK_exports = {};
30
- __export(chunk_RAJSVWMK_exports, {
29
+ var chunk_BF23BTR5_exports = {};
30
+ __export(chunk_BF23BTR5_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_RAJSVWMK_exports);
37
+ module.exports = __toCommonJS(chunk_BF23BTR5_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
40
- var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
41
- var import_chunk_ZY4F5GPM = require("./chunk-ZY4F5GPM.js");
39
+ var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
40
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
+ var import_chunk_TMKC3ODZ = require("./chunk-TMKC3ODZ.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
43
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
44
- var import_chunk_CCFQQATH = require("./chunk-CCFQQATH.js");
44
+ var import_chunk_TUVTMPMA = require("./chunk-TUVTMPMA.js");
45
45
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
46
46
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_ZY4F5GPM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_TMKC3ODZ.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_IAEMHQAC.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "getConfigWasm");
87
87
  debug(`Using getConfig Wasm`);
88
88
  const configEither = (0, import_function.pipe)(
89
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_CCFQQATH.prismaSchemaWasm.debug_panic();
93
+ import_chunk_TUVTMPMA.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_CCFQQATH.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_TUVTMPMA.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -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_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_I4467NNA.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_IAEMHQAC.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_I4467NNA.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((e) => {
@@ -195,7 +195,7 @@ async function resolveBinaryTargets(generator) {
195
195
  }
196
196
  }
197
197
  function formatErrors(errors) {
198
- const formattedErrors = errors.map((e) => (0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(e.message)).join("\n\n");
198
+ const formattedErrors = errors.map((e) => (0, import_chunk_C47SCASR.relativizePathInPSLError)(e.message)).join("\n\n");
199
199
  const errorCount = `Validation Error Count: ${errors.length}`;
200
200
  return `${formattedErrors}
201
201
  ${errorCount}`;
@@ -26,12 +26,12 @@ 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_WMIBAVWZ_exports = {};
30
- __export(chunk_WMIBAVWZ_exports, {
29
+ var chunk_C47SCASR_exports = {};
30
+ __export(chunk_C47SCASR_exports, {
31
31
  relativizePathInPSLError: () => relativizePathInPSLError
32
32
  });
33
- module.exports = __toCommonJS(chunk_WMIBAVWZ_exports);
34
- var import_path = __toESM(require("path"));
33
+ module.exports = __toCommonJS(chunk_C47SCASR_exports);
34
+ var import_node_path = __toESM(require("node:path"));
35
35
  function relativizePathInPSLError(error) {
36
- return error.replaceAll(process.cwd() + import_path.default.sep, "");
36
+ return error.replaceAll(process.cwd() + import_node_path.default.sep, "");
37
37
  }
@@ -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_J3JE5NVO_exports = {};
30
- __export(chunk_J3JE5NVO_exports, {
29
+ var chunk_CZDIXJEO_exports = {};
30
+ __export(chunk_CZDIXJEO_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  readPackageUp: () => readPackageUp,
33
33
  require_glob: () => require_glob,
@@ -35,7 +35,7 @@ __export(chunk_J3JE5NVO_exports, {
35
35
  require_minimatch: () => require_minimatch,
36
36
  require_p_map: () => require_p_map
37
37
  });
38
- module.exports = __toCommonJS(chunk_J3JE5NVO_exports);
38
+ module.exports = __toCommonJS(chunk_CZDIXJEO_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_T5RACBRF = require("./chunk-T5RACBRF.js");
@@ -46,16 +46,16 @@ var import_chunk_H4J2FN2W = require("./chunk-H4J2FN2W.js");
46
46
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
47
47
  var import_fs = __toESM(require("fs"));
48
48
  var import_path = __toESM(require("path"));
49
- var import_path2 = __toESM(require("path"));
50
- var import_process = __toESM(require("process"));
51
- var import_promises = __toESM(require("fs/promises"));
52
- var import_url = require("url");
53
- var import_fs2 = __toESM(require("fs"));
54
- var import_path3 = __toESM(require("path"));
55
- var import_fs3 = __toESM(require("fs"));
56
- var import_promises2 = __toESM(require("fs/promises"));
57
- var import_path4 = __toESM(require("path"));
58
- var import_url2 = require("url");
49
+ var import_node_path = __toESM(require("node:path"));
50
+ var import_node_process = __toESM(require("node:process"));
51
+ var import_promises = __toESM(require("node:fs/promises"));
52
+ var import_node_url = require("node:url");
53
+ var import_node_fs = __toESM(require("node:fs"));
54
+ var import_node_path2 = __toESM(require("node:path"));
55
+ var import_node_fs2 = __toESM(require("node:fs"));
56
+ var import_promises2 = __toESM(require("node:fs/promises"));
57
+ var import_node_path3 = __toESM(require("node:path"));
58
+ var import_node_url2 = require("node:url");
59
59
  var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
60
60
  "../../node_modules/.pnpm/npm-normalize-package-bin@2.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports, module2) {
61
61
  "use strict";
@@ -804,6 +804,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
804
804
  continue;
805
805
  }
806
806
  switch (c) {
807
+ /* istanbul ignore next */
807
808
  case "/": {
808
809
  return false;
809
810
  }
@@ -815,6 +816,8 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
815
816
  clearStateChar();
816
817
  escaping = true;
817
818
  continue;
819
+ // the various stateChar values
820
+ // for the "extglob" stuff.
818
821
  case "?":
819
822
  case "*":
820
823
  case "+":
@@ -889,6 +892,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
889
892
  }
890
893
  continue;
891
894
  }
895
+ // these are mostly the same in regexp and glob
892
896
  case "[":
893
897
  clearStateChar();
894
898
  if (inClass) {
@@ -1869,6 +1873,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
1869
1873
  }
1870
1874
  var prefix;
1871
1875
  switch (n) {
1876
+ // if not, then this is rather simple
1872
1877
  case pattern.length:
1873
1878
  this._processSimple(pattern.join("/"), index);
1874
1879
  return;
@@ -2030,6 +2035,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
2030
2035
  GlobSync.prototype._readdirError = function(f, er) {
2031
2036
  switch (er.code) {
2032
2037
  case "ENOTSUP":
2038
+ // https://github.com/isaacs/node-glob/issues/205
2033
2039
  case "ENOTDIR":
2034
2040
  var abs = this._makeAbs(f);
2035
2041
  this.cache[abs] = "FILE";
@@ -2041,6 +2047,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
2041
2047
  }
2042
2048
  break;
2043
2049
  case "ENOENT":
2050
+ // not terribly unusual
2044
2051
  case "ELOOP":
2045
2052
  case "ENAMETOOLONG":
2046
2053
  case "UNKNOWN":
@@ -2484,6 +2491,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2484
2491
  }
2485
2492
  var prefix;
2486
2493
  switch (n) {
2494
+ // if not, then this is rather simple
2487
2495
  case pattern.length:
2488
2496
  this._processSimple(pattern.join("/"), index, cb);
2489
2497
  return;
@@ -2673,6 +2681,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2673
2681
  return;
2674
2682
  switch (er.code) {
2675
2683
  case "ENOTSUP":
2684
+ // https://github.com/isaacs/node-glob/issues/205
2676
2685
  case "ENOTDIR":
2677
2686
  var abs = this._makeAbs(f);
2678
2687
  this.cache[abs] = "FILE";
@@ -2685,6 +2694,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2685
2694
  }
2686
2695
  break;
2687
2696
  case "ENOENT":
2697
+ // not terribly unusual
2688
2698
  case "ELOOP":
2689
2699
  case "ENAMETOOLONG":
2690
2700
  case "UNKNOWN":
@@ -5327,6 +5337,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
5327
5337
  this.inc("patch", identifier, identifierBase);
5328
5338
  this.inc("pre", identifier, identifierBase);
5329
5339
  break;
5340
+ // If the input is a non-prerelease version, this acts the same as
5341
+ // prepatch.
5330
5342
  case "prerelease":
5331
5343
  if (this.prerelease.length === 0) {
5332
5344
  this.inc("patch", identifier, identifierBase);
@@ -5354,6 +5366,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
5354
5366
  }
5355
5367
  this.prerelease = [];
5356
5368
  break;
5369
+ // This probably shouldn't be used publicly.
5370
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
5357
5371
  case "pre": {
5358
5372
  const base = Number(identifierBase) ? 1 : 0;
5359
5373
  if (!identifier && identifierBase === false) {
@@ -9560,6 +9574,7 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9560
9574
  continue;
9561
9575
  }
9562
9576
  switch (c) {
9577
+ /* istanbul ignore next */
9563
9578
  case "/": {
9564
9579
  return false;
9565
9580
  }
@@ -9567,6 +9582,8 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9567
9582
  clearStateChar();
9568
9583
  escaping = true;
9569
9584
  continue;
9585
+ // the various stateChar values
9586
+ // for the "extglob" stuff.
9570
9587
  case "?":
9571
9588
  case "*":
9572
9589
  case "+":
@@ -9627,6 +9644,7 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9627
9644
  clearStateChar();
9628
9645
  re += "|";
9629
9646
  continue;
9647
+ // these are mostly the same in regexp and glob
9630
9648
  case "[":
9631
9649
  clearStateChar();
9632
9650
  if (inClass) {
@@ -10168,6 +10186,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10168
10186
  }
10169
10187
  var prefix;
10170
10188
  switch (n) {
10189
+ // if not, then this is rather simple
10171
10190
  case pattern.length:
10172
10191
  this._processSimple(pattern.join("/"), index);
10173
10192
  return;
@@ -10329,6 +10348,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10329
10348
  GlobSync.prototype._readdirError = function(f, er) {
10330
10349
  switch (er.code) {
10331
10350
  case "ENOTSUP":
10351
+ // https://github.com/isaacs/node-glob/issues/205
10332
10352
  case "ENOTDIR":
10333
10353
  var abs = this._makeAbs(f);
10334
10354
  this.cache[abs] = "FILE";
@@ -10340,6 +10360,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10340
10360
  }
10341
10361
  break;
10342
10362
  case "ENOENT":
10363
+ // not terribly unusual
10343
10364
  case "ELOOP":
10344
10365
  case "ENAMETOOLONG":
10345
10366
  case "UNKNOWN":
@@ -10666,6 +10687,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10666
10687
  }
10667
10688
  var prefix;
10668
10689
  switch (n) {
10690
+ // if not, then this is rather simple
10669
10691
  case pattern.length:
10670
10692
  this._processSimple(pattern.join("/"), index, cb);
10671
10693
  return;
@@ -10855,6 +10877,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10855
10877
  return;
10856
10878
  switch (er.code) {
10857
10879
  case "ENOTSUP":
10880
+ // https://github.com/isaacs/node-glob/issues/205
10858
10881
  case "ENOTDIR":
10859
10882
  var abs = this._makeAbs(f);
10860
10883
  this.cache[abs] = "FILE";
@@ -10867,6 +10890,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10867
10890
  }
10868
10891
  break;
10869
10892
  case "ENOENT":
10893
+ // not terribly unusual
10870
10894
  case "ELOOP":
10871
10895
  case "ENAMETOOLONG":
10872
10896
  case "UNKNOWN":
@@ -11588,17 +11612,17 @@ var require_tempy = (0, import_chunk_WWAWV7DQ.__commonJS)({
11588
11612
  }
11589
11613
  });
11590
11614
  var import_npm_packlist = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib5());
11591
- var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_url.fileURLToPath)(urlOrPath) : urlOrPath;
11615
+ var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
11592
11616
  async function findUp(name, {
11593
- cwd = import_process.default.cwd(),
11617
+ cwd = import_node_process.default.cwd(),
11594
11618
  type = "file",
11595
11619
  stopAt
11596
11620
  } = {}) {
11597
- let directory = import_path3.default.resolve(toPath(cwd) ?? "");
11598
- const { root } = import_path3.default.parse(directory);
11599
- stopAt = import_path3.default.resolve(directory, toPath(stopAt ?? root));
11621
+ let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
11622
+ const { root } = import_node_path2.default.parse(directory);
11623
+ stopAt = import_node_path2.default.resolve(directory, toPath(stopAt ?? root));
11600
11624
  while (directory && directory !== stopAt && directory !== root) {
11601
- const filePath = import_path3.default.isAbsolute(name) ? name : import_path3.default.join(directory, name);
11625
+ const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
11602
11626
  try {
11603
11627
  const stats = await import_promises.default.stat(filePath);
11604
11628
  if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
@@ -11606,27 +11630,27 @@ async function findUp(name, {
11606
11630
  }
11607
11631
  } catch {
11608
11632
  }
11609
- directory = import_path3.default.dirname(directory);
11633
+ directory = import_node_path2.default.dirname(directory);
11610
11634
  }
11611
11635
  }
11612
11636
  function findUpSync(name, {
11613
- cwd = import_process.default.cwd(),
11637
+ cwd = import_node_process.default.cwd(),
11614
11638
  type = "file",
11615
11639
  stopAt
11616
11640
  } = {}) {
11617
- let directory = import_path3.default.resolve(toPath(cwd) ?? "");
11618
- const { root } = import_path3.default.parse(directory);
11619
- stopAt = import_path3.default.resolve(directory, toPath(stopAt) ?? root);
11641
+ let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
11642
+ const { root } = import_node_path2.default.parse(directory);
11643
+ stopAt = import_node_path2.default.resolve(directory, toPath(stopAt) ?? root);
11620
11644
  while (directory && directory !== stopAt && directory !== root) {
11621
- const filePath = import_path3.default.isAbsolute(name) ? name : import_path3.default.join(directory, name);
11645
+ const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
11622
11646
  try {
11623
- const stats = import_fs2.default.statSync(filePath, { throwIfNoEntry: false });
11647
+ const stats = import_node_fs.default.statSync(filePath, { throwIfNoEntry: false });
11624
11648
  if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
11625
11649
  return filePath;
11626
11650
  }
11627
11651
  } catch {
11628
11652
  }
11629
- directory = import_path3.default.dirname(directory);
11653
+ directory = import_node_path2.default.dirname(directory);
11630
11654
  }
11631
11655
  }
11632
11656
  var import_code_frame = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib7(), 1);
@@ -11728,9 +11752,9 @@ function parseJson(string, reviver, fileName) {
11728
11752
  }
11729
11753
  var import_normalize_package_data = (0, import_chunk_WWAWV7DQ.__toESM)(require_normalize(), 1);
11730
11754
  function toPath2(urlOrPath) {
11731
- return urlOrPath instanceof URL ? (0, import_url2.fileURLToPath)(urlOrPath) : urlOrPath;
11755
+ return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
11732
11756
  }
11733
- var getPackagePath = (cwd) => import_path4.default.resolve(toPath2(cwd) ?? ".", "package.json");
11757
+ var getPackagePath = (cwd) => import_node_path3.default.resolve(toPath2(cwd) ?? ".", "package.json");
11734
11758
  var _readPackage = (file, normalize) => {
11735
11759
  const json = typeof file === "string" ? parseJson(file) : file;
11736
11760
  if (normalize) {
@@ -11743,7 +11767,7 @@ async function readPackage({ cwd, normalize = true } = {}) {
11743
11767
  return _readPackage(packageFile, normalize);
11744
11768
  }
11745
11769
  function readPackageSync({ cwd, normalize = true } = {}) {
11746
- const packageFile = import_fs3.default.readFileSync(getPackagePath(cwd), "utf8");
11770
+ const packageFile = import_node_fs2.default.readFileSync(getPackagePath(cwd), "utf8");
11747
11771
  return _readPackage(packageFile, normalize);
11748
11772
  }
11749
11773
  async function readPackageUp(options) {
@@ -11752,7 +11776,7 @@ async function readPackageUp(options) {
11752
11776
  return;
11753
11777
  }
11754
11778
  return {
11755
- packageJson: await readPackage({ ...options, cwd: import_path2.default.dirname(filePath) }),
11779
+ packageJson: await readPackage({ ...options, cwd: import_node_path.default.dirname(filePath) }),
11756
11780
  path: filePath
11757
11781
  };
11758
11782
  }
@@ -11762,7 +11786,7 @@ function readPackageUpSync(options) {
11762
11786
  return;
11763
11787
  }
11764
11788
  return {
11765
- packageJson: readPackageSync({ ...options, cwd: import_path2.default.dirname(filePath) }),
11789
+ packageJson: readPackageSync({ ...options, cwd: import_node_path.default.dirname(filePath) }),
11766
11790
  path: filePath
11767
11791
  };
11768
11792
  }
@@ -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_U5YRV2DX_exports = {};
30
- __export(chunk_U5YRV2DX_exports, {
29
+ var chunk_DLOPZF44_exports = {};
30
+ __export(chunk_DLOPZF44_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_U5YRV2DX_exports);
34
+ module.exports = __toCommonJS(chunk_DLOPZF44_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
- var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_ZY4F5GPM = require("./chunk-ZY4F5GPM.js");
36
+ var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_TMKC3ODZ = require("./chunk-TMKC3ODZ.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_CCFQQATH = require("./chunk-CCFQQATH.js");
41
+ var import_chunk_TUVTMPMA = require("./chunk-TUVTMPMA.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -52,7 +52,7 @@ var MergeSchemasError = class extends Error {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
55
- ${(0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(message)}`;
55
+ ${(0, import_chunk_C47SCASR.relativizePathInPSLError)(message)}`;
56
56
  }).with({ _tag: "unparsed" }, ({ message, reason }) => {
57
57
  const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
58
58
  return `${reason}
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_ZY4F5GPM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_TMKC3ODZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
67
67
  function mergeSchemas(options) {
68
- const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "mergeSchemasWasm");
68
+ const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "mergeSchemasWasm");
69
69
  debug(`Using mergeSchemas Wasm`);
70
70
  const mergeSchemasEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_CCFQQATH.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_TUVTMPMA.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
108
108
  return panic;
109
109
  }
110
110
  const errorOutput = e.error.message;
111
- return new MergeSchemasError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
111
+ return new MergeSchemasError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
112
  }).exhaustive();
113
113
  throw error;
114
114
  }