@prisma/internals 6.20.0-integration-next.5 → 6.20.0-integration-next.7

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 (40) hide show
  1. package/dist/{chunk-K255FKNG.js → chunk-2KKAL7C4.js} +5 -5
  2. package/dist/{chunk-3Q44BUMJ.js → chunk-3SCRDCQS.js} +8 -8
  3. package/dist/chunk-5SAWCTGN.js +46 -0
  4. package/dist/{chunk-ES4SWOUX.js → chunk-64SA6W3P.js} +5 -5
  5. package/dist/{chunk-DAQEKDOT.js → chunk-6ESSZK3Z.js} +7 -7
  6. package/dist/{chunk-D2VJ7AHY.js → chunk-BVJHMHDY.js} +5 -5
  7. package/dist/{chunk-37QUSVZU.js → chunk-C2HP2PFG.js} +4 -4
  8. package/dist/{chunk-R4FAVDNZ.js → chunk-EJCMNX7U.js} +8 -8
  9. package/dist/{chunk-7SF6QSKE.js → chunk-ER4RE4VE.js} +5 -5
  10. package/dist/{chunk-STE4IPGC.js → chunk-IUH33ODS.js} +5 -5
  11. package/dist/{chunk-TOIO2VZW.js → chunk-LTZGI6DW.js} +8 -8
  12. package/dist/{chunk-PQBHK5IY.js → chunk-P6ZISAWG.js} +28 -27
  13. package/dist/{chunk-J757IEPK.js → chunk-R5OZXPSF.js} +16 -15
  14. package/dist/{chunk-CIGXHXCG.js → chunk-TGA7DC5A.js} +7 -7
  15. package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
  16. package/dist/cli/checkUnsupportedDataProxy.d.ts +7 -8
  17. package/dist/cli/checkUnsupportedDataProxy.js +17 -16
  18. package/dist/cli/directoryConfig.d.ts +5 -2
  19. package/dist/cli/schemaContext.d.ts +0 -2
  20. package/dist/cli/schemaContext.js +18 -17
  21. package/dist/engine-commands/errorHelpers.js +4 -4
  22. package/dist/engine-commands/formatSchema.js +16 -15
  23. package/dist/engine-commands/getConfig.js +7 -7
  24. package/dist/engine-commands/getDmmf.js +7 -7
  25. package/dist/engine-commands/index.js +23 -22
  26. package/dist/engine-commands/lintSchema.js +8 -8
  27. package/dist/engine-commands/mergeSchemas.js +7 -7
  28. package/dist/engine-commands/validate.js +7 -7
  29. package/dist/get-generators/getGenerators.js +19 -18
  30. package/dist/highlight/highlight.js +5 -5
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +37 -35
  33. package/dist/types.d.ts +15 -0
  34. package/dist/utils/getVersionFromPackageJson.js +3 -3
  35. package/dist/utils/missingDatasource.js +4 -4
  36. package/dist/utils/missingGeneratorMessage.js +6 -6
  37. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +15 -0
  38. package/dist/utils/validatePrismaConfigWithDatasource.js +28 -0
  39. package/dist/wasm.js +5 -5
  40. package/package.json +11 -11
@@ -18,14 +18,14 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var highlight_exports = {};
20
20
  __export(highlight_exports, {
21
- highlightDatamodel: () => import_chunk_VNIE2AZB.highlightDatamodel,
22
- highlightSql: () => import_chunk_VNIE2AZB.highlightSql,
23
- highlightTS: () => import_chunk_VNIE2AZB.highlightTS
21
+ highlightDatamodel: () => import_chunk_TQCLUNM2.highlightDatamodel,
22
+ highlightSql: () => import_chunk_TQCLUNM2.highlightSql,
23
+ highlightTS: () => import_chunk_TQCLUNM2.highlightTS
24
24
  });
25
25
  module.exports = __toCommonJS(highlight_exports);
26
- var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
27
- var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
26
+ var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
28
27
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
28
+ var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
29
29
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
30
30
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
31
31
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ export { canConnectToDatabase, createDatabase, dropDatabase } from './schemaEngi
29
29
  export { SchemaEngineExitCode } from './schemaEngineCommands';
30
30
  export { sendPanic } from './sendPanic';
31
31
  export * from './tracing/types';
32
- export type { DatabaseCredentials } from './types';
32
+ export type { DatabaseCredentials, RequireKey } from './types';
33
33
  export { assertAlways } from './utils/assertAlways';
34
34
  export { assertNever } from './utils/assertNever';
35
35
  export { binaryTargetRegex } from './utils/binaryTargetRegex';
@@ -71,6 +71,7 @@ export { extractSchemaContent, type SchemaFileInput } from './utils/schemaFileIn
71
71
  export { type MultipleSchemas } from './utils/schemaFileInput';
72
72
  export { setClassName } from './utils/setClassName';
73
73
  export { toSchemasContainer, toSchemasWithConfigDir } from './utils/toSchemasContainer';
74
+ export { type PrismaConfigWithDatasource, validatePrismaConfigWithDatasource, } from './utils/validatePrismaConfigWithDatasource';
74
75
  export { vercelPkgPathRegex } from './utils/vercelPkgPathRegex';
75
76
  export { warnOnce } from './warnOnce';
76
77
  export * as wasm from './wasm';
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ __export(index_exports, {
34
34
  callOnceOnSuccess: () => import_chunk_NIWBAJZV.callOnceOnSuccess,
35
35
  canConnectToDatabase: () => import_chunk_XIYRAW5R.canConnectToDatabase,
36
36
  canPrompt: () => import_chunk_FCYHZHVW.canPrompt,
37
- checkUnsupportedDataProxy: () => import_chunk_PQBHK5IY.checkUnsupportedDataProxy,
37
+ checkUnsupportedDataProxy: () => import_chunk_P6ZISAWG.checkUnsupportedDataProxy,
38
38
  chmodPlusX: () => import_chunk_TWSLDIFL.chmodPlusX,
39
39
  createDatabase: () => import_chunk_XIYRAW5R.createDatabase,
40
40
  credentialsToUri: () => import_chunk_LYFOJ5NK.credentialsToUri,
@@ -45,36 +45,36 @@ __export(index_exports, {
45
45
  extractSchemaContent: () => import_chunk_PFYALFCY.extractSchemaContent,
46
46
  fixBinaryTargets: () => import_chunk_X77CS5RK.fixBinaryTargets,
47
47
  format: () => import_chunk_D4VZUY3O.format,
48
- formatSchema: () => import_chunk_PQBHK5IY.formatSchema,
48
+ formatSchema: () => import_chunk_P6ZISAWG.formatSchema,
49
49
  formatTable: () => import_chunk_QN6PSQY7.formatTable,
50
50
  formatms: () => import_chunk_XYCIH36R.formatms,
51
51
  fsFunctional: () => import_chunk_SMJRM3EM.fs_functional_exports,
52
52
  fsUtils: () => import_chunk_MLFKBBDL.fs_utils_exports,
53
- getBinaryTargetForCurrentPlatform: () => import_chunk_PQBHK5IY.getBinaryTargetForCurrentPlatform,
53
+ getBinaryTargetForCurrentPlatform: () => import_chunk_P6ZISAWG.getBinaryTargetForCurrentPlatform,
54
54
  getCLIPathHash: () => import_chunk_GL7OANR6.getCLIPathHash,
55
55
  getCommandWithExecutor: () => import_chunk_CUD726EK.getCommandWithExecutor,
56
- getConfig: () => import_chunk_3Q44BUMJ.getConfig,
57
- getDMMF: () => import_chunk_R4FAVDNZ.getDMMF,
56
+ getConfig: () => import_chunk_3SCRDCQS.getConfig,
57
+ getDMMF: () => import_chunk_EJCMNX7U.getDMMF,
58
58
  getEngineVersion: () => import_chunk_H5STSTVK.getEngineVersion,
59
59
  getEnginesInfo: () => import_chunk_22HIO2UL.getEnginesInfo,
60
- getGenerator: () => import_chunk_PQBHK5IY.getGenerator,
60
+ getGenerator: () => import_chunk_P6ZISAWG.getGenerator,
61
61
  getGeneratorSuccessMessage: () => import_chunk_ARC7TW3L.getGeneratorSuccessMessage,
62
- getGenerators: () => import_chunk_PQBHK5IY.getGenerators,
63
- getLintWarningsAsText: () => import_chunk_D2VJ7AHY.getLintWarningsAsText,
62
+ getGenerators: () => import_chunk_P6ZISAWG.getGenerators,
63
+ getLintWarningsAsText: () => import_chunk_BVJHMHDY.getLintWarningsAsText,
64
64
  getMigrateConfigDir: () => import_chunk_RFB2U4GQ.getMigrateConfigDir,
65
65
  getPackedPackage: () => import_chunk_QSVWJ2S2.getPackedPackage,
66
66
  getProjectHash: () => import_chunk_GL7OANR6.getProjectHash,
67
- getSchemaDatasourceProvider: () => import_chunk_PQBHK5IY.getSchemaDatasourceProvider,
67
+ getSchemaDatasourceProvider: () => import_chunk_P6ZISAWG.getSchemaDatasourceProvider,
68
68
  getSchemaWithPath: () => import_chunk_OKVM3CW4.getSchemaWithPath,
69
69
  getSchemaWithPathOptional: () => import_chunk_OKVM3CW4.getSchemaWithPathOptional,
70
70
  getTypescriptVersion: () => import_chunk_J7ZPY2XA.getTypescriptVersion,
71
71
  getWasmError: () => import_chunk_LMVSIVKQ.getWasmError,
72
- handleLintPanic: () => import_chunk_D2VJ7AHY.handleLintPanic,
72
+ handleLintPanic: () => import_chunk_BVJHMHDY.handleLintPanic,
73
73
  handlePanic: () => import_chunk_LHTJCI5U.handlePanic,
74
74
  hasOwnProperty: () => import_chunk_WV4QHCSM.hasOwnProperty,
75
- highlightDatamodel: () => import_chunk_VNIE2AZB.highlightDatamodel,
76
- highlightSql: () => import_chunk_VNIE2AZB.highlightSql,
77
- highlightTS: () => import_chunk_VNIE2AZB.highlightTS,
75
+ highlightDatamodel: () => import_chunk_TQCLUNM2.highlightDatamodel,
76
+ highlightSql: () => import_chunk_TQCLUNM2.highlightSql,
77
+ highlightTS: () => import_chunk_TQCLUNM2.highlightTS,
78
78
  inferDirectoryConfig: () => import_chunk_BCQZ6JQE.inferDirectoryConfig,
79
79
  isCi: () => import_chunk_H4NI2RIK.isCi,
80
80
  isCurrentBinInstalledGlobally: () => import_chunk_BERN76ZI.isCurrentBinInstalledGlobally,
@@ -90,16 +90,16 @@ __export(index_exports, {
90
90
  isWasmPanic: () => import_chunk_LMVSIVKQ.isWasmPanic,
91
91
  keyBy: () => import_chunk_ZKWDIAVF.keyBy,
92
92
  link: () => import_chunk_3WXUQZS7.link,
93
- lintSchema: () => import_chunk_D2VJ7AHY.lintSchema,
94
- loadSchemaContext: () => import_chunk_PQBHK5IY.loadSchemaContext,
93
+ lintSchema: () => import_chunk_BVJHMHDY.lintSchema,
94
+ loadSchemaContext: () => import_chunk_P6ZISAWG.loadSchemaContext,
95
95
  logger: () => import_chunk_ZJWZK45Z.logger_exports,
96
96
  longestCommonPathPrefix: () => import_chunk_J77ZIDXB.longestCommonPathPrefix,
97
97
  mapObjectValues: () => import_chunk_UGR6KLZN.mapObjectValues,
98
98
  maxBy: () => import_chunk_CGFNDGGI.maxBy,
99
99
  maxWithComparator: () => import_chunk_CGFNDGGI.maxWithComparator,
100
100
  maybeInGitHook: () => import_chunk_LRBXMV4B.maybeInGitHook,
101
- mergeSchemas: () => import_chunk_DAQEKDOT.mergeSchemas,
102
- missingGeneratorMessage: () => import_chunk_CIGXHXCG.missingGeneratorMessage,
101
+ mergeSchemas: () => import_chunk_6ESSZK3Z.mergeSchemas,
102
+ missingGeneratorMessage: () => import_chunk_TGA7DC5A.missingGeneratorMessage,
103
103
  parseAWSNodejsRuntimeEnvVarVersion: () => import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion,
104
104
  parseBinaryTargetsEnvValue: () => import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue,
105
105
  parseEnvValue: () => import_chunk_IOIAK7V7.parseEnvValue,
@@ -108,7 +108,7 @@ __export(index_exports, {
108
108
  printConfigWarnings: () => import_chunk_5FJ3MENK.printConfigWarnings,
109
109
  printGeneratorConfig: () => import_chunk_LRU47BGE.printGeneratorConfig,
110
110
  printSchemaLoadedMessage: () => import_chunk_OKVM3CW4.printSchemaLoadedMessage,
111
- processSchemaResult: () => import_chunk_PQBHK5IY.processSchemaResult,
111
+ processSchemaResult: () => import_chunk_P6ZISAWG.processSchemaResult,
112
112
  protocolToConnectorType: () => import_chunk_LYFOJ5NK.protocolToConnectorType,
113
113
  relativizePathInPSLError: () => import_chunk_C47SCASR.relativizePathInPSLError,
114
114
  resolveBinary: () => import_chunk_HNRMSI3R.resolveBinary,
@@ -120,15 +120,17 @@ __export(index_exports, {
120
120
  toSchemasWithConfigDir: () => import_chunk_OSHZ4P3G.toSchemasWithConfigDir,
121
121
  unknownCommand: () => import_chunk_6JE6QGSJ.unknownCommand,
122
122
  uriToCredentials: () => import_chunk_LYFOJ5NK.uriToCredentials,
123
- validate: () => import_chunk_TOIO2VZW.validate,
123
+ validate: () => import_chunk_LTZGI6DW.validate,
124
+ validatePrismaConfigWithDatasource: () => import_chunk_5SAWCTGN.validatePrismaConfigWithDatasource,
124
125
  vercelPkgPathRegex: () => import_chunk_M3GBKLGE.vercelPkgPathRegex,
125
- version: () => import_chunk_ES4SWOUX.version,
126
+ version: () => import_chunk_64SA6W3P.version,
126
127
  warnOnce: () => import_chunk_DTPFRZWV.warnOnce,
127
- wasm: () => import_chunk_STE4IPGC.wasm_exports,
128
+ wasm: () => import_chunk_IUH33ODS.wasm_exports,
128
129
  wasmSchemaEngineLoader: () => import_chunk_SBUSVJCV.wasmSchemaEngineLoader
129
130
  });
130
131
  module.exports = __toCommonJS(index_exports);
131
- var import_chunk_PQBHK5IY = require("./chunk-PQBHK5IY.js");
132
+ var import_chunk_P6ZISAWG = require("./chunk-P6ZISAWG.js");
133
+ var import_chunk_5SAWCTGN = require("./chunk-5SAWCTGN.js");
132
134
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
133
135
  var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
134
136
  var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
@@ -140,8 +142,8 @@ var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
140
142
  var import_chunk_PFYALFCY = require("./chunk-PFYALFCY.js");
141
143
  var import_chunk_ANU3HEGF = require("./chunk-ANU3HEGF.js");
142
144
  var import_chunk_OSHZ4P3G = require("./chunk-OSHZ4P3G.js");
143
- var import_chunk_7SF6QSKE = require("./chunk-7SF6QSKE.js");
144
- var import_chunk_CIGXHXCG = require("./chunk-CIGXHXCG.js");
145
+ var import_chunk_ER4RE4VE = require("./chunk-ER4RE4VE.js");
146
+ var import_chunk_TGA7DC5A = require("./chunk-TGA7DC5A.js");
145
147
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
146
148
  var import_chunk_RBDYOTWB = require("./chunk-RBDYOTWB.js");
147
149
  var import_chunk_ZKWDIAVF = require("./chunk-ZKWDIAVF.js");
@@ -170,9 +172,9 @@ var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
170
172
  var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
171
173
  var import_chunk_CGLLQXZE = require("./chunk-CGLLQXZE.js");
172
174
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
173
- var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
174
- var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
175
+ var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
175
176
  var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
177
+ var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
176
178
  var import_chunk_HPVMQFIY = require("./chunk-HPVMQFIY.js");
177
179
  var import_chunk_E23HYCQJ = require("./chunk-E23HYCQJ.js");
178
180
  var import_chunk_HW5RCZSE = require("./chunk-HW5RCZSE.js");
@@ -180,22 +182,22 @@ var import_chunk_Y4TOGY6I = require("./chunk-Y4TOGY6I.js");
180
182
  var import_chunk_IL7PSY44 = require("./chunk-IL7PSY44.js");
181
183
  var import_chunk_22HIO2UL = require("./chunk-22HIO2UL.js");
182
184
  var import_chunk_H5STSTVK = require("./chunk-H5STSTVK.js");
183
- var import_chunk_D2VJ7AHY = require("./chunk-D2VJ7AHY.js");
184
- var import_chunk_DAQEKDOT = require("./chunk-DAQEKDOT.js");
185
- var import_chunk_TOIO2VZW = require("./chunk-TOIO2VZW.js");
185
+ var import_chunk_BVJHMHDY = require("./chunk-BVJHMHDY.js");
186
+ var import_chunk_6ESSZK3Z = require("./chunk-6ESSZK3Z.js");
187
+ var import_chunk_LTZGI6DW = require("./chunk-LTZGI6DW.js");
186
188
  var import_chunk_GL7OANR6 = require("./chunk-GL7OANR6.js");
187
189
  var import_chunk_D4VZUY3O = require("./chunk-D4VZUY3O.js");
188
- var import_chunk_3Q44BUMJ = require("./chunk-3Q44BUMJ.js");
189
- var import_chunk_R4FAVDNZ = require("./chunk-R4FAVDNZ.js");
190
+ var import_chunk_3SCRDCQS = require("./chunk-3SCRDCQS.js");
191
+ var import_chunk_EJCMNX7U = require("./chunk-EJCMNX7U.js");
190
192
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
191
193
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
192
194
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
193
- var import_chunk_K255FKNG = require("./chunk-K255FKNG.js");
195
+ var import_chunk_2KKAL7C4 = require("./chunk-2KKAL7C4.js");
194
196
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
195
- var import_chunk_ES4SWOUX = require("./chunk-ES4SWOUX.js");
197
+ var import_chunk_64SA6W3P = require("./chunk-64SA6W3P.js");
196
198
  var import_chunk_DTPFRZWV = require("./chunk-DTPFRZWV.js");
197
- var import_chunk_STE4IPGC = require("./chunk-STE4IPGC.js");
198
- var import_chunk_37QUSVZU = require("./chunk-37QUSVZU.js");
199
+ var import_chunk_IUH33ODS = require("./chunk-IUH33ODS.js");
200
+ var import_chunk_C2HP2PFG = require("./chunk-C2HP2PFG.js");
199
201
  var import_chunk_6JE6QGSJ = require("./chunk-6JE6QGSJ.js");
200
202
  var import_chunk_BCQZ6JQE = require("./chunk-BCQZ6JQE.js");
201
203
  var import_chunk_ARC7TW3L = require("./chunk-ARC7TW3L.js");
package/dist/types.d.ts CHANGED
@@ -17,3 +17,18 @@ export interface DatabaseCredentials {
17
17
  [key: string]: string;
18
18
  };
19
19
  }
20
+ /**
21
+ * Given a type T and a key K, return a new type that is T + the key K marked as required.
22
+ * E.g.:
23
+ * ```
24
+ * type T = {
25
+ * a?: string
26
+ * b: number
27
+ * c?: string
28
+ * d?: boolean
29
+ * }
30
+ * type R = RequireKey<T, 'a' | 'c'>
31
+ * // R is { a: string, b: number, c: string, d?: boolean }
32
+ * ```
33
+ */
34
+ export type RequireKey<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getVersionFromPackageJson_exports = {};
20
20
  __export(getVersionFromPackageJson_exports, {
21
- version: () => import_chunk_ES4SWOUX.version
21
+ version: () => import_chunk_64SA6W3P.version
22
22
  });
23
23
  module.exports = __toCommonJS(getVersionFromPackageJson_exports);
24
- var import_chunk_ES4SWOUX = require("../chunk-ES4SWOUX.js");
25
- var import_chunk_37QUSVZU = require("../chunk-37QUSVZU.js");
24
+ var import_chunk_64SA6W3P = require("../chunk-64SA6W3P.js");
25
+ var import_chunk_C2HP2PFG = require("../chunk-C2HP2PFG.js");
26
26
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,14 +18,14 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var missingDatasource_exports = {};
20
20
  __export(missingDatasource_exports, {
21
- missingDatasource: () => import_chunk_7SF6QSKE.missingDatasource
21
+ missingDatasource: () => import_chunk_ER4RE4VE.missingDatasource
22
22
  });
23
23
  module.exports = __toCommonJS(missingDatasource_exports);
24
- var import_chunk_7SF6QSKE = require("../chunk-7SF6QSKE.js");
24
+ var import_chunk_ER4RE4VE = require("../chunk-ER4RE4VE.js");
25
25
  var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
26
- var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
27
- var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
26
+ var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
28
27
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
28
+ var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
29
29
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
30
30
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
31
31
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
@@ -18,16 +18,16 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var missingGeneratorMessage_exports = {};
20
20
  __export(missingGeneratorMessage_exports, {
21
- missingGeneratorMessage: () => import_chunk_CIGXHXCG.missingGeneratorMessage,
22
- missingModelMessage: () => import_chunk_CIGXHXCG.missingModelMessage,
23
- missingModelMessageMongoDB: () => import_chunk_CIGXHXCG.missingModelMessageMongoDB
21
+ missingGeneratorMessage: () => import_chunk_TGA7DC5A.missingGeneratorMessage,
22
+ missingModelMessage: () => import_chunk_TGA7DC5A.missingModelMessage,
23
+ missingModelMessageMongoDB: () => import_chunk_TGA7DC5A.missingModelMessageMongoDB
24
24
  });
25
25
  module.exports = __toCommonJS(missingGeneratorMessage_exports);
26
- var import_chunk_CIGXHXCG = require("../chunk-CIGXHXCG.js");
26
+ var import_chunk_TGA7DC5A = require("../chunk-TGA7DC5A.js");
27
27
  var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
28
- var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
29
- var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
28
+ var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
30
29
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
30
+ var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
31
31
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
32
32
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
33
33
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
@@ -0,0 +1,15 @@
1
+ import { PrismaConfig } from '@prisma/config';
2
+ import { type RequireKey } from '../types';
3
+ export declare class ConfigValidationError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ /**
7
+ * A Prisma Config that has been validated w.r.t. the command that is being executed.
8
+ */
9
+ export type PrismaConfigWithDatasource = RequireKey<PrismaConfig, 'datasource'>;
10
+ type ValidatePrismaConfigWithDatasourceInput = {
11
+ config: Pick<PrismaConfig, 'datasource'>;
12
+ cmd: string;
13
+ };
14
+ export declare function validatePrismaConfigWithDatasource({ config, cmd, }: ValidatePrismaConfigWithDatasourceInput): PrismaConfigWithDatasource;
15
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var validatePrismaConfigWithDatasource_exports = {};
20
+ __export(validatePrismaConfigWithDatasource_exports, {
21
+ ConfigValidationError: () => import_chunk_5SAWCTGN.ConfigValidationError,
22
+ validatePrismaConfigWithDatasource: () => import_chunk_5SAWCTGN.validatePrismaConfigWithDatasource
23
+ });
24
+ module.exports = __toCommonJS(validatePrismaConfigWithDatasource_exports);
25
+ var import_chunk_5SAWCTGN = require("../chunk-5SAWCTGN.js");
26
+ var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
27
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
28
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
package/dist/wasm.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var wasm_exports = {};
20
20
  __export(wasm_exports, {
21
- prismaSchemaWasm: () => import_chunk_STE4IPGC.prismaSchemaWasm,
22
- prismaSchemaWasmVersion: () => import_chunk_STE4IPGC.prismaSchemaWasmVersion,
23
- schemaEngineWasmVersion: () => import_chunk_STE4IPGC.schemaEngineWasmVersion
21
+ prismaSchemaWasm: () => import_chunk_IUH33ODS.prismaSchemaWasm,
22
+ prismaSchemaWasmVersion: () => import_chunk_IUH33ODS.prismaSchemaWasmVersion,
23
+ schemaEngineWasmVersion: () => import_chunk_IUH33ODS.schemaEngineWasmVersion
24
24
  });
25
25
  module.exports = __toCommonJS(wasm_exports);
26
- var import_chunk_STE4IPGC = require("./chunk-STE4IPGC.js");
27
- var import_chunk_37QUSVZU = require("./chunk-37QUSVZU.js");
26
+ var import_chunk_IUH33ODS = require("./chunk-IUH33ODS.js");
27
+ var import_chunk_C2HP2PFG = require("./chunk-C2HP2PFG.js");
28
28
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
29
29
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/internals",
3
- "version": "6.20.0-integration-next.5",
3
+ "version": "6.20.0-integration-next.7",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,16 +70,16 @@
70
70
  "@prisma/schema-engine-wasm": "6.20.0-11.next-80ee0a44bf5668992b0c909c946a755b86b56c95",
71
71
  "arg": "5.0.2",
72
72
  "prompts": "2.4.2",
73
- "@prisma/config": "6.20.0-integration-next.5",
74
- "@prisma/debug": "6.20.0-integration-next.5",
75
- "@prisma/dmmf": "6.20.0-integration-next.5",
76
- "@prisma/driver-adapter-utils": "6.20.0-integration-next.5",
77
- "@prisma/engines": "6.20.0-integration-next.5",
78
- "@prisma/generator": "6.20.0-integration-next.5",
79
- "@prisma/fetch-engine": "6.20.0-integration-next.5",
80
- "@prisma/generator-helper": "6.20.0-integration-next.5",
81
- "@prisma/get-platform": "6.20.0-integration-next.5",
82
- "@prisma/schema-files-loader": "6.20.0-integration-next.5"
73
+ "@prisma/config": "6.20.0-integration-next.7",
74
+ "@prisma/debug": "6.20.0-integration-next.7",
75
+ "@prisma/driver-adapter-utils": "6.20.0-integration-next.7",
76
+ "@prisma/dmmf": "6.20.0-integration-next.7",
77
+ "@prisma/engines": "6.20.0-integration-next.7",
78
+ "@prisma/fetch-engine": "6.20.0-integration-next.7",
79
+ "@prisma/generator-helper": "6.20.0-integration-next.7",
80
+ "@prisma/generator": "6.20.0-integration-next.7",
81
+ "@prisma/get-platform": "6.20.0-integration-next.7",
82
+ "@prisma/schema-files-loader": "6.20.0-integration-next.7"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "typescript": ">=5.4.0"