@prisma/internals 6.6.0-integration-mcp.2 → 6.6.0-integration-push-xmzqvqxpztks.12

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 (102) hide show
  1. package/dist/Generator.d.ts +23 -5
  2. package/dist/Generator.js +4 -2
  3. package/dist/{chunk-2LDG4PID.js → chunk-2QTAK7KO.js} +5 -5
  4. package/dist/{chunk-SAAMENIS.js → chunk-3DQANJMY.js} +7 -7
  5. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  6. package/dist/{chunk-WOIJKMTZ.js → chunk-62LU4TVK.js} +8 -8
  7. package/dist/{chunk-4KCLNFE4.js → chunk-62PNTFVL.js} +5 -5
  8. package/dist/{chunk-URRVX2VQ.js → chunk-67I7CEQJ.js} +6 -6
  9. package/dist/{chunk-GV244NDE.js → chunk-72C2UHFB.js} +7 -7
  10. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  11. package/dist/{chunk-R45GQNKO.js → chunk-BD2NGNRL.js} +85 -200
  12. package/dist/{chunk-DYVL6P7F.js → chunk-BPDMLM32.js} +46 -13
  13. package/dist/{chunk-ORPBIAE5.js → chunk-BTAROFR3.js} +8 -8
  14. package/dist/{chunk-PING5S2U.js → chunk-BWPH7QBV.js} +8 -8
  15. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  16. package/dist/{chunk-EKESIUIK.js → chunk-DKSUHQGA.js} +7 -7
  17. package/dist/{chunk-2I3VYCA7.js → chunk-EPXBOIA5.js} +5 -5
  18. package/dist/{chunk-WF5LZFJS.js → chunk-ETYWYJBX.js} +12 -12
  19. package/dist/{chunk-AXD7KB4D.js → chunk-HG3YOAAE.js} +5 -5
  20. package/dist/{chunk-IWTEX7EE.js → chunk-IDINCQMN.js} +780 -9
  21. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  22. package/dist/{chunk-3GYXMWBM.js → chunk-KB5DKCI4.js} +7 -7
  23. package/dist/{chunk-VTJOX6HO.js → chunk-LVXOY25I.js} +5 -5
  24. package/dist/{chunk-R4ZFFYJA.js → chunk-MJIP3FY5.js} +2502 -238
  25. package/dist/{chunk-XRBOJLES.js → chunk-MM2LGTOC.js} +5 -6
  26. package/dist/{chunk-FAPPXX7W.js → chunk-MVXDMOUP.js} +8 -8
  27. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  28. package/dist/{chunk-VYJSNZF3.js → chunk-P3WMSDK6.js} +4 -5
  29. package/dist/{chunk-SNSJWJTA.js → chunk-R3ZRLDO2.js} +5 -5
  30. package/dist/{chunk-XMVJRTN5.js → chunk-RTT3E5AL.js} +5 -5
  31. package/dist/{chunk-PWGQKUJW.js → chunk-SDEBGULW.js} +85 -200
  32. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  33. package/dist/{chunk-RABVZXRU.js → chunk-TURIBUFP.js} +7 -7
  34. package/dist/{chunk-5CBAXTAF.js → chunk-UKGGGBT7.js} +5 -5
  35. package/dist/{chunk-LWBLVV7Y.js → chunk-VEXYKK6K.js} +8 -8
  36. package/dist/{chunk-Q2IBLC6D.js → chunk-VXSXRDY2.js} +5 -5
  37. package/dist/{chunk-AP52B62F.js → chunk-XAAXHLR3.js} +5 -5
  38. package/dist/{chunk-OUQPIJFQ.js → chunk-XARFXSI5.js} +5 -5
  39. package/dist/{chunk-SUOMIRLO.js → chunk-YR5KNFKN.js} +6 -6
  40. package/dist/{chunk-UFYFNNCN.js → chunk-Z5PI6LVB.js} +8 -8
  41. package/dist/cli/checkUnsupportedDataProxy.js +37 -44
  42. package/dist/cli/getSchema.js +40 -47
  43. package/dist/cli/hashes.js +37 -44
  44. package/dist/cli/schemaContext.js +37 -44
  45. package/dist/engine-commands/errorHelpers.js +4 -4
  46. package/dist/engine-commands/formatSchema.js +36 -43
  47. package/dist/engine-commands/getConfig.js +10 -10
  48. package/dist/engine-commands/getDmmf.js +7 -7
  49. package/dist/engine-commands/getEngineVersion.js +6 -7
  50. package/dist/engine-commands/getEnginesMetaInfo.js +8 -9
  51. package/dist/engine-commands/index.js +47 -54
  52. package/dist/engine-commands/lintSchema.js +8 -8
  53. package/dist/engine-commands/mergeSchemas.js +7 -7
  54. package/dist/engine-commands/validate.js +7 -7
  55. package/dist/errorReporting.js +6 -6
  56. package/dist/get-generators/getGenerators.d.ts +18 -9
  57. package/dist/get-generators/getGenerators.js +39 -46
  58. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
  59. package/dist/getPackedPackage.js +4 -5
  60. package/dist/index.d.ts +2 -4
  61. package/dist/index.js +80 -87
  62. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  63. package/dist/resolveBinary.js +7 -8
  64. package/dist/resolvePkg.d.ts +7 -0
  65. package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
  66. package/dist/schemaEngineCommands.js +9 -10
  67. package/dist/sendPanic.js +4 -4
  68. package/dist/utils/cloudflareD1.js +3 -3
  69. package/dist/utils/fs-functional.js +10 -10
  70. package/dist/utils/fs-utils.js +8 -8
  71. package/dist/utils/getEnvPaths.js +36 -43
  72. package/dist/utils/getVersionFromPackageJson.js +3 -3
  73. package/dist/utils/handlePanic.js +5 -5
  74. package/dist/utils/loadEnvFile.js +36 -43
  75. package/dist/wasm.js +4 -4
  76. package/package.json +11 -12
  77. package/dist/chunk-72UZXEBG.js +0 -28
  78. package/dist/chunk-BWGDP6B5.js +0 -4948
  79. package/dist/chunk-DYV47NUW.js +0 -796
  80. package/dist/chunk-EUTJYQDW.js +0 -46
  81. package/dist/chunk-GHHABGYW.js +0 -28
  82. package/dist/chunk-OQ2NRV2Y.js +0 -35
  83. package/dist/chunk-PE6DXWOX.js +0 -52
  84. package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
  85. package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -139
  86. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
  87. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
  88. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
  89. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
  90. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
  91. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
  92. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
  93. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -139
  94. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
  95. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
  96. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
  97. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
  98. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
  99. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
  100. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
  101. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
  102. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -140
@@ -1,13 +1,15 @@
1
- import type { BinaryPaths, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
2
- export declare class Generator {
3
- private generatorProcess;
1
+ import type { BinaryPaths, Generator as IGenerator, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
2
+ export declare abstract class Generator {
4
3
  manifest: GeneratorManifest | null;
5
4
  config: GeneratorConfig;
6
5
  options?: GeneratorOptions;
7
- constructor(executablePath: string, config: GeneratorConfig, isNode?: boolean);
6
+ constructor(config: GeneratorConfig);
8
7
  init(): Promise<void>;
9
- stop(): void;
8
+ protected abstract initImpl(): Promise<void>;
9
+ protected abstract getManifest(): Promise<GeneratorManifest | null>;
10
+ abstract stop(): void;
10
11
  generate(): Promise<void>;
12
+ protected abstract generateImpl(options: GeneratorOptions): Promise<void>;
11
13
  setOptions(options: GeneratorOptions): void;
12
14
  setBinaryPaths(binaryPaths: BinaryPaths): void;
13
15
  /**
@@ -22,3 +24,19 @@ export declare class Generator {
22
24
  */
23
25
  getProvider(): string;
24
26
  }
27
+ export declare class JsonRpcGenerator extends Generator {
28
+ #private;
29
+ constructor(executablePath: string, config: GeneratorConfig, isNode?: boolean);
30
+ protected initImpl(): Promise<void>;
31
+ protected getManifest(): Promise<GeneratorManifest | null>;
32
+ protected generateImpl(options: GeneratorOptions): Promise<void>;
33
+ stop(): void;
34
+ }
35
+ export declare class InProcessGenerator extends Generator {
36
+ #private;
37
+ constructor(config: GeneratorConfig, generator: IGenerator);
38
+ protected initImpl(): Promise<void>;
39
+ protected getManifest(): Promise<GeneratorManifest | null>;
40
+ protected generateImpl(options: GeneratorOptions): Promise<void>;
41
+ stop(): void;
42
+ }
package/dist/Generator.js CHANGED
@@ -18,10 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var Generator_exports = {};
20
20
  __export(Generator_exports, {
21
- Generator: () => import_chunk_DYVL6P7F.Generator
21
+ Generator: () => import_chunk_BPDMLM32.Generator,
22
+ InProcessGenerator: () => import_chunk_BPDMLM32.InProcessGenerator,
23
+ JsonRpcGenerator: () => import_chunk_BPDMLM32.JsonRpcGenerator
22
24
  });
23
25
  module.exports = __toCommonJS(Generator_exports);
24
- var import_chunk_DYVL6P7F = require("./chunk-DYVL6P7F.js");
26
+ var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
25
27
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
26
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
29
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -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_2LDG4PID_exports = {};
30
- __export(chunk_2LDG4PID_exports, {
29
+ var chunk_2QTAK7KO_exports = {};
30
+ __export(chunk_2QTAK7KO_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_2LDG4PID_exports);
33
+ module.exports = __toCommonJS(chunk_2QTAK7KO_exports);
34
34
  var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
35
35
  var import_chunk_FXMGS3L5 = require("./chunk-FXMGS3L5.js");
36
36
  var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
37
- var import_chunk_SUOMIRLO = require("./chunk-SUOMIRLO.js");
37
+ var import_chunk_YR5KNFKN = require("./chunk-YR5KNFKN.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_HAGJ64PM.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_SUOMIRLO.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_YR5KNFKN.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -16,26 +16,26 @@ 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_SAAMENIS_exports = {};
20
- __export(chunk_SAAMENIS_exports, {
19
+ var chunk_3DQANJMY_exports = {};
20
+ __export(chunk_3DQANJMY_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_SAAMENIS_exports);
24
+ module.exports = __toCommonJS(chunk_3DQANJMY_exports);
25
25
  var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
26
- var import_chunk_WF5LZFJS = require("./chunk-WF5LZFJS.js");
27
- var import_chunk_AXD7KB4D = require("./chunk-AXD7KB4D.js");
26
+ var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
27
+ var import_chunk_HG3YOAAE = require("./chunk-HG3YOAAE.js");
28
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
29
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
30
30
  var import_engines = require("@prisma/engines");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
32
32
  var import_get_platform = require("@prisma/get-platform");
33
- var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_WF5LZFJS.require_execa)());
33
+ var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
34
34
  async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_AXD7KB4D.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_HG3YOAAE.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)();
@@ -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_MEOOYUIZ_exports = {};
30
- __export(chunk_MEOOYUIZ_exports, {
29
+ var chunk_5AI4FIZ3_exports = {};
30
+ __export(chunk_5AI4FIZ3_exports, {
31
31
  ErrorKind: () => ErrorKind,
32
32
  createErrorReport: () => createErrorReport,
33
33
  makeErrorReportCompleted: () => makeErrorReportCompleted,
34
34
  uploadZip: () => uploadZip
35
35
  });
36
- module.exports = __toCommonJS(chunk_MEOOYUIZ_exports);
37
- var import_chunk_KNNTV7IN = require("./chunk-KNNTV7IN.js");
36
+ module.exports = __toCommonJS(chunk_5AI4FIZ3_exports);
37
+ var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
38
38
  var import_fetch_engine = require("@prisma/fetch-engine");
39
39
  var import_node_http = __toESM(require("node:http"));
40
40
  var import_node_https = __toESM(require("node:https"));
@@ -151,8 +151,8 @@ var Body = class {
151
151
  } else if (ArrayBuffer.isView(body)) {
152
152
  body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
153
153
  } else if (body instanceof import_node_stream2.default) {
154
- } else if (body instanceof import_chunk_KNNTV7IN.FormData) {
155
- body = (0, import_chunk_KNNTV7IN.formDataToBlob)(body);
154
+ } else if (body instanceof import_chunk_NVNI2SRU.FormData) {
155
+ body = (0, import_chunk_NVNI2SRU.formDataToBlob)(body);
156
156
  boundary = body.type.split("=")[1];
157
157
  } else {
158
158
  body = import_node_buffer2.Buffer.from(String(body));
@@ -196,14 +196,14 @@ var Body = class {
196
196
  async formData() {
197
197
  const ct = this.headers.get("content-type");
198
198
  if (ct.startsWith("application/x-www-form-urlencoded")) {
199
- const formData = new import_chunk_KNNTV7IN.FormData();
199
+ const formData = new import_chunk_NVNI2SRU.FormData();
200
200
  const parameters = new URLSearchParams(await this.text());
201
201
  for (const [name, value] of parameters) {
202
202
  formData.append(name, value);
203
203
  }
204
204
  return formData;
205
205
  }
206
- const { toFormData } = await import("./multipart-parser-UV3WZSWW.js");
206
+ const { toFormData } = await import("./multipart-parser-3AFJFP6K.js");
207
207
  return toFormData(this.body, ct);
208
208
  }
209
209
  /**
@@ -214,7 +214,7 @@ var Body = class {
214
214
  async blob() {
215
215
  const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
216
216
  const buf = await this.arrayBuffer();
217
- return new import_chunk_KNNTV7IN.fetch_blob_default([buf], {
217
+ return new import_chunk_NVNI2SRU.fetch_blob_default([buf], {
218
218
  type: ct
219
219
  });
220
220
  }
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
342
342
  if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
343
343
  return null;
344
344
  }
345
- if (body instanceof import_chunk_KNNTV7IN.FormData) {
345
+ if (body instanceof import_chunk_NVNI2SRU.FormData) {
346
346
  return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
347
347
  }
348
348
  if (body && typeof body.getBoundary === "function") {
@@ -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_WOIJKMTZ_exports = {};
30
- __export(chunk_WOIJKMTZ_exports, {
29
+ var chunk_62LU4TVK_exports = {};
30
+ __export(chunk_62LU4TVK_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_WOIJKMTZ_exports);
34
+ module.exports = __toCommonJS(chunk_62LU4TVK_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_XMVJRTN5 = require("./chunk-XMVJRTN5.js");
38
- var import_chunk_4KCLNFE4 = require("./chunk-4KCLNFE4.js");
37
+ var import_chunk_RTT3E5AL = require("./chunk-RTT3E5AL.js");
38
+ var import_chunk_R3ZRLDO2 = require("./chunk-R3ZRLDO2.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_XMVJRTN5.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_RTT3E5AL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_4KCLNFE4.prismaSchemaWasm.debug_panic();
73
+ import_chunk_R3ZRLDO2.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_4KCLNFE4.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_R3ZRLDO2.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_4KCLNFE4_exports = {};
30
- __export(chunk_4KCLNFE4_exports, {
29
+ var chunk_62PNTFVL_exports = {};
30
+ __export(chunk_62PNTFVL_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_4KCLNFE4_exports);
36
- var import_chunk_XRBOJLES = require("./chunk-XRBOJLES.js");
35
+ module.exports = __toCommonJS(chunk_62PNTFVL_exports);
36
+ var import_chunk_MM2LGTOC = require("./chunk-MM2LGTOC.js");
37
37
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
38
38
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_XRBOJLES.require_package)();
45
+ var { dependencies } = (0, import_chunk_MM2LGTOC.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
@@ -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_URRVX2VQ_exports = {};
30
- __export(chunk_URRVX2VQ_exports, {
31
- resolve: () => resolve,
29
+ var chunk_67I7CEQJ_exports = {};
30
+ __export(chunk_67I7CEQJ_exports, {
31
+ require_is_core_module: () => require_is_core_module,
32
32
  resolvePkg: () => resolvePkg
33
33
  });
34
- module.exports = __toCommonJS(chunk_URRVX2VQ_exports);
34
+ module.exports = __toCommonJS(chunk_67I7CEQJ_exports);
35
35
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
36
36
  var import_path = __toESM(require("path"));
37
37
  var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
@@ -1179,7 +1179,7 @@ var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
1179
1179
  }
1180
1180
  });
1181
1181
  var import_resolve = (0, import_chunk_4VNS5WPM.__toESM)(require_resolve());
1182
- async function resolve(id, options) {
1182
+ async function resolveOrUndefined(id, options) {
1183
1183
  const _options = { preserveSymlinks: false, ...options };
1184
1184
  return new Promise((res) => {
1185
1185
  (0, import_resolve.default)(id, _options, (e, v) => {
@@ -1189,6 +1189,6 @@ async function resolve(id, options) {
1189
1189
  });
1190
1190
  }
1191
1191
  async function resolvePkg(id, options) {
1192
- const resolvedPath = await resolve(`${id}/package.json`, options);
1192
+ const resolvedPath = await resolveOrUndefined(`${id}/package.json`, options);
1193
1193
  return resolvedPath && import_path.default.dirname(resolvedPath);
1194
1194
  }
@@ -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_GV244NDE_exports = {};
30
- __export(chunk_GV244NDE_exports, {
29
+ var chunk_72C2UHFB_exports = {};
30
+ __export(chunk_72C2UHFB_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_GV244NDE_exports);
34
+ module.exports = __toCommonJS(chunk_72C2UHFB_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_AP52B62F = require("./chunk-AP52B62F.js");
39
- var import_chunk_SNSJWJTA = require("./chunk-SNSJWJTA.js");
38
+ var import_chunk_RTT3E5AL = require("./chunk-RTT3E5AL.js");
39
+ var import_chunk_R3ZRLDO2 = require("./chunk-R3ZRLDO2.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_AP52B62F.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_RTT3E5AL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_SNSJWJTA.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_R3ZRLDO2.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_UB2X7DGZ_exports = {};
30
- __export(chunk_UB2X7DGZ_exports, {
29
+ var chunk_75BIJ5PX_exports = {};
30
+ __export(chunk_75BIJ5PX_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_UB2X7DGZ_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_UB2X7DGZ_exports);
41
- var import_chunk_MXAUURHG = require("./chunk-MXAUURHG.js");
40
+ module.exports = __toCommonJS(chunk_75BIJ5PX_exports);
41
+ var import_chunk_TQFONRJP = require("./chunk-TQFONRJP.js");
42
42
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
43
43
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_promises = __toESM(require("fs/promises"));
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
3981
3981
  });
3982
3982
  var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
3983
3983
  var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
3984
- var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
- var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
- var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3987
3987
  var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
3988
3988
  var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
3989
- var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_MXAUURHG.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_MXAUURHG.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_TQFONRJP.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_TQFONRJP.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,