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.
@@ -2147,7 +2147,7 @@ var init_constants_evaluate = __esm({
2147
2147
  "angular",
2148
2148
  "lwc"
2149
2149
  ];
2150
- PRETTIER_VERSION = "3.7.2";
2150
+ PRETTIER_VERSION = "3.7.4";
2151
2151
  }
2152
2152
  });
2153
2153
 
@@ -1229,7 +1229,7 @@ function camelCase(input, options) {
1229
1229
  return leadingPrefix + postProcess(input, toUpperCase, options);
1230
1230
  }
1231
1231
 
1232
- // src/cli/utils.js
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/utils.js
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.utils;
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.utils.createMockable({
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier",
3
- "version": "3.7.2",
3
+ "version": "3.7.4",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin/prettier.cjs",
6
6
  "repository": "prettier/prettier",