prettier 3.7.2 → 3.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/doc.js +12 -13
- package/doc.mjs +12 -13
- package/index.cjs +65 -48
- package/index.d.ts +1 -1
- package/index.mjs +4095 -4089
- package/internal/experimental-cli.mjs +1 -1
- package/internal/legacy-cli.mjs +5 -5
- package/package.json +1 -1
- package/plugins/acorn.js +12 -12
- package/plugins/acorn.mjs +12 -12
- package/plugins/angular.js +3 -3
- package/plugins/angular.mjs +3 -3
- package/plugins/babel.js +12 -12
- package/plugins/babel.mjs +12 -12
- package/plugins/estree.js +36 -36
- package/plugins/estree.mjs +36 -36
- package/plugins/flow.js +15 -15
- package/plugins/flow.mjs +15 -15
- package/plugins/glimmer.js +20 -20
- package/plugins/glimmer.mjs +26 -26
- package/plugins/html.js +15 -15
- package/plugins/html.mjs +15 -15
- package/plugins/markdown.js +47 -47
- package/plugins/markdown.mjs +47 -47
- package/plugins/meriyah.js +4 -4
- package/plugins/meriyah.mjs +4 -4
- package/plugins/postcss.js +34 -34
- package/plugins/postcss.mjs +34 -34
- package/plugins/typescript.js +15 -15
- package/plugins/typescript.mjs +15 -15
- package/plugins/yaml.js +80 -80
- package/plugins/yaml.mjs +80 -80
- package/standalone.js +23 -27
- package/standalone.mjs +23 -27
package/internal/legacy-cli.mjs
CHANGED
|
@@ -1229,7 +1229,7 @@ function camelCase(input, options) {
|
|
|
1229
1229
|
return leadingPrefix + postProcess(input, toUpperCase, options);
|
|
1230
1230
|
}
|
|
1231
1231
|
|
|
1232
|
-
// src/cli/
|
|
1232
|
+
// src/cli/utilities.js
|
|
1233
1233
|
import fs from "fs/promises";
|
|
1234
1234
|
import path from "path";
|
|
1235
1235
|
|
|
@@ -1262,7 +1262,7 @@ sdbm.bigint = function(input, options) {
|
|
|
1262
1262
|
return BigInt.asUintN(64, sdbmHash(input, options));
|
|
1263
1263
|
};
|
|
1264
1264
|
|
|
1265
|
-
// src/cli/
|
|
1265
|
+
// src/cli/utilities.js
|
|
1266
1266
|
import { __internal as sharedWithCli2 } from "../index.mjs";
|
|
1267
1267
|
var printToScreen = console.log.bind(console);
|
|
1268
1268
|
function groupBy(array, iteratee) {
|
|
@@ -1319,7 +1319,7 @@ var normalizeToPosix = path.sep === "\\" ? (filepath) => method_replace_all_defa
|
|
|
1319
1319
|
) : (filepath) => filepath;
|
|
1320
1320
|
var {
|
|
1321
1321
|
omit
|
|
1322
|
-
} = sharedWithCli2.
|
|
1322
|
+
} = sharedWithCli2.utilities;
|
|
1323
1323
|
|
|
1324
1324
|
// src/cli/options/create-minimist-options.js
|
|
1325
1325
|
function createMinimistOptions(detailedOptions) {
|
|
@@ -1528,7 +1528,7 @@ async function logFileInfoOrDie(context) {
|
|
|
1528
1528
|
const fileInfo = await getFileInfo(path2.resolve(file), {
|
|
1529
1529
|
ignorePath,
|
|
1530
1530
|
withNodeModules: withNodeModules2,
|
|
1531
|
-
plugins,
|
|
1531
|
+
plugins: plugins.length > 0 ? plugins : void 0,
|
|
1532
1532
|
resolveConfig: config !== false
|
|
1533
1533
|
});
|
|
1534
1534
|
const result = await format((0, import_fast_json_stable_stringify.default)(fileInfo), { parser: "json" });
|
|
@@ -5441,7 +5441,7 @@ function clearStreamText(stream, text) {
|
|
|
5441
5441
|
var clear_stream_text_default = clearStreamText;
|
|
5442
5442
|
|
|
5443
5443
|
// src/cli/mockable.js
|
|
5444
|
-
var mockable = sharedWithCli3.
|
|
5444
|
+
var mockable = sharedWithCli3.utilities.createMockable({
|
|
5445
5445
|
clearStreamText: clear_stream_text_default,
|
|
5446
5446
|
getTimestamp: performance.now.bind(performance),
|
|
5447
5447
|
isCI: () => import_ci_info.isCI,
|