@prisma/internals 6.16.0-integration-feat-orm-1074-package-dev-export.3 → 6.16.0-integration-feat-orm-1074-package-dev-export.4
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-NQXKLZGJ.js → chunk-23LS6DEM.js} +8 -8
- package/dist/{chunk-BYGNIJDV.js → chunk-4I4TFNM3.js} +5 -5
- package/dist/{chunk-SALRSUZG.js → chunk-5OPGMRBJ.js} +7 -7
- package/dist/{chunk-FXMGS3L5.js → chunk-7IKUTPWQ.js} +5 -6
- package/dist/{chunk-CBXAPH2I.js → chunk-7S425VZ2.js} +5 -5
- package/dist/{chunk-HDFCF353.js → chunk-AL6FMEY4.js} +5 -5
- package/dist/{chunk-TY5BSE32.js → chunk-AVP2XY2Q.js} +5 -5
- package/dist/chunk-BERN76ZI.js +347 -0
- package/dist/{chunk-DWKRDIHJ.js → chunk-CMXCGRZR.js} +7 -8
- package/dist/{chunk-LRJ4X43J.js → chunk-CUD726EK.js} +5 -5
- package/dist/{chunk-NXIYO62X.js → chunk-DBUQIGWD.js} +5 -5
- package/dist/{chunk-2W7ST6EG.js → chunk-DUXQA6AB.js} +8 -8
- package/dist/{chunk-G3E7V3AX.js → chunk-FMGYYV7A.js} +8 -8
- package/dist/{chunk-S4XVZEFO.js → chunk-H6VFM5T3.js} +8 -8
- package/dist/{chunk-YR5KNFKN.js → chunk-HFFWZTVM.js} +5 -6
- package/dist/{chunk-SX2SEPBC.js → chunk-KJCI57XS.js} +8 -8
- package/dist/{chunk-IZ4NMSSP.js → chunk-MNY2POKV.js} +17 -17
- package/dist/{chunk-3XRV3YW3.js → chunk-NSMOO3LW.js} +8 -8
- package/dist/{chunk-O6PXBED7.js → chunk-PQ4NKHHI.js} +5 -5
- package/dist/{chunk-3234BSVB.js → chunk-RLIIIYWS.js} +6 -7
- package/dist/{chunk-YVO3LF2V.js → chunk-UMWJGTPH.js} +5 -5
- package/dist/{chunk-S6Z7TU3K.js → chunk-UQUWZJVN.js} +7 -7
- package/dist/{chunk-BCV5Q55A.js → chunk-VHXS7DCK.js} +7 -7
- package/dist/{chunk-DJW3QOZ2.js → chunk-WGYGUQWZ.js} +5 -5
- package/dist/{chunk-PCIN2G75.js → chunk-XBB5XKLH.js} +17 -17
- package/dist/cli/checkUnsupportedDataProxy.js +17 -18
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +17 -18
- package/dist/cli/schemaContext.js +17 -18
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +16 -17
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +25 -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 +19 -20
- package/dist/index.js +40 -41
- package/dist/sendPanic.js +2 -3
- package/dist/utils/getCommandWithExecutor.js +3 -3
- package/dist/utils/getGitHubIssueUrl.js +3 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +4 -5
- package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
- package/dist/wasm.js +5 -5
- package/package.json +14 -15
- package/dist/chunk-CR3XKUEA.js +0 -296
- package/dist/chunk-ZSINRHD4.js +0 -43
|
@@ -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_23LS6DEM_exports = {};
|
|
30
|
+
__export(chunk_23LS6DEM_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_23LS6DEM_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_UMWJGTPH = require("./chunk-UMWJGTPH.js");
|
|
38
|
+
var import_chunk_AL6FMEY4 = require("./chunk-AL6FMEY4.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_UMWJGTPH.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_AL6FMEY4.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_AL6FMEY4.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(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_4I4TFNM3_exports = {};
|
|
20
|
+
__export(chunk_4I4TFNM3_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_4I4TFNM3_exports);
|
|
24
|
+
var import_chunk_DBUQIGWD = require("./chunk-DBUQIGWD.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_DBUQIGWD.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_5OPGMRBJ_exports = {};
|
|
30
|
+
__export(chunk_5OPGMRBJ_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_5OPGMRBJ_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_4I4TFNM3 = require("./chunk-4I4TFNM3.js");
|
|
39
|
+
var import_chunk_AVP2XY2Q = require("./chunk-AVP2XY2Q.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_4I4TFNM3.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_AVP2XY2Q.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
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_7IKUTPWQ_exports = {};
|
|
30
|
+
__export(chunk_7IKUTPWQ_exports, {
|
|
31
31
|
getGitHubIssueUrl: () => getGitHubIssueUrl,
|
|
32
32
|
wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var import_chunk_ZSINRHD4 = require("./chunk-ZSINRHD4.js");
|
|
34
|
+
module.exports = __toCommonJS(chunk_7IKUTPWQ_exports);
|
|
36
35
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
37
36
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
37
|
+
var import_node_util = require("node:util");
|
|
38
38
|
var import_get_platform = require("@prisma/get-platform");
|
|
39
39
|
var import_node_process = __toESM(require("node:process"));
|
|
40
40
|
var import_node_os = __toESM(require("node:os"));
|
|
@@ -362,7 +362,6 @@ var isWsl = () => {
|
|
|
362
362
|
var is_wsl_default = import_node_process.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
363
363
|
var import_new_github_issue_url = (0, import_chunk_4VNS5WPM.__toESM)(require_new_github_issue_url());
|
|
364
364
|
var import_open = (0, import_chunk_4VNS5WPM.__toESM)(require_open());
|
|
365
|
-
var import_strip_ansi = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ZSINRHD4.require_strip_ansi)());
|
|
366
365
|
function getGitHubIssueUrl({
|
|
367
366
|
title,
|
|
368
367
|
user = "prisma",
|
|
@@ -413,7 +412,7 @@ async function wouldYouLikeToCreateANewIssue(options) {
|
|
|
413
412
|
}
|
|
414
413
|
}
|
|
415
414
|
var issueTemplate = (platform, options) => {
|
|
416
|
-
return (0,
|
|
415
|
+
return (0, import_node_util.stripVTControlCharacters)(`
|
|
417
416
|
Hi Prisma Team! The following command just crashed.
|
|
418
417
|
${options.reportId ? `The report Id is: ${options.reportId}` : ""}
|
|
419
418
|
|
|
@@ -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_7S425VZ2_exports = {};
|
|
20
|
+
__export(chunk_7S425VZ2_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_7S425VZ2_exports);
|
|
24
|
+
var import_chunk_RLIIIYWS = require("./chunk-RLIIIYWS.js");
|
|
25
|
+
var packageJson = (0, import_chunk_RLIIIYWS.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_AL6FMEY4_exports = {};
|
|
30
|
+
__export(chunk_AL6FMEY4_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_AL6FMEY4_exports);
|
|
37
|
+
var import_chunk_RLIIIYWS = require("./chunk-RLIIIYWS.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_RLIIIYWS.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -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_AVP2XY2Q_exports = {};
|
|
30
|
+
__export(chunk_AVP2XY2Q_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_AVP2XY2Q_exports);
|
|
37
|
+
var import_chunk_CMXCGRZR = require("./chunk-CMXCGRZR.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_CMXCGRZR.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -0,0 +1,347 @@
|
|
|
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_BERN76ZI_exports = {};
|
|
30
|
+
__export(chunk_BERN76ZI_exports, {
|
|
31
|
+
isCurrentBinInstalledGlobally: () => isCurrentBinInstalledGlobally
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_BERN76ZI_exports);
|
|
34
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
35
|
+
var import_fs = __toESM(require("fs"));
|
|
36
|
+
var import_node_process = __toESM(require("node:process"));
|
|
37
|
+
var import_node_path = __toESM(require("node:path"));
|
|
38
|
+
var import_node_os = __toESM(require("node:os"));
|
|
39
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
40
|
+
var require_ini = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
41
|
+
"../../node_modules/.pnpm/ini@4.1.1/node_modules/ini/lib/ini.js"(exports, module2) {
|
|
42
|
+
"use strict";
|
|
43
|
+
var { hasOwnProperty } = Object.prototype;
|
|
44
|
+
var encode = (obj, opt = {}) => {
|
|
45
|
+
if (typeof opt === "string") {
|
|
46
|
+
opt = { section: opt };
|
|
47
|
+
}
|
|
48
|
+
opt.align = opt.align === true;
|
|
49
|
+
opt.newline = opt.newline === true;
|
|
50
|
+
opt.sort = opt.sort === true;
|
|
51
|
+
opt.whitespace = opt.whitespace === true || opt.align === true;
|
|
52
|
+
opt.platform = opt.platform || typeof process !== "undefined" && process.platform;
|
|
53
|
+
opt.bracketedArray = opt.bracketedArray !== false;
|
|
54
|
+
const eol = opt.platform === "win32" ? "\r\n" : "\n";
|
|
55
|
+
const separator = opt.whitespace ? " = " : "=";
|
|
56
|
+
const children = [];
|
|
57
|
+
const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
|
|
58
|
+
let padToChars = 0;
|
|
59
|
+
if (opt.align) {
|
|
60
|
+
padToChars = safe(
|
|
61
|
+
keys.filter((k) => obj[k] === null || Array.isArray(obj[k]) || typeof obj[k] !== "object").map((k) => Array.isArray(obj[k]) ? `${k}[]` : k).concat([""]).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)
|
|
62
|
+
).length;
|
|
63
|
+
}
|
|
64
|
+
let out = "";
|
|
65
|
+
const arraySuffix = opt.bracketedArray ? "[]" : "";
|
|
66
|
+
for (const k of keys) {
|
|
67
|
+
const val = obj[k];
|
|
68
|
+
if (val && Array.isArray(val)) {
|
|
69
|
+
for (const item of val) {
|
|
70
|
+
out += safe(`${k}${arraySuffix}`).padEnd(padToChars, " ") + separator + safe(item) + eol;
|
|
71
|
+
}
|
|
72
|
+
} else if (val && typeof val === "object") {
|
|
73
|
+
children.push(k);
|
|
74
|
+
} else {
|
|
75
|
+
out += safe(k).padEnd(padToChars, " ") + separator + safe(val) + eol;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (opt.section && out.length) {
|
|
79
|
+
out = "[" + safe(opt.section) + "]" + (opt.newline ? eol + eol : eol) + out;
|
|
80
|
+
}
|
|
81
|
+
for (const k of children) {
|
|
82
|
+
const nk = splitSections(k, ".").join("\\.");
|
|
83
|
+
const section = (opt.section ? opt.section + "." : "") + nk;
|
|
84
|
+
const child = encode(obj[k], {
|
|
85
|
+
...opt,
|
|
86
|
+
section
|
|
87
|
+
});
|
|
88
|
+
if (out.length && child.length) {
|
|
89
|
+
out += eol;
|
|
90
|
+
}
|
|
91
|
+
out += child;
|
|
92
|
+
}
|
|
93
|
+
return out;
|
|
94
|
+
};
|
|
95
|
+
function splitSections(str, separator) {
|
|
96
|
+
var lastMatchIndex = 0;
|
|
97
|
+
var lastSeparatorIndex = 0;
|
|
98
|
+
var nextIndex = 0;
|
|
99
|
+
var sections = [];
|
|
100
|
+
do {
|
|
101
|
+
nextIndex = str.indexOf(separator, lastMatchIndex);
|
|
102
|
+
if (nextIndex !== -1) {
|
|
103
|
+
lastMatchIndex = nextIndex + separator.length;
|
|
104
|
+
if (nextIndex > 0 && str[nextIndex - 1] === "\\") {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
sections.push(str.slice(lastSeparatorIndex, nextIndex));
|
|
108
|
+
lastSeparatorIndex = nextIndex + separator.length;
|
|
109
|
+
}
|
|
110
|
+
} while (nextIndex !== -1);
|
|
111
|
+
sections.push(str.slice(lastSeparatorIndex));
|
|
112
|
+
return sections;
|
|
113
|
+
}
|
|
114
|
+
var decode = (str, opt = {}) => {
|
|
115
|
+
opt.bracketedArray = opt.bracketedArray !== false;
|
|
116
|
+
const out = /* @__PURE__ */ Object.create(null);
|
|
117
|
+
let p = out;
|
|
118
|
+
let section = null;
|
|
119
|
+
const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
|
|
120
|
+
const lines = str.split(/[\r\n]+/g);
|
|
121
|
+
const duplicates = {};
|
|
122
|
+
for (const line of lines) {
|
|
123
|
+
if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
const match = line.match(re);
|
|
127
|
+
if (!match) {
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if (match[1] !== void 0) {
|
|
131
|
+
section = unsafe(match[1]);
|
|
132
|
+
if (section === "__proto__") {
|
|
133
|
+
p = /* @__PURE__ */ Object.create(null);
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
p = out[section] = out[section] || /* @__PURE__ */ Object.create(null);
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
const keyRaw = unsafe(match[2]);
|
|
140
|
+
let isArray;
|
|
141
|
+
if (opt.bracketedArray) {
|
|
142
|
+
isArray = keyRaw.length > 2 && keyRaw.slice(-2) === "[]";
|
|
143
|
+
} else {
|
|
144
|
+
duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
|
|
145
|
+
isArray = duplicates[keyRaw] > 1;
|
|
146
|
+
}
|
|
147
|
+
const key = isArray ? keyRaw.slice(0, -2) : keyRaw;
|
|
148
|
+
if (key === "__proto__") {
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
const valueRaw = match[3] ? unsafe(match[4]) : true;
|
|
152
|
+
const value = valueRaw === "true" || valueRaw === "false" || valueRaw === "null" ? JSON.parse(valueRaw) : valueRaw;
|
|
153
|
+
if (isArray) {
|
|
154
|
+
if (!hasOwnProperty.call(p, key)) {
|
|
155
|
+
p[key] = [];
|
|
156
|
+
} else if (!Array.isArray(p[key])) {
|
|
157
|
+
p[key] = [p[key]];
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (Array.isArray(p[key])) {
|
|
161
|
+
p[key].push(value);
|
|
162
|
+
} else {
|
|
163
|
+
p[key] = value;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const remove = [];
|
|
167
|
+
for (const k of Object.keys(out)) {
|
|
168
|
+
if (!hasOwnProperty.call(out, k) || typeof out[k] !== "object" || Array.isArray(out[k])) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const parts = splitSections(k, ".");
|
|
172
|
+
p = out;
|
|
173
|
+
const l = parts.pop();
|
|
174
|
+
const nl = l.replace(/\\\./g, ".");
|
|
175
|
+
for (const part of parts) {
|
|
176
|
+
if (part === "__proto__") {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if (!hasOwnProperty.call(p, part) || typeof p[part] !== "object") {
|
|
180
|
+
p[part] = /* @__PURE__ */ Object.create(null);
|
|
181
|
+
}
|
|
182
|
+
p = p[part];
|
|
183
|
+
}
|
|
184
|
+
if (p === out && nl === l) {
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
p[nl] = out[k];
|
|
188
|
+
remove.push(k);
|
|
189
|
+
}
|
|
190
|
+
for (const del of remove) {
|
|
191
|
+
delete out[del];
|
|
192
|
+
}
|
|
193
|
+
return out;
|
|
194
|
+
};
|
|
195
|
+
var isQuoted = (val) => {
|
|
196
|
+
return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
|
|
197
|
+
};
|
|
198
|
+
var safe = (val) => {
|
|
199
|
+
if (typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
|
|
200
|
+
return JSON.stringify(val);
|
|
201
|
+
}
|
|
202
|
+
return val.split(";").join("\\;").split("#").join("\\#");
|
|
203
|
+
};
|
|
204
|
+
var unsafe = (val, doUnesc) => {
|
|
205
|
+
val = (val || "").trim();
|
|
206
|
+
if (isQuoted(val)) {
|
|
207
|
+
if (val.charAt(0) === "'") {
|
|
208
|
+
val = val.slice(1, -1);
|
|
209
|
+
}
|
|
210
|
+
try {
|
|
211
|
+
val = JSON.parse(val);
|
|
212
|
+
} catch {
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
let esc = false;
|
|
216
|
+
let unesc = "";
|
|
217
|
+
for (let i = 0, l = val.length; i < l; i++) {
|
|
218
|
+
const c = val.charAt(i);
|
|
219
|
+
if (esc) {
|
|
220
|
+
if ("\\;#".indexOf(c) !== -1) {
|
|
221
|
+
unesc += c;
|
|
222
|
+
} else {
|
|
223
|
+
unesc += "\\" + c;
|
|
224
|
+
}
|
|
225
|
+
esc = false;
|
|
226
|
+
} else if (";#".indexOf(c) !== -1) {
|
|
227
|
+
break;
|
|
228
|
+
} else if (c === "\\") {
|
|
229
|
+
esc = true;
|
|
230
|
+
} else {
|
|
231
|
+
unesc += c;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (esc) {
|
|
235
|
+
unesc += "\\";
|
|
236
|
+
}
|
|
237
|
+
return unesc.trim();
|
|
238
|
+
}
|
|
239
|
+
return val;
|
|
240
|
+
};
|
|
241
|
+
module2.exports = {
|
|
242
|
+
parse: decode,
|
|
243
|
+
decode,
|
|
244
|
+
stringify: encode,
|
|
245
|
+
encode,
|
|
246
|
+
safe,
|
|
247
|
+
unsafe
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
var import_ini = (0, import_chunk_4VNS5WPM.__toESM)(require_ini(), 1);
|
|
252
|
+
var isWindows = import_node_process.default.platform === "win32";
|
|
253
|
+
var readRc = (filePath) => {
|
|
254
|
+
try {
|
|
255
|
+
return import_ini.default.parse(import_node_fs.default.readFileSync(filePath, "utf8")).prefix;
|
|
256
|
+
} catch {
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
var getEnvNpmPrefix = () => Object.keys(import_node_process.default.env).reduce((prefix, name) => /^npm_config_prefix$/i.test(name) ? import_node_process.default.env[name] : prefix, void 0);
|
|
260
|
+
var getGlobalNpmrc = () => {
|
|
261
|
+
if (isWindows && import_node_process.default.env.APPDATA) {
|
|
262
|
+
return import_node_path.default.join(import_node_process.default.env.APPDATA, "/npm/etc/npmrc");
|
|
263
|
+
}
|
|
264
|
+
if (import_node_process.default.execPath.includes("/Cellar/node")) {
|
|
265
|
+
const homebrewPrefix = import_node_process.default.execPath.slice(0, import_node_process.default.execPath.indexOf("/Cellar/node"));
|
|
266
|
+
return import_node_path.default.join(homebrewPrefix, "/lib/node_modules/npm/npmrc");
|
|
267
|
+
}
|
|
268
|
+
if (import_node_process.default.execPath.endsWith("/bin/node")) {
|
|
269
|
+
const installDir = import_node_path.default.dirname(import_node_path.default.dirname(import_node_process.default.execPath));
|
|
270
|
+
return import_node_path.default.join(installDir, "/etc/npmrc");
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
var getDefaultNpmPrefix = () => {
|
|
274
|
+
if (isWindows) {
|
|
275
|
+
const { APPDATA } = import_node_process.default.env;
|
|
276
|
+
return APPDATA ? import_node_path.default.join(APPDATA, "npm") : import_node_path.default.dirname(import_node_process.default.execPath);
|
|
277
|
+
}
|
|
278
|
+
return import_node_path.default.dirname(import_node_path.default.dirname(import_node_process.default.execPath));
|
|
279
|
+
};
|
|
280
|
+
var getNpmPrefix = () => {
|
|
281
|
+
const envPrefix = getEnvNpmPrefix();
|
|
282
|
+
if (envPrefix) {
|
|
283
|
+
return envPrefix;
|
|
284
|
+
}
|
|
285
|
+
const homePrefix = readRc(import_node_path.default.join(import_node_os.default.homedir(), ".npmrc"));
|
|
286
|
+
if (homePrefix) {
|
|
287
|
+
return homePrefix;
|
|
288
|
+
}
|
|
289
|
+
if (import_node_process.default.env.PREFIX) {
|
|
290
|
+
return import_node_process.default.env.PREFIX;
|
|
291
|
+
}
|
|
292
|
+
const globalPrefix = readRc(getGlobalNpmrc());
|
|
293
|
+
if (globalPrefix) {
|
|
294
|
+
return globalPrefix;
|
|
295
|
+
}
|
|
296
|
+
return getDefaultNpmPrefix();
|
|
297
|
+
};
|
|
298
|
+
var npmPrefix = import_node_path.default.resolve(getNpmPrefix());
|
|
299
|
+
var getYarnWindowsDirectory = () => {
|
|
300
|
+
if (isWindows && import_node_process.default.env.LOCALAPPDATA) {
|
|
301
|
+
const dir = import_node_path.default.join(import_node_process.default.env.LOCALAPPDATA, "Yarn");
|
|
302
|
+
if (import_node_fs.default.existsSync(dir)) {
|
|
303
|
+
return dir;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return false;
|
|
307
|
+
};
|
|
308
|
+
var getYarnPrefix = () => {
|
|
309
|
+
if (import_node_process.default.env.PREFIX) {
|
|
310
|
+
return import_node_process.default.env.PREFIX;
|
|
311
|
+
}
|
|
312
|
+
const windowsPrefix = getYarnWindowsDirectory();
|
|
313
|
+
if (windowsPrefix) {
|
|
314
|
+
return windowsPrefix;
|
|
315
|
+
}
|
|
316
|
+
const configPrefix = import_node_path.default.join(import_node_os.default.homedir(), ".config/yarn");
|
|
317
|
+
if (import_node_fs.default.existsSync(configPrefix)) {
|
|
318
|
+
return configPrefix;
|
|
319
|
+
}
|
|
320
|
+
const homePrefix = import_node_path.default.join(import_node_os.default.homedir(), ".yarn-config");
|
|
321
|
+
if (import_node_fs.default.existsSync(homePrefix)) {
|
|
322
|
+
return homePrefix;
|
|
323
|
+
}
|
|
324
|
+
return npmPrefix;
|
|
325
|
+
};
|
|
326
|
+
var globalDirectory = {};
|
|
327
|
+
globalDirectory.npm = {};
|
|
328
|
+
globalDirectory.npm.prefix = npmPrefix;
|
|
329
|
+
globalDirectory.npm.packages = import_node_path.default.join(npmPrefix, isWindows ? "node_modules" : "lib/node_modules");
|
|
330
|
+
globalDirectory.npm.binaries = isWindows ? npmPrefix : import_node_path.default.join(npmPrefix, "bin");
|
|
331
|
+
var yarnPrefix = import_node_path.default.resolve(getYarnPrefix());
|
|
332
|
+
globalDirectory.yarn = {};
|
|
333
|
+
globalDirectory.yarn.prefix = yarnPrefix;
|
|
334
|
+
globalDirectory.yarn.packages = import_node_path.default.join(yarnPrefix, getYarnWindowsDirectory() ? "Data/global/node_modules" : "global/node_modules");
|
|
335
|
+
globalDirectory.yarn.binaries = import_node_path.default.join(globalDirectory.yarn.packages, ".bin");
|
|
336
|
+
var global_directory_default = globalDirectory;
|
|
337
|
+
function isCurrentBinInstalledGlobally() {
|
|
338
|
+
try {
|
|
339
|
+
const realPrismaPath = import_fs.default.realpathSync(process.argv[1]);
|
|
340
|
+
const usingGlobalNpm = realPrismaPath.indexOf(import_fs.default.realpathSync(global_directory_default.npm.packages)) === 0;
|
|
341
|
+
if (usingGlobalNpm) {
|
|
342
|
+
return "npm";
|
|
343
|
+
}
|
|
344
|
+
} catch (e) {
|
|
345
|
+
}
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
@@ -16,17 +16,17 @@ 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_CMXCGRZR_exports = {};
|
|
20
|
+
__export(chunk_CMXCGRZR_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_CMXCGRZR_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) {
|
|
27
27
|
module2.exports = {
|
|
28
28
|
name: "@prisma/internals",
|
|
29
|
-
version: "6.16.0-integration-feat-orm-1074-package-dev-export.
|
|
29
|
+
version: "6.16.0-integration-feat-orm-1074-package-dev-export.4",
|
|
30
30
|
description: "This package is intended for Prisma's internal use",
|
|
31
31
|
main: "dist/index.js",
|
|
32
32
|
types: "dist/index.d.ts",
|
|
@@ -74,7 +74,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
74
74
|
"fp-ts": "2.16.9",
|
|
75
75
|
"fs-extra": "11.3.0",
|
|
76
76
|
"fs-jetpack": "5.1.0",
|
|
77
|
-
"global-
|
|
77
|
+
"global-directory": "4.0.0",
|
|
78
78
|
globby: "11.1.0",
|
|
79
79
|
"identifier-regex": "1.0.0",
|
|
80
80
|
"indent-string": "4.0.0",
|
|
@@ -91,7 +91,6 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
91
91
|
"p-map": "4.0.0",
|
|
92
92
|
resolve: "1.22.10",
|
|
93
93
|
"string-width": "7.2.0",
|
|
94
|
-
"strip-ansi": "6.0.1",
|
|
95
94
|
"strip-indent": "4.0.0",
|
|
96
95
|
"temp-dir": "2.0.0",
|
|
97
96
|
tempy: "1.0.1",
|
|
@@ -113,8 +112,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
113
112
|
"@prisma/generator": "workspace:*",
|
|
114
113
|
"@prisma/generator-helper": "workspace:*",
|
|
115
114
|
"@prisma/get-platform": "workspace:*",
|
|
116
|
-
"@prisma/prisma-schema-wasm": "6.16.0-
|
|
117
|
-
"@prisma/schema-engine-wasm": "6.16.0-
|
|
115
|
+
"@prisma/prisma-schema-wasm": "6.16.0-4.1442662e349b2fbbf95bea2c38622209c38b7362",
|
|
116
|
+
"@prisma/schema-engine-wasm": "6.16.0-4.1442662e349b2fbbf95bea2c38622209c38b7362",
|
|
118
117
|
"@prisma/schema-files-loader": "workspace:*",
|
|
119
118
|
arg: "5.0.2",
|
|
120
119
|
prompts: "2.4.2"
|
|
@@ -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_CUD726EK_exports = {};
|
|
20
|
+
__export(chunk_CUD726EK_exports, {
|
|
21
21
|
getCommandWithExecutor: () => getCommandWithExecutor
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_CUD726EK_exports);
|
|
24
|
+
var import_chunk_BERN76ZI = require("./chunk-BERN76ZI.js");
|
|
25
25
|
function getCommandWithExecutor(command) {
|
|
26
|
-
if ((0,
|
|
26
|
+
if ((0, import_chunk_BERN76ZI.isCurrentBinInstalledGlobally)()) {
|
|
27
27
|
return command;
|
|
28
28
|
} else {
|
|
29
29
|
const npxUsed = __dirname.includes("_npx");
|
|
@@ -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_DBUQIGWD_exports = {};
|
|
20
|
+
__export(chunk_DBUQIGWD_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_DBUQIGWD_exports);
|
|
24
|
+
var import_chunk_CMXCGRZR = require("./chunk-CMXCGRZR.js");
|
|
25
|
+
var packageJson = (0, import_chunk_CMXCGRZR.require_package)();
|
|
26
26
|
var version = packageJson.version;
|