@prisma/internals 6.18.0-dev.10 → 6.18.0-dev.12
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-75BIJ5PX.js → chunk-2GVIBKTA.js} +9 -9
- package/dist/{chunk-NTBJ7D7T.js → chunk-3DLPU2VH.js} +8 -8
- package/dist/{chunk-WFFR6TU4.js → chunk-6AHVCG6L.js} +8 -8
- package/dist/{chunk-CP7DLHK2.js → chunk-7GNJVKMU.js} +5 -5
- package/dist/{chunk-JMFEI3JO.js → chunk-AT4O64L5.js} +19 -19
- package/dist/{chunk-W22QE4Q4.js → chunk-BBXVW7RP.js} +5 -5
- package/dist/{chunk-36QU6IHY.js → chunk-CBOVNYMF.js} +37 -37
- package/dist/{chunk-P5HU6YXH.js → chunk-D3RD25JA.js} +19 -19
- package/dist/{chunk-D4VDA2TZ.js → chunk-FHYZIOZ4.js} +6 -6
- package/dist/{chunk-D3LJC65B.js → chunk-FWYVXOHQ.js} +5 -5
- package/dist/{chunk-MQCC3JNI.js → chunk-JZYVRGN4.js} +5 -5
- package/dist/{chunk-ILF44PHQ.js → chunk-LFELUV5W.js} +5 -5
- package/dist/{chunk-P3ITCNR6.js → chunk-LHVODGG2.js} +8 -8
- package/dist/{chunk-3UMNRYYV.js → chunk-N4DV6JOS.js} +8 -8
- package/dist/{chunk-UIGDM3U7.js → chunk-N7LAFYBX.js} +7 -7
- package/dist/{chunk-5A73S7W6.js → chunk-Q4GRJBUD.js} +8 -8
- package/dist/{chunk-BGBVSEMY.js → chunk-QKVGK3CJ.js} +36 -36
- package/dist/{chunk-IV5PT5YE.js → chunk-QTSXZES6.js} +7 -7
- package/dist/{chunk-L7GG563I.js → chunk-RMBRSCMH.js} +5 -5
- package/dist/{chunk-B24WFAOR.js → chunk-S6T6LQBL.js} +5 -5
- package/dist/{chunk-TQFONRJP.js → chunk-T4UWWS6R.js} +5 -5
- package/dist/{chunk-XIWLTNPB.js → chunk-UHROHX5U.js} +8 -8
- package/dist/{chunk-JOIIWB3U.js → chunk-VHTDEIXR.js} +23 -9
- package/dist/{chunk-BVJP43JS.js → chunk-YBTHDTT3.js} +7 -7
- package/dist/{chunk-MZ5DWDNU.js → chunk-YLZBBEHV.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +17 -17
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +17 -17
- package/dist/cli/schemaContext.js +17 -17
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +16 -16
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +25 -25
- 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 +19 -19
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.js +40 -40
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/wasm.js +5 -5
- package/package.json +11 -11
|
@@ -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_LFELUV5W_exports = {};
|
|
20
|
+
__export(chunk_LFELUV5W_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_LFELUV5W_exports);
|
|
28
|
+
var import_chunk_S6T6LQBL = require("./chunk-S6T6LQBL.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_S6T6LQBL.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -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_LHVODGG2_exports = {};
|
|
30
|
+
__export(chunk_LHVODGG2_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_LHVODGG2_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_7GNJVKMU = require("./chunk-7GNJVKMU.js");
|
|
39
|
+
var import_chunk_JZYVRGN4 = require("./chunk-JZYVRGN4.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_7GNJVKMU.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_JZYVRGN4.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_JZYVRGN4.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_N4DV6JOS_exports = {};
|
|
30
|
+
__export(chunk_N4DV6JOS_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_N4DV6JOS_exports);
|
|
38
38
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
39
39
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
40
40
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_chunk_FWYVXOHQ = require("./chunk-FWYVXOHQ.js");
|
|
42
|
+
var import_chunk_S6T6LQBL = require("./chunk-S6T6LQBL.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_FWYVXOHQ.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_S6T6LQBL.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_S6T6LQBL.prismaSchemaWasm.get_config(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(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_N7LAFYBX_exports = {};
|
|
30
|
+
__export(chunk_N7LAFYBX_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_N7LAFYBX_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_FWYVXOHQ = require("./chunk-FWYVXOHQ.js");
|
|
39
|
+
var import_chunk_S6T6LQBL = require("./chunk-S6T6LQBL.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: mergeSchemas]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_FWYVXOHQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "MergeSchemasError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
|
|
|
72
72
|
const params = JSON.stringify({
|
|
73
73
|
schema: options.schemas
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return import_chunk_S6T6LQBL.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -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_Q4GRJBUD_exports = {};
|
|
30
|
+
__export(chunk_Q4GRJBUD_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_Q4GRJBUD_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var import_chunk_7GNJVKMU = require("./chunk-7GNJVKMU.js");
|
|
38
|
+
var import_chunk_JZYVRGN4 = require("./chunk-JZYVRGN4.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_7GNJVKMU.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_JZYVRGN4.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_JZYVRGN4.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(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_QKVGK3CJ_exports = {};
|
|
20
|
+
__export(chunk_QKVGK3CJ_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_QKVGK3CJ_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) {
|
|
@@ -54,49 +54,49 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
54
54
|
],
|
|
55
55
|
devDependencies: {
|
|
56
56
|
"@babel/helper-validator-identifier": "7.25.9",
|
|
57
|
-
"@opentelemetry/api": "
|
|
58
|
-
"@swc/core": "
|
|
59
|
-
"@swc/jest": "
|
|
57
|
+
"@opentelemetry/api": "catalog:",
|
|
58
|
+
"@swc/core": "catalog:",
|
|
59
|
+
"@swc/jest": "catalog:",
|
|
60
60
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
|
61
|
-
"@types/jest": "
|
|
62
|
-
"@types/node": "
|
|
63
|
-
"@types/resolve": "
|
|
61
|
+
"@types/jest": "catalog:",
|
|
62
|
+
"@types/node": "catalog:",
|
|
63
|
+
"@types/resolve": "catalog:",
|
|
64
64
|
archiver: "6.0.2",
|
|
65
|
-
"checkpoint-client": "
|
|
65
|
+
"checkpoint-client": "catalog:",
|
|
66
66
|
"cli-truncate": "4.0.0",
|
|
67
67
|
dotenv: "16.5.0",
|
|
68
|
-
empathic: "
|
|
69
|
-
"escape-string-regexp": "
|
|
70
|
-
execa: "
|
|
71
|
-
"fast-glob": "
|
|
68
|
+
empathic: "catalog:",
|
|
69
|
+
"escape-string-regexp": "catalog:",
|
|
70
|
+
execa: "catalog:",
|
|
71
|
+
"fast-glob": "catalog:",
|
|
72
72
|
"find-up": "7.0.0",
|
|
73
|
-
"fp-ts": "
|
|
74
|
-
"fs-extra": "
|
|
73
|
+
"fp-ts": "catalog:",
|
|
74
|
+
"fs-extra": "catalog:",
|
|
75
75
|
"global-directory": "4.0.0",
|
|
76
|
-
globby: "
|
|
76
|
+
globby: "catalog:",
|
|
77
77
|
"identifier-regex": "1.0.0",
|
|
78
|
-
"indent-string": "
|
|
78
|
+
"indent-string": "catalog:",
|
|
79
79
|
"is-windows": "1.0.2",
|
|
80
80
|
"is-wsl": "3.1.0",
|
|
81
|
-
jest: "
|
|
82
|
-
"jest-junit": "
|
|
83
|
-
kleur: "
|
|
84
|
-
"mock-stdin": "
|
|
85
|
-
"new-github-issue-url": "
|
|
86
|
-
"node-fetch": "
|
|
87
|
-
"npm-packlist": "
|
|
88
|
-
open: "
|
|
89
|
-
"p-map": "
|
|
90
|
-
resolve: "
|
|
81
|
+
jest: "catalog:",
|
|
82
|
+
"jest-junit": "catalog:",
|
|
83
|
+
kleur: "catalog:",
|
|
84
|
+
"mock-stdin": "catalog:",
|
|
85
|
+
"new-github-issue-url": "catalog:",
|
|
86
|
+
"node-fetch": "catalog:",
|
|
87
|
+
"npm-packlist": "catalog:",
|
|
88
|
+
open: "catalog:",
|
|
89
|
+
"p-map": "catalog:",
|
|
90
|
+
resolve: "catalog:",
|
|
91
91
|
"string-width": "7.2.0",
|
|
92
|
-
"strip-indent": "
|
|
93
|
-
"temp-dir": "
|
|
94
|
-
tempy: "
|
|
95
|
-
"terminal-link": "
|
|
92
|
+
"strip-indent": "catalog:",
|
|
93
|
+
"temp-dir": "catalog:",
|
|
94
|
+
tempy: "catalog:",
|
|
95
|
+
"terminal-link": "catalog:",
|
|
96
96
|
tmp: "0.2.3",
|
|
97
|
-
"ts-pattern": "
|
|
98
|
-
"ts-toolbelt": "
|
|
99
|
-
typescript: "
|
|
97
|
+
"ts-pattern": "catalog:",
|
|
98
|
+
"ts-toolbelt": "catalog:",
|
|
99
|
+
typescript: "catalog:",
|
|
100
100
|
yarn: "1.22.22"
|
|
101
101
|
},
|
|
102
102
|
dependencies: {
|
|
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
112
112
|
"@prisma/prisma-schema-wasm": "6.18.0-2.ba2627112b75424f26505fb83167ce78db40fc57",
|
|
113
113
|
"@prisma/schema-engine-wasm": "6.18.0-2.ba2627112b75424f26505fb83167ce78db40fc57",
|
|
114
114
|
"@prisma/schema-files-loader": "workspace:*",
|
|
115
|
-
arg: "
|
|
115
|
+
arg: "catalog:",
|
|
116
116
|
prompts: "2.4.2"
|
|
117
117
|
},
|
|
118
118
|
peerDependencies: {
|
|
@@ -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_QTSXZES6_exports = {};
|
|
30
|
+
__export(chunk_QTSXZES6_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_QTSXZES6_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_7GNJVKMU = require("./chunk-7GNJVKMU.js");
|
|
39
|
+
var import_chunk_JZYVRGN4 = require("./chunk-JZYVRGN4.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: mergeSchemas]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_7GNJVKMU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "MergeSchemasError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
|
|
|
72
72
|
const params = JSON.stringify({
|
|
73
73
|
schema: options.schemas
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return import_chunk_JZYVRGN4.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -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_RMBRSCMH_exports = {};
|
|
20
|
+
__export(chunk_RMBRSCMH_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_RMBRSCMH_exports);
|
|
24
|
+
var import_chunk_QKVGK3CJ = require("./chunk-QKVGK3CJ.js");
|
|
25
|
+
var packageJson = (0, import_chunk_QKVGK3CJ.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -26,15 +26,15 @@ 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_S6T6LQBL_exports = {};
|
|
30
|
+
__export(chunk_S6T6LQBL_exports, {
|
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
|
33
33
|
schemaEngineWasmVersion: () => schemaEngineWasmVersion,
|
|
34
34
|
wasm_exports: () => wasm_exports
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
37
|
-
var
|
|
36
|
+
module.exports = __toCommonJS(chunk_S6T6LQBL_exports);
|
|
37
|
+
var import_chunk_CBOVNYMF = require("./chunk-CBOVNYMF.js");
|
|
38
38
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
40
40
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
@@ -46,6 +46,6 @@ var wasm_exports = {};
|
|
|
46
46
|
});
|
|
47
47
|
var globalWithPanicRegistry = globalThis;
|
|
48
48
|
globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
|
49
|
-
var { dependencies } = (0,
|
|
49
|
+
var { dependencies } = (0, import_chunk_CBOVNYMF.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -26,8 +26,8 @@ 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_T4UWWS6R_exports = {};
|
|
30
|
+
__export(chunk_T4UWWS6R_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists,
|
|
32
32
|
fs_utils_exports: () => fs_utils_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir,
|
|
@@ -36,9 +36,9 @@ __export(chunk_TQFONRJP_exports, {
|
|
|
36
36
|
removeEmptyDirs: () => removeEmptyDirs,
|
|
37
37
|
writeFile: () => writeFile
|
|
38
38
|
});
|
|
39
|
-
module.exports = __toCommonJS(
|
|
39
|
+
module.exports = __toCommonJS(chunk_T4UWWS6R_exports);
|
|
40
40
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_VHTDEIXR = require("./chunk-VHTDEIXR.js");
|
|
42
42
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
43
43
|
var import_promises = __toESM(require("fs/promises"));
|
|
44
44
|
var import_path = __toESM(require("path"));
|
|
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
|
|
|
51
51
|
removeEmptyDirs: () => removeEmptyDirs,
|
|
52
52
|
writeFile: () => writeFile
|
|
53
53
|
});
|
|
54
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
54
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_VHTDEIXR.require_globby)());
|
|
55
55
|
function createDirIfNotExists(dir) {
|
|
56
56
|
return import_promises.default.mkdir(dir, { recursive: true });
|
|
57
57
|
}
|
|
@@ -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_UHROHX5U_exports = {};
|
|
30
|
+
__export(chunk_UHROHX5U_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_UHROHX5U_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_FWYVXOHQ = require("./chunk-FWYVXOHQ.js");
|
|
39
|
+
var import_chunk_S6T6LQBL = require("./chunk-S6T6LQBL.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_FWYVXOHQ.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_S6T6LQBL.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_S6T6LQBL.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -16,14 +16,14 @@ 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_VHTDEIXR_exports = {};
|
|
20
|
+
__export(chunk_VHTDEIXR_exports, {
|
|
21
21
|
require_globby: () => require_globby,
|
|
22
22
|
require_is_glob: () => require_is_glob,
|
|
23
23
|
require_out: () => require_out4,
|
|
24
24
|
require_slash: () => require_slash
|
|
25
25
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(chunk_VHTDEIXR_exports);
|
|
27
27
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
28
28
|
var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
29
29
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
@@ -5461,7 +5461,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5461
5461
|
}
|
|
5462
5462
|
});
|
|
5463
5463
|
var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5464
|
-
"../../node_modules/.pnpm/ignore@5.2
|
|
5464
|
+
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
|
|
5465
5465
|
"use strict";
|
|
5466
5466
|
function makeArray(subject) {
|
|
5467
5467
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -5493,18 +5493,32 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5493
5493
|
return slashes.slice(0, length - length % 2);
|
|
5494
5494
|
};
|
|
5495
5495
|
var REPLACERS = [
|
|
5496
|
+
[
|
|
5497
|
+
// remove BOM
|
|
5498
|
+
// TODO:
|
|
5499
|
+
// Other similar zero-width characters?
|
|
5500
|
+
/^\uFEFF/,
|
|
5501
|
+
() => EMPTY
|
|
5502
|
+
],
|
|
5496
5503
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
5497
5504
|
[
|
|
5498
5505
|
// (a\ ) -> (a )
|
|
5499
5506
|
// (a ) -> (a)
|
|
5507
|
+
// (a ) -> (a)
|
|
5500
5508
|
// (a \ ) -> (a )
|
|
5501
|
-
|
|
5502
|
-
(
|
|
5509
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
5510
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
5503
5511
|
],
|
|
5504
5512
|
// replace (\ ) with ' '
|
|
5513
|
+
// (\ ) -> ' '
|
|
5514
|
+
// (\\ ) -> '\\ '
|
|
5515
|
+
// (\\\ ) -> '\\ '
|
|
5505
5516
|
[
|
|
5506
|
-
|
|
5507
|
-
() =>
|
|
5517
|
+
/(\\+?)\s/g,
|
|
5518
|
+
(_, m1) => {
|
|
5519
|
+
const { length } = m1;
|
|
5520
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
5521
|
+
}
|
|
5508
5522
|
],
|
|
5509
5523
|
// Escape metacharacters
|
|
5510
5524
|
// which is written down by users but means special for regular expressions.
|
|
@@ -5639,7 +5653,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5639
5653
|
let source = regexCache[pattern];
|
|
5640
5654
|
if (!source) {
|
|
5641
5655
|
source = REPLACERS.reduce(
|
|
5642
|
-
(prev,
|
|
5656
|
+
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
5643
5657
|
pattern
|
|
5644
5658
|
);
|
|
5645
5659
|
regexCache[pattern] = source;
|
|
@@ -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_YBTHDTT3_exports = {};
|
|
30
|
+
__export(chunk_YBTHDTT3_exports, {
|
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
|
32
32
|
require_p_map: () => require_p_map
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_YBTHDTT3_exports);
|
|
35
35
|
var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_VHTDEIXR = require("./chunk-VHTDEIXR.js");
|
|
37
37
|
var import_chunk_UMM35VP5 = require("./chunk-UMM35VP5.js");
|
|
38
38
|
var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -6254,9 +6254,9 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
6254
6254
|
"use strict";
|
|
6255
6255
|
var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
|
|
6256
6256
|
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
6257
|
-
var globby = (0,
|
|
6258
|
-
var isGlob = (0,
|
|
6259
|
-
var slash = (0,
|
|
6257
|
+
var globby = (0, import_chunk_VHTDEIXR.require_globby)();
|
|
6258
|
+
var isGlob = (0, import_chunk_VHTDEIXR.require_is_glob)();
|
|
6259
|
+
var slash = (0, import_chunk_VHTDEIXR.require_slash)();
|
|
6260
6260
|
var gracefulFs = require_graceful_fs();
|
|
6261
6261
|
var isPathCwd = require_is_path_cwd();
|
|
6262
6262
|
var isPathInside = require_is_path_inside();
|
|
@@ -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_YLZBBEHV_exports = {};
|
|
20
|
+
__export(chunk_YLZBBEHV_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_YLZBBEHV_exports);
|
|
24
|
+
var import_chunk_CBOVNYMF = require("./chunk-CBOVNYMF.js");
|
|
25
|
+
var packageJson = (0, import_chunk_CBOVNYMF.require_package)();
|
|
26
26
|
var version = packageJson.version;
|