@prisma/internals 6.4.0-integration-fix-config-types.3 → 6.4.0-integration-push-rxrkoptlzzms.1
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-24TUJETO.js → chunk-2GUXE47P.js} +8 -8
- package/dist/{chunk-Z3HEQNNY.js → chunk-3S4C4BO4.js} +8 -8
- package/dist/{chunk-W2UIGLEL.js → chunk-6IPSA2KQ.js} +5 -5
- package/dist/{chunk-HLHSY33R.js → chunk-BPZKVGOI.js} +5 -5
- package/dist/{chunk-YSLYGAW4.js → chunk-CDUXRV77.js} +5 -5
- package/dist/{chunk-KW3QAX6V.js → chunk-ERWGWAPF.js} +7 -7
- package/dist/{chunk-2SWS7ZGF.js → chunk-FDG3BPZA.js} +5 -5
- package/dist/{chunk-EWQOVGTI.js → chunk-FKSDCLIK.js} +23 -23
- package/dist/{chunk-VXSQZXSR.js → chunk-FLFMN267.js} +5 -5
- package/dist/{chunk-6HAMFH75.js → chunk-GSLZKTPL.js} +5 -5
- package/dist/{chunk-2AL4MZBZ.js → chunk-J2J7XMIQ.js} +8 -8
- package/dist/{chunk-IFSZX2CY.js → chunk-LJ6XZO4U.js} +5 -5
- package/dist/{chunk-5ARPS6K6.js → chunk-MAT2LSYN.js} +23 -23
- package/dist/{chunk-QV4VH7AM.js → chunk-RHYO5NML.js} +5 -5
- package/dist/{chunk-VQX3AXS3.js → chunk-TBDZA6HA.js} +8 -8
- package/dist/{chunk-RXMY4MKM.js → chunk-WX3WZNPI.js} +5 -5
- package/dist/{chunk-XOWBYDC2.js → chunk-X3Q7552D.js} +8 -8
- package/dist/{chunk-UUQ4S65T.js → chunk-YEX3J7VY.js} +4 -4
- package/dist/{chunk-CCLACYA6.js → chunk-YLVSOHPC.js} +7 -7
- package/dist/{chunk-D4MEGFWR.js → chunk-YX7ZT5SA.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.d.ts +2 -2
- package/dist/cli/getSchema.js +16 -16
- 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/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 +9 -9
@@ -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_MAT2LSYN_exports = {};
|
30
|
+
__export2(chunk_MAT2LSYN_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug6,
|
@@ -54,7 +54,7 @@ __export2(chunk_5ARPS6K6_exports, {
|
|
54
54
|
sendPanic: () => sendPanic,
|
55
55
|
skipIndex: () => skipIndex
|
56
56
|
});
|
57
|
-
module.exports = __toCommonJS2(
|
57
|
+
module.exports = __toCommonJS2(chunk_MAT2LSYN_exports);
|
58
58
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
59
59
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
60
60
|
var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
|
@@ -79,13 +79,13 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
79
79
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
80
80
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
81
81
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
82
|
-
var
|
83
|
-
var
|
84
|
-
var
|
85
|
-
var
|
82
|
+
var import_chunk_GSLZKTPL = require("./chunk-GSLZKTPL.js");
|
83
|
+
var import_chunk_YLVSOHPC = require("./chunk-YLVSOHPC.js");
|
84
|
+
var import_chunk_TBDZA6HA = require("./chunk-TBDZA6HA.js");
|
85
|
+
var import_chunk_J2J7XMIQ = require("./chunk-J2J7XMIQ.js");
|
86
86
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
87
87
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
88
|
-
var
|
88
|
+
var import_chunk_FDG3BPZA = require("./chunk-FDG3BPZA.js");
|
89
89
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
90
90
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
91
91
|
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
@@ -14751,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14751
14751
|
}
|
14752
14752
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14753
14753
|
debug2("Loading config");
|
14754
|
-
const config2 = await (0,
|
14754
|
+
const config2 = await (0, import_chunk_TBDZA6HA.getConfig)({
|
14755
14755
|
datamodel: files,
|
14756
14756
|
ignoreEnvVarErrors: true
|
14757
14757
|
});
|
@@ -14861,17 +14861,17 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
|
|
14861
14861
|
}
|
14862
14862
|
let schemaResult2;
|
14863
14863
|
if (schemaPathFromConfig.kind === "single") {
|
14864
|
-
schemaResult2 = await readSchemaFromSingleFile(schemaPathFromConfig.
|
14864
|
+
schemaResult2 = await readSchemaFromSingleFile(schemaPathFromConfig.filenamePath);
|
14865
14865
|
if (!schemaResult2.ok) {
|
14866
14866
|
throw new Error(
|
14867
|
-
`Could not load schema from file \`${schemaPathFromConfig.
|
14867
|
+
`Could not load schema from file \`${schemaPathFromConfig.filenamePath}\` provided by "prisma.config.ts" config\`: ${renderLookupError(schemaResult2.error)}`
|
14868
14868
|
);
|
14869
14869
|
}
|
14870
14870
|
} else {
|
14871
|
-
schemaResult2 = await readSchemaFromDirectory(schemaPathFromConfig.
|
14871
|
+
schemaResult2 = await readSchemaFromDirectory(schemaPathFromConfig.folder);
|
14872
14872
|
if (!schemaResult2.ok) {
|
14873
14873
|
throw new Error(
|
14874
|
-
`Could not load schema from folder \`${schemaPathFromConfig.
|
14874
|
+
`Could not load schema from folder \`${schemaPathFromConfig.folder}\` provided by "prisma.config.ts" config\`: ${renderLookupError(schemaResult2.error)}`
|
14875
14875
|
);
|
14876
14876
|
}
|
14877
14877
|
}
|
@@ -15077,8 +15077,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
|
|
15077
15077
|
if (argName.includes("schema")) {
|
15078
15078
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
15079
15079
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15080
|
-
const config2 = await (0,
|
15081
|
-
const url = (0,
|
15080
|
+
const config2 = await (0, import_chunk_TBDZA6HA.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15081
|
+
const url = (0, import_chunk_TBDZA6HA.resolveUrl)((0, import_chunk_TBDZA6HA.getEffectiveUrl)(config2.datasources[0]));
|
15082
15082
|
if (url?.startsWith("prisma://")) {
|
15083
15083
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15084
15084
|
}
|
@@ -15251,7 +15251,7 @@ async function getGenerators(options) {
|
|
15251
15251
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15252
15252
|
}
|
15253
15253
|
}
|
15254
|
-
const config = await (0,
|
15254
|
+
const config = await (0, import_chunk_TBDZA6HA.getConfig)({
|
15255
15255
|
datamodel: schemas,
|
15256
15256
|
datamodelPath: schemaPath,
|
15257
15257
|
prismaPath,
|
@@ -15262,7 +15262,7 @@ async function getGenerators(options) {
|
|
15262
15262
|
}
|
15263
15263
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15264
15264
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15265
|
-
const dmmf = await (0,
|
15265
|
+
const dmmf = await (0, import_chunk_J2J7XMIQ.getDMMF)({
|
15266
15266
|
datamodel: schemas,
|
15267
15267
|
datamodelPath: schemaPath,
|
15268
15268
|
prismaPath,
|
@@ -15323,7 +15323,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15323
15323
|
fromEnvVar: "null"
|
15324
15324
|
};
|
15325
15325
|
}
|
15326
|
-
const datamodel = (0,
|
15326
|
+
const datamodel = (0, import_chunk_YLVSOHPC.mergeSchemas)({ schemas });
|
15327
15327
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15328
15328
|
const options2 = {
|
15329
15329
|
datamodel,
|
@@ -15406,7 +15406,7 @@ generator gen {
|
|
15406
15406
|
debug7({ generatorBinaryPaths });
|
15407
15407
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15408
15408
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15409
|
-
const customDmmf = await (0,
|
15409
|
+
const customDmmf = await (0, import_chunk_J2J7XMIQ.getDMMF)({
|
15410
15410
|
datamodel: schemas,
|
15411
15411
|
datamodelPath: schemaPath,
|
15412
15412
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15704,7 +15704,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15704
15704
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15705
15705
|
handleFormatPanic(
|
15706
15706
|
() => {
|
15707
|
-
|
15707
|
+
import_chunk_FDG3BPZA.prismaSchemaWasm.debug_panic();
|
15708
15708
|
},
|
15709
15709
|
{ schemas: schemas2 }
|
15710
15710
|
);
|
@@ -15724,12 +15724,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15724
15724
|
() => {
|
15725
15725
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15726
15726
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15727
|
-
const lintDiagnostics2 = (0,
|
15727
|
+
const lintDiagnostics2 = (0, import_chunk_GSLZKTPL.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15728
15728
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15729
15729
|
},
|
15730
15730
|
{ schemas: schemas2 }
|
15731
15731
|
);
|
15732
|
-
const lintWarnings = (0,
|
15732
|
+
const lintWarnings = (0, import_chunk_GSLZKTPL.getLintWarningsAsText)(lintDiagnostics);
|
15733
15733
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15734
15734
|
console.warn(lintWarnings);
|
15735
15735
|
}
|
@@ -15759,7 +15759,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15759
15759
|
}
|
15760
15760
|
}
|
15761
15761
|
function formatWasm(schema, documentFormattingParams) {
|
15762
|
-
const formattedSchema =
|
15762
|
+
const formattedSchema = import_chunk_FDG3BPZA.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15763
15763
|
return formattedSchema;
|
15764
15764
|
}
|
15765
15765
|
/*! Bundled license information:
|
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_RHYO5NML_exports = {};
|
20
|
+
__export(chunk_RHYO5NML_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_RHYO5NML_exports);
|
24
|
+
var import_chunk_FLFMN267 = require("./chunk-FLFMN267.js");
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
27
|
-
const rows = [["Prisma CLI Version",
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_FLFMN267.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_TBDZA6HA_exports = {};
|
30
|
+
__export(chunk_TBDZA6HA_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(
|
37
|
+
module.exports = __toCommonJS(chunk_TBDZA6HA_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
39
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_RHYO5NML = require("./chunk-RHYO5NML.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
44
|
+
var import_chunk_FDG3BPZA = require("./chunk-FDG3BPZA.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,
|
68
|
+
super((0, import_chunk_RHYO5NML.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_FDG3BPZA.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 =
|
101
|
+
const data = import_chunk_FDG3BPZA.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_WX3WZNPI_exports = {};
|
20
|
+
__export(chunk_WX3WZNPI_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_WX3WZNPI_exports);
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
27
27
|
module2.exports = {
|
28
28
|
name: "@prisma/internals",
|
29
|
-
version: "6.4.0-integration-
|
29
|
+
version: "6.4.0-integration-push-rxrkoptlzzms.1",
|
30
30
|
description: "This package is intended for Prisma's internal use",
|
31
31
|
main: "dist/index.js",
|
32
32
|
types: "dist/index.d.ts",
|
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
112
112
|
"@prisma/fetch-engine": "workspace:*",
|
113
113
|
"@prisma/generator-helper": "workspace:*",
|
114
114
|
"@prisma/get-platform": "workspace:*",
|
115
|
-
"@prisma/prisma-schema-wasm": "6.4.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.4.0-26.7e7c9b8394a8c99732582d1f3b0646e95e351267",
|
116
116
|
"@prisma/schema-files-loader": "workspace:*",
|
117
117
|
arg: "5.0.2",
|
118
118
|
prompts: "2.4.2"
|
@@ -26,18 +26,18 @@ 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_X3Q7552D_exports = {};
|
30
|
+
__export(chunk_X3Q7552D_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_X3Q7552D_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
|
-
var
|
37
|
+
var import_chunk_LJ6XZO4U = require("./chunk-LJ6XZO4U.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
40
|
+
var import_chunk_CDUXRV77 = require("./chunk-CDUXRV77.js");
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_LJ6XZO4U.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
@@ -90,13 +90,13 @@ async function getDMMF(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_CDUXRV77.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: datamodel,
|
97
97
|
noColor: Boolean(process.env.NO_COLOR)
|
98
98
|
});
|
99
|
-
const data =
|
99
|
+
const data = import_chunk_CDUXRV77.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -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_YEX3J7VY_exports = {};
|
20
|
+
__export(chunk_YEX3J7VY_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_YEX3J7VY_exports);
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
112
112
|
"@prisma/fetch-engine": "workspace:*",
|
113
113
|
"@prisma/generator-helper": "workspace:*",
|
114
114
|
"@prisma/get-platform": "workspace:*",
|
115
|
-
"@prisma/prisma-schema-wasm": "6.4.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.4.0-26.7e7c9b8394a8c99732582d1f3b0646e95e351267",
|
116
116
|
"@prisma/schema-files-loader": "workspace:*",
|
117
117
|
arg: "5.0.2",
|
118
118
|
prompts: "2.4.2"
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_YLVSOHPC_exports = {};
|
30
|
+
__export(chunk_YLVSOHPC_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_YLVSOHPC_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_RHYO5NML = require("./chunk-RHYO5NML.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
41
|
+
var import_chunk_FDG3BPZA = require("./chunk-FDG3BPZA.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");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: mergeSchemas]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_RHYO5NML.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "MergeSchemasError";
|
65
65
|
}
|
66
66
|
};
|
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
|
|
73
73
|
const params = JSON.stringify({
|
74
74
|
schema: options.schemas
|
75
75
|
});
|
76
|
-
return
|
76
|
+
return import_chunk_FDG3BPZA.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_YX7ZT5SA_exports = {};
|
30
|
+
__export(chunk_YX7ZT5SA_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(
|
37
|
+
module.exports = __toCommonJS(chunk_YX7ZT5SA_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
39
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_LJ6XZO4U = require("./chunk-LJ6XZO4U.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
44
|
+
var import_chunk_CDUXRV77 = require("./chunk-CDUXRV77.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,
|
68
|
+
super((0, import_chunk_LJ6XZO4U.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_CDUXRV77.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 =
|
101
|
+
const data = import_chunk_CDUXRV77.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var checkUnsupportedDataProxy_exports = {};
|
20
20
|
__export(checkUnsupportedDataProxy_exports, {
|
21
|
-
checkUnsupportedDataProxy: () =>
|
22
|
-
forbiddenCmdWithDataProxyFlagMessage: () =>
|
21
|
+
checkUnsupportedDataProxy: () => import_chunk_MAT2LSYN.checkUnsupportedDataProxy,
|
22
|
+
forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_MAT2LSYN.forbiddenCmdWithDataProxyFlagMessage
|
23
23
|
});
|
24
24
|
module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
|
25
|
-
var
|
25
|
+
var import_chunk_MAT2LSYN = require("../chunk-MAT2LSYN.js");
|
26
26
|
var import_chunk_EUTJYQDW = require("../chunk-EUTJYQDW.js");
|
27
27
|
var import_chunk_IPKE37QC = require("../chunk-IPKE37QC.js");
|
28
28
|
var import_chunk_PIPE5DSU = require("../chunk-PIPE5DSU.js");
|
@@ -74,22 +74,22 @@ var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
74
74
|
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
75
75
|
var import_chunk_AOQIUJT4 = require("../chunk-AOQIUJT4.js");
|
76
76
|
var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
|
77
|
-
var
|
78
|
-
var
|
79
|
-
var
|
77
|
+
var import_chunk_GSLZKTPL = require("../chunk-GSLZKTPL.js");
|
78
|
+
var import_chunk_YLVSOHPC = require("../chunk-YLVSOHPC.js");
|
79
|
+
var import_chunk_2GUXE47P = require("../chunk-2GUXE47P.js");
|
80
80
|
var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
|
81
81
|
var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
|
82
82
|
var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
|
83
83
|
var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
|
84
84
|
var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
|
85
85
|
var import_chunk_MUPZUVSI = require("../chunk-MUPZUVSI.js");
|
86
|
-
var
|
87
|
-
var
|
86
|
+
var import_chunk_TBDZA6HA = require("../chunk-TBDZA6HA.js");
|
87
|
+
var import_chunk_J2J7XMIQ = require("../chunk-J2J7XMIQ.js");
|
88
88
|
var import_chunk_YRBRUREX = require("../chunk-YRBRUREX.js");
|
89
89
|
var import_chunk_6TXVGFQA = require("../chunk-6TXVGFQA.js");
|
90
90
|
var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
|
91
|
-
var
|
92
|
-
var
|
91
|
+
var import_chunk_RHYO5NML = require("../chunk-RHYO5NML.js");
|
92
|
+
var import_chunk_FLFMN267 = require("../chunk-FLFMN267.js");
|
93
93
|
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
94
94
|
var import_chunk_OYLZC5OV = require("../chunk-OYLZC5OV.js");
|
95
95
|
var import_chunk_PFLLVWZX = require("../chunk-PFLLVWZX.js");
|
@@ -97,8 +97,8 @@ var import_chunk_IWJ2BUYF = require("../chunk-IWJ2BUYF.js");
|
|
97
97
|
var import_chunk_I7IEEULS = require("../chunk-I7IEEULS.js");
|
98
98
|
var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
|
99
99
|
var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
|
100
|
-
var
|
101
|
-
var
|
100
|
+
var import_chunk_FDG3BPZA = require("../chunk-FDG3BPZA.js");
|
101
|
+
var import_chunk_WX3WZNPI = require("../chunk-WX3WZNPI.js");
|
102
102
|
var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
|
103
103
|
var import_chunk_QVVSDACW = require("../chunk-QVVSDACW.js");
|
104
104
|
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
package/dist/cli/getSchema.d.ts
CHANGED
@@ -14,7 +14,7 @@ export type SchemaPathFromConfig = {
|
|
14
14
|
/**
|
15
15
|
* The path to a single `.prisma` schema file.
|
16
16
|
*/
|
17
|
-
|
17
|
+
filenamePath: string;
|
18
18
|
} | {
|
19
19
|
/**
|
20
20
|
* Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
|
@@ -24,7 +24,7 @@ export type SchemaPathFromConfig = {
|
|
24
24
|
* The path to a folder containing multiple `.prisma` schema files.
|
25
25
|
* All of the files in this folder will be used.
|
26
26
|
*/
|
27
|
-
|
27
|
+
folder: string;
|
28
28
|
};
|
29
29
|
export type GetSchemaOptions = {
|
30
30
|
cwd?: string;
|
package/dist/cli/getSchema.js
CHANGED
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var getSchema_exports = {};
|
20
20
|
__export(getSchema_exports, {
|
21
|
-
getPrismaConfigFromPackageJson: () =>
|
22
|
-
getSchema: () =>
|
23
|
-
getSchemaDir: () =>
|
24
|
-
getSchemaFromPackageJson: () =>
|
25
|
-
getSchemaWithPath: () =>
|
26
|
-
getSchemaWithPathOptional: () =>
|
21
|
+
getPrismaConfigFromPackageJson: () => import_chunk_MAT2LSYN.getPrismaConfigFromPackageJson,
|
22
|
+
getSchema: () => import_chunk_MAT2LSYN.getSchema,
|
23
|
+
getSchemaDir: () => import_chunk_MAT2LSYN.getSchemaDir,
|
24
|
+
getSchemaFromPackageJson: () => import_chunk_MAT2LSYN.getSchemaFromPackageJson,
|
25
|
+
getSchemaWithPath: () => import_chunk_MAT2LSYN.getSchemaWithPath,
|
26
|
+
getSchemaWithPathOptional: () => import_chunk_MAT2LSYN.getSchemaWithPathOptional
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(getSchema_exports);
|
29
|
-
var
|
29
|
+
var import_chunk_MAT2LSYN = require("../chunk-MAT2LSYN.js");
|
30
30
|
var import_chunk_EUTJYQDW = require("../chunk-EUTJYQDW.js");
|
31
31
|
var import_chunk_IPKE37QC = require("../chunk-IPKE37QC.js");
|
32
32
|
var import_chunk_PIPE5DSU = require("../chunk-PIPE5DSU.js");
|
@@ -78,22 +78,22 @@ var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
78
78
|
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
79
79
|
var import_chunk_AOQIUJT4 = require("../chunk-AOQIUJT4.js");
|
80
80
|
var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
|
81
|
-
var
|
82
|
-
var
|
83
|
-
var
|
81
|
+
var import_chunk_GSLZKTPL = require("../chunk-GSLZKTPL.js");
|
82
|
+
var import_chunk_YLVSOHPC = require("../chunk-YLVSOHPC.js");
|
83
|
+
var import_chunk_2GUXE47P = require("../chunk-2GUXE47P.js");
|
84
84
|
var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
|
85
85
|
var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
|
86
86
|
var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
|
87
87
|
var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
|
88
88
|
var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
|
89
89
|
var import_chunk_MUPZUVSI = require("../chunk-MUPZUVSI.js");
|
90
|
-
var
|
91
|
-
var
|
90
|
+
var import_chunk_TBDZA6HA = require("../chunk-TBDZA6HA.js");
|
91
|
+
var import_chunk_J2J7XMIQ = require("../chunk-J2J7XMIQ.js");
|
92
92
|
var import_chunk_YRBRUREX = require("../chunk-YRBRUREX.js");
|
93
93
|
var import_chunk_6TXVGFQA = require("../chunk-6TXVGFQA.js");
|
94
94
|
var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
|
95
|
-
var
|
96
|
-
var
|
95
|
+
var import_chunk_RHYO5NML = require("../chunk-RHYO5NML.js");
|
96
|
+
var import_chunk_FLFMN267 = require("../chunk-FLFMN267.js");
|
97
97
|
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
98
98
|
var import_chunk_OYLZC5OV = require("../chunk-OYLZC5OV.js");
|
99
99
|
var import_chunk_PFLLVWZX = require("../chunk-PFLLVWZX.js");
|
@@ -101,8 +101,8 @@ var import_chunk_IWJ2BUYF = require("../chunk-IWJ2BUYF.js");
|
|
101
101
|
var import_chunk_I7IEEULS = require("../chunk-I7IEEULS.js");
|
102
102
|
var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
|
103
103
|
var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
|
104
|
-
var
|
105
|
-
var
|
104
|
+
var import_chunk_FDG3BPZA = require("../chunk-FDG3BPZA.js");
|
105
|
+
var import_chunk_WX3WZNPI = require("../chunk-WX3WZNPI.js");
|
106
106
|
var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
|
107
107
|
var import_chunk_QVVSDACW = require("../chunk-QVVSDACW.js");
|
108
108
|
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
package/dist/cli/hashes.js
CHANGED
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var hashes_exports = {};
|
20
20
|
__export(hashes_exports, {
|
21
|
-
getCLIPathHash: () =>
|
22
|
-
getProjectHash: () =>
|
21
|
+
getCLIPathHash: () => import_chunk_MAT2LSYN.getCLIPathHash,
|
22
|
+
getProjectHash: () => import_chunk_MAT2LSYN.getProjectHash
|
23
23
|
});
|
24
24
|
module.exports = __toCommonJS(hashes_exports);
|
25
|
-
var
|
25
|
+
var import_chunk_MAT2LSYN = require("../chunk-MAT2LSYN.js");
|
26
26
|
var import_chunk_EUTJYQDW = require("../chunk-EUTJYQDW.js");
|
27
27
|
var import_chunk_IPKE37QC = require("../chunk-IPKE37QC.js");
|
28
28
|
var import_chunk_PIPE5DSU = require("../chunk-PIPE5DSU.js");
|
@@ -74,22 +74,22 @@ var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
74
74
|
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
75
75
|
var import_chunk_AOQIUJT4 = require("../chunk-AOQIUJT4.js");
|
76
76
|
var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
|
77
|
-
var
|
78
|
-
var
|
79
|
-
var
|
77
|
+
var import_chunk_GSLZKTPL = require("../chunk-GSLZKTPL.js");
|
78
|
+
var import_chunk_YLVSOHPC = require("../chunk-YLVSOHPC.js");
|
79
|
+
var import_chunk_2GUXE47P = require("../chunk-2GUXE47P.js");
|
80
80
|
var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
|
81
81
|
var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
|
82
82
|
var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
|
83
83
|
var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
|
84
84
|
var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
|
85
85
|
var import_chunk_MUPZUVSI = require("../chunk-MUPZUVSI.js");
|
86
|
-
var
|
87
|
-
var
|
86
|
+
var import_chunk_TBDZA6HA = require("../chunk-TBDZA6HA.js");
|
87
|
+
var import_chunk_J2J7XMIQ = require("../chunk-J2J7XMIQ.js");
|
88
88
|
var import_chunk_YRBRUREX = require("../chunk-YRBRUREX.js");
|
89
89
|
var import_chunk_6TXVGFQA = require("../chunk-6TXVGFQA.js");
|
90
90
|
var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
|
91
|
-
var
|
92
|
-
var
|
91
|
+
var import_chunk_RHYO5NML = require("../chunk-RHYO5NML.js");
|
92
|
+
var import_chunk_FLFMN267 = require("../chunk-FLFMN267.js");
|
93
93
|
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
94
94
|
var import_chunk_OYLZC5OV = require("../chunk-OYLZC5OV.js");
|
95
95
|
var import_chunk_PFLLVWZX = require("../chunk-PFLLVWZX.js");
|
@@ -97,8 +97,8 @@ var import_chunk_IWJ2BUYF = require("../chunk-IWJ2BUYF.js");
|
|
97
97
|
var import_chunk_I7IEEULS = require("../chunk-I7IEEULS.js");
|
98
98
|
var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
|
99
99
|
var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
|
100
|
-
var
|
101
|
-
var
|
100
|
+
var import_chunk_FDG3BPZA = require("../chunk-FDG3BPZA.js");
|
101
|
+
var import_chunk_WX3WZNPI = require("../chunk-WX3WZNPI.js");
|
102
102
|
var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
|
103
103
|
var import_chunk_QVVSDACW = require("../chunk-QVVSDACW.js");
|
104
104
|
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|