@prisma/internals 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.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-H3T4L34H.js → chunk-25RJ7YTB.js} +88 -83
- package/dist/{chunk-67KWF6KB.js → chunk-2AWSOG4B.js} +5 -5
- package/dist/{chunk-S4LINK5Y.js → chunk-2XRDQCIA.js} +5 -5
- package/dist/{chunk-KNNIRRTO.js → chunk-33LHUSHN.js} +5 -5
- package/dist/{chunk-HMGEWJDY.js → chunk-3BND5XB4.js} +232 -47
- package/dist/{chunk-2DXAGCPS.js → chunk-3DMEILBC.js} +11 -11
- package/dist/{chunk-5I4BOTBV.js → chunk-5MCWLJSR.js} +3 -9
- package/dist/{chunk-KROMVQBD.js → chunk-74T6W4CU.js} +10 -10
- package/dist/{chunk-IABMG3F4.js → chunk-77IC3DNO.js} +5 -5
- package/dist/chunk-BONFK27U.js +47 -0
- package/dist/{chunk-WMIBAVWZ.js → chunk-C47SCASR.js} +5 -5
- package/dist/{chunk-IAEMHQAC.js → chunk-CXEMRKV4.js} +8 -8
- package/dist/{chunk-J3JE5NVO.js → chunk-CZDIXJEO.js} +56 -32
- package/dist/{chunk-UR3LUZY3.js → chunk-DNQ6ZL6Z.js} +17 -17
- package/dist/{chunk-V2VWODV3.js → chunk-EKBX4J6O.js} +5 -5
- package/dist/{chunk-COFXY6NH.js → chunk-EMTIYECY.js} +14 -41
- package/dist/{chunk-KPVPQQGU.js → chunk-F3MDG3CD.js} +5 -5
- package/dist/{chunk-CKVVVLEH.js → chunk-GH5ML3FF.js} +9 -9
- package/dist/{chunk-VJQK3LHU.js → chunk-H32RDGWV.js} +74 -185
- package/dist/{chunk-WYTN2XGW.js → chunk-JAVGNR6X.js} +5 -5
- package/dist/{chunk-4NFLAUKD.js → chunk-KQOJB3ZW.js} +70 -70
- package/dist/{chunk-44JHENE6.js → chunk-KQRYQKRL.js} +14 -41
- package/dist/{chunk-OHBFHT5Q.js → chunk-LBFL6E3O.js} +15 -15
- package/dist/{chunk-3U2ANLD3.js → chunk-MGZOEY6N.js} +6 -6
- package/dist/{chunk-JBUUTZQL.js → chunk-MH22WJ5K.js} +15 -15
- package/dist/{chunk-J4MA2JIK.js → chunk-N6K7M2HZ.js} +5 -5
- package/dist/chunk-PPCNLYSB.js +47 -0
- package/dist/{chunk-XLYQ6PQW.js → chunk-QTXYAZFX.js} +17 -17
- package/dist/{chunk-DFG3425X.js → chunk-RDX5FNEL.js} +16 -16
- package/dist/{chunk-FTS2IEWX.js → chunk-S57RMXZW.js} +5 -5
- package/dist/{chunk-5R7AZFMV.js → chunk-TDQX3EMO.js} +5 -5
- package/dist/{chunk-5UJZARUY.js → chunk-UEISJS4J.js} +17 -17
- package/dist/{chunk-OSOXVAZB.js → chunk-UPIULDLZ.js} +11 -11
- package/dist/{chunk-LXIE6UJ2.js → chunk-UWNBJSNG.js} +79 -961
- package/dist/{chunk-WCRKL55L.js → chunk-V2ZF7ETH.js} +7 -7
- package/dist/{chunk-YDZVEVUG.js → chunk-VRT7T6MF.js} +73 -73
- package/dist/{chunk-B44XJG7K.js → chunk-XPHFVLP7.js} +5 -5
- package/dist/{chunk-MUJIYA44.js → chunk-YBCHFR5N.js} +5 -5
- package/dist/{chunk-2WJPHJ2I.js → chunk-YU7EBOUS.js} +5 -5
- package/dist/{chunk-VFU3I6P6.js → chunk-ZEUHO2ZU.js} +16 -16
- package/dist/{chunk-ZA3RMW2P.js → chunk-ZKAW5JSN.js} +5 -8
- package/dist/cli/checkUnsupportedDataProxy.js +41 -40
- package/dist/cli/getSchema.js +46 -45
- package/dist/cli/getTypescriptVersion.d.ts +1 -0
- package/dist/cli/getTypescriptVersion.js +25 -0
- package/dist/cli/hashes.js +41 -40
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +40 -39
- package/dist/engine-commands/getConfig.js +13 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +8 -8
- package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
- package/dist/engine-commands/index.js +51 -50
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +10 -10
- package/dist/engine-commands/queryEngineCommons.js +7 -7
- package/dist/engine-commands/relativizePathInPSLError.js +2 -2
- package/dist/engine-commands/validate.js +10 -10
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +40 -39
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +40 -39
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +41 -40
- package/dist/get-generators/getGenerators.js +43 -42
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +90 -88
- package/dist/{multipart-parser-LCETWFPE.js → multipart-parser-32AROPTR.js} +9 -6
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +40 -39
- package/dist/tracing/types.d.ts +26 -16
- package/dist/typescript-AILDXN3I.js +205230 -0
- package/dist/typescript-WN4QH2CP.js +205192 -0
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/getCommandWithExecutor.js +3 -3
- package/dist/utils/getEnvPaths.js +40 -39
- package/dist/utils/getGitHubIssueUrl.js +4 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.js +3 -3
- package/dist/utils/handlePanic.js +40 -39
- package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
- package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
- package/dist/utils/load.js +4 -4
- package/dist/utils/loadEnvFile.js +40 -39
- package/dist/utils/tryLoadEnvs.js +5 -5
- package/dist/wasm.js +4 -4
- package/package.json +13 -13
- package/dist/chunk-4RWCRJYD.js +0 -166
- package/dist/chunk-D4MCOTL5.js +0 -122
- package/dist/chunk-FPHZVRV4.js +0 -110
- package/dist/chunk-G7LL2H2O.js +0 -54
- package/dist/chunk-JMZHUHCC.js +0 -177
- package/dist/chunk-RQPDQSHK.js +0 -1429
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +0 -132
@@ -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_CZDIXJEO_exports = {};
|
30
|
+
__export(chunk_CZDIXJEO_exports, {
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
32
32
|
readPackageUp: () => readPackageUp,
|
33
33
|
require_glob: () => require_glob,
|
@@ -35,7 +35,7 @@ __export(chunk_J3JE5NVO_exports, {
|
|
35
35
|
require_minimatch: () => require_minimatch,
|
36
36
|
require_p_map: () => require_p_map
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_CZDIXJEO_exports);
|
39
39
|
var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
|
40
40
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
41
41
|
var import_chunk_T5RACBRF = require("./chunk-T5RACBRF.js");
|
@@ -46,16 +46,16 @@ var import_chunk_H4J2FN2W = require("./chunk-H4J2FN2W.js");
|
|
46
46
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
47
47
|
var import_fs = __toESM(require("fs"));
|
48
48
|
var import_path = __toESM(require("path"));
|
49
|
-
var
|
50
|
-
var
|
51
|
-
var import_promises = __toESM(require("fs/promises"));
|
52
|
-
var
|
53
|
-
var
|
54
|
-
var
|
55
|
-
var
|
56
|
-
var import_promises2 = __toESM(require("fs/promises"));
|
57
|
-
var
|
58
|
-
var
|
49
|
+
var import_node_path = __toESM(require("node:path"));
|
50
|
+
var import_node_process = __toESM(require("node:process"));
|
51
|
+
var import_promises = __toESM(require("node:fs/promises"));
|
52
|
+
var import_node_url = require("node:url");
|
53
|
+
var import_node_fs = __toESM(require("node:fs"));
|
54
|
+
var import_node_path2 = __toESM(require("node:path"));
|
55
|
+
var import_node_fs2 = __toESM(require("node:fs"));
|
56
|
+
var import_promises2 = __toESM(require("node:fs/promises"));
|
57
|
+
var import_node_path3 = __toESM(require("node:path"));
|
58
|
+
var import_node_url2 = require("node:url");
|
59
59
|
var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
60
60
|
"../../node_modules/.pnpm/npm-normalize-package-bin@2.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports, module2) {
|
61
61
|
"use strict";
|
@@ -804,6 +804,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
804
804
|
continue;
|
805
805
|
}
|
806
806
|
switch (c) {
|
807
|
+
/* istanbul ignore next */
|
807
808
|
case "/": {
|
808
809
|
return false;
|
809
810
|
}
|
@@ -815,6 +816,8 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
815
816
|
clearStateChar();
|
816
817
|
escaping = true;
|
817
818
|
continue;
|
819
|
+
// the various stateChar values
|
820
|
+
// for the "extglob" stuff.
|
818
821
|
case "?":
|
819
822
|
case "*":
|
820
823
|
case "+":
|
@@ -889,6 +892,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
889
892
|
}
|
890
893
|
continue;
|
891
894
|
}
|
895
|
+
// these are mostly the same in regexp and glob
|
892
896
|
case "[":
|
893
897
|
clearStateChar();
|
894
898
|
if (inClass) {
|
@@ -1869,6 +1873,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1869
1873
|
}
|
1870
1874
|
var prefix;
|
1871
1875
|
switch (n) {
|
1876
|
+
// if not, then this is rather simple
|
1872
1877
|
case pattern.length:
|
1873
1878
|
this._processSimple(pattern.join("/"), index);
|
1874
1879
|
return;
|
@@ -2030,6 +2035,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2030
2035
|
GlobSync.prototype._readdirError = function(f, er) {
|
2031
2036
|
switch (er.code) {
|
2032
2037
|
case "ENOTSUP":
|
2038
|
+
// https://github.com/isaacs/node-glob/issues/205
|
2033
2039
|
case "ENOTDIR":
|
2034
2040
|
var abs = this._makeAbs(f);
|
2035
2041
|
this.cache[abs] = "FILE";
|
@@ -2041,6 +2047,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2041
2047
|
}
|
2042
2048
|
break;
|
2043
2049
|
case "ENOENT":
|
2050
|
+
// not terribly unusual
|
2044
2051
|
case "ELOOP":
|
2045
2052
|
case "ENAMETOOLONG":
|
2046
2053
|
case "UNKNOWN":
|
@@ -2484,6 +2491,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2484
2491
|
}
|
2485
2492
|
var prefix;
|
2486
2493
|
switch (n) {
|
2494
|
+
// if not, then this is rather simple
|
2487
2495
|
case pattern.length:
|
2488
2496
|
this._processSimple(pattern.join("/"), index, cb);
|
2489
2497
|
return;
|
@@ -2673,6 +2681,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2673
2681
|
return;
|
2674
2682
|
switch (er.code) {
|
2675
2683
|
case "ENOTSUP":
|
2684
|
+
// https://github.com/isaacs/node-glob/issues/205
|
2676
2685
|
case "ENOTDIR":
|
2677
2686
|
var abs = this._makeAbs(f);
|
2678
2687
|
this.cache[abs] = "FILE";
|
@@ -2685,6 +2694,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2685
2694
|
}
|
2686
2695
|
break;
|
2687
2696
|
case "ENOENT":
|
2697
|
+
// not terribly unusual
|
2688
2698
|
case "ELOOP":
|
2689
2699
|
case "ENAMETOOLONG":
|
2690
2700
|
case "UNKNOWN":
|
@@ -5327,6 +5337,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5327
5337
|
this.inc("patch", identifier, identifierBase);
|
5328
5338
|
this.inc("pre", identifier, identifierBase);
|
5329
5339
|
break;
|
5340
|
+
// If the input is a non-prerelease version, this acts the same as
|
5341
|
+
// prepatch.
|
5330
5342
|
case "prerelease":
|
5331
5343
|
if (this.prerelease.length === 0) {
|
5332
5344
|
this.inc("patch", identifier, identifierBase);
|
@@ -5354,6 +5366,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5354
5366
|
}
|
5355
5367
|
this.prerelease = [];
|
5356
5368
|
break;
|
5369
|
+
// This probably shouldn't be used publicly.
|
5370
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
5357
5371
|
case "pre": {
|
5358
5372
|
const base = Number(identifierBase) ? 1 : 0;
|
5359
5373
|
if (!identifier && identifierBase === false) {
|
@@ -9560,6 +9574,7 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9560
9574
|
continue;
|
9561
9575
|
}
|
9562
9576
|
switch (c) {
|
9577
|
+
/* istanbul ignore next */
|
9563
9578
|
case "/": {
|
9564
9579
|
return false;
|
9565
9580
|
}
|
@@ -9567,6 +9582,8 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9567
9582
|
clearStateChar();
|
9568
9583
|
escaping = true;
|
9569
9584
|
continue;
|
9585
|
+
// the various stateChar values
|
9586
|
+
// for the "extglob" stuff.
|
9570
9587
|
case "?":
|
9571
9588
|
case "*":
|
9572
9589
|
case "+":
|
@@ -9627,6 +9644,7 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9627
9644
|
clearStateChar();
|
9628
9645
|
re += "|";
|
9629
9646
|
continue;
|
9647
|
+
// these are mostly the same in regexp and glob
|
9630
9648
|
case "[":
|
9631
9649
|
clearStateChar();
|
9632
9650
|
if (inClass) {
|
@@ -10168,6 +10186,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10168
10186
|
}
|
10169
10187
|
var prefix;
|
10170
10188
|
switch (n) {
|
10189
|
+
// if not, then this is rather simple
|
10171
10190
|
case pattern.length:
|
10172
10191
|
this._processSimple(pattern.join("/"), index);
|
10173
10192
|
return;
|
@@ -10329,6 +10348,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10329
10348
|
GlobSync.prototype._readdirError = function(f, er) {
|
10330
10349
|
switch (er.code) {
|
10331
10350
|
case "ENOTSUP":
|
10351
|
+
// https://github.com/isaacs/node-glob/issues/205
|
10332
10352
|
case "ENOTDIR":
|
10333
10353
|
var abs = this._makeAbs(f);
|
10334
10354
|
this.cache[abs] = "FILE";
|
@@ -10340,6 +10360,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10340
10360
|
}
|
10341
10361
|
break;
|
10342
10362
|
case "ENOENT":
|
10363
|
+
// not terribly unusual
|
10343
10364
|
case "ELOOP":
|
10344
10365
|
case "ENAMETOOLONG":
|
10345
10366
|
case "UNKNOWN":
|
@@ -10666,6 +10687,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10666
10687
|
}
|
10667
10688
|
var prefix;
|
10668
10689
|
switch (n) {
|
10690
|
+
// if not, then this is rather simple
|
10669
10691
|
case pattern.length:
|
10670
10692
|
this._processSimple(pattern.join("/"), index, cb);
|
10671
10693
|
return;
|
@@ -10855,6 +10877,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10855
10877
|
return;
|
10856
10878
|
switch (er.code) {
|
10857
10879
|
case "ENOTSUP":
|
10880
|
+
// https://github.com/isaacs/node-glob/issues/205
|
10858
10881
|
case "ENOTDIR":
|
10859
10882
|
var abs = this._makeAbs(f);
|
10860
10883
|
this.cache[abs] = "FILE";
|
@@ -10867,6 +10890,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10867
10890
|
}
|
10868
10891
|
break;
|
10869
10892
|
case "ENOENT":
|
10893
|
+
// not terribly unusual
|
10870
10894
|
case "ELOOP":
|
10871
10895
|
case "ENAMETOOLONG":
|
10872
10896
|
case "UNKNOWN":
|
@@ -11588,17 +11612,17 @@ var require_tempy = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
11588
11612
|
}
|
11589
11613
|
});
|
11590
11614
|
var import_npm_packlist = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib5());
|
11591
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
11615
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
11592
11616
|
async function findUp(name, {
|
11593
|
-
cwd =
|
11617
|
+
cwd = import_node_process.default.cwd(),
|
11594
11618
|
type = "file",
|
11595
11619
|
stopAt
|
11596
11620
|
} = {}) {
|
11597
|
-
let directory =
|
11598
|
-
const { root } =
|
11599
|
-
stopAt =
|
11621
|
+
let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
|
11622
|
+
const { root } = import_node_path2.default.parse(directory);
|
11623
|
+
stopAt = import_node_path2.default.resolve(directory, toPath(stopAt ?? root));
|
11600
11624
|
while (directory && directory !== stopAt && directory !== root) {
|
11601
|
-
const filePath =
|
11625
|
+
const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
|
11602
11626
|
try {
|
11603
11627
|
const stats = await import_promises.default.stat(filePath);
|
11604
11628
|
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
|
@@ -11606,27 +11630,27 @@ async function findUp(name, {
|
|
11606
11630
|
}
|
11607
11631
|
} catch {
|
11608
11632
|
}
|
11609
|
-
directory =
|
11633
|
+
directory = import_node_path2.default.dirname(directory);
|
11610
11634
|
}
|
11611
11635
|
}
|
11612
11636
|
function findUpSync(name, {
|
11613
|
-
cwd =
|
11637
|
+
cwd = import_node_process.default.cwd(),
|
11614
11638
|
type = "file",
|
11615
11639
|
stopAt
|
11616
11640
|
} = {}) {
|
11617
|
-
let directory =
|
11618
|
-
const { root } =
|
11619
|
-
stopAt =
|
11641
|
+
let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
|
11642
|
+
const { root } = import_node_path2.default.parse(directory);
|
11643
|
+
stopAt = import_node_path2.default.resolve(directory, toPath(stopAt) ?? root);
|
11620
11644
|
while (directory && directory !== stopAt && directory !== root) {
|
11621
|
-
const filePath =
|
11645
|
+
const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
|
11622
11646
|
try {
|
11623
|
-
const stats =
|
11647
|
+
const stats = import_node_fs.default.statSync(filePath, { throwIfNoEntry: false });
|
11624
11648
|
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
|
11625
11649
|
return filePath;
|
11626
11650
|
}
|
11627
11651
|
} catch {
|
11628
11652
|
}
|
11629
|
-
directory =
|
11653
|
+
directory = import_node_path2.default.dirname(directory);
|
11630
11654
|
}
|
11631
11655
|
}
|
11632
11656
|
var import_code_frame = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib7(), 1);
|
@@ -11728,9 +11752,9 @@ function parseJson(string, reviver, fileName) {
|
|
11728
11752
|
}
|
11729
11753
|
var import_normalize_package_data = (0, import_chunk_WWAWV7DQ.__toESM)(require_normalize(), 1);
|
11730
11754
|
function toPath2(urlOrPath) {
|
11731
|
-
return urlOrPath instanceof URL ? (0,
|
11755
|
+
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
11732
11756
|
}
|
11733
|
-
var getPackagePath = (cwd) =>
|
11757
|
+
var getPackagePath = (cwd) => import_node_path3.default.resolve(toPath2(cwd) ?? ".", "package.json");
|
11734
11758
|
var _readPackage = (file, normalize) => {
|
11735
11759
|
const json = typeof file === "string" ? parseJson(file) : file;
|
11736
11760
|
if (normalize) {
|
@@ -11743,7 +11767,7 @@ async function readPackage({ cwd, normalize = true } = {}) {
|
|
11743
11767
|
return _readPackage(packageFile, normalize);
|
11744
11768
|
}
|
11745
11769
|
function readPackageSync({ cwd, normalize = true } = {}) {
|
11746
|
-
const packageFile =
|
11770
|
+
const packageFile = import_node_fs2.default.readFileSync(getPackagePath(cwd), "utf8");
|
11747
11771
|
return _readPackage(packageFile, normalize);
|
11748
11772
|
}
|
11749
11773
|
async function readPackageUp(options) {
|
@@ -11752,7 +11776,7 @@ async function readPackageUp(options) {
|
|
11752
11776
|
return;
|
11753
11777
|
}
|
11754
11778
|
return {
|
11755
|
-
packageJson: await readPackage({ ...options, cwd:
|
11779
|
+
packageJson: await readPackage({ ...options, cwd: import_node_path.default.dirname(filePath) }),
|
11756
11780
|
path: filePath
|
11757
11781
|
};
|
11758
11782
|
}
|
@@ -11762,7 +11786,7 @@ function readPackageUpSync(options) {
|
|
11762
11786
|
return;
|
11763
11787
|
}
|
11764
11788
|
return {
|
11765
|
-
packageJson: readPackageSync({ ...options, cwd:
|
11789
|
+
packageJson: readPackageSync({ ...options, cwd: import_node_path.default.dirname(filePath) }),
|
11766
11790
|
path: filePath
|
11767
11791
|
};
|
11768
11792
|
}
|
@@ -26,22 +26,22 @@ 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_DNQ6ZL6Z_exports = {};
|
30
|
+
__export(chunk_DNQ6ZL6Z_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_DNQ6ZL6Z_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
|
-
var
|
40
|
-
var
|
41
|
-
var
|
39
|
+
var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
|
40
|
+
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
+
var import_chunk_33LHUSHN = require("./chunk-33LHUSHN.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
|
-
var
|
44
|
-
var
|
43
|
+
var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
|
44
|
+
var import_chunk_YU7EBOUS = require("./chunk-YU7EBOUS.js");
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -53,7 +53,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
|
|
53
53
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
54
54
|
var GetConfigError = class extends Error {
|
55
55
|
constructor(params) {
|
56
|
-
const constructedErrorMessage = (0,
|
56
|
+
const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
57
57
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
58
58
|
return `${reason}
|
59
59
|
${errorCodeMessage}
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
65
65
|
}).exhaustive();
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
67
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
68
|
+
super((0, import_chunk_33LHUSHN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
|
|
83
83
|
return urlFromValue ?? urlEnvVarValue;
|
84
84
|
}
|
85
85
|
async function getConfig(options) {
|
86
|
-
const debugErrorType = (0,
|
86
|
+
const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "getConfigWasm");
|
87
87
|
debug(`Using getConfig Wasm`);
|
88
88
|
const configEither = (0, import_function.pipe)(
|
89
89
|
(0, import_chunk_7MD6344A.tryCatch)(
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_YU7EBOUS.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: options.datamodel,
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
99
|
env: process.env
|
100
100
|
});
|
101
|
-
const data =
|
101
|
+
const data = import_chunk_YU7EBOUS.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -140,7 +140,7 @@ async function getConfig(options) {
|
|
140
140
|
}
|
141
141
|
return Promise.resolve(data);
|
142
142
|
}
|
143
|
-
const error = (0,
|
143
|
+
const error = (0, import_chunk_25RJ7YTB.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
144
|
debugErrorType(e);
|
145
145
|
if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
|
146
146
|
const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
|
@@ -160,12 +160,12 @@ async function getConfig(options) {
|
|
160
160
|
return panic;
|
161
161
|
}
|
162
162
|
const errorOutput = e.error.message;
|
163
|
-
return new GetConfigError((0,
|
163
|
+
return new GetConfigError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
164
164
|
}).with({ type: "validation-error" }, (e) => {
|
165
165
|
return new GetConfigError({
|
166
166
|
_tag: "parsed",
|
167
167
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
168
|
-
reason: (0,
|
168
|
+
reason: (0, import_chunk_CXEMRKV4.createSchemaValidationError)(e.reason),
|
169
169
|
message: formatErrors(e.error)
|
170
170
|
});
|
171
171
|
}).otherwise((e) => {
|
@@ -195,7 +195,7 @@ async function resolveBinaryTargets(generator) {
|
|
195
195
|
}
|
196
196
|
}
|
197
197
|
function formatErrors(errors) {
|
198
|
-
const formattedErrors = errors.map((e) => (0,
|
198
|
+
const formattedErrors = errors.map((e) => (0, import_chunk_C47SCASR.relativizePathInPSLError)(e.message)).join("\n\n");
|
199
199
|
const errorCount = `Validation Error Count: ${errors.length}`;
|
200
200
|
return `${formattedErrors}
|
201
201
|
${errorCount}`;
|
@@ -16,13 +16,13 @@ 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_EKBX4J6O_exports = {};
|
20
|
+
__export(chunk_EKBX4J6O_exports, {
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
25
|
-
var
|
24
|
+
module.exports = __toCommonJS(chunk_EKBX4J6O_exports);
|
25
|
+
var import_chunk_2XRDQCIA = require("./chunk-2XRDQCIA.js");
|
26
26
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
27
27
|
var import_chunk_QJZIYUVB = require("./chunk-QJZIYUVB.js");
|
28
28
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
@@ -39,7 +39,7 @@ async function getEngineVersion(enginePath, binaryName) {
|
|
39
39
|
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
40
40
|
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
41
41
|
(0, import_get_platform.assertNodeAPISupported)();
|
42
|
-
const QE = (0,
|
42
|
+
const QE = (0, import_chunk_2XRDQCIA.loadLibrary)(enginePath, platformInfo);
|
43
43
|
return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
|
44
44
|
} else {
|
45
45
|
const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
|
@@ -26,18 +26,18 @@ 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_EMTIYECY_exports = {};
|
30
|
+
__export(chunk_EMTIYECY_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_EMTIYECY_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
37
|
-
var
|
36
|
+
var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
|
37
|
+
var import_chunk_33LHUSHN = require("./chunk-33LHUSHN.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
|
-
var
|
40
|
-
var
|
39
|
+
var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
|
40
|
+
var import_chunk_YU7EBOUS = require("./chunk-YU7EBOUS.js");
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:getDMMF");
|
49
49
|
var GetDmmfError = class extends Error {
|
50
50
|
constructor(params) {
|
51
|
-
const constructedErrorMessage = (0,
|
51
|
+
const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
53
53
|
return `${reason}
|
54
54
|
${errorCodeMessage}
|
@@ -60,13 +60,12 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_33LHUSHN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
async function getDMMF(options) {
|
68
|
-
|
69
|
-
const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "getDmmfWasm");
|
68
|
+
const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "getDmmfWasm");
|
70
69
|
debug(`Using getDmmf Wasm`);
|
71
70
|
const dmmfPipeline = (0, import_function.pipe)(
|
72
71
|
(0, import_chunk_7MD6344A.tryCatch2)(
|
@@ -91,13 +90,13 @@ async function getDMMF(options) {
|
|
91
90
|
() => {
|
92
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
93
92
|
debug("Triggering a Rust panic...");
|
94
|
-
|
93
|
+
import_chunk_YU7EBOUS.prismaSchemaWasm.debug_panic();
|
95
94
|
}
|
96
95
|
const params = JSON.stringify({
|
97
96
|
prismaSchema: datamodel,
|
98
97
|
noColor: Boolean(process.env.NO_COLOR)
|
99
98
|
});
|
100
|
-
const data =
|
99
|
+
const data = import_chunk_YU7EBOUS.prismaSchemaWasm.get_dmmf(params);
|
101
100
|
return data;
|
102
101
|
},
|
103
102
|
(e) => ({
|
@@ -130,7 +129,7 @@ async function getDMMF(options) {
|
|
130
129
|
const { right: data } = dmmfEither;
|
131
130
|
return Promise.resolve(data);
|
132
131
|
}
|
133
|
-
const error = (0,
|
132
|
+
const error = (0, import_chunk_25RJ7YTB.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
|
134
133
|
debugErrorType(e);
|
135
134
|
return new GetDmmfError({
|
136
135
|
_tag: "unparsed",
|
@@ -158,36 +157,10 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
158
157
|
return panic;
|
159
158
|
}
|
160
159
|
const errorOutput = e.error.message;
|
161
|
-
return new GetDmmfError((0,
|
160
|
+
return new GetDmmfError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
162
161
|
}).with({ type: "parse-json" }, (e) => {
|
163
162
|
debugErrorType(e);
|
164
163
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
165
164
|
}).exhaustive();
|
166
165
|
throw error;
|
167
166
|
}
|
168
|
-
function warnOnDeprecatedFeatureFlag(previewFeatures) {
|
169
|
-
const getMessage = (flag) => `${(0, import_chunk_PG5FDKSF.blue)((0, import_chunk_PG5FDKSF.bold)("info"))} The preview flag "${flag}" is not needed anymore, please remove it from your schema.prisma`;
|
170
|
-
const removedFeatureFlagMap = {
|
171
|
-
insensitiveFilters: getMessage("insensitiveFilters"),
|
172
|
-
atomicNumberOperations: getMessage("atomicNumberOperations"),
|
173
|
-
connectOrCreate: getMessage("connectOrCreate"),
|
174
|
-
transaction: getMessage("transaction"),
|
175
|
-
nApi: getMessage("nApi"),
|
176
|
-
transactionApi: getMessage("transactionApi"),
|
177
|
-
uncheckedScalarInputs: getMessage("uncheckedScalarInputs"),
|
178
|
-
nativeTypes: getMessage("nativeTypes"),
|
179
|
-
createMany: getMessage("createMany"),
|
180
|
-
groupBy: getMessage("groupBy"),
|
181
|
-
referentialActions: getMessage("referentialActions"),
|
182
|
-
microsoftSqlServer: getMessage("microsoftSqlServer"),
|
183
|
-
selectRelationCount: getMessage("selectRelationCount"),
|
184
|
-
orderByRelation: getMessage("orderByRelation"),
|
185
|
-
orderByAggregateGroup: getMessage("orderByAggregateGroup")
|
186
|
-
};
|
187
|
-
previewFeatures?.forEach((f) => {
|
188
|
-
const removedMessage = removedFeatureFlagMap[f];
|
189
|
-
if (removedMessage && !process.env.PRISMA_HIDE_PREVIEW_FLAG_WARNINGS) {
|
190
|
-
console.warn(removedMessage);
|
191
|
-
}
|
192
|
-
});
|
193
|
-
}
|
@@ -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_F3MDG3CD_exports = {};
|
20
|
+
__export(chunk_F3MDG3CD_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_F3MDG3CD_exports);
|
24
|
+
var import_chunk_74T6W4CU = require("./chunk-74T6W4CU.js");
|
25
|
+
var packageJson = (0, import_chunk_74T6W4CU.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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_GH5ML3FF_exports = {};
|
20
|
+
__export(chunk_GH5ML3FF_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_GH5ML3FF_exports);
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
@@ -57,16 +57,16 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
57
57
|
"@babel/helper-validator-identifier": "7.24.7",
|
58
58
|
"@opentelemetry/api": "1.9.0",
|
59
59
|
"@swc/core": "1.2.204",
|
60
|
-
"@swc/jest": "0.2.
|
60
|
+
"@swc/jest": "0.2.37",
|
61
61
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
62
|
-
"@types/jest": "29.5.
|
62
|
+
"@types/jest": "29.5.14",
|
63
63
|
"@types/node": "18.19.31",
|
64
64
|
"@types/resolve": "1.20.6",
|
65
65
|
archiver: "6.0.2",
|
66
66
|
"checkpoint-client": "1.1.33",
|
67
67
|
"cli-truncate": "2.1.0",
|
68
|
-
dotenv: "16.
|
69
|
-
esbuild: "0.
|
68
|
+
dotenv: "16.4.7",
|
69
|
+
esbuild: "0.24.2",
|
70
70
|
"escape-string-regexp": "4.0.0",
|
71
71
|
execa: "5.1.1",
|
72
72
|
"fast-glob": "3.3.2",
|
@@ -100,7 +100,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
100
100
|
"terminal-link": "2.1.1",
|
101
101
|
tmp: "0.2.3",
|
102
102
|
"ts-node": "10.9.2",
|
103
|
-
"ts-pattern": "5.
|
103
|
+
"ts-pattern": "5.6.0",
|
104
104
|
"ts-toolbelt": "9.6.0",
|
105
105
|
typescript: "5.4.5",
|
106
106
|
yarn: "1.22.22"
|
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
111
111
|
"@prisma/fetch-engine": "workspace:*",
|
112
112
|
"@prisma/generator-helper": "workspace:*",
|
113
113
|
"@prisma/get-platform": "workspace:*",
|
114
|
-
"@prisma/prisma-schema-wasm": "6.3.0-
|
114
|
+
"@prisma/prisma-schema-wasm": "6.3.0-13.1635fdddbcd54b9f4b16ffcd9eb726b58d5408da",
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
116
116
|
arg: "5.0.2",
|
117
117
|
prompts: "2.4.2"
|