@prisma/internals 6.3.0-dev.20 → 6.3.0-dev.22
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-KKMREGHN.js → chunk-53LS3WUO.js} +143 -94
- package/dist/{chunk-7KAR3MST.js → chunk-57YWYLPS.js} +15 -15
- package/dist/{chunk-6BD2SL6P.js → chunk-5BYVGJSJ.js} +13 -13
- package/dist/{chunk-S3323RUL.js → chunk-5RV3EMX6.js} +9 -9
- package/dist/{chunk-CXEMRKV4.js → chunk-6TXVGFQA.js} +6 -6
- package/dist/{chunk-QTXYAZFX.js → chunk-AC6EAR56.js} +5 -5
- package/dist/{chunk-UPIGQND7.js → chunk-AL6V4AU3.js} +5 -5
- package/dist/{chunk-CZDIXJEO.js → chunk-B2T5HDW7.js} +257 -11
- package/dist/{chunk-QGXDUBHL.js → chunk-BA3BSSQQ.js} +5 -5
- package/dist/{chunk-FB74JFT6.js → chunk-BDL57OKA.js} +5 -5
- package/dist/{chunk-N6K7M2HZ.js → chunk-DZYINYAA.js} +5 -5
- package/dist/{chunk-MCS2FDNN.js → chunk-G2Y37JA5.js} +14 -14
- package/dist/{chunk-LEYFAVNZ.js → chunk-G5UFMJRB.js} +50 -50
- package/dist/{chunk-2VA75J2J.js → chunk-HN6T64TW.js} +5 -5
- package/dist/{chunk-NQWNTJWW.js → chunk-I3XN27PC.js} +5 -5
- package/dist/{chunk-2XRDQCIA.js → chunk-I7IEEULS.js} +5 -5
- package/dist/{chunk-XO2EITXQ.js → chunk-IEYNBDDO.js} +15 -15
- package/dist/{chunk-LAECCYFY.js → chunk-IWJ2BUYF.js} +5 -5
- package/dist/{chunk-ZCNHO3ZG.js → chunk-KD54AF2P.js} +5 -5
- package/dist/{chunk-5D7NNXVG.js → chunk-MLBZJHKF.js} +50 -50
- package/dist/{chunk-WKXWUB7U.js → chunk-OYLZC5OV.js} +11 -11
- package/dist/{chunk-KEBDP2C3.js → chunk-PIPE5DSU.js} +6 -6
- package/dist/{chunk-WGUMD3IB.js → chunk-PNFQOX7G.js} +14 -14
- package/dist/{chunk-O22TNCJ2.js → chunk-Q6F367JY.js} +14 -14
- package/dist/{chunk-IHMHEVUM.js → chunk-QFIF4LKJ.js} +5 -5
- package/dist/{chunk-UPIULDLZ.js → chunk-SHJNE6T7.js} +8 -8
- package/dist/{chunk-VETKNW6E.js → chunk-SL55KVO5.js} +14 -14
- package/dist/{chunk-A6FIX424.js → chunk-TA4NXPBZ.js} +13 -13
- package/dist/{chunk-S3RZL24I.js → chunk-WE3NR5VH.js} +7 -7
- package/dist/{chunk-25RJ7YTB.js → chunk-XKZ6CBLA.js} +3 -3
- package/dist/{chunk-E3APO3ZG.js → chunk-Y3OWT3K2.js} +5 -5
- package/dist/{chunk-XEQLM63R.js → chunk-YMWI3AFO.js} +6 -6
- package/dist/{chunk-FUUQ6FJ4.js → chunk-YXD4CJDK.js} +25 -17
- package/dist/{chunk-NUVGMN5Z.js → chunk-ZFI4TYBN.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +26 -26
- package/dist/cli/getSchema.js +31 -31
- package/dist/cli/hashes.js +26 -26
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +25 -25
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +6 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +8 -8
- package/dist/engine-commands/index.js +36 -36
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +9 -9
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +25 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +25 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +26 -26
- package/dist/get-generators/getGenerators.js +28 -28
- package/dist/getPackedPackage.js +4 -4
- package/dist/index.js +61 -61
- package/dist/sendPanic.js +25 -25
- package/dist/utils/cloudflareD1.js +4 -4
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.js +25 -25
- 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 +25 -25
- package/dist/utils/load.js +4 -4
- package/dist/utils/loadEnvFile.js +25 -25
- package/dist/wasm.js +4 -4
- package/package.json +10 -10
@@ -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_B2T5HDW7_exports = {};
|
30
|
+
__export(chunk_B2T5HDW7_exports, {
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
32
32
|
readPackageUp: () => readPackageUp,
|
33
33
|
require_glob: () => require_glob,
|
@@ -35,11 +35,11 @@ __export(chunk_CZDIXJEO_exports, {
|
|
35
35
|
require_minimatch: () => require_minimatch,
|
36
36
|
require_p_map: () => require_p_map
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
39
|
-
var
|
38
|
+
module.exports = __toCommonJS(chunk_B2T5HDW7_exports);
|
39
|
+
var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
|
40
40
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
41
41
|
var import_chunk_T5RACBRF = require("./chunk-T5RACBRF.js");
|
42
|
-
var
|
42
|
+
var import_chunk_53LS3WUO = require("./chunk-53LS3WUO.js");
|
43
43
|
var import_chunk_4E7A3GDU = require("./chunk-4E7A3GDU.js");
|
44
44
|
var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
|
45
45
|
var import_chunk_H4J2FN2W = require("./chunk-H4J2FN2W.js");
|
@@ -5461,7 +5461,7 @@ var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5461
5461
|
}
|
5462
5462
|
});
|
5463
5463
|
var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5464
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
5464
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.21/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
5465
5465
|
module2.exports = [
|
5466
5466
|
"0BSD",
|
5467
5467
|
"3D-Slicer-1.0",
|
@@ -5553,6 +5553,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5553
5553
|
"Bitstream-Vera",
|
5554
5554
|
"BlueOak-1.0.0",
|
5555
5555
|
"Boehm-GC",
|
5556
|
+
"Boehm-GC-without-fee",
|
5556
5557
|
"Borceux",
|
5557
5558
|
"Brian-Gladman-2-Clause",
|
5558
5559
|
"Brian-Gladman-3-Clause",
|
@@ -5612,6 +5613,8 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5612
5613
|
"CC-BY-SA-3.0-IGO",
|
5613
5614
|
"CC-BY-SA-4.0",
|
5614
5615
|
"CC-PDDC",
|
5616
|
+
"CC-PDM-1.0",
|
5617
|
+
"CC-SA-1.0",
|
5615
5618
|
"CC0-1.0",
|
5616
5619
|
"CDDL-1.0",
|
5617
5620
|
"CDDL-1.1",
|
@@ -5662,6 +5665,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5662
5665
|
"DRL-1.1",
|
5663
5666
|
"DSDP",
|
5664
5667
|
"DocBook-Schema",
|
5668
|
+
"DocBook-Stylesheet",
|
5665
5669
|
"DocBook-XML",
|
5666
5670
|
"Dotseqn",
|
5667
5671
|
"ECL-1.0",
|
@@ -5769,6 +5773,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5769
5773
|
"Imlib2",
|
5770
5774
|
"Info-ZIP",
|
5771
5775
|
"Inner-Net-2.0",
|
5776
|
+
"InnoSetup",
|
5772
5777
|
"Intel",
|
5773
5778
|
"Intel-ACPI",
|
5774
5779
|
"Interbase-1.0",
|
@@ -5813,9 +5818,11 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5813
5818
|
"Linux-man-pages-copyleft-2-para",
|
5814
5819
|
"Linux-man-pages-copyleft-var",
|
5815
5820
|
"Lucida-Bitmap-Fonts",
|
5821
|
+
"MIPS",
|
5816
5822
|
"MIT",
|
5817
5823
|
"MIT-0",
|
5818
5824
|
"MIT-CMU",
|
5825
|
+
"MIT-Click",
|
5819
5826
|
"MIT-Festival",
|
5820
5827
|
"MIT-Khronos-old",
|
5821
5828
|
"MIT-Modern-Variant",
|
@@ -5966,6 +5973,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5966
5973
|
"SISSL",
|
5967
5974
|
"SISSL-1.2",
|
5968
5975
|
"SL",
|
5976
|
+
"SMAIL-GPL",
|
5969
5977
|
"SMLNJ",
|
5970
5978
|
"SMPPL",
|
5971
5979
|
"SNIA",
|
@@ -5979,6 +5987,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5979
5987
|
"SchemeReport",
|
5980
5988
|
"Sendmail",
|
5981
5989
|
"Sendmail-8.23",
|
5990
|
+
"Sendmail-Open-Source-1.1",
|
5982
5991
|
"SimPL-2.0",
|
5983
5992
|
"Sleepycat",
|
5984
5993
|
"Soundex",
|
@@ -6004,6 +6013,8 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6004
6013
|
"TU-Berlin-1.0",
|
6005
6014
|
"TU-Berlin-2.0",
|
6006
6015
|
"TermReadKey",
|
6016
|
+
"ThirdEye",
|
6017
|
+
"TrustedQSL",
|
6007
6018
|
"UCAR",
|
6008
6019
|
"UCL-1.0",
|
6009
6020
|
"UMich-Merit",
|
@@ -6047,6 +6058,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6047
6058
|
"Zimbra-1.4",
|
6048
6059
|
"Zlib",
|
6049
6060
|
"any-OSI",
|
6061
|
+
"any-OSI-perl-modules",
|
6050
6062
|
"bcrypt-Solar-Designer",
|
6051
6063
|
"blessing",
|
6052
6064
|
"bzip2-1.0.6",
|
@@ -6063,6 +6075,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6063
6075
|
"etalab-2.0",
|
6064
6076
|
"fwlw",
|
6065
6077
|
"gSOAP-1.3b",
|
6078
|
+
"generic-xts",
|
6066
6079
|
"gnuplot",
|
6067
6080
|
"gtkbook",
|
6068
6081
|
"hdparm",
|
@@ -6091,6 +6104,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6091
6104
|
"threeparttable",
|
6092
6105
|
"ulem",
|
6093
6106
|
"w3m",
|
6107
|
+
"wwl",
|
6094
6108
|
"xinetd",
|
6095
6109
|
"xkeyboard-config-Zinoviev",
|
6096
6110
|
"xlock",
|
@@ -8527,6 +8541,238 @@ var require_lib8 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8527
8541
|
module2.exports = GitHost;
|
8528
8542
|
}
|
8529
8543
|
});
|
8544
|
+
var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8545
|
+
"../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module2) {
|
8546
|
+
"use strict";
|
8547
|
+
var call = Function.prototype.call;
|
8548
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
8549
|
+
var bind = (0, import_chunk_YXD4CJDK.require_function_bind)();
|
8550
|
+
module2.exports = bind.call(call, $hasOwn);
|
8551
|
+
}
|
8552
|
+
});
|
8553
|
+
var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8554
|
+
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/core.json"(exports, module2) {
|
8555
|
+
module2.exports = {
|
8556
|
+
assert: true,
|
8557
|
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
8558
|
+
"assert/strict": ">= 15",
|
8559
|
+
"node:assert/strict": ">= 16",
|
8560
|
+
async_hooks: ">= 8",
|
8561
|
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
8562
|
+
buffer_ieee754: ">= 0.5 && < 0.9.7",
|
8563
|
+
buffer: true,
|
8564
|
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
8565
|
+
child_process: true,
|
8566
|
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
8567
|
+
cluster: ">= 0.5",
|
8568
|
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
8569
|
+
console: true,
|
8570
|
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
8571
|
+
constants: true,
|
8572
|
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
8573
|
+
crypto: true,
|
8574
|
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
8575
|
+
_debug_agent: ">= 1 && < 8",
|
8576
|
+
_debugger: "< 8",
|
8577
|
+
dgram: true,
|
8578
|
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
8579
|
+
diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
|
8580
|
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
8581
|
+
dns: true,
|
8582
|
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
8583
|
+
"dns/promises": ">= 15",
|
8584
|
+
"node:dns/promises": ">= 16",
|
8585
|
+
domain: ">= 0.7.12",
|
8586
|
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
8587
|
+
events: true,
|
8588
|
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
8589
|
+
freelist: "< 6",
|
8590
|
+
fs: true,
|
8591
|
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
8592
|
+
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
8593
|
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
8594
|
+
_http_agent: ">= 0.11.1",
|
8595
|
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
8596
|
+
_http_client: ">= 0.11.1",
|
8597
|
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
8598
|
+
_http_common: ">= 0.11.1",
|
8599
|
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
8600
|
+
_http_incoming: ">= 0.11.1",
|
8601
|
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
8602
|
+
_http_outgoing: ">= 0.11.1",
|
8603
|
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
8604
|
+
_http_server: ">= 0.11.1",
|
8605
|
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
8606
|
+
http: true,
|
8607
|
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
8608
|
+
http2: ">= 8.8",
|
8609
|
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
8610
|
+
https: true,
|
8611
|
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
8612
|
+
inspector: ">= 8",
|
8613
|
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
8614
|
+
"inspector/promises": [">= 19"],
|
8615
|
+
"node:inspector/promises": [">= 19"],
|
8616
|
+
_linklist: "< 8",
|
8617
|
+
module: true,
|
8618
|
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
8619
|
+
net: true,
|
8620
|
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
8621
|
+
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
8622
|
+
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
8623
|
+
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
8624
|
+
os: true,
|
8625
|
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
8626
|
+
path: true,
|
8627
|
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
8628
|
+
"path/posix": ">= 15.3",
|
8629
|
+
"node:path/posix": ">= 16",
|
8630
|
+
"path/win32": ">= 15.3",
|
8631
|
+
"node:path/win32": ">= 16",
|
8632
|
+
perf_hooks: ">= 8.5",
|
8633
|
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
8634
|
+
process: ">= 1",
|
8635
|
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
8636
|
+
punycode: ">= 0.5",
|
8637
|
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
8638
|
+
querystring: true,
|
8639
|
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
8640
|
+
readline: true,
|
8641
|
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
8642
|
+
"readline/promises": ">= 17",
|
8643
|
+
"node:readline/promises": ">= 17",
|
8644
|
+
repl: true,
|
8645
|
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
8646
|
+
smalloc: ">= 0.11.5 && < 3",
|
8647
|
+
_stream_duplex: ">= 0.9.4",
|
8648
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
8649
|
+
_stream_transform: ">= 0.9.4",
|
8650
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
8651
|
+
_stream_wrap: ">= 1.4.1",
|
8652
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
8653
|
+
_stream_passthrough: ">= 0.9.4",
|
8654
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
8655
|
+
_stream_readable: ">= 0.9.4",
|
8656
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
8657
|
+
_stream_writable: ">= 0.9.4",
|
8658
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
8659
|
+
stream: true,
|
8660
|
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
8661
|
+
"stream/consumers": ">= 16.7",
|
8662
|
+
"node:stream/consumers": ">= 16.7",
|
8663
|
+
"stream/promises": ">= 15",
|
8664
|
+
"node:stream/promises": ">= 16",
|
8665
|
+
"stream/web": ">= 16.5",
|
8666
|
+
"node:stream/web": ">= 16.5",
|
8667
|
+
string_decoder: true,
|
8668
|
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
8669
|
+
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
8670
|
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
8671
|
+
"test/reporters": ">= 19.9 && < 20.2",
|
8672
|
+
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
8673
|
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
8674
|
+
timers: true,
|
8675
|
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
8676
|
+
"timers/promises": ">= 15",
|
8677
|
+
"node:timers/promises": ">= 16",
|
8678
|
+
_tls_common: ">= 0.11.13",
|
8679
|
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
8680
|
+
_tls_legacy: ">= 0.11.3 && < 10",
|
8681
|
+
_tls_wrap: ">= 0.11.3",
|
8682
|
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
8683
|
+
tls: true,
|
8684
|
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
8685
|
+
trace_events: ">= 10",
|
8686
|
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
8687
|
+
tty: true,
|
8688
|
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
8689
|
+
url: true,
|
8690
|
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
8691
|
+
util: true,
|
8692
|
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
8693
|
+
"util/types": ">= 15.3",
|
8694
|
+
"node:util/types": ">= 16",
|
8695
|
+
"v8/tools/arguments": ">= 10 && < 12",
|
8696
|
+
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8697
|
+
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8698
|
+
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8699
|
+
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8700
|
+
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8701
|
+
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
8702
|
+
v8: ">= 1",
|
8703
|
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
8704
|
+
vm: true,
|
8705
|
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
8706
|
+
wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
8707
|
+
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
8708
|
+
worker_threads: ">= 11.7",
|
8709
|
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
8710
|
+
zlib: ">= 0.5",
|
8711
|
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
8712
|
+
};
|
8713
|
+
}
|
8714
|
+
});
|
8715
|
+
var require_is_core_module = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8716
|
+
"../../node_modules/.pnpm/is-core-module@2.13.1/node_modules/is-core-module/index.js"(exports, module2) {
|
8717
|
+
"use strict";
|
8718
|
+
var hasOwn = require_hasown();
|
8719
|
+
function specifierIncluded(current, specifier) {
|
8720
|
+
var nodeParts = current.split(".");
|
8721
|
+
var parts = specifier.split(" ");
|
8722
|
+
var op = parts.length > 1 ? parts[0] : "=";
|
8723
|
+
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
|
8724
|
+
for (var i = 0; i < 3; ++i) {
|
8725
|
+
var cur = parseInt(nodeParts[i] || 0, 10);
|
8726
|
+
var ver = parseInt(versionParts[i] || 0, 10);
|
8727
|
+
if (cur === ver) {
|
8728
|
+
continue;
|
8729
|
+
}
|
8730
|
+
if (op === "<") {
|
8731
|
+
return cur < ver;
|
8732
|
+
}
|
8733
|
+
if (op === ">=") {
|
8734
|
+
return cur >= ver;
|
8735
|
+
}
|
8736
|
+
return false;
|
8737
|
+
}
|
8738
|
+
return op === ">=";
|
8739
|
+
}
|
8740
|
+
function matchesRange(current, range) {
|
8741
|
+
var specifiers = range.split(/ ?&& ?/);
|
8742
|
+
if (specifiers.length === 0) {
|
8743
|
+
return false;
|
8744
|
+
}
|
8745
|
+
for (var i = 0; i < specifiers.length; ++i) {
|
8746
|
+
if (!specifierIncluded(current, specifiers[i])) {
|
8747
|
+
return false;
|
8748
|
+
}
|
8749
|
+
}
|
8750
|
+
return true;
|
8751
|
+
}
|
8752
|
+
function versionIncluded(nodeVersion, specifierValue) {
|
8753
|
+
if (typeof specifierValue === "boolean") {
|
8754
|
+
return specifierValue;
|
8755
|
+
}
|
8756
|
+
var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion;
|
8757
|
+
if (typeof current !== "string") {
|
8758
|
+
throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
|
8759
|
+
}
|
8760
|
+
if (specifierValue && typeof specifierValue === "object") {
|
8761
|
+
for (var i = 0; i < specifierValue.length; ++i) {
|
8762
|
+
if (matchesRange(current, specifierValue[i])) {
|
8763
|
+
return true;
|
8764
|
+
}
|
8765
|
+
}
|
8766
|
+
return false;
|
8767
|
+
}
|
8768
|
+
return matchesRange(current, specifierValue);
|
8769
|
+
}
|
8770
|
+
var data = require_core();
|
8771
|
+
module2.exports = function isCore(x, nodeVersion) {
|
8772
|
+
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
8773
|
+
};
|
8774
|
+
}
|
8775
|
+
});
|
8530
8776
|
var require_extract_description = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
8531
8777
|
"../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/extract_description.js"(exports, module2) {
|
8532
8778
|
"use strict";
|
@@ -8588,7 +8834,7 @@ var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8588
8834
|
var cleanSemver = require_clean();
|
8589
8835
|
var validateLicense = require_validate_npm_package_license();
|
8590
8836
|
var hostedGitInfo = require_lib8();
|
8591
|
-
var isBuiltinModule =
|
8837
|
+
var isBuiltinModule = require_is_core_module();
|
8592
8838
|
var depTypes = ["dependencies", "devDependencies", "optionalDependencies"];
|
8593
8839
|
var extractDescription = require_extract_description();
|
8594
8840
|
var url = (0, import_chunk_WWAWV7DQ.__require)("url");
|
@@ -11443,9 +11689,9 @@ var require_del = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
11443
11689
|
"use strict";
|
11444
11690
|
var { promisify } = (0, import_chunk_WWAWV7DQ.__require)("util");
|
11445
11691
|
var path5 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
11446
|
-
var globby = (0,
|
11447
|
-
var isGlob = (0,
|
11448
|
-
var slash = (0,
|
11692
|
+
var globby = (0, import_chunk_53LS3WUO.require_globby)();
|
11693
|
+
var isGlob = (0, import_chunk_53LS3WUO.require_is_glob)();
|
11694
|
+
var slash = (0, import_chunk_53LS3WUO.require_slash)();
|
11449
11695
|
var gracefulFs = (0, import_chunk_H4J2FN2W.require_graceful_fs)();
|
11450
11696
|
var isPathCwd = require_is_path_cwd();
|
11451
11697
|
var isPathInside = require_is_path_inside();
|
@@ -11792,7 +12038,7 @@ function readPackageUpSync(options) {
|
|
11792
12038
|
}
|
11793
12039
|
var import_tempy = (0, import_chunk_WWAWV7DQ.__toESM)(require_tempy());
|
11794
12040
|
async function getPackedPackage(name, target, packageDir) {
|
11795
|
-
packageDir = packageDir || await (0,
|
12041
|
+
packageDir = packageDir || await (0, import_chunk_YXD4CJDK.resolvePkg)(name, { basedir: process.cwd() }) || await (0, import_chunk_YXD4CJDK.resolvePkg)(name, { basedir: target });
|
11796
12042
|
if (!packageDir) {
|
11797
12043
|
const pkg = readPackageUpSync({
|
11798
12044
|
cwd: target,
|
@@ -26,14 +26,14 @@ 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_BA3BSSQQ_exports = {};
|
30
|
+
__export(chunk_BA3BSSQQ_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
wasm_exports: () => wasm_exports
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_BA3BSSQQ_exports);
|
36
|
+
var import_chunk_WE3NR5VH = require("./chunk-WE3NR5VH.js");
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
44
44
|
});
|
45
|
-
var { dependencies } = (0,
|
45
|
+
var { dependencies } = (0, import_chunk_WE3NR5VH.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -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_BDL57OKA_exports = {};
|
20
|
+
__export(chunk_BDL57OKA_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_BDL57OKA_exports);
|
24
|
+
var import_chunk_ZFI4TYBN = require("./chunk-ZFI4TYBN.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_ZFI4TYBN.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -16,12 +16,12 @@ 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_DZYINYAA_exports = {};
|
20
|
+
__export(chunk_DZYINYAA_exports, {
|
21
21
|
handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_DZYINYAA_exports);
|
24
|
+
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
25
25
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
26
26
|
var import_get_platform = require("@prisma/get-platform");
|
27
27
|
function handleLibraryLoadingErrors(args) {
|
@@ -32,7 +32,7 @@ function handleLibraryLoadingErrors(args) {
|
|
32
32
|
"https://pris.ly/d/system-requirements"
|
33
33
|
)}`;
|
34
34
|
const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
|
35
|
-
const potentialReasonMessage = (0,
|
35
|
+
const potentialReasonMessage = (0, import_chunk_XKZ6CBLA.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
|
36
36
|
({ message }) => hasLinkingProblem && message.includes("libz"),
|
37
37
|
() => {
|
38
38
|
return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
|
@@ -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_G2Y37JA5_exports = {};
|
30
|
+
__export(chunk_G2Y37JA5_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_G2Y37JA5_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
37
|
-
var
|
36
|
+
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
|
+
var import_chunk_I3XN27PC = require("./chunk-I3XN27PC.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
|
-
var
|
40
|
-
var
|
39
|
+
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
+
var import_chunk_BA3BSSQQ = require("./chunk-BA3BSSQQ.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_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
53
53
|
return `${reason}
|
54
54
|
${errorCodeMessage}
|
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_I3XN27PC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
async function getDMMF(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getDmmfWasm");
|
69
69
|
debug(`Using getDmmf Wasm`);
|
70
70
|
const dmmfPipeline = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch2)(
|
@@ -90,13 +90,13 @@ async function getDMMF(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_BA3BSSQQ.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: datamodel,
|
97
97
|
noColor: Boolean(process.env.NO_COLOR)
|
98
98
|
});
|
99
|
-
const data =
|
99
|
+
const data = import_chunk_BA3BSSQQ.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -129,7 +129,7 @@ async function getDMMF(options) {
|
|
129
129
|
const { right: data } = dmmfEither;
|
130
130
|
return Promise.resolve(data);
|
131
131
|
}
|
132
|
-
const error = (0,
|
132
|
+
const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
|
133
133
|
debugErrorType(e);
|
134
134
|
return new GetDmmfError({
|
135
135
|
_tag: "unparsed",
|
@@ -157,7 +157,7 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
157
157
|
return panic;
|
158
158
|
}
|
159
159
|
const errorOutput = e.error.message;
|
160
|
-
return new GetDmmfError((0,
|
160
|
+
return new GetDmmfError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
161
161
|
}).with({ type: "parse-json" }, (e) => {
|
162
162
|
debugErrorType(e);
|
163
163
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|