@prisma/internals 6.7.0-dev.5 → 6.7.0-dev.50
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-XQW2FVAO.js → chunk-24TQOOOM.js} +5 -5
- package/dist/{chunk-5U4BPMZF.js → chunk-4EIOT6HN.js} +7 -7
- package/dist/{chunk-HS734OOG.js → chunk-6Q64JKBC.js} +7 -7
- package/dist/chunk-CHOXBASF.js +44 -0
- package/dist/{chunk-UIB73YAH.js → chunk-ECVXPI3N.js} +5 -5
- package/dist/{chunk-SNXKRZSV.js → chunk-F6P3LEYI.js} +5 -5
- package/dist/{chunk-F2W4RONK.js → chunk-GVPATJCF.js} +39 -433
- package/dist/{chunk-VZEZP4JI.js → chunk-I2G7T3KA.js} +8 -8
- package/dist/{chunk-FQEZNAKC.js → chunk-LBQGIBPI.js} +5 -5
- package/dist/{chunk-67I7CEQJ.js → chunk-MY5KA4VU.js} +12 -329
- package/dist/{chunk-4PUY4NRP.js → chunk-OI7RD2HT.js} +5 -5
- package/dist/{chunk-NNZMM5A4.js → chunk-OOZDWS7Z.js} +8 -8
- package/dist/{chunk-NJFNGS6Q.js → chunk-P2WACOI2.js} +5 -5
- package/dist/{chunk-5S3NHG7I.js → chunk-PL77HP3H.js} +39 -433
- package/dist/chunk-PSFQKG2Q.js +6291 -0
- package/dist/chunk-Q6ZVYPDB.js +41 -0
- package/dist/{chunk-QSAE23KV.js → chunk-QA4OGZAI.js} +10 -6
- package/dist/{chunk-WJB2X22L.js → chunk-QHW73W2T.js} +5 -5
- package/dist/{chunk-WUNDBF6N.js → chunk-QJMVFVKQ.js} +5 -5
- package/dist/chunk-QS3WUGE3.js +341 -0
- package/dist/{chunk-JOOH6KC7.js → chunk-S4COCZPS.js} +8 -8
- package/dist/{chunk-UMGAWQXL.js → chunk-ST4FZEQ3.js} +6 -6
- package/dist/{chunk-LFUMRHS3.js → chunk-T2I2QPPF.js} +8 -8
- package/dist/{chunk-W3GGI6M3.js → chunk-TQMFHIAJ.js} +5 -5
- package/dist/{chunk-SIYAPFHT.js → chunk-VBS4EJLH.js} +8 -8
- package/dist/{chunk-QVVSDACW.js → chunk-WANK3LVF.js} +5 -5
- package/dist/chunk-WCPUXXL2.js +183 -0
- package/dist/chunk-ZCBEMBHR.js +242 -0
- package/dist/chunk-ZIFBTC6Y.js +6440 -0
- package/dist/{chunk-HEDQYTC5.js → chunk-ZOGGCZR2.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +24 -18
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +24 -18
- package/dist/cli/getGeneratorSuccessMessage.js +3 -3
- package/dist/cli/getSchema.js +8 -112
- package/dist/cli/hashes.js +6 -109
- package/dist/cli/schemaContext.js +24 -18
- package/dist/client/getClientEngineType.d.ts +0 -1
- package/dist/client/getClientEngineType.js +3 -4
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +23 -17
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +32 -26
- 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 +26 -20
- package/dist/getPackedPackage.js +6 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -51
- package/dist/resolvePkg.js +3 -2
- package/dist/utils/getEnvPaths.js +5 -106
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/loadEnvFile.js +6 -106
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
- package/dist/chunk-MJIP3FY5.js +0 -12695
@@ -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_24TQOOOM_exports = {};
|
20
|
+
__export(chunk_24TQOOOM_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_24TQOOOM_exports);
|
24
|
+
var import_chunk_TQMFHIAJ = require("./chunk-TQMFHIAJ.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_TQMFHIAJ.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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_4EIOT6HN_exports = {};
|
30
|
+
__export(chunk_4EIOT6HN_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_4EIOT6HN_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_F6P3LEYI = require("./chunk-F6P3LEYI.js");
|
39
|
+
var import_chunk_ECVXPI3N = require("./chunk-ECVXPI3N.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_F6P3LEYI.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_ECVXPI3N.prismaSchemaWasm.merge_schemas(params);
|
76
76
|
},
|
77
77
|
(e) => ({
|
78
78
|
type: "wasm-error",
|
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_6Q64JKBC_exports = {};
|
30
|
+
__export(chunk_6Q64JKBC_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_6Q64JKBC_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_24TQOOOM = require("./chunk-24TQOOOM.js");
|
39
|
+
var import_chunk_QHW73W2T = require("./chunk-QHW73W2T.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_24TQOOOM.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_QHW73W2T.prismaSchemaWasm.merge_schemas(params);
|
76
76
|
},
|
77
77
|
(e) => ({
|
78
78
|
type: "wasm-error",
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __export = (target, all) => {
|
9
|
+
for (var name in all)
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
+
};
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
+
for (let key of __getOwnPropNames(from))
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
+
}
|
18
|
+
return to;
|
19
|
+
};
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
+
mod
|
27
|
+
));
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
+
var chunk_CHOXBASF_exports = {};
|
30
|
+
__export(chunk_CHOXBASF_exports, {
|
31
|
+
getCLIPathHash: () => getCLIPathHash,
|
32
|
+
getProjectHash: () => getProjectHash
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(chunk_CHOXBASF_exports);
|
35
|
+
var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
|
36
|
+
var import_crypto = __toESM(require("crypto"));
|
37
|
+
async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
|
38
|
+
const projectPath = (await (0, import_chunk_ZCBEMBHR.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
|
39
|
+
return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
|
40
|
+
}
|
41
|
+
function getCLIPathHash() {
|
42
|
+
const cliPath = process.argv[1];
|
43
|
+
return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
|
44
|
+
}
|
@@ -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_ECVXPI3N_exports = {};
|
30
|
+
__export(chunk_ECVXPI3N_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_ECVXPI3N_exports);
|
37
|
+
var import_chunk_OI7RD2HT = require("./chunk-OI7RD2HT.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"));
|
@@ -45,6 +45,6 @@ var wasm_exports = {};
|
|
45
45
|
schemaEngineWasmVersion: () => schemaEngineWasmVersion
|
46
46
|
});
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
48
|
-
var { dependencies } = (0,
|
48
|
+
var { dependencies } = (0, import_chunk_OI7RD2HT.require_package)();
|
49
49
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
50
50
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
@@ -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_F6P3LEYI_exports = {};
|
20
|
+
__export(chunk_F6P3LEYI_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_F6P3LEYI_exports);
|
24
|
+
var import_chunk_LBQGIBPI = require("./chunk-LBQGIBPI.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_LBQGIBPI.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|