@prisma/internals 7.7.0-integration-feat-bootstrap-ux-fixes.9 → 7.7.0
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-5SYO3KVT.js → chunk-4A2T72IP.js} +7 -7
- package/dist/{chunk-Q75TMXCR.js → chunk-6I5EQPM7.js} +5 -5
- package/dist/{chunk-Z2CLJJOF.js → chunk-6PRHDXET.js} +8 -8
- package/dist/{chunk-SC6UUXSQ.js → chunk-CFKXSAMV.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-T4AVPITC.js → chunk-E2R54WXJ.js} +19 -19
- package/dist/{chunk-IDINCQMN.js → chunk-E476ARWS.js} +6 -7
- package/dist/{chunk-VC5AV2QX.js → chunk-EI2FC7AB.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-Q5VXE4PA.js → chunk-LVGD6KMX.js} +5 -5
- package/dist/{chunk-LIYLUP5L.js → chunk-OKRT4UYX.js} +5 -5
- package/dist/{chunk-BXIKQUP5.js → chunk-PTPRBA7K.js} +289 -93
- package/dist/{chunk-Q5XW7CMJ.js → chunk-QVJ2BXKF.js} +9 -9
- package/dist/{chunk-LGPSQVBD.js → chunk-R66IR776.js} +4 -4
- package/dist/{chunk-YJVCIN4F.js → chunk-T3R75LJS.js} +5 -5
- package/dist/{chunk-AHOGKWU5.js → chunk-UUYDRB5L.js} +5 -5
- package/dist/{chunk-3TFDMTMW.js → chunk-VFNP7Q3Y.js} +481 -466
- package/dist/{chunk-DQWKFZPY.js → chunk-WMYLXKKD.js} +5 -5
- package/dist/{chunk-7EK353RU.js → chunk-XTH5MMJU.js} +8 -8
- 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_4A2T72IP_exports = {};
|
|
30
|
+
__export(chunk_4A2T72IP_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_4A2T72IP_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_UUYDRB5L = require("./chunk-UUYDRB5L.js");
|
|
39
|
+
var import_chunk_CFKXSAMV = require("./chunk-CFKXSAMV.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_UUYDRB5L.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_CFKXSAMV.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,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_6PRHDXET_exports = {};
|
|
30
|
+
__export(chunk_6PRHDXET_exports, {
|
|
31
31
|
GetConfigError: () => GetConfigError,
|
|
32
32
|
getConfig: () => getConfig
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_6PRHDXET_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_UUYDRB5L = require("./chunk-UUYDRB5L.js");
|
|
39
|
+
var import_chunk_CFKXSAMV = require("./chunk-CFKXSAMV.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");
|
|
@@ -61,7 +61,7 @@ ${detailsHeader} ${message}`;
|
|
|
61
61
|
}).exhaustive();
|
|
62
62
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
63
63
|
[Context: getConfig]`;
|
|
64
|
-
super((0,
|
|
64
|
+
super((0, import_chunk_UUYDRB5L.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
65
65
|
this.name = "GetConfigError";
|
|
66
66
|
}
|
|
67
67
|
};
|
|
@@ -73,10 +73,10 @@ async function getConfig(options) {
|
|
|
73
73
|
() => {
|
|
74
74
|
if (process.env.FORCE_PANIC_GET_CONFIG) {
|
|
75
75
|
debug("Triggering a Rust panic...");
|
|
76
|
-
|
|
76
|
+
import_chunk_CFKXSAMV.prismaSchemaWasm.debug_panic();
|
|
77
77
|
}
|
|
78
78
|
const params = JSON.stringify({ prismaSchema: options.datamodel });
|
|
79
|
-
return
|
|
79
|
+
return import_chunk_CFKXSAMV.prismaSchemaWasm.get_config(params);
|
|
80
80
|
},
|
|
81
81
|
(e) => ({
|
|
82
82
|
type: "wasm-error",
|
|
@@ -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_CFKXSAMV_exports = {};
|
|
30
|
+
__export(chunk_CFKXSAMV_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_CFKXSAMV_exports);
|
|
37
|
+
var import_chunk_R66IR776 = require("./chunk-R66IR776.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_R66IR776.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_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,
|
|
@@ -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_E2R54WXJ_exports = {};
|
|
30
|
+
__export(chunk_E2R54WXJ_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,9 +40,9 @@ __export(chunk_T4AVPITC_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_E2R54WXJ_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");
|
|
@@ -50,11 +50,11 @@ var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
|
50
50
|
var import_chunk_DXWYZA7B = require("./chunk-DXWYZA7B.js");
|
|
51
51
|
var import_chunk_DRWHCM7T = require("./chunk-DRWHCM7T.js");
|
|
52
52
|
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
53
|
+
var import_chunk_LVGD6KMX = require("./chunk-LVGD6KMX.js");
|
|
54
|
+
var import_chunk_OKRT4UYX = require("./chunk-OKRT4UYX.js");
|
|
55
|
+
var import_chunk_4A2T72IP = require("./chunk-4A2T72IP.js");
|
|
56
|
+
var import_chunk_6PRHDXET = require("./chunk-6PRHDXET.js");
|
|
57
|
+
var import_chunk_CFKXSAMV = require("./chunk-CFKXSAMV.js");
|
|
58
58
|
var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
|
|
59
59
|
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
60
60
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.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"));
|
|
@@ -76,7 +76,7 @@ var debug = (0, import_debug.default)("prisma:format");
|
|
|
76
76
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
77
77
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
78
78
|
handleFormatPanic(() => {
|
|
79
|
-
|
|
79
|
+
import_chunk_CFKXSAMV.prismaSchemaWasm.debug_panic();
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
const defaultFormattingOptions = {
|
|
@@ -93,10 +93,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
|
93
93
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
|
94
94
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
|
95
95
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
96
|
-
const lintDiagnostics2 = (0,
|
|
96
|
+
const lintDiagnostics2 = (0, import_chunk_OKRT4UYX.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
97
97
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
98
98
|
});
|
|
99
|
-
const lintWarnings = (0,
|
|
99
|
+
const lintWarnings = (0, import_chunk_OKRT4UYX.getLintWarningsAsText)(lintDiagnostics);
|
|
100
100
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
|
101
101
|
console.warn(lintWarnings);
|
|
102
102
|
}
|
|
@@ -123,7 +123,7 @@ function handleFormatPanic(tryCb) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function formatWasm(schema, documentFormattingParams) {
|
|
126
|
-
const formattedSchema =
|
|
126
|
+
const formattedSchema = import_chunk_CFKXSAMV.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
127
127
|
return formattedSchema;
|
|
128
128
|
}
|
|
129
129
|
async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
|
|
@@ -152,7 +152,7 @@ async function processSchemaResult({
|
|
|
152
152
|
if (printLoadMessage) {
|
|
153
153
|
(0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
154
154
|
}
|
|
155
|
-
const configFromPsl = await (0,
|
|
155
|
+
const configFromPsl = await (0, import_chunk_6PRHDXET.getConfig)({ datamodel: schemaResult.schemas });
|
|
156
156
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
|
157
157
|
return {
|
|
158
158
|
schemaFiles: schemaResult.schemas,
|
|
@@ -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) {
|
|
@@ -206,7 +206,7 @@ async function getGenerators(options) {
|
|
|
206
206
|
throw new Error(import_chunk_DXWYZA7B.missingDatasource);
|
|
207
207
|
}
|
|
208
208
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
209
|
-
const dmmf = await (0,
|
|
209
|
+
const dmmf = await (0, import_chunk_LVGD6KMX.getDMMF)({ datamodel: schemaContext.schemaFiles });
|
|
210
210
|
if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
|
|
211
211
|
if (schemaContext.primaryDatasource.provider === "mongodb") {
|
|
212
212
|
throw new Error(import_chunk_DRWHCM7T.missingModelMessageMongoDB);
|
|
@@ -254,7 +254,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
254
254
|
fromEnvVar: null
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
const datamodel = (0,
|
|
257
|
+
const datamodel = (0, import_chunk_4A2T72IP.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
258
258
|
const options2 = {
|
|
259
259
|
datamodel,
|
|
260
260
|
datasources: schemaContext.datasources,
|
|
@@ -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
|
|
@@ -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)({
|
|
@@ -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_EI2FC7AB_exports = {};
|
|
20
|
+
__export(chunk_EI2FC7AB_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_EI2FC7AB_exports);
|
|
24
|
+
var import_chunk_R66IR776 = require("./chunk-R66IR776.js");
|
|
25
|
+
var packageJson = (0, import_chunk_R66IR776.require_package)();
|
|
26
26
|
var version = packageJson.version;
|