@prisma/internals 6.6.0-dev.66 → 6.6.0-dev.67
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-KODNZVOI.js → chunk-4KMUVSGP.js} +18 -18
- package/dist/{chunk-H6N6VJGS.js → chunk-6CNQY6TO.js} +5 -5
- package/dist/{chunk-QP25KGJY.js → chunk-7YPZQIWZ.js} +4 -4
- package/dist/{chunk-W2E2GEEB.js → chunk-FAHJKBIB.js} +18 -18
- package/dist/{chunk-342IJDBJ.js → chunk-FGDOIKJS.js} +8 -8
- package/dist/{chunk-QYY5H4NB.js → chunk-FX7LKPT6.js} +5 -5
- package/dist/{chunk-5WLTHNGG.js → chunk-IDXFDFDL.js} +8 -8
- package/dist/{chunk-MG2MTPNJ.js → chunk-IECR2ABP.js} +5 -5
- package/dist/{chunk-FQIJSCJT.js → chunk-IKIO67FF.js} +5 -5
- package/dist/{chunk-D74XF3GN.js → chunk-JODGYPBH.js} +5 -5
- package/dist/{chunk-UE4PGUWB.js → chunk-KTBDI6BO.js} +8 -8
- package/dist/{chunk-NS26Y3QT.js → chunk-OG63ZYH5.js} +8 -8
- package/dist/{chunk-CI3EDF54.js → chunk-UGT3SWS5.js} +8 -8
- package/dist/{chunk-MXH5M2PT.js → chunk-VMZLNVDR.js} +8 -8
- package/dist/{chunk-OBYFWKWJ.js → chunk-VT2QLVTB.js} +5 -5
- package/dist/{chunk-C62H4FEY.js → chunk-WF6TNBCN.js} +5 -5
- package/dist/{chunk-GQR4IDLD.js → chunk-XECIKVZQ.js} +5 -5
- package/dist/{chunk-IWDQVDPO.js → chunk-YHLJL75G.js} +7 -7
- package/dist/{chunk-EKRI3PDU.js → chunk-Z57ZBM27.js} +5 -5
- package/dist/{chunk-I2XONAOJ.js → chunk-ZVE74M6Y.js} +7 -7
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.js +15 -15
- package/dist/cli/hashes.js +12 -12
- package/dist/cli/schemaContext.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/getGenerators.js +14 -14
- package/dist/index.js +38 -38
- package/dist/utils/getEnvPaths.js +11 -11
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/loadEnvFile.js +11 -11
- package/dist/wasm.js +4 -4
- package/package.json +11 -11
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_4KMUVSGP_exports = {};
|
30
|
+
__export(chunk_4KMUVSGP_exports, {
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
33
33
|
formatSchema: () => formatSchema,
|
@@ -49,7 +49,7 @@ __export(chunk_KODNZVOI_exports, {
|
|
49
49
|
processSchemaResult: () => processSchemaResult,
|
50
50
|
skipIndex: () => skipIndex
|
51
51
|
});
|
52
|
-
module.exports = __toCommonJS(
|
52
|
+
module.exports = __toCommonJS(chunk_4KMUVSGP_exports);
|
53
53
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
54
54
|
var import_chunk_EPXBOIA5 = require("./chunk-EPXBOIA5.js");
|
55
55
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
@@ -62,11 +62,11 @@ var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
|
|
62
62
|
var import_chunk_AZV6HVKA = require("./chunk-AZV6HVKA.js");
|
63
63
|
var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
|
64
64
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
65
|
-
var
|
66
|
-
var
|
67
|
-
var
|
68
|
-
var
|
69
|
-
var
|
65
|
+
var import_chunk_KTBDI6BO = require("./chunk-KTBDI6BO.js");
|
66
|
+
var import_chunk_XECIKVZQ = require("./chunk-XECIKVZQ.js");
|
67
|
+
var import_chunk_ZVE74M6Y = require("./chunk-ZVE74M6Y.js");
|
68
|
+
var import_chunk_VMZLNVDR = require("./chunk-VMZLNVDR.js");
|
69
|
+
var import_chunk_6CNQY6TO = require("./chunk-6CNQY6TO.js");
|
70
70
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
71
71
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
72
72
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
@@ -104,7 +104,7 @@ var debug = (0, import_debug2.default)("prisma:format");
|
|
104
104
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
105
105
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
106
106
|
handleFormatPanic(() => {
|
107
|
-
|
107
|
+
import_chunk_6CNQY6TO.prismaSchemaWasm.debug_panic();
|
108
108
|
});
|
109
109
|
}
|
110
110
|
const defaultFormattingOptions = {
|
@@ -121,10 +121,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
121
121
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
122
122
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
123
123
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
124
|
-
const lintDiagnostics2 = (0,
|
124
|
+
const lintDiagnostics2 = (0, import_chunk_XECIKVZQ.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
125
125
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
126
126
|
});
|
127
|
-
const lintWarnings = (0,
|
127
|
+
const lintWarnings = (0, import_chunk_XECIKVZQ.getLintWarningsAsText)(lintDiagnostics);
|
128
128
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
129
129
|
console.warn(lintWarnings);
|
130
130
|
}
|
@@ -151,7 +151,7 @@ function handleFormatPanic(tryCb) {
|
|
151
151
|
}
|
152
152
|
}
|
153
153
|
function formatWasm(schema, documentFormattingParams) {
|
154
|
-
const formattedSchema =
|
154
|
+
const formattedSchema = import_chunk_6CNQY6TO.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
155
155
|
return formattedSchema;
|
156
156
|
}
|
157
157
|
var readFile = (0, import_util.promisify)(import_fs.default.readFile);
|
@@ -195,7 +195,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
195
195
|
}
|
196
196
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
197
197
|
debug2("Loading config");
|
198
|
-
const config = await (0,
|
198
|
+
const config = await (0, import_chunk_VMZLNVDR.getConfig)({
|
199
199
|
datamodel: files,
|
200
200
|
ignoreEnvVarErrors: true
|
201
201
|
});
|
@@ -405,7 +405,7 @@ async function processSchemaResult({
|
|
405
405
|
if (printLoadMessage) {
|
406
406
|
printSchemaLoadedMessage(loadedFromPathForLogMessages);
|
407
407
|
}
|
408
|
-
const configFromPsl = await (0,
|
408
|
+
const configFromPsl = await (0, import_chunk_VMZLNVDR.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
|
409
409
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
410
410
|
const schemaRootDir = schemaResult.schemaRootDir || cwd;
|
411
411
|
return {
|
@@ -483,7 +483,7 @@ async function getGenerators(options) {
|
|
483
483
|
}
|
484
484
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
485
485
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
486
|
-
const dmmf = await (0,
|
486
|
+
const dmmf = await (0, import_chunk_KTBDI6BO.getDMMF)({
|
487
487
|
datamodel: schemaContext.schemaFiles,
|
488
488
|
previewFeatures
|
489
489
|
});
|
@@ -534,7 +534,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
534
534
|
fromEnvVar: null
|
535
535
|
};
|
536
536
|
}
|
537
|
-
const datamodel = (0,
|
537
|
+
const datamodel = (0, import_chunk_ZVE74M6Y.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
538
538
|
const envPaths = await getEnvPaths(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
|
539
539
|
const options2 = {
|
540
540
|
datamodel,
|
@@ -618,7 +618,7 @@ generator gen {
|
|
618
618
|
debug3({ generatorBinaryPaths });
|
619
619
|
generator.setBinaryPaths(generatorBinaryPaths);
|
620
620
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
621
|
-
const customDmmf = await (0,
|
621
|
+
const customDmmf = await (0, import_chunk_KTBDI6BO.getDMMF)({
|
622
622
|
datamodel: schemaContext.schemaFiles,
|
623
623
|
previewFeatures
|
624
624
|
});
|
@@ -893,7 +893,7 @@ function checkUnsupportedDataProxy({
|
|
893
893
|
}
|
894
894
|
}
|
895
895
|
if (!schemaContext2?.primaryDatasource) return;
|
896
|
-
const url = (0,
|
896
|
+
const url = (0, import_chunk_VMZLNVDR.resolveUrl)((0, import_chunk_VMZLNVDR.getEffectiveUrl)(schemaContext2.primaryDatasource));
|
897
897
|
if (url?.startsWith("prisma://")) {
|
898
898
|
throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
|
899
899
|
}
|
@@ -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_6CNQY6TO_exports = {};
|
30
|
+
__export(chunk_6CNQY6TO_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_6CNQY6TO_exports);
|
36
|
+
var import_chunk_FX7LKPT6 = require("./chunk-FX7LKPT6.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,
|
45
|
+
var { dependencies } = (0, import_chunk_FX7LKPT6.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.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_7YPZQIWZ_exports = {};
|
20
|
+
__export(chunk_7YPZQIWZ_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_7YPZQIWZ_exports);
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
112
112
|
"@prisma/generator": "workspace:*",
|
113
113
|
"@prisma/generator-helper": "workspace:*",
|
114
114
|
"@prisma/get-platform": "workspace:*",
|
115
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.6.0-31.d26022ad3b55e2aa7e4ffc189436e4c59aae0c29",
|
116
116
|
"@prisma/schema-files-loader": "workspace:*",
|
117
117
|
arg: "5.0.2",
|
118
118
|
prompts: "2.4.2"
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_FAHJKBIB_exports = {};
|
30
|
+
__export(chunk_FAHJKBIB_exports, {
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
33
33
|
formatSchema: () => formatSchema,
|
@@ -49,7 +49,7 @@ __export(chunk_W2E2GEEB_exports, {
|
|
49
49
|
processSchemaResult: () => processSchemaResult,
|
50
50
|
skipIndex: () => skipIndex
|
51
51
|
});
|
52
|
-
module.exports = __toCommonJS(
|
52
|
+
module.exports = __toCommonJS(chunk_FAHJKBIB_exports);
|
53
53
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
54
54
|
var import_chunk_EPXBOIA5 = require("./chunk-EPXBOIA5.js");
|
55
55
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
@@ -62,11 +62,11 @@ var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
|
|
62
62
|
var import_chunk_AZV6HVKA = require("./chunk-AZV6HVKA.js");
|
63
63
|
var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
|
64
64
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
65
|
-
var
|
66
|
-
var
|
67
|
-
var
|
68
|
-
var
|
69
|
-
var
|
65
|
+
var import_chunk_IDXFDFDL = require("./chunk-IDXFDFDL.js");
|
66
|
+
var import_chunk_JODGYPBH = require("./chunk-JODGYPBH.js");
|
67
|
+
var import_chunk_YHLJL75G = require("./chunk-YHLJL75G.js");
|
68
|
+
var import_chunk_FGDOIKJS = require("./chunk-FGDOIKJS.js");
|
69
|
+
var import_chunk_WF6TNBCN = require("./chunk-WF6TNBCN.js");
|
70
70
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
71
71
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
72
72
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
@@ -104,7 +104,7 @@ var debug = (0, import_debug2.default)("prisma:format");
|
|
104
104
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
105
105
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
106
106
|
handleFormatPanic(() => {
|
107
|
-
|
107
|
+
import_chunk_WF6TNBCN.prismaSchemaWasm.debug_panic();
|
108
108
|
});
|
109
109
|
}
|
110
110
|
const defaultFormattingOptions = {
|
@@ -121,10 +121,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
121
121
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
122
122
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
123
123
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
124
|
-
const lintDiagnostics2 = (0,
|
124
|
+
const lintDiagnostics2 = (0, import_chunk_JODGYPBH.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
125
125
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
126
126
|
});
|
127
|
-
const lintWarnings = (0,
|
127
|
+
const lintWarnings = (0, import_chunk_JODGYPBH.getLintWarningsAsText)(lintDiagnostics);
|
128
128
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
129
129
|
console.warn(lintWarnings);
|
130
130
|
}
|
@@ -151,7 +151,7 @@ function handleFormatPanic(tryCb) {
|
|
151
151
|
}
|
152
152
|
}
|
153
153
|
function formatWasm(schema, documentFormattingParams) {
|
154
|
-
const formattedSchema =
|
154
|
+
const formattedSchema = import_chunk_WF6TNBCN.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
155
155
|
return formattedSchema;
|
156
156
|
}
|
157
157
|
var readFile = (0, import_util.promisify)(import_fs.default.readFile);
|
@@ -195,7 +195,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
195
195
|
}
|
196
196
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
197
197
|
debug2("Loading config");
|
198
|
-
const config = await (0,
|
198
|
+
const config = await (0, import_chunk_FGDOIKJS.getConfig)({
|
199
199
|
datamodel: files,
|
200
200
|
ignoreEnvVarErrors: true
|
201
201
|
});
|
@@ -405,7 +405,7 @@ async function processSchemaResult({
|
|
405
405
|
if (printLoadMessage) {
|
406
406
|
printSchemaLoadedMessage(loadedFromPathForLogMessages);
|
407
407
|
}
|
408
|
-
const configFromPsl = await (0,
|
408
|
+
const configFromPsl = await (0, import_chunk_FGDOIKJS.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
|
409
409
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
410
410
|
const schemaRootDir = schemaResult.schemaRootDir || cwd;
|
411
411
|
return {
|
@@ -483,7 +483,7 @@ async function getGenerators(options) {
|
|
483
483
|
}
|
484
484
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
485
485
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
486
|
-
const dmmf = await (0,
|
486
|
+
const dmmf = await (0, import_chunk_IDXFDFDL.getDMMF)({
|
487
487
|
datamodel: schemaContext.schemaFiles,
|
488
488
|
previewFeatures
|
489
489
|
});
|
@@ -534,7 +534,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
534
534
|
fromEnvVar: null
|
535
535
|
};
|
536
536
|
}
|
537
|
-
const datamodel = (0,
|
537
|
+
const datamodel = (0, import_chunk_YHLJL75G.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
538
538
|
const envPaths = await getEnvPaths(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
|
539
539
|
const options2 = {
|
540
540
|
datamodel,
|
@@ -618,7 +618,7 @@ generator gen {
|
|
618
618
|
debug3({ generatorBinaryPaths });
|
619
619
|
generator.setBinaryPaths(generatorBinaryPaths);
|
620
620
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
621
|
-
const customDmmf = await (0,
|
621
|
+
const customDmmf = await (0, import_chunk_IDXFDFDL.getDMMF)({
|
622
622
|
datamodel: schemaContext.schemaFiles,
|
623
623
|
previewFeatures
|
624
624
|
});
|
@@ -893,7 +893,7 @@ function checkUnsupportedDataProxy({
|
|
893
893
|
}
|
894
894
|
}
|
895
895
|
if (!schemaContext2?.primaryDatasource) return;
|
896
|
-
const url = (0,
|
896
|
+
const url = (0, import_chunk_FGDOIKJS.resolveUrl)((0, import_chunk_FGDOIKJS.getEffectiveUrl)(schemaContext2.primaryDatasource));
|
897
897
|
if (url?.startsWith("prisma://")) {
|
898
898
|
throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
|
899
899
|
}
|
@@ -26,20 +26,20 @@ 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_FGDOIKJS_exports = {};
|
30
|
+
__export(chunk_FGDOIKJS_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_FGDOIKJS_exports);
|
38
38
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
39
39
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_Z57ZBM27 = require("./chunk-Z57ZBM27.js");
|
42
|
+
var import_chunk_WF6TNBCN = require("./chunk-WF6TNBCN.js");
|
43
43
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
44
44
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
45
45
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
|
|
64
64
|
}).exhaustive();
|
65
65
|
const errorMessageWithContext = `${constructedErrorMessage}
|
66
66
|
[Context: getConfig]`;
|
67
|
-
super((0,
|
67
|
+
super((0, import_chunk_Z57ZBM27.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
68
68
|
this.name = "GetConfigError";
|
69
69
|
}
|
70
70
|
};
|
@@ -89,7 +89,7 @@ async function getConfig(options) {
|
|
89
89
|
() => {
|
90
90
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
91
91
|
debug("Triggering a Rust panic...");
|
92
|
-
|
92
|
+
import_chunk_WF6TNBCN.prismaSchemaWasm.debug_panic();
|
93
93
|
}
|
94
94
|
const params = JSON.stringify({
|
95
95
|
prismaSchema: options.datamodel,
|
@@ -97,7 +97,7 @@ async function getConfig(options) {
|
|
97
97
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
98
98
|
env: process.env
|
99
99
|
});
|
100
|
-
const data =
|
100
|
+
const data = import_chunk_WF6TNBCN.prismaSchemaWasm.get_config(params);
|
101
101
|
return data;
|
102
102
|
},
|
103
103
|
(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_FX7LKPT6_exports = {};
|
20
|
+
__export(chunk_FX7LKPT6_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_FX7LKPT6_exports);
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
27
27
|
module2.exports = {
|
28
28
|
name: "@prisma/internals",
|
29
|
-
version: "6.6.0-dev.
|
29
|
+
version: "6.6.0-dev.67",
|
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_4VNS5WPM.__commonJS)({
|
|
112
112
|
"@prisma/generator": "workspace:*",
|
113
113
|
"@prisma/generator-helper": "workspace:*",
|
114
114
|
"@prisma/get-platform": "workspace:*",
|
115
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.6.0-31.d26022ad3b55e2aa7e4ffc189436e4c59aae0c29",
|
116
116
|
"@prisma/schema-files-loader": "workspace:*",
|
117
117
|
arg: "5.0.2",
|
118
118
|
prompts: "2.4.2"
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_IDXFDFDL_exports = {};
|
30
|
+
__export(chunk_IDXFDFDL_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_IDXFDFDL_exports);
|
35
35
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
-
var
|
38
|
-
var
|
37
|
+
var import_chunk_Z57ZBM27 = require("./chunk-Z57ZBM27.js");
|
38
|
+
var import_chunk_WF6TNBCN = require("./chunk-WF6TNBCN.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,
|
61
|
+
super((0, import_chunk_Z57ZBM27.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
|
-
|
73
|
+
import_chunk_WF6TNBCN.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 =
|
79
|
+
const data = import_chunk_WF6TNBCN.prismaSchemaWasm.get_dmmf(params);
|
80
80
|
return data;
|
81
81
|
},
|
82
82
|
(e) => ({
|
@@ -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_IECR2ABP_exports = {};
|
20
|
+
__export(chunk_IECR2ABP_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_IECR2ABP_exports);
|
24
|
+
var import_chunk_VT2QLVTB = require("./chunk-VT2QLVTB.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_VT2QLVTB.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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_IKIO67FF_exports = {};
|
20
|
+
__export(chunk_IKIO67FF_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_IKIO67FF_exports);
|
24
|
+
var import_chunk_7YPZQIWZ = require("./chunk-7YPZQIWZ.js");
|
25
|
+
var packageJson = (0, import_chunk_7YPZQIWZ.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -16,20 +16,20 @@ 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_JODGYPBH_exports = {};
|
20
|
+
__export(chunk_JODGYPBH_exports, {
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
24
24
|
lintSchema: () => lintSchema,
|
25
25
|
warningToString: () => warningToString
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var
|
27
|
+
module.exports = __toCommonJS(chunk_JODGYPBH_exports);
|
28
|
+
var import_chunk_WF6TNBCN = require("./chunk-WF6TNBCN.js");
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
31
31
|
function lintSchema({ schemas }) {
|
32
|
-
const lintResult =
|
32
|
+
const lintResult = import_chunk_WF6TNBCN.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
34
34
|
return lintDiagnostics;
|
35
35
|
}
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_KTBDI6BO_exports = {};
|
30
|
+
__export(chunk_KTBDI6BO_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_KTBDI6BO_exports);
|
35
35
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
-
var
|
38
|
-
var
|
37
|
+
var import_chunk_IECR2ABP = require("./chunk-IECR2ABP.js");
|
38
|
+
var import_chunk_6CNQY6TO = require("./chunk-6CNQY6TO.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,
|
61
|
+
super((0, import_chunk_IECR2ABP.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
|
-
|
73
|
+
import_chunk_6CNQY6TO.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 =
|
79
|
+
const data = import_chunk_6CNQY6TO.prismaSchemaWasm.get_dmmf(params);
|
80
80
|
return data;
|
81
81
|
},
|
82
82
|
(e) => ({
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_OG63ZYH5_exports = {};
|
30
|
+
__export(chunk_OG63ZYH5_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_OG63ZYH5_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
|
39
|
-
var
|
38
|
+
var import_chunk_IECR2ABP = require("./chunk-IECR2ABP.js");
|
39
|
+
var import_chunk_6CNQY6TO = require("./chunk-6CNQY6TO.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: validate]`;
|
62
|
-
super((0,
|
62
|
+
super((0, import_chunk_IECR2ABP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
63
63
|
this.name = "ValidateError";
|
64
64
|
}
|
65
65
|
};
|
@@ -71,13 +71,13 @@ function validate(options) {
|
|
71
71
|
() => {
|
72
72
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
73
73
|
debug("Triggering a Rust panic...");
|
74
|
-
|
74
|
+
import_chunk_6CNQY6TO.prismaSchemaWasm.debug_panic();
|
75
75
|
}
|
76
76
|
const params = JSON.stringify({
|
77
77
|
prismaSchema: options.schemas,
|
78
78
|
noColor: Boolean(process.env.NO_COLOR)
|
79
79
|
});
|
80
|
-
|
80
|
+
import_chunk_6CNQY6TO.prismaSchemaWasm.validate(params);
|
81
81
|
},
|
82
82
|
(e) => ({
|
83
83
|
type: "wasm-error",
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_UGT3SWS5_exports = {};
|
30
|
+
__export(chunk_UGT3SWS5_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_UGT3SWS5_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
|
39
|
-
var
|
38
|
+
var import_chunk_Z57ZBM27 = require("./chunk-Z57ZBM27.js");
|
39
|
+
var import_chunk_WF6TNBCN = require("./chunk-WF6TNBCN.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: validate]`;
|
62
|
-
super((0,
|
62
|
+
super((0, import_chunk_Z57ZBM27.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
63
63
|
this.name = "ValidateError";
|
64
64
|
}
|
65
65
|
};
|
@@ -71,13 +71,13 @@ function validate(options) {
|
|
71
71
|
() => {
|
72
72
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
73
73
|
debug("Triggering a Rust panic...");
|
74
|
-
|
74
|
+
import_chunk_WF6TNBCN.prismaSchemaWasm.debug_panic();
|
75
75
|
}
|
76
76
|
const params = JSON.stringify({
|
77
77
|
prismaSchema: options.schemas,
|
78
78
|
noColor: Boolean(process.env.NO_COLOR)
|
79
79
|
});
|
80
|
-
|
80
|
+
import_chunk_WF6TNBCN.prismaSchemaWasm.validate(params);
|
81
81
|
},
|
82
82
|
(e) => ({
|
83
83
|
type: "wasm-error",
|