@prisma/internals 6.7.0-integration-push-sunrovnkrkpv.1 → 6.7.0-integration-push-qwtnrmswnvqm.1
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-DCWEKWHT.js → chunk-3MJQKD7L.js} +39 -433
- package/dist/{chunk-QE7SAMQR.js → chunk-5JRCBBEK.js} +5 -5
- package/dist/{chunk-XRNBEUVE.js → chunk-5KPSHDLD.js} +5 -5
- package/dist/{chunk-XO424ERB.js → chunk-AQIYK3XZ.js} +8 -8
- package/dist/{chunk-M3NEJQPR.js → chunk-B5AI36PA.js} +5 -5
- package/dist/chunk-CHOXBASF.js +44 -0
- package/dist/{chunk-WBHEU7JO.js → chunk-IYIYRF5G.js} +39 -433
- package/dist/{chunk-JUDZ6KF4.js → chunk-KVML5XRB.js} +8 -8
- package/dist/{chunk-TZ7QN7B5.js → chunk-KYQCMVE5.js} +5 -5
- package/dist/{chunk-LCLULWYP.js → chunk-LKDBQNP5.js} +6 -6
- package/dist/{chunk-Z2XPAJIB.js → chunk-LZ77G45Z.js} +8 -8
- package/dist/{chunk-U3GVUCFC.js → chunk-M5KLM6Z7.js} +5 -5
- package/dist/{chunk-67I7CEQJ.js → chunk-MY5KA4VU.js} +12 -329
- package/dist/{chunk-RMLLA4MJ.js → chunk-NRJUV2EZ.js} +5 -5
- package/dist/{chunk-OVBMOYYX.js → chunk-OKQVSA63.js} +5 -5
- package/dist/{chunk-UZFWYQZJ.js → chunk-P3434KXM.js} +5 -5
- package/dist/chunk-PSFQKG2Q.js +6291 -0
- package/dist/chunk-Q6ZVYPDB.js +41 -0
- package/dist/{chunk-2JBXOLXL.js → chunk-QFGYES3G.js} +8 -8
- package/dist/{chunk-DSO2BAJY.js → chunk-QJ27GEYR.js} +7 -7
- package/dist/chunk-QS3WUGE3.js +341 -0
- package/dist/{chunk-BQX4MJXF.js → chunk-QYHRNIF7.js} +5 -5
- package/dist/{chunk-WT5GDB7K.js → chunk-TA56MERB.js} +7 -7
- package/dist/{chunk-IVF23TIK.js → chunk-V5JOBHG2.js} +8 -8
- package/dist/chunk-WCPUXXL2.js +183 -0
- package/dist/{chunk-7LPMJRUK.js → chunk-WSORIZ6X.js} +8 -8
- package/dist/chunk-ZCBEMBHR.js +242 -0
- package/dist/chunk-ZIFBTC6Y.js +6440 -0
- package/dist/cli/checkUnsupportedDataProxy.js +22 -16
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +22 -16
- package/dist/cli/getSchema.js +8 -112
- package/dist/cli/hashes.js +6 -109
- package/dist/cli/schemaContext.js +22 -16
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +21 -15
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +30 -24
- 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 -18
- package/dist/getPackedPackage.js +6 -4
- package/dist/index.js +51 -45
- 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,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_5KPSHDLD_exports = {};
|
20
|
+
__export(chunk_5KPSHDLD_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_5KPSHDLD_exports);
|
28
|
+
var import_chunk_5JRCBBEK = require("./chunk-5JRCBBEK.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_5JRCBBEK.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
34
34
|
return lintDiagnostics;
|
35
35
|
}
|
@@ -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_AQIYK3XZ_exports = {};
|
30
|
+
__export(chunk_AQIYK3XZ_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_AQIYK3XZ_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_OKQVSA63 = require("./chunk-OKQVSA63.js");
|
42
|
+
var import_chunk_NRJUV2EZ = require("./chunk-NRJUV2EZ.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_OKQVSA63.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_NRJUV2EZ.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_NRJUV2EZ.prismaSchemaWasm.get_config(params);
|
101
101
|
return data;
|
102
102
|
},
|
103
103
|
(e) => ({
|
@@ -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_B5AI36PA_exports = {};
|
20
|
+
__export(chunk_B5AI36PA_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_B5AI36PA_exports);
|
24
|
+
var import_chunk_M5KLM6Z7 = require("./chunk-M5KLM6Z7.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_M5KLM6Z7.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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
|
+
}
|