@prisma/internals 5.17.0-dev.8 → 5.17.0-dev.9
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.
- package/dist/{chunk-QPZGPOYM.js → chunk-2TTC2OI2.js} +5 -5
- package/dist/{chunk-YGPKZTMR.js → chunk-AHJPI7EO.js} +5 -5
- package/dist/{chunk-HKVKBAF5.js → chunk-F5EOCPFN.js} +19 -19
- package/dist/{chunk-QPHTC2SK.js → chunk-GOUDZTTX.js} +795 -24
- package/dist/{chunk-J7K3YOQN.js → chunk-IQIFRHFP.js} +7 -7
- package/dist/{chunk-4AQCLB33.js → chunk-RL54FTOJ.js} +8 -8
- package/dist/{chunk-FQK5HHRY.js → chunk-RUPVFQRG.js} +4 -4
- package/dist/{chunk-QIRNENYW.js → chunk-SMFYTNWL.js} +5 -5
- package/dist/{chunk-WOTMMQEU.js → chunk-UAAGJXV2.js} +5 -5
- package/dist/{chunk-2E4LUMSR.js → chunk-UQAOMZJB.js} +8 -8
- package/dist/{chunk-ZLRVHJ5U.js → chunk-VJCBTUIP.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.js +17 -17
- package/dist/cli/hashes.js +12 -12
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +11 -11
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +20 -20
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
- package/dist/get-generators/getGenerators.js +14 -14
- package/dist/index.js +39 -39
- package/dist/sendPanic.js +11 -11
- package/dist/utils/getEnvPaths.js +11 -11
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +11 -11
- package/dist/utils/loadEnvFile.js +11 -11
- package/dist/wasm.js +4 -4
- package/package.json +7 -7
- package/dist/chunk-5XRQ7ONW.js +0 -122
- package/dist/chunk-DGQEXKUB.js +0 -110
- package/dist/chunk-KIC4MOJQ.js +0 -166
- package/dist/chunk-ONFZFD3I.js +0 -177
- package/dist/chunk-QIVUAERL.js +0 -2202
- package/dist/chunk-QMNSOAXY.js +0 -54
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_2TTC2OI2_exports = {};
|
|
30
|
+
__export(chunk_2TTC2OI2_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(
|
|
36
|
-
var
|
|
35
|
+
module.exports = __toCommonJS(chunk_2TTC2OI2_exports);
|
|
36
|
+
var import_chunk_RUPVFQRG = require("./chunk-RUPVFQRG.js");
|
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.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,
|
|
45
|
+
var { dependencies } = (0, import_chunk_RUPVFQRG.require_package)();
|
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
|
@@ -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
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_AHJPI7EO_exports = {};
|
|
20
|
+
__export(chunk_AHJPI7EO_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_AHJPI7EO_exports);
|
|
24
|
+
var import_chunk_RUPVFQRG = require("./chunk-RUPVFQRG.js");
|
|
25
|
+
var packageJson = (0, import_chunk_RUPVFQRG.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export2(
|
|
29
|
+
var chunk_F5EOCPFN_exports = {};
|
|
30
|
+
__export2(chunk_F5EOCPFN_exports, {
|
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
33
33
|
checkYarnVersion: () => checkYarnVersion,
|
|
@@ -56,7 +56,7 @@ __export2(chunk_HKVKBAF5_exports, {
|
|
|
56
56
|
sendPanic: () => sendPanic,
|
|
57
57
|
skipIndex: () => skipIndex
|
|
58
58
|
});
|
|
59
|
-
module.exports = __toCommonJS2(
|
|
59
|
+
module.exports = __toCommonJS2(chunk_F5EOCPFN_exports);
|
|
60
60
|
var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
|
|
61
61
|
var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
|
|
62
62
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
|
@@ -81,13 +81,13 @@ var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
|
|
|
81
81
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
|
82
82
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
|
83
83
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
84
|
+
var import_chunk_5DKK4SNW = require("./chunk-5DKK4SNW.js");
|
|
85
|
+
var import_chunk_3VOYOX6L = require("./chunk-3VOYOX6L.js");
|
|
86
|
+
var import_chunk_IIII3I6Z = require("./chunk-IIII3I6Z.js");
|
|
87
|
+
var import_chunk_FHXWSZMK = require("./chunk-FHXWSZMK.js");
|
|
88
88
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
89
89
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
90
|
-
var
|
|
90
|
+
var import_chunk_C55GF762 = require("./chunk-C55GF762.js");
|
|
91
91
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
|
92
92
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
93
93
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
@@ -15517,7 +15517,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
|
15517
15517
|
}
|
|
15518
15518
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
|
15519
15519
|
debug2("Loading config");
|
|
15520
|
-
const config2 = await (0,
|
|
15520
|
+
const config2 = await (0, import_chunk_IIII3I6Z.getConfig)({
|
|
15521
15521
|
datamodel: files,
|
|
15522
15522
|
ignoreEnvVarErrors: true
|
|
15523
15523
|
});
|
|
@@ -15909,8 +15909,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
|
15909
15909
|
if (argName.includes("schema")) {
|
|
15910
15910
|
await loadEnvFile({ schemaPath: argValue, printMessage: false });
|
|
15911
15911
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
|
15912
|
-
const config2 = await (0,
|
|
15913
|
-
const url = (0,
|
|
15912
|
+
const config2 = await (0, import_chunk_IIII3I6Z.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
|
15913
|
+
const url = (0, import_chunk_IIII3I6Z.resolveUrl)((0, import_chunk_IIII3I6Z.getEffectiveUrl)(config2.datasources[0]));
|
|
15914
15914
|
if (url?.startsWith("prisma://")) {
|
|
15915
15915
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
|
15916
15916
|
}
|
|
@@ -16113,7 +16113,7 @@ async function getGenerators(options) {
|
|
|
16113
16113
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
|
16114
16114
|
}
|
|
16115
16115
|
}
|
|
16116
|
-
const config = await (0,
|
|
16116
|
+
const config = await (0, import_chunk_IIII3I6Z.getConfig)({
|
|
16117
16117
|
datamodel: schemas,
|
|
16118
16118
|
datamodelPath: schemaPath,
|
|
16119
16119
|
prismaPath,
|
|
@@ -16124,7 +16124,7 @@ async function getGenerators(options) {
|
|
|
16124
16124
|
}
|
|
16125
16125
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
|
16126
16126
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
|
16127
|
-
const dmmf = await (0,
|
|
16127
|
+
const dmmf = await (0, import_chunk_FHXWSZMK.getDMMF)({
|
|
16128
16128
|
datamodel: schemas,
|
|
16129
16129
|
datamodelPath: schemaPath,
|
|
16130
16130
|
prismaPath,
|
|
@@ -16185,7 +16185,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
|
16185
16185
|
fromEnvVar: "null"
|
|
16186
16186
|
};
|
|
16187
16187
|
}
|
|
16188
|
-
const datamodel = (0,
|
|
16188
|
+
const datamodel = (0, import_chunk_3VOYOX6L.mergeSchemas)({ schemas });
|
|
16189
16189
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
|
16190
16190
|
const options2 = {
|
|
16191
16191
|
datamodel,
|
|
@@ -16267,7 +16267,7 @@ generator gen {
|
|
|
16267
16267
|
debug6({ generatorBinaryPaths });
|
|
16268
16268
|
generator.setBinaryPaths(generatorBinaryPaths);
|
|
16269
16269
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
|
16270
|
-
const customDmmf = await (0,
|
|
16270
|
+
const customDmmf = await (0, import_chunk_FHXWSZMK.getDMMF)({
|
|
16271
16271
|
datamodel: schemas,
|
|
16272
16272
|
datamodelPath: schemaPath,
|
|
16273
16273
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
|
@@ -16565,7 +16565,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
|
16565
16565
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
16566
16566
|
handleFormatPanic(
|
|
16567
16567
|
() => {
|
|
16568
|
-
|
|
16568
|
+
import_chunk_C55GF762.prismaSchemaWasm.debug_panic();
|
|
16569
16569
|
},
|
|
16570
16570
|
{ schemas: schemas2 }
|
|
16571
16571
|
);
|
|
@@ -16585,12 +16585,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
|
16585
16585
|
() => {
|
|
16586
16586
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
|
16587
16587
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
16588
|
-
const lintDiagnostics2 = (0,
|
|
16588
|
+
const lintDiagnostics2 = (0, import_chunk_5DKK4SNW.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
16589
16589
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
16590
16590
|
},
|
|
16591
16591
|
{ schemas: schemas2 }
|
|
16592
16592
|
);
|
|
16593
|
-
const lintWarnings = (0,
|
|
16593
|
+
const lintWarnings = (0, import_chunk_5DKK4SNW.getLintWarningsAsText)(lintDiagnostics);
|
|
16594
16594
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
|
16595
16595
|
console.warn(lintWarnings);
|
|
16596
16596
|
}
|
|
@@ -16620,7 +16620,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
|
16620
16620
|
}
|
|
16621
16621
|
}
|
|
16622
16622
|
function formatWasm(schema, documentFormattingParams) {
|
|
16623
|
-
const formattedSchema =
|
|
16623
|
+
const formattedSchema = import_chunk_C55GF762.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
16624
16624
|
return formattedSchema;
|
|
16625
16625
|
}
|
|
16626
16626
|
/*! Bundled license information:
|