@prisma/internals 7.7.0-dev.3 → 7.7.0-dev.5
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-IN7DJEWK.js → chunk-3Y5ZLWOH.js} +7 -7
- package/dist/{chunk-Q75TMXCR.js → chunk-6I5EQPM7.js} +5 -5
- package/dist/{chunk-ZI7BX3VK.js → chunk-DVMCRKSY.js} +7 -7
- package/dist/{chunk-PKOQQT7I.js → chunk-DZ4QWHTB.js} +5 -5
- package/dist/{chunk-IDINCQMN.js → chunk-E476ARWS.js} +6 -7
- package/dist/{chunk-H5RJM5KP.js → chunk-EZT2M4Z7.js} +5 -5
- package/dist/{chunk-OBFJDH7C.js → chunk-HUKX6SK2.js} +8 -8
- package/dist/{chunk-VPHYIISP.js → chunk-JK5WQKJF.js} +5 -5
- package/dist/{chunk-YV4IFLW4.js → chunk-JPZYSRK3.js} +262 -15
- package/dist/{chunk-5BRXEOYH.js → chunk-K2EOOA2X.js} +5 -5
- package/dist/{chunk-2GPDFPDR.js → chunk-KARIQA23.js} +7 -7
- package/dist/{chunk-2HPKSKDE.js → chunk-NFSRS3ET.js} +5 -5
- package/dist/{chunk-BXIKQUP5.js → chunk-PTPRBA7K.js} +289 -93
- package/dist/{chunk-57ZFKPEC.js → chunk-Q53Z2MAO.js} +8 -8
- package/dist/{chunk-Q5XW7CMJ.js → chunk-QVJ2BXKF.js} +9 -9
- package/dist/{chunk-YJVCIN4F.js → chunk-T3R75LJS.js} +5 -5
- package/dist/{chunk-M32TYUAI.js → chunk-TBOIOJW5.js} +5 -5
- package/dist/{chunk-XV2QLA4M.js → chunk-TBTQBU6S.js} +19 -19
- package/dist/{chunk-ELUS2FGF.js → chunk-UOIOPEYB.js} +4 -4
- package/dist/{chunk-3TFDMTMW.js → chunk-VFNP7Q3Y.js} +481 -466
- package/dist/{chunk-DQWKFZPY.js → chunk-WMYLXKKD.js} +5 -5
- package/dist/{chunk-UINW4OZY.js → chunk-WRATAHFA.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +22 -22
- package/dist/cli/schemaContext.js +23 -23
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +21 -21
- package/dist/engine-commands/getConfig.js +7 -7
- package/dist/engine-commands/getDmmf.js +8 -8
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesInfo.js +6 -6
- package/dist/engine-commands/index.js +33 -33
- 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 +24 -24
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.js +52 -52
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/utils/__tests__/isCi.test.js +16 -16
- package/dist/utils/__tests__/isInteractive.test.js +14 -14
- package/dist/utils/callOnce.test.js +17 -17
- 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/utils/max.test.js +11 -11
- package/dist/utils/path.test.js +30 -30
- package/dist/utils/prismaPostgres.test.js +23 -23
- package/dist/wasm.js +5 -5
- package/package.json +12 -12
|
@@ -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_3Y5ZLWOH_exports = {};
|
|
30
|
+
__export(chunk_3Y5ZLWOH_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_3Y5ZLWOH_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_WRATAHFA = require("./chunk-WRATAHFA.js");
|
|
39
|
+
var import_chunk_NFSRS3ET = require("./chunk-NFSRS3ET.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_WRATAHFA.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_NFSRS3ET.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -16,18 +16,18 @@ 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_6I5EQPM7_exports = {};
|
|
20
|
+
__export(chunk_6I5EQPM7_exports, {
|
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_6I5EQPM7_exports);
|
|
25
25
|
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
26
|
-
var
|
|
26
|
+
var import_chunk_WMYLXKKD = require("./chunk-WMYLXKKD.js");
|
|
27
27
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
28
28
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
29
29
|
async function getEngineVersion(enginePath, binaryName) {
|
|
30
|
-
enginePath = await (0,
|
|
30
|
+
enginePath = await (0, import_chunk_WMYLXKKD.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
|
|
31
31
|
const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
|
|
32
32
|
return stdout;
|
|
33
33
|
}
|
|
@@ -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_DVMCRKSY_exports = {};
|
|
30
|
+
__export(chunk_DVMCRKSY_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,9 +40,9 @@ __export(chunk_ZI7BX3VK_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_DVMCRKSY_exports);
|
|
44
44
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
45
|
-
var
|
|
45
|
+
var import_chunk_DZ4QWHTB = require("./chunk-DZ4QWHTB.js");
|
|
46
46
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
|
47
47
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
|
48
48
|
var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
@@ -63,7 +63,7 @@ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
|
63
63
|
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
|
64
64
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
65
65
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
66
|
-
var
|
|
66
|
+
var import_chunk_PTPRBA7K = require("./chunk-PTPRBA7K.js");
|
|
67
67
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
68
68
|
var import_node_path = __toESM(require("node:path"));
|
|
69
69
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -171,7 +171,7 @@ function getSchemaDatasourceProvider(schemaContext) {
|
|
|
171
171
|
}
|
|
172
172
|
return schemaContext.primaryDatasource.activeProvider;
|
|
173
173
|
}
|
|
174
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
174
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_PTPRBA7K.require_p_map)());
|
|
175
175
|
var debug2 = (0, import_debug2.default)("prisma:getGenerators");
|
|
176
176
|
async function getGenerators(options) {
|
|
177
177
|
if (options.registry === void 0 && options.providerAliases !== void 0) {
|
|
@@ -318,7 +318,7 @@ generator gen {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
321
|
-
const { binaryPathsByVersion } = await (0,
|
|
321
|
+
const { binaryPathsByVersion } = await (0, import_chunk_DZ4QWHTB.getBinaryPathsByVersion)({
|
|
322
322
|
neededVersions,
|
|
323
323
|
// We're lazily computing the binary target here, to avoid printing the
|
|
324
324
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -26,21 +26,21 @@ 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_DZ4QWHTB_exports = {};
|
|
30
|
+
__export(chunk_DZ4QWHTB_exports, {
|
|
31
31
|
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_DZ4QWHTB_exports);
|
|
34
34
|
var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
|
|
35
35
|
var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
|
|
36
36
|
var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
|
|
37
37
|
var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_E476ARWS = require("./chunk-E476ARWS.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
40
40
|
var import_engines = require("@prisma/engines");
|
|
41
41
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
42
42
|
var import_path = __toESM2(require("path"));
|
|
43
|
-
var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
43
|
+
var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_E476ARWS.require_lib)());
|
|
44
44
|
async function getBinaryPathsByVersion({
|
|
45
45
|
neededVersions,
|
|
46
46
|
detectBinaryTarget,
|
|
@@ -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_E476ARWS_exports = {};
|
|
20
|
+
__export(chunk_E476ARWS_exports, {
|
|
21
21
|
require_lib: () => require_lib
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_E476ARWS_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_universalify = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
@@ -1793,7 +1793,7 @@ var require_ensure = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
var require_utils2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1796
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1796
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
1797
1797
|
"use strict";
|
|
1798
1798
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
1799
1799
|
const EOF = finalEOL ? EOL : "";
|
|
@@ -1808,7 +1808,7 @@ var require_utils2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
1810
|
var require_jsonfile = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1811
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1811
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
1812
1812
|
"use strict";
|
|
1813
1813
|
var _fs;
|
|
1814
1814
|
try {
|
|
@@ -1870,13 +1870,12 @@ var require_jsonfile = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1870
1870
|
const str = stringify(obj, options);
|
|
1871
1871
|
return fs.writeFileSync(file, str, options);
|
|
1872
1872
|
}
|
|
1873
|
-
|
|
1873
|
+
module2.exports = {
|
|
1874
1874
|
readFile,
|
|
1875
1875
|
readFileSync,
|
|
1876
1876
|
writeFile,
|
|
1877
1877
|
writeFileSync
|
|
1878
1878
|
};
|
|
1879
|
-
module2.exports = jsonfile;
|
|
1880
1879
|
}
|
|
1881
1880
|
});
|
|
1882
1881
|
var require_jsonfile2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
@@ -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_EZT2M4Z7_exports = {};
|
|
30
|
+
__export(chunk_EZT2M4Z7_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
externalToInternalDmmf: () => import_get_dmmf2.externalToInternalDmmf,
|
|
33
33
|
getDMMF: () => getDMMF,
|
|
34
34
|
getInternalDMMF: () => getInternalDMMF
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_EZT2M4Z7_exports);
|
|
37
37
|
var import_chunk_IL7PSY44 = require("./chunk-IL7PSY44.js");
|
|
38
38
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_WRATAHFA = require("./chunk-WRATAHFA.js");
|
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
41
41
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
42
42
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: getDmmf]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_WRATAHFA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "GetDmmfError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -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_HUKX6SK2_exports = {};
|
|
30
|
+
__export(chunk_HUKX6SK2_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_HUKX6SK2_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_WRATAHFA = require("./chunk-WRATAHFA.js");
|
|
39
|
+
var import_chunk_NFSRS3ET = require("./chunk-NFSRS3ET.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_WRATAHFA.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_GET_DMMF) {
|
|
73
73
|
debug("Triggering a Rust panic...");
|
|
74
|
-
|
|
74
|
+
import_chunk_NFSRS3ET.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_NFSRS3ET.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_JK5WQKJF_exports = {};
|
|
20
|
+
__export(chunk_JK5WQKJF_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_JK5WQKJF_exports);
|
|
28
|
+
var import_chunk_NFSRS3ET = require("./chunk-NFSRS3ET.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_NFSRS3ET.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|