@prisma/internals 6.6.0-dev.7 → 6.6.0-dev.71
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/Generator.d.ts +23 -5
- package/dist/Generator.js +5 -3
- package/dist/WasmPanicRegistry.js +3 -3
- package/dist/{chunk-PIPE5DSU.js → chunk-2H6XXXKO.js} +18 -21
- package/dist/chunk-2QTAK7KO.js +101 -0
- package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
- package/dist/{chunk-ICXPZGKG.js → chunk-47RBLZOV.js} +46 -79
- package/dist/{chunk-WWAWV7DQ.js → chunk-4VNS5WPM.js} +3 -33
- package/dist/{chunk-KQOJB3ZW.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
- package/dist/{chunk-ITMPPY57.js → chunk-5I7DM2MW.js} +30 -34
- package/dist/chunk-5KYF3HHS.js +900 -0
- package/dist/{chunk-ZHANTJDT.js → chunk-5OYGEDND.js} +22 -26
- package/dist/{chunk-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
- package/dist/{chunk-IE7EKT3K.js → chunk-5YPWXCPM.js} +46 -79
- package/dist/{chunk-YXD4CJDK.js → chunk-67I7CEQJ.js} +30 -31
- package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
- package/dist/{chunk-VPICIMIC.js → chunk-7FSQCMAL.js} +9 -9
- package/dist/{chunk-NSZ7JLAL.js → chunk-A53WHYCF.js} +12 -11
- package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
- package/dist/{chunk-YEF2M3FP.js → chunk-B2WS6DGE.js} +5 -5
- package/dist/{chunk-AXTVKRXP.js → chunk-B53WYCZ5.js} +5 -5
- package/dist/{chunk-ZYW3HGSH.js → chunk-BPDMLM32.js} +49 -17
- package/dist/{chunk-5MCWLJSR.js → chunk-CR3XKUEA.js} +10 -10
- package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
- package/dist/{chunk-SHJNE6T7.js → chunk-D4VDA2TZ.js} +7 -7
- package/dist/{chunk-Q22BLLK3.js → chunk-D4VZUY3O.js} +6 -6
- package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
- package/dist/{chunk-EUTJYQDW.js → chunk-DODIJPCS.js} +13 -25
- package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
- package/dist/{chunk-UCHV3Z5R.js → chunk-EGWWYNXT.js} +11 -10
- package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
- package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
- package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
- package/dist/{chunk-L6GBFCXG.js → chunk-HAGJ64PM.js} +142 -155
- package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
- package/dist/{chunk-JQPAMLKP.js → chunk-HRN4MBZU.js} +11 -15
- package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
- package/dist/{chunk-NNL52KLF.js → chunk-J3NJAD52.js} +23 -27
- package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
- package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
- package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
- package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
- package/dist/{chunk-WN6T47EZ.js → chunk-KKINDVXS.js} +5 -5
- package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
- package/dist/{chunk-ZKAW5JSN.js → chunk-LRJ4X43J.js} +5 -5
- package/dist/{chunk-ONHKZPSV.js → chunk-LRU47BGE.js} +6 -6
- package/dist/{chunk-PTI7XYY6.js → chunk-MIBXRKXS.js} +11 -15
- package/dist/{chunk-C2WD2XUT.js → chunk-MJIP3FY5.js} +968 -1220
- package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
- package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
- package/dist/chunk-O7NOSQHE.js +900 -0
- package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
- package/dist/{chunk-6UAZG22P.js → chunk-P2VNH6S6.js} +23 -27
- package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
- package/dist/{chunk-63J6Y3F6.js → chunk-Q3J5KVR5.js} +22 -26
- package/dist/{chunk-MVFJNP56.js → chunk-QC7SET5X.js} +5 -5
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
- package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
- package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
- package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
- package/dist/{chunk-5NV5K6XV.js → chunk-W4KRL5NV.js} +30 -34
- package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
- package/dist/chunk-YR5KNFKN.js +1834 -0
- package/dist/{chunk-AZNLB67U.js → chunk-ZJWZK45Z.js} +5 -5
- package/dist/{chunk-BWBRC7XS.js → chunk-ZPPWJKWX.js} +9 -9
- package/dist/chunk-ZSINRHD4.js +43 -0
- package/dist/cli/Help.js +1 -1
- package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
- package/dist/cli/checkUnsupportedDataProxy.js +75 -78
- package/dist/cli/directoryConfig.d.ts +7 -0
- package/dist/cli/directoryConfig.js +25 -0
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.d.ts +3 -28
- package/dist/cli/getSchema.js +78 -82
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +75 -78
- package/dist/cli/schemaContext.d.ts +59 -0
- package/dist/cli/schemaContext.js +133 -0
- package/dist/cli/utils.js +5 -5
- package/dist/client/getClientEngineType.d.ts +1 -1
- package/dist/client/getClientEngineType.js +1 -1
- package/dist/convertCredentials.d.ts +1 -1
- package/dist/convertCredentials.js +1 -1
- package/dist/dotenvExpand.js +1 -1
- package/dist/engine-commands/errorHelpers.js +5 -5
- package/dist/engine-commands/formatSchema.js +74 -77
- package/dist/engine-commands/getConfig.d.ts +1 -5
- package/dist/engine-commands/getConfig.js +16 -17
- package/dist/engine-commands/getDmmf.d.ts +3 -6
- package/dist/engine-commands/getDmmf.js +13 -14
- package/dist/engine-commands/getEngineVersion.js +12 -12
- package/dist/engine-commands/getEnginesMetaInfo.js +15 -15
- package/dist/engine-commands/index.js +85 -88
- package/dist/engine-commands/lintSchema.d.ts +1 -1
- package/dist/engine-commands/lintSchema.js +11 -12
- package/dist/engine-commands/mergeSchemas.js +13 -14
- package/dist/engine-commands/queryEngineCommons.js +8 -8
- package/dist/engine-commands/relativizePathInPSLError.js +1 -1
- package/dist/engine-commands/validate.js +13 -14
- package/dist/errorReporting.d.ts +0 -1
- package/dist/errorReporting.js +7 -7
- package/dist/get-generators/getGenerators.d.ts +22 -9
- package/dist/get-generators/getGenerators.js +77 -80
- package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
- package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.d.ts +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
- package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.d.ts +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
- package/dist/getPackedPackage.js +9 -9
- package/dist/highlight/highlight.js +1 -1
- package/dist/highlight/languages/dml.js +1 -1
- package/dist/highlight/languages/sql.js +1 -1
- package/dist/highlight/prism.js +1 -1
- package/dist/highlight/theme.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +141 -145
- package/dist/logger.js +9 -9
- package/dist/migrateTypes.d.ts +63 -0
- package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3AFJFP6K.js} +7 -7
- package/dist/panic.d.ts +1 -4
- package/dist/panic.js +7 -7
- package/dist/resolveBinary.js +10 -10
- package/dist/resolveOutput.js +1 -1
- package/dist/resolvePkg.d.ts +7 -0
- package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
- package/dist/schemaEngineCommands.js +13 -13
- package/dist/sendPanic.js +7 -111
- package/dist/types.d.ts +1 -1
- package/dist/utils/__tests__/isCi.test.js +1 -1
- package/dist/utils/__tests__/isInteractive.test.js +1 -1
- package/dist/utils/__tests__/maskSchema.test.js +1 -1
- package/dist/utils/assertAlways.js +1 -1
- package/dist/utils/assertNever.js +1 -1
- package/dist/utils/binaryTargetRegex.js +3 -3
- package/dist/utils/byline.js +1 -1
- package/dist/utils/callOnce.js +1 -1
- package/dist/utils/callOnce.test.js +1 -1
- package/dist/utils/canPrompt.js +4 -4
- package/dist/utils/chmodPlusX.js +1 -1
- package/dist/utils/cloudflareD1.js +4 -4
- package/dist/utils/drawBox.js +1 -1
- package/dist/utils/extractPreviewFeatures.d.ts +2 -2
- package/dist/utils/extractPreviewFeatures.js +3 -3
- package/dist/utils/formatTable.js +1 -1
- package/dist/utils/formatms.js +1 -1
- package/dist/utils/fs-functional.js +12 -12
- package/dist/utils/fs-utils.js +9 -9
- package/dist/utils/getCommandWithExecutor.js +4 -4
- package/dist/utils/getEnvPaths.d.ts +1 -1
- package/dist/utils/getEnvPaths.js +74 -77
- package/dist/utils/getGitHubIssueUrl.js +5 -4
- package/dist/utils/getMigrateConfigDir.js +1 -1
- package/dist/utils/getVersionFromPackageJson.js +4 -4
- package/dist/utils/handleEngineLoadingErrors.js +1 -1
- package/dist/utils/handlePanic.js +13 -110
- package/dist/utils/hasOwnProperty.js +1 -1
- package/dist/utils/isCi.js +1 -1
- package/dist/utils/isCurrentBinInstalledGlobally.js +3 -3
- package/dist/utils/isInContainer.js +1 -1
- package/dist/utils/isInNpmLifecycleHook.js +1 -1
- package/dist/utils/isInteractive.js +1 -1
- package/dist/utils/isPromiseLike.js +1 -1
- package/dist/utils/isValidJsIdentifier.js +4 -4
- package/dist/utils/keyBy.js +1 -1
- package/dist/utils/link.js +3 -3
- package/dist/utils/load.js +3 -3
- package/dist/utils/loadEnvFile.js +74 -77
- package/dist/utils/mapKeys.js +1 -1
- package/dist/utils/mapObjectValues.js +1 -1
- package/dist/utils/maskSchema.js +1 -1
- package/dist/utils/max.js +1 -1
- package/dist/utils/max.test.js +1 -1
- package/dist/utils/maybeInGitHook.js +1 -1
- package/dist/utils/missingDatasource.js +4 -4
- package/dist/utils/missingGeneratorMessage.js +6 -6
- package/dist/utils/now.js +1 -1
- package/dist/utils/omit.js +1 -1
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +1 -1
- package/dist/utils/parseEnvValue.d.ts +1 -1
- package/dist/utils/parseEnvValue.js +1 -1
- package/dist/utils/path.js +1 -1
- package/dist/utils/path.test.js +1 -1
- package/dist/utils/pick.js +1 -1
- package/dist/utils/printConfigWarnings.js +1 -1
- package/dist/utils/prismaPostgres.js +1 -1
- package/dist/utils/prismaPostgres.test.js +1 -1
- package/dist/utils/schemaFileInput.d.ts +0 -4
- package/dist/utils/schemaFileInput.js +3 -7
- package/dist/utils/serializeQueryEngineName.js +1 -1
- package/dist/utils/setClassName.js +1 -1
- package/dist/utils/toSchemasContainer.d.ts +2 -3
- package/dist/utils/toSchemasContainer.js +4 -5
- package/dist/utils/tryLoadEnvs.js +6 -6
- package/dist/utils/unique.js +1 -1
- package/dist/utils/vercelPkgPathRegex.js +1 -1
- package/dist/warnOnce.js +4 -4
- package/dist/wasm.js +6 -6
- package/package.json +14 -13
- package/dist/chunk-77IC3DNO.js +0 -35
- package/dist/chunk-AOQIUJT4.js +0 -41
- package/dist/chunk-DVI4GWRD.js +0 -15631
- package/dist/chunk-MGZOEY6N.js +0 -28
- package/dist/chunk-MUDGDTP6.js +0 -15631
- package/dist/chunk-S57RMXZW.js +0 -28
- package/dist/chunk-VRT7T6MF.js +0 -4959
- package/dist/chunk-YRBRUREX.js +0 -57
- package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -135
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -135
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -136
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
@@ -16,139 +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_HAGJ64PM_exports = {};
|
20
|
+
__export(chunk_HAGJ64PM_exports, {
|
21
21
|
link: () => link
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_HAGJ64PM_exports);
|
24
24
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
25
|
-
var
|
26
|
-
var
|
27
|
-
"../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports, module2) {
|
28
|
-
"use strict";
|
29
|
-
var ansiEscapes = module2.exports;
|
30
|
-
module2.exports.default = ansiEscapes;
|
31
|
-
var ESC = "\x1B[";
|
32
|
-
var OSC = "\x1B]";
|
33
|
-
var BEL = "\x07";
|
34
|
-
var SEP = ";";
|
35
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
36
|
-
ansiEscapes.cursorTo = (x, y) => {
|
37
|
-
if (typeof x !== "number") {
|
38
|
-
throw new TypeError("The `x` argument is required");
|
39
|
-
}
|
40
|
-
if (typeof y !== "number") {
|
41
|
-
return ESC + (x + 1) + "G";
|
42
|
-
}
|
43
|
-
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
44
|
-
};
|
45
|
-
ansiEscapes.cursorMove = (x, y) => {
|
46
|
-
if (typeof x !== "number") {
|
47
|
-
throw new TypeError("The `x` argument is required");
|
48
|
-
}
|
49
|
-
let ret = "";
|
50
|
-
if (x < 0) {
|
51
|
-
ret += ESC + -x + "D";
|
52
|
-
} else if (x > 0) {
|
53
|
-
ret += ESC + x + "C";
|
54
|
-
}
|
55
|
-
if (y < 0) {
|
56
|
-
ret += ESC + -y + "A";
|
57
|
-
} else if (y > 0) {
|
58
|
-
ret += ESC + y + "B";
|
59
|
-
}
|
60
|
-
return ret;
|
61
|
-
};
|
62
|
-
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
63
|
-
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
64
|
-
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
65
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
66
|
-
ansiEscapes.cursorLeft = ESC + "G";
|
67
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
68
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
69
|
-
ansiEscapes.cursorGetPosition = ESC + "6n";
|
70
|
-
ansiEscapes.cursorNextLine = ESC + "E";
|
71
|
-
ansiEscapes.cursorPrevLine = ESC + "F";
|
72
|
-
ansiEscapes.cursorHide = ESC + "?25l";
|
73
|
-
ansiEscapes.cursorShow = ESC + "?25h";
|
74
|
-
ansiEscapes.eraseLines = (count) => {
|
75
|
-
let clear = "";
|
76
|
-
for (let i = 0; i < count; i++) {
|
77
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
78
|
-
}
|
79
|
-
if (count) {
|
80
|
-
clear += ansiEscapes.cursorLeft;
|
81
|
-
}
|
82
|
-
return clear;
|
83
|
-
};
|
84
|
-
ansiEscapes.eraseEndLine = ESC + "K";
|
85
|
-
ansiEscapes.eraseStartLine = ESC + "1K";
|
86
|
-
ansiEscapes.eraseLine = ESC + "2K";
|
87
|
-
ansiEscapes.eraseDown = ESC + "J";
|
88
|
-
ansiEscapes.eraseUp = ESC + "1J";
|
89
|
-
ansiEscapes.eraseScreen = ESC + "2J";
|
90
|
-
ansiEscapes.scrollUp = ESC + "S";
|
91
|
-
ansiEscapes.scrollDown = ESC + "T";
|
92
|
-
ansiEscapes.clearScreen = "\x1Bc";
|
93
|
-
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
|
94
|
-
// 1. Erases the screen (Only done in case `2` is not supported)
|
95
|
-
// 2. Erases the whole screen including scrollback buffer
|
96
|
-
// 3. Moves cursor to the top-left position
|
97
|
-
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
98
|
-
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
|
99
|
-
);
|
100
|
-
ansiEscapes.beep = BEL;
|
101
|
-
ansiEscapes.link = (text, url) => {
|
102
|
-
return [
|
103
|
-
OSC,
|
104
|
-
"8",
|
105
|
-
SEP,
|
106
|
-
SEP,
|
107
|
-
url,
|
108
|
-
BEL,
|
109
|
-
text,
|
110
|
-
OSC,
|
111
|
-
"8",
|
112
|
-
SEP,
|
113
|
-
SEP,
|
114
|
-
BEL
|
115
|
-
].join("");
|
116
|
-
};
|
117
|
-
ansiEscapes.image = (buffer, options = {}) => {
|
118
|
-
let ret = `${OSC}1337;File=inline=1`;
|
119
|
-
if (options.width) {
|
120
|
-
ret += `;width=${options.width}`;
|
121
|
-
}
|
122
|
-
if (options.height) {
|
123
|
-
ret += `;height=${options.height}`;
|
124
|
-
}
|
125
|
-
if (options.preserveAspectRatio === false) {
|
126
|
-
ret += ";preserveAspectRatio=0";
|
127
|
-
}
|
128
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
129
|
-
};
|
130
|
-
ansiEscapes.iTerm = {
|
131
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
132
|
-
annotation: (message, options = {}) => {
|
133
|
-
let ret = `${OSC}1337;`;
|
134
|
-
const hasX = typeof options.x !== "undefined";
|
135
|
-
const hasY = typeof options.y !== "undefined";
|
136
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
137
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
138
|
-
}
|
139
|
-
message = message.replace(/\|/g, "");
|
140
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
141
|
-
if (options.length > 0) {
|
142
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
143
|
-
} else {
|
144
|
-
ret += message;
|
145
|
-
}
|
146
|
-
return ret + BEL;
|
147
|
-
}
|
148
|
-
};
|
149
|
-
}
|
150
|
-
});
|
151
|
-
var require_has_flag = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
25
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
26
|
+
var require_has_flag = (0, import_chunk_4VNS5WPM.__commonJS)({
|
152
27
|
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
153
28
|
"use strict";
|
154
29
|
module2.exports = (flag, argv = process.argv) => {
|
@@ -159,11 +34,11 @@ var require_has_flag = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
159
34
|
};
|
160
35
|
}
|
161
36
|
});
|
162
|
-
var require_supports_color = (0,
|
37
|
+
var require_supports_color = (0, import_chunk_4VNS5WPM.__commonJS)({
|
163
38
|
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
|
164
39
|
"use strict";
|
165
|
-
var os = (0,
|
166
|
-
var tty = (0,
|
40
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
41
|
+
var tty = (0, import_chunk_4VNS5WPM.__require)("tty");
|
167
42
|
var hasFlag = require_has_flag();
|
168
43
|
var { env } = process;
|
169
44
|
var forceColor;
|
@@ -259,7 +134,7 @@ var require_supports_color = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
259
134
|
};
|
260
135
|
}
|
261
136
|
});
|
262
|
-
var require_supports_hyperlinks = (0,
|
137
|
+
var require_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__commonJS)({
|
263
138
|
"../../node_modules/.pnpm/supports-hyperlinks@2.3.0/node_modules/supports-hyperlinks/index.js"(exports, module2) {
|
264
139
|
"use strict";
|
265
140
|
var supportsColor = require_supports_color();
|
@@ -339,29 +214,141 @@ var require_supports_hyperlinks = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
339
214
|
};
|
340
215
|
}
|
341
216
|
});
|
342
|
-
var
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
}
|
352
|
-
return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
353
|
-
}
|
354
|
-
return ansiEscapes.link(text, url);
|
355
|
-
};
|
356
|
-
module2.exports = (text, url, options = {}) => terminalLink2(text, url, options);
|
357
|
-
module2.exports.stderr = (text, url, options = {}) => terminalLink2(text, url, { target: "stderr", ...options });
|
358
|
-
module2.exports.isSupported = supportsHyperlinks.stdout;
|
359
|
-
module2.exports.stderr.isSupported = supportsHyperlinks.stderr;
|
217
|
+
var ESC = "\x1B[";
|
218
|
+
var OSC = "\x1B]";
|
219
|
+
var BEL = "\x07";
|
220
|
+
var SEP = ";";
|
221
|
+
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
222
|
+
var ansiEscapes = {};
|
223
|
+
ansiEscapes.cursorTo = (x, y) => {
|
224
|
+
if (typeof x !== "number") {
|
225
|
+
throw new TypeError("The `x` argument is required");
|
360
226
|
}
|
361
|
-
|
362
|
-
|
227
|
+
if (typeof y !== "number") {
|
228
|
+
return ESC + (x + 1) + "G";
|
229
|
+
}
|
230
|
+
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
231
|
+
};
|
232
|
+
ansiEscapes.cursorMove = (x, y) => {
|
233
|
+
if (typeof x !== "number") {
|
234
|
+
throw new TypeError("The `x` argument is required");
|
235
|
+
}
|
236
|
+
let returnValue = "";
|
237
|
+
if (x < 0) {
|
238
|
+
returnValue += ESC + -x + "D";
|
239
|
+
} else if (x > 0) {
|
240
|
+
returnValue += ESC + x + "C";
|
241
|
+
}
|
242
|
+
if (y < 0) {
|
243
|
+
returnValue += ESC + -y + "A";
|
244
|
+
} else if (y > 0) {
|
245
|
+
returnValue += ESC + y + "B";
|
246
|
+
}
|
247
|
+
return returnValue;
|
248
|
+
};
|
249
|
+
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
250
|
+
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
251
|
+
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
252
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
253
|
+
ansiEscapes.cursorLeft = ESC + "G";
|
254
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
255
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
256
|
+
ansiEscapes.cursorGetPosition = ESC + "6n";
|
257
|
+
ansiEscapes.cursorNextLine = ESC + "E";
|
258
|
+
ansiEscapes.cursorPrevLine = ESC + "F";
|
259
|
+
ansiEscapes.cursorHide = ESC + "?25l";
|
260
|
+
ansiEscapes.cursorShow = ESC + "?25h";
|
261
|
+
ansiEscapes.eraseLines = (count) => {
|
262
|
+
let clear = "";
|
263
|
+
for (let i = 0; i < count; i++) {
|
264
|
+
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
265
|
+
}
|
266
|
+
if (count) {
|
267
|
+
clear += ansiEscapes.cursorLeft;
|
268
|
+
}
|
269
|
+
return clear;
|
270
|
+
};
|
271
|
+
ansiEscapes.eraseEndLine = ESC + "K";
|
272
|
+
ansiEscapes.eraseStartLine = ESC + "1K";
|
273
|
+
ansiEscapes.eraseLine = ESC + "2K";
|
274
|
+
ansiEscapes.eraseDown = ESC + "J";
|
275
|
+
ansiEscapes.eraseUp = ESC + "1J";
|
276
|
+
ansiEscapes.eraseScreen = ESC + "2J";
|
277
|
+
ansiEscapes.scrollUp = ESC + "S";
|
278
|
+
ansiEscapes.scrollDown = ESC + "T";
|
279
|
+
ansiEscapes.clearScreen = "\x1Bc";
|
280
|
+
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
|
281
|
+
// 1. Erases the screen (Only done in case `2` is not supported)
|
282
|
+
// 2. Erases the whole screen including scrollback buffer
|
283
|
+
// 3. Moves cursor to the top-left position
|
284
|
+
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
285
|
+
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
|
286
|
+
);
|
287
|
+
ansiEscapes.beep = BEL;
|
288
|
+
ansiEscapes.link = (text, url) => {
|
289
|
+
return [
|
290
|
+
OSC,
|
291
|
+
"8",
|
292
|
+
SEP,
|
293
|
+
SEP,
|
294
|
+
url,
|
295
|
+
BEL,
|
296
|
+
text,
|
297
|
+
OSC,
|
298
|
+
"8",
|
299
|
+
SEP,
|
300
|
+
SEP,
|
301
|
+
BEL
|
302
|
+
].join("");
|
303
|
+
};
|
304
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
305
|
+
let returnValue = `${OSC}1337;File=inline=1`;
|
306
|
+
if (options.width) {
|
307
|
+
returnValue += `;width=${options.width}`;
|
308
|
+
}
|
309
|
+
if (options.height) {
|
310
|
+
returnValue += `;height=${options.height}`;
|
311
|
+
}
|
312
|
+
if (options.preserveAspectRatio === false) {
|
313
|
+
returnValue += ";preserveAspectRatio=0";
|
314
|
+
}
|
315
|
+
return returnValue + ":" + buffer.toString("base64") + BEL;
|
316
|
+
};
|
317
|
+
ansiEscapes.iTerm = {
|
318
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
319
|
+
annotation: (message, options = {}) => {
|
320
|
+
let returnValue = `${OSC}1337;`;
|
321
|
+
const hasX = typeof options.x !== "undefined";
|
322
|
+
const hasY = typeof options.y !== "undefined";
|
323
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
324
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
325
|
+
}
|
326
|
+
message = message.replace(/\|/g, "");
|
327
|
+
returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
328
|
+
if (options.length > 0) {
|
329
|
+
returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
330
|
+
} else {
|
331
|
+
returnValue += message;
|
332
|
+
}
|
333
|
+
return returnValue + BEL;
|
334
|
+
}
|
335
|
+
};
|
336
|
+
var ansi_escapes_default = ansiEscapes;
|
337
|
+
var import_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__toESM)(require_supports_hyperlinks(), 1);
|
338
|
+
function terminalLink(text, url, { target = "stdout", ...options } = {}) {
|
339
|
+
if (!import_supports_hyperlinks.default[target]) {
|
340
|
+
if (options.fallback === false) {
|
341
|
+
return text;
|
342
|
+
}
|
343
|
+
return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
344
|
+
}
|
345
|
+
return ansi_escapes_default.link(text, url);
|
346
|
+
}
|
347
|
+
terminalLink.isSupported = import_supports_hyperlinks.default.stdout;
|
348
|
+
terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
|
349
|
+
terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
363
350
|
function link(url) {
|
364
|
-
return (
|
351
|
+
return terminalLink(url, url, {
|
365
352
|
fallback: (url2) => (0, import_chunk_PG5FDKSF.underline)(url2)
|
366
353
|
});
|
367
354
|
}
|
@@ -26,28 +26,28 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_HG3YOAAE_exports = {};
|
30
|
+
__export(chunk_HG3YOAAE_exports, {
|
31
31
|
BinaryType: () => import_fetch_engine.BinaryType,
|
32
32
|
engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
|
33
33
|
maybeCopyToTmp: () => maybeCopyToTmp,
|
34
34
|
resolveBinary: () => resolveBinary,
|
35
35
|
safeResolveBinary: () => safeResolveBinary
|
36
36
|
});
|
37
|
-
module.exports = __toCommonJS(
|
38
|
-
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
37
|
+
module.exports = __toCommonJS(chunk_HG3YOAAE_exports);
|
39
38
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
39
|
+
var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
|
40
40
|
var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
|
41
|
-
var
|
42
|
-
var
|
43
|
-
var
|
41
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
42
|
+
var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
|
43
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
44
44
|
var import_engines = require("@prisma/engines");
|
45
45
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
46
46
|
var import_get_platform = require("@prisma/get-platform");
|
47
47
|
var import_fs = __toESM2(require("fs"));
|
48
48
|
var import_path = __toESM2(require("path"));
|
49
|
-
var import_fs_extra = (0,
|
50
|
-
var import_temp_dir = (0,
|
49
|
+
var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
|
50
|
+
var import_temp_dir = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_5VQNKCKW.require_temp_dir)());
|
51
51
|
async function getBinaryName(name) {
|
52
52
|
const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
|
53
53
|
const extension = binaryTarget === "windows" ? ".exe" : "";
|
@@ -90,7 +90,7 @@ async function resolveBinary(name, proposedPath) {
|
|
90
90
|
);
|
91
91
|
}
|
92
92
|
function safeResolveBinary(name, proposedPath) {
|
93
|
-
return (0,
|
93
|
+
return (0, import_chunk_5DBOS77Y.tryCatch2)(
|
94
94
|
() => resolveBinary(name, proposedPath),
|
95
95
|
(error) => error
|
96
96
|
);
|
@@ -16,41 +16,37 @@ 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_HRN4MBZU_exports = {};
|
20
|
+
__export(chunk_HRN4MBZU_exports, {
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
24
24
|
lintSchema: () => lintSchema,
|
25
25
|
warningToString: () => warningToString
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var
|
29
|
-
var
|
30
|
-
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
27
|
+
module.exports = __toCommonJS(chunk_HRN4MBZU_exports);
|
28
|
+
var import_chunk_ZPPWJKWX = require("./chunk-ZPPWJKWX.js");
|
29
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
31
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
31
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
32
|
+
const lintResult = import_chunk_ZPPWJKWX.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
34
|
return lintDiagnostics;
|
36
35
|
}
|
37
|
-
function handleLintPanic(tryCb
|
36
|
+
function handleLintPanic(tryCb) {
|
38
37
|
try {
|
39
38
|
return tryCb();
|
40
39
|
} catch (e) {
|
41
|
-
const { message, stack } = (0,
|
42
|
-
const panic = new
|
40
|
+
const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e);
|
41
|
+
const panic = new import_chunk_LMVSIVKQ.RustPanic(
|
43
42
|
/* message */
|
44
43
|
message,
|
45
44
|
/* rustStack */
|
46
45
|
stack,
|
47
46
|
/* request */
|
48
47
|
"@prisma/prisma-schema-wasm lint",
|
49
|
-
"FMT_CLI"
|
50
|
-
/*
|
51
|
-
(0, import_chunk_YRBRUREX.debugMultipleSchemaPaths)(schemas),
|
52
|
-
/* schema */
|
53
|
-
schemas
|
48
|
+
"FMT_CLI"
|
49
|
+
/* FMT_CLI */
|
54
50
|
);
|
55
51
|
throw panic;
|
56
52
|
}
|