@prisma/internals 6.4.0-dev.47 → 6.4.0-dev.49
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-TNJA256M.js → chunk-2KY2QACB.js} +8 -8
- package/dist/{chunk-LZYRGOT7.js → chunk-33VUWGRW.js} +5 -5
- package/dist/{chunk-JLZYIM44.js → chunk-5G7KCW2W.js} +5 -5
- package/dist/{chunk-V6K3CDWE.js → chunk-7IUXNMQN.js} +5 -5
- package/dist/{chunk-LSU7SYEQ.js → chunk-AKACKNBA.js} +8 -8
- package/dist/{chunk-HAETCCYR.js → chunk-EHGYTB2W.js} +7 -7
- package/dist/{chunk-W2XWIRSX.js → chunk-EWNECZAE.js} +5 -5
- package/dist/{chunk-HBDQ2ZIT.js → chunk-FFEOX4SD.js} +5 -5
- package/dist/{chunk-RIR667TO.js → chunk-FQMNIWO4.js} +5 -5
- package/dist/{chunk-AXOQKRTQ.js → chunk-I75T3XHR.js} +4 -4
- package/dist/{chunk-SDZ2LNPY.js → chunk-I7EMDL3T.js} +5 -5
- package/dist/{chunk-6N5JRXPR.js → chunk-ICCNMW3P.js} +5 -5
- package/dist/{chunk-2QJ6FCDN.js → chunk-INH5LWZO.js} +19 -19
- package/dist/{chunk-K56K36J5.js → chunk-N5AZBQVM.js} +19 -19
- package/dist/{chunk-I7GJUFW5.js → chunk-NSWAAFGY.js} +5 -5
- package/dist/{chunk-IWP643PV.js → chunk-QJVE5NWM.js} +7 -7
- package/dist/{chunk-4SU3QLX7.js → chunk-SDCVR56S.js} +8 -8
- package/dist/{chunk-NWHPPDPX.js → chunk-UUHQZCL3.js} +8 -8
- package/dist/{chunk-5KGLGGNM.js → chunk-XVEEPFYE.js} +8 -8
- package/dist/{chunk-M3OE2TWS.js → chunk-Y4LTKPZP.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/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,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_2KY2QACB_exports = {};
|
30
|
+
__export(chunk_2KY2QACB_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_2KY2QACB_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_FFEOX4SD = require("./chunk-FFEOX4SD.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_I7EMDL3T = require("./chunk-I7EMDL3T.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_FFEOX4SD.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_I7EMDL3T.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_I7EMDL3T.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(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_33VUWGRW_exports = {};
|
20
|
+
__export(chunk_33VUWGRW_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_33VUWGRW_exports);
|
24
|
+
var import_chunk_NSWAAFGY = require("./chunk-NSWAAFGY.js");
|
25
|
+
var packageJson = (0, import_chunk_NSWAAFGY.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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_5G7KCW2W_exports = {};
|
30
|
+
__export(chunk_5G7KCW2W_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_5G7KCW2W_exports);
|
36
|
+
var import_chunk_I75T3XHR = require("./chunk-I75T3XHR.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_I75T3XHR.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_7IUXNMQN_exports = {};
|
20
|
+
__export(chunk_7IUXNMQN_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_7IUXNMQN_exports);
|
24
|
+
var import_chunk_I75T3XHR = require("./chunk-I75T3XHR.js");
|
25
|
+
var packageJson = (0, import_chunk_I75T3XHR.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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_AKACKNBA_exports = {};
|
30
|
+
__export(chunk_AKACKNBA_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_AKACKNBA_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_FQMNIWO4 = require("./chunk-FQMNIWO4.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_5G7KCW2W = require("./chunk-5G7KCW2W.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: validate]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_FQMNIWO4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "ValidateError";
|
65
65
|
}
|
66
66
|
};
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
72
72
|
() => {
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
74
74
|
debug("Triggering a Rust panic...");
|
75
|
-
|
75
|
+
import_chunk_5G7KCW2W.prismaSchemaWasm.debug_panic();
|
76
76
|
}
|
77
77
|
const params = JSON.stringify({
|
78
78
|
prismaSchema: options.schemas,
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
80
80
|
});
|
81
|
-
|
81
|
+
import_chunk_5G7KCW2W.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -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_EHGYTB2W_exports = {};
|
30
|
+
__export(chunk_EHGYTB2W_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_EHGYTB2W_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_FQMNIWO4 = require("./chunk-FQMNIWO4.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_5G7KCW2W = require("./chunk-5G7KCW2W.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_FQMNIWO4.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_5G7KCW2W.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -16,21 +16,21 @@ 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_EWNECZAE_exports = {};
|
20
|
+
__export(chunk_EWNECZAE_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(
|
27
|
+
module.exports = __toCommonJS(chunk_EWNECZAE_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
29
|
+
var import_chunk_5G7KCW2W = require("./chunk-5G7KCW2W.js");
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_5G7KCW2W.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -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_FFEOX4SD_exports = {};
|
20
|
+
__export(chunk_FFEOX4SD_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_FFEOX4SD_exports);
|
24
|
+
var import_chunk_33VUWGRW = require("./chunk-33VUWGRW.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_33VUWGRW.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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_FQMNIWO4_exports = {};
|
20
|
+
__export(chunk_FQMNIWO4_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_FQMNIWO4_exports);
|
24
|
+
var import_chunk_7IUXNMQN = require("./chunk-7IUXNMQN.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_7IUXNMQN.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_I75T3XHR_exports = {};
|
20
|
+
__export(chunk_I75T3XHR_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_I75T3XHR_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-24.b06b231b59f731b5063a26ba21c36320ce2feb4b",
|
116
116
|
"@prisma/schema-files-loader": "workspace:*",
|
117
117
|
arg: "5.0.2",
|
118
118
|
prompts: "2.4.2"
|
@@ -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_I7EMDL3T_exports = {};
|
30
|
+
__export(chunk_I7EMDL3T_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_I7EMDL3T_exports);
|
36
|
+
var import_chunk_NSWAAFGY = require("./chunk-NSWAAFGY.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_NSWAAFGY.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -16,21 +16,21 @@ 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_ICCNMW3P_exports = {};
|
20
|
+
__export(chunk_ICCNMW3P_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(
|
27
|
+
module.exports = __toCommonJS(chunk_ICCNMW3P_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
29
|
+
var import_chunk_I7EMDL3T = require("./chunk-I7EMDL3T.js");
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_I7EMDL3T.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -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_INH5LWZO_exports = {};
|
30
|
+
__export2(chunk_INH5LWZO_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug6,
|
@@ -55,7 +55,7 @@ __export2(chunk_2QJ6FCDN_exports, {
|
|
55
55
|
sendPanic: () => sendPanic,
|
56
56
|
skipIndex: () => skipIndex
|
57
57
|
});
|
58
|
-
module.exports = __toCommonJS2(
|
58
|
+
module.exports = __toCommonJS2(chunk_INH5LWZO_exports);
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
61
61
|
var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
|
@@ -80,14 +80,14 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
80
80
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
81
81
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
82
82
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
83
|
-
var
|
84
|
-
var
|
83
|
+
var import_chunk_EWNECZAE = require("./chunk-EWNECZAE.js");
|
84
|
+
var import_chunk_EHGYTB2W = require("./chunk-EHGYTB2W.js");
|
85
85
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
86
|
-
var
|
87
|
-
var
|
86
|
+
var import_chunk_Y4LTKPZP = require("./chunk-Y4LTKPZP.js");
|
87
|
+
var import_chunk_XVEEPFYE = require("./chunk-XVEEPFYE.js");
|
88
88
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
89
89
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
90
|
-
var
|
90
|
+
var import_chunk_5G7KCW2W = require("./chunk-5G7KCW2W.js");
|
91
91
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
92
92
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
93
93
|
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
@@ -14753,7 +14753,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14753
14753
|
}
|
14754
14754
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14755
14755
|
debug2("Loading config");
|
14756
|
-
const config2 = await (0,
|
14756
|
+
const config2 = await (0, import_chunk_Y4LTKPZP.getConfig)({
|
14757
14757
|
datamodel: files,
|
14758
14758
|
ignoreEnvVarErrors: true
|
14759
14759
|
});
|
@@ -15050,8 +15050,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
15050
15050
|
if (argName.includes("schema")) {
|
15051
15051
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
15052
15052
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15053
|
-
const config2 = await (0,
|
15054
|
-
const url = (0,
|
15053
|
+
const config2 = await (0, import_chunk_Y4LTKPZP.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15054
|
+
const url = (0, import_chunk_Y4LTKPZP.resolveUrl)((0, import_chunk_Y4LTKPZP.getEffectiveUrl)(config2.datasources[0]));
|
15055
15055
|
if (url?.startsWith("prisma://")) {
|
15056
15056
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15057
15057
|
}
|
@@ -15223,7 +15223,7 @@ async function getGenerators(options) {
|
|
15223
15223
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15224
15224
|
}
|
15225
15225
|
}
|
15226
|
-
const config = await (0,
|
15226
|
+
const config = await (0, import_chunk_Y4LTKPZP.getConfig)({
|
15227
15227
|
datamodel: schemas,
|
15228
15228
|
datamodelPath: schemaPath,
|
15229
15229
|
prismaPath,
|
@@ -15234,7 +15234,7 @@ async function getGenerators(options) {
|
|
15234
15234
|
}
|
15235
15235
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15236
15236
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15237
|
-
const dmmf = await (0,
|
15237
|
+
const dmmf = await (0, import_chunk_XVEEPFYE.getDMMF)({
|
15238
15238
|
datamodel: schemas,
|
15239
15239
|
datamodelPath: schemaPath,
|
15240
15240
|
prismaPath,
|
@@ -15295,7 +15295,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15295
15295
|
fromEnvVar: "null"
|
15296
15296
|
};
|
15297
15297
|
}
|
15298
|
-
const datamodel = (0,
|
15298
|
+
const datamodel = (0, import_chunk_EHGYTB2W.mergeSchemas)({ schemas });
|
15299
15299
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15300
15300
|
const options2 = {
|
15301
15301
|
datamodel,
|
@@ -15378,7 +15378,7 @@ generator gen {
|
|
15378
15378
|
debug7({ generatorBinaryPaths });
|
15379
15379
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15380
15380
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15381
|
-
const customDmmf = await (0,
|
15381
|
+
const customDmmf = await (0, import_chunk_XVEEPFYE.getDMMF)({
|
15382
15382
|
datamodel: schemas,
|
15383
15383
|
datamodelPath: schemaPath,
|
15384
15384
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15676,7 +15676,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15676
15676
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15677
15677
|
handleFormatPanic(
|
15678
15678
|
() => {
|
15679
|
-
|
15679
|
+
import_chunk_5G7KCW2W.prismaSchemaWasm.debug_panic();
|
15680
15680
|
},
|
15681
15681
|
{ schemas: schemas2 }
|
15682
15682
|
);
|
@@ -15696,12 +15696,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15696
15696
|
() => {
|
15697
15697
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15698
15698
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15699
|
-
const lintDiagnostics2 = (0,
|
15699
|
+
const lintDiagnostics2 = (0, import_chunk_EWNECZAE.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15700
15700
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15701
15701
|
},
|
15702
15702
|
{ schemas: schemas2 }
|
15703
15703
|
);
|
15704
|
-
const lintWarnings = (0,
|
15704
|
+
const lintWarnings = (0, import_chunk_EWNECZAE.getLintWarningsAsText)(lintDiagnostics);
|
15705
15705
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15706
15706
|
console.warn(lintWarnings);
|
15707
15707
|
}
|
@@ -15731,7 +15731,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15731
15731
|
}
|
15732
15732
|
}
|
15733
15733
|
function formatWasm(schema, documentFormattingParams) {
|
15734
|
-
const formattedSchema =
|
15734
|
+
const formattedSchema = import_chunk_5G7KCW2W.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15735
15735
|
return formattedSchema;
|
15736
15736
|
}
|
15737
15737
|
/*! Bundled license information:
|
@@ -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_N5AZBQVM_exports = {};
|
30
|
+
__export2(chunk_N5AZBQVM_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug6,
|
@@ -55,7 +55,7 @@ __export2(chunk_K56K36J5_exports, {
|
|
55
55
|
sendPanic: () => sendPanic,
|
56
56
|
skipIndex: () => skipIndex
|
57
57
|
});
|
58
|
-
module.exports = __toCommonJS2(
|
58
|
+
module.exports = __toCommonJS2(chunk_N5AZBQVM_exports);
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
61
61
|
var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
|
@@ -80,14 +80,14 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
80
80
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
81
81
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
82
82
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
83
|
-
var
|
84
|
-
var
|
83
|
+
var import_chunk_ICCNMW3P = require("./chunk-ICCNMW3P.js");
|
84
|
+
var import_chunk_QJVE5NWM = require("./chunk-QJVE5NWM.js");
|
85
85
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
86
|
-
var
|
87
|
-
var
|
86
|
+
var import_chunk_2KY2QACB = require("./chunk-2KY2QACB.js");
|
87
|
+
var import_chunk_SDCVR56S = require("./chunk-SDCVR56S.js");
|
88
88
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
89
89
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
90
|
-
var
|
90
|
+
var import_chunk_I7EMDL3T = require("./chunk-I7EMDL3T.js");
|
91
91
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
92
92
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
93
93
|
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
@@ -14753,7 +14753,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14753
14753
|
}
|
14754
14754
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14755
14755
|
debug2("Loading config");
|
14756
|
-
const config2 = await (0,
|
14756
|
+
const config2 = await (0, import_chunk_2KY2QACB.getConfig)({
|
14757
14757
|
datamodel: files,
|
14758
14758
|
ignoreEnvVarErrors: true
|
14759
14759
|
});
|
@@ -15050,8 +15050,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
15050
15050
|
if (argName.includes("schema")) {
|
15051
15051
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
15052
15052
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15053
|
-
const config2 = await (0,
|
15054
|
-
const url = (0,
|
15053
|
+
const config2 = await (0, import_chunk_2KY2QACB.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15054
|
+
const url = (0, import_chunk_2KY2QACB.resolveUrl)((0, import_chunk_2KY2QACB.getEffectiveUrl)(config2.datasources[0]));
|
15055
15055
|
if (url?.startsWith("prisma://")) {
|
15056
15056
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15057
15057
|
}
|
@@ -15223,7 +15223,7 @@ async function getGenerators(options) {
|
|
15223
15223
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15224
15224
|
}
|
15225
15225
|
}
|
15226
|
-
const config = await (0,
|
15226
|
+
const config = await (0, import_chunk_2KY2QACB.getConfig)({
|
15227
15227
|
datamodel: schemas,
|
15228
15228
|
datamodelPath: schemaPath,
|
15229
15229
|
prismaPath,
|
@@ -15234,7 +15234,7 @@ async function getGenerators(options) {
|
|
15234
15234
|
}
|
15235
15235
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15236
15236
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15237
|
-
const dmmf = await (0,
|
15237
|
+
const dmmf = await (0, import_chunk_SDCVR56S.getDMMF)({
|
15238
15238
|
datamodel: schemas,
|
15239
15239
|
datamodelPath: schemaPath,
|
15240
15240
|
prismaPath,
|
@@ -15295,7 +15295,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15295
15295
|
fromEnvVar: "null"
|
15296
15296
|
};
|
15297
15297
|
}
|
15298
|
-
const datamodel = (0,
|
15298
|
+
const datamodel = (0, import_chunk_QJVE5NWM.mergeSchemas)({ schemas });
|
15299
15299
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15300
15300
|
const options2 = {
|
15301
15301
|
datamodel,
|
@@ -15378,7 +15378,7 @@ generator gen {
|
|
15378
15378
|
debug7({ generatorBinaryPaths });
|
15379
15379
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15380
15380
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15381
|
-
const customDmmf = await (0,
|
15381
|
+
const customDmmf = await (0, import_chunk_SDCVR56S.getDMMF)({
|
15382
15382
|
datamodel: schemas,
|
15383
15383
|
datamodelPath: schemaPath,
|
15384
15384
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15676,7 +15676,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15676
15676
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15677
15677
|
handleFormatPanic(
|
15678
15678
|
() => {
|
15679
|
-
|
15679
|
+
import_chunk_I7EMDL3T.prismaSchemaWasm.debug_panic();
|
15680
15680
|
},
|
15681
15681
|
{ schemas: schemas2 }
|
15682
15682
|
);
|
@@ -15696,12 +15696,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15696
15696
|
() => {
|
15697
15697
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15698
15698
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15699
|
-
const lintDiagnostics2 = (0,
|
15699
|
+
const lintDiagnostics2 = (0, import_chunk_ICCNMW3P.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15700
15700
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15701
15701
|
},
|
15702
15702
|
{ schemas: schemas2 }
|
15703
15703
|
);
|
15704
|
-
const lintWarnings = (0,
|
15704
|
+
const lintWarnings = (0, import_chunk_ICCNMW3P.getLintWarningsAsText)(lintDiagnostics);
|
15705
15705
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15706
15706
|
console.warn(lintWarnings);
|
15707
15707
|
}
|
@@ -15731,7 +15731,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15731
15731
|
}
|
15732
15732
|
}
|
15733
15733
|
function formatWasm(schema, documentFormattingParams) {
|
15734
|
-
const formattedSchema =
|
15734
|
+
const formattedSchema = import_chunk_I7EMDL3T.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15735
15735
|
return formattedSchema;
|
15736
15736
|
}
|
15737
15737
|
/*! Bundled license information:
|