prettier 3.0.0 → 3.0.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/LICENSE +38 -94
- package/README.md +2 -2
- package/doc.d.ts +7 -7
- package/index.cjs +1 -1
- package/index.d.ts +54 -48
- package/index.mjs +8355 -8716
- package/internal/cli.mjs +7 -3
- package/package.json +1 -1
- package/plugins/acorn.js +11 -11
- package/plugins/acorn.mjs +11 -11
- package/plugins/angular.js +2 -2
- package/plugins/angular.mjs +2 -2
- package/plugins/babel.js +11 -11
- package/plugins/babel.mjs +11 -11
- package/plugins/estree.d.ts +1 -0
- package/plugins/estree.js +19 -19
- package/plugins/estree.mjs +19 -19
- package/plugins/flow.js +17 -17
- package/plugins/flow.mjs +17 -17
- package/plugins/glimmer.js +13 -13
- package/plugins/glimmer.mjs +14 -14
- package/plugins/graphql.js +9 -9
- package/plugins/graphql.mjs +9 -9
- package/plugins/html.js +15 -15
- package/plugins/html.mjs +15 -15
- package/plugins/markdown.js +32 -32
- package/plugins/markdown.mjs +32 -32
- package/plugins/meriyah.js +5 -5
- package/plugins/meriyah.mjs +5 -5
- package/plugins/postcss.js +28 -28
- package/plugins/postcss.mjs +29 -29
- package/plugins/typescript.js +20 -22
- package/plugins/typescript.mjs +20 -22
- package/plugins/yaml.js +38 -38
- package/plugins/yaml.mjs +39 -39
- package/standalone.d.ts +1 -1
- package/standalone.js +30 -27
- package/standalone.mjs +30 -27
package/internal/cli.mjs
CHANGED
|
@@ -4777,7 +4777,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
4777
4777
|
return 1;
|
|
4778
4778
|
}
|
|
4779
4779
|
if ("CI" in env) {
|
|
4780
|
-
if ("GITHUB_ACTIONS" in env) {
|
|
4780
|
+
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
4781
4781
|
return 3;
|
|
4782
4782
|
}
|
|
4783
4783
|
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
@@ -5006,7 +5006,7 @@ var chalk = createChalk();
|
|
|
5006
5006
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
5007
5007
|
var source_default = chalk;
|
|
5008
5008
|
|
|
5009
|
-
// node_modules/
|
|
5009
|
+
// node_modules/ansi-regex/index.js
|
|
5010
5010
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
5011
5011
|
const pattern = [
|
|
5012
5012
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
@@ -6646,7 +6646,11 @@ async function format2(context, input, opt) {
|
|
|
6646
6646
|
ms: averageMs
|
|
6647
6647
|
};
|
|
6648
6648
|
context.logger.debug(
|
|
6649
|
-
`'${performanceTestFlag.name}' measurements for formatWithCursor: ${JSON.stringify(
|
|
6649
|
+
`'${performanceTestFlag.name}' measurements for formatWithCursor: ${JSON.stringify(
|
|
6650
|
+
results,
|
|
6651
|
+
null,
|
|
6652
|
+
2
|
|
6653
|
+
)}`
|
|
6650
6654
|
);
|
|
6651
6655
|
}
|
|
6652
6656
|
return prettier.formatWithCursor(input, opt);
|