prettier 3.3.1 → 3.3.2

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 CHANGED
@@ -17,7 +17,7 @@ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0
17
17
 
18
18
  ## Bundled dependencies
19
19
 
20
- ### @angular/compiler@v18.0.0
20
+ ### @angular/compiler@v18.0.2
21
21
 
22
22
  > Angular - the compiler library
23
23
 
@@ -27,7 +27,7 @@ Author: angular
27
27
 
28
28
  ----------------------------------------
29
29
 
30
- ### @babel/code-frame@v7.24.6
30
+ ### @babel/code-frame@v7.24.7
31
31
 
32
32
  > Generate errors that contain a code frame that point to source locations.
33
33
 
@@ -61,7 +61,7 @@ Author: The Babel Team (https://babel.dev/team)
61
61
 
62
62
  ----------------------------------------
63
63
 
64
- ### @babel/helper-validator-identifier@v7.24.6
64
+ ### @babel/helper-validator-identifier@v7.24.7
65
65
 
66
66
  > Validate identifier/keywords name
67
67
 
@@ -94,7 +94,7 @@ Author: The Babel Team (https://babel.dev/team)
94
94
 
95
95
  ----------------------------------------
96
96
 
97
- ### @babel/highlight@v7.24.6
97
+ ### @babel/highlight@v7.24.7
98
98
 
99
99
  > Syntax highlight JavaScript strings for output in terminals.
100
100
 
@@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team)
128
128
 
129
129
  ----------------------------------------
130
130
 
131
- ### @babel/parser@v7.24.6
131
+ ### @babel/parser@v7.24.7
132
132
 
133
133
  > A JavaScript parser
134
134
 
@@ -456,7 +456,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
456
456
 
457
457
  ----------------------------------------
458
458
 
459
- ### @typescript-eslint/types@v7.10.0
459
+ ### @typescript-eslint/types@v7.13.0
460
460
 
461
461
  > Types for the TypeScript-ESTree AST spec
462
462
 
@@ -488,7 +488,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
488
488
 
489
489
  ----------------------------------------
490
490
 
491
- ### @typescript-eslint/typescript-estree@v7.10.0
491
+ ### @typescript-eslint/typescript-estree@v7.13.0
492
492
 
493
493
  > A parser that converts TypeScript source code into an ESTree compatible form
494
494
 
@@ -1528,7 +1528,7 @@ Contributors:
1528
1528
 
1529
1529
  ----------------------------------------
1530
1530
 
1531
- ### flow-parser@v0.236.0
1531
+ ### flow-parser@v0.237.2
1532
1532
 
1533
1533
  > JavaScript parser written in OCaml. Produces ESTree AST
1534
1534
 
@@ -2564,7 +2564,7 @@ Repository: <git@github.com:teambition/merge2.git>
2564
2564
 
2565
2565
  ----------------------------------------
2566
2566
 
2567
- ### meriyah@v4.4.3
2567
+ ### meriyah@v4.5.0
2568
2568
 
2569
2569
  > A 100% compliant, self-hosted javascript parser with high focus on both performance and stability
2570
2570
 
@@ -2834,7 +2834,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
2834
2834
 
2835
2835
  ----------------------------------------
2836
2836
 
2837
- ### picocolors@v1.0.0
2837
+ ### picocolors@v1.0.1
2838
2838
 
2839
2839
  > The tiniest and the fastest library for terminal output formatting with ANSI colors
2840
2840
 
package/doc.js CHANGED
@@ -503,7 +503,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
503
503
  function breakParentGroup(groupStack) {
504
504
  if (groupStack.length > 0) {
505
505
  const parentGroup = at_default(
506
- /* isOptionalObject*/
506
+ /* isOptionalObject */
507
507
  false,
508
508
  groupStack,
509
509
  -1
@@ -560,12 +560,12 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
560
560
  function stripTrailingHardlineFromParts(parts) {
561
561
  parts = [...parts];
562
562
  while (parts.length >= 2 && at_default(
563
- /* isOptionalObject*/
563
+ /* isOptionalObject */
564
564
  false,
565
565
  parts,
566
566
  -2
567
567
  ).type === DOC_TYPE_LINE && at_default(
568
- /* isOptionalObject*/
568
+ /* isOptionalObject */
569
569
  false,
570
570
  parts,
571
571
  -1
@@ -574,7 +574,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
574
574
  }
575
575
  if (parts.length > 0) {
576
576
  const lastPart = stripTrailingHardlineFromDoc(at_default(
577
- /* isOptionalObject*/
577
+ /* isOptionalObject */
578
578
  false,
579
579
  parts,
580
580
  -1
@@ -662,7 +662,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
662
662
  }
663
663
  const [currentPart, ...restParts] = Array.isArray(part) ? part : [part];
664
664
  if (typeof currentPart === "string" && typeof at_default(
665
- /* isOptionalObject*/
665
+ /* isOptionalObject */
666
666
  false,
667
667
  parts,
668
668
  -1
@@ -902,7 +902,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
902
902
  }
903
903
  const groupMode = doc.break ? MODE_BREAK : mode;
904
904
  const contents = doc.expandedStates && groupMode === MODE_BREAK ? at_default(
905
- /* isOptionalObject*/
905
+ /* isOptionalObject */
906
906
  false,
907
907
  doc.expandedStates,
908
908
  -1
@@ -969,7 +969,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
969
969
  switch (get_doc_type_default(doc2)) {
970
970
  case DOC_TYPE_STRING: {
971
971
  const formatted = newLine !== "\n" ? string_replace_all_default(
972
- /* isOptionalObject*/
972
+ /* isOptionalObject */
973
973
  false,
974
974
  doc2,
975
975
  "\n",
@@ -1039,7 +1039,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
1039
1039
  } else {
1040
1040
  if (doc2.expandedStates) {
1041
1041
  const mostExpanded = at_default(
1042
- /* isOptionalObject*/
1042
+ /* isOptionalObject */
1043
1043
  false,
1044
1044
  doc2.expandedStates,
1045
1045
  -1
@@ -1087,7 +1087,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
1087
1087
  }
1088
1088
  if (doc2.id) {
1089
1089
  groupModeMap[doc2.id] = at_default(
1090
- /* isOptionalObject*/
1090
+ /* isOptionalObject */
1091
1091
  false,
1092
1092
  cmds,
1093
1093
  -1
package/doc.mjs CHANGED
@@ -468,7 +468,7 @@ function willBreak(doc) {
468
468
  function breakParentGroup(groupStack) {
469
469
  if (groupStack.length > 0) {
470
470
  const parentGroup = at_default(
471
- /* isOptionalObject*/
471
+ /* isOptionalObject */
472
472
  false,
473
473
  groupStack,
474
474
  -1
@@ -525,12 +525,12 @@ function removeLines(doc) {
525
525
  function stripTrailingHardlineFromParts(parts) {
526
526
  parts = [...parts];
527
527
  while (parts.length >= 2 && at_default(
528
- /* isOptionalObject*/
528
+ /* isOptionalObject */
529
529
  false,
530
530
  parts,
531
531
  -2
532
532
  ).type === DOC_TYPE_LINE && at_default(
533
- /* isOptionalObject*/
533
+ /* isOptionalObject */
534
534
  false,
535
535
  parts,
536
536
  -1
@@ -539,7 +539,7 @@ function stripTrailingHardlineFromParts(parts) {
539
539
  }
540
540
  if (parts.length > 0) {
541
541
  const lastPart = stripTrailingHardlineFromDoc(at_default(
542
- /* isOptionalObject*/
542
+ /* isOptionalObject */
543
543
  false,
544
544
  parts,
545
545
  -1
@@ -627,7 +627,7 @@ function cleanDocFn(doc) {
627
627
  }
628
628
  const [currentPart, ...restParts] = Array.isArray(part) ? part : [part];
629
629
  if (typeof currentPart === "string" && typeof at_default(
630
- /* isOptionalObject*/
630
+ /* isOptionalObject */
631
631
  false,
632
632
  parts,
633
633
  -1
@@ -867,7 +867,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat
867
867
  }
868
868
  const groupMode = doc.break ? MODE_BREAK : mode;
869
869
  const contents = doc.expandedStates && groupMode === MODE_BREAK ? at_default(
870
- /* isOptionalObject*/
870
+ /* isOptionalObject */
871
871
  false,
872
872
  doc.expandedStates,
873
873
  -1
@@ -934,7 +934,7 @@ function printDocToString(doc, options) {
934
934
  switch (get_doc_type_default(doc2)) {
935
935
  case DOC_TYPE_STRING: {
936
936
  const formatted = newLine !== "\n" ? string_replace_all_default(
937
- /* isOptionalObject*/
937
+ /* isOptionalObject */
938
938
  false,
939
939
  doc2,
940
940
  "\n",
@@ -1004,7 +1004,7 @@ function printDocToString(doc, options) {
1004
1004
  } else {
1005
1005
  if (doc2.expandedStates) {
1006
1006
  const mostExpanded = at_default(
1007
- /* isOptionalObject*/
1007
+ /* isOptionalObject */
1008
1008
  false,
1009
1009
  doc2.expandedStates,
1010
1010
  -1
@@ -1052,7 +1052,7 @@ function printDocToString(doc, options) {
1052
1052
  }
1053
1053
  if (doc2.id) {
1054
1054
  groupModeMap[doc2.id] = at_default(
1055
- /* isOptionalObject*/
1055
+ /* isOptionalObject */
1056
1056
  false,
1057
1057
  cmds,
1058
1058
  -1
package/index.cjs CHANGED
@@ -472,7 +472,7 @@ function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
472
472
  const otherQuote = enclosingQuote === '"' ? "'" : '"';
473
473
  const regex = /\\(.)|(["'])/gs;
474
474
  const raw = string_replace_all_default(
475
- /* isOptionalObject*/
475
+ /* isOptionalObject */
476
476
  false,
477
477
  rawText,
478
478
  regex,
@@ -585,7 +585,7 @@ var init_public = __esm({
585
585
  // src/main/version.evaluate.cjs
586
586
  var require_version_evaluate = __commonJS({
587
587
  "src/main/version.evaluate.cjs"(exports2, module2) {
588
- module2.exports = "3.3.1";
588
+ module2.exports = "3.3.2";
589
589
  }
590
590
  });
591
591
 
package/index.mjs CHANGED
@@ -11198,47 +11198,55 @@ var require_lib = __commonJS({
11198
11198
  // node_modules/picocolors/picocolors.js
11199
11199
  var require_picocolors = __commonJS({
11200
11200
  "node_modules/picocolors/picocolors.js"(exports, module) {
11201
- var tty2 = __require("tty");
11202
- var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty2.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
11201
+ var argv = process.argv || [];
11202
+ var env2 = process.env;
11203
+ var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || __require != null && __require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
11203
11204
  var formatter = (open, close, replace = open) => (input) => {
11204
11205
  let string = "" + input;
11205
11206
  let index = string.indexOf(close, open.length);
11206
11207
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
11207
11208
  };
11208
11209
  var replaceClose = (string, close, replace, index) => {
11209
- let start = string.substring(0, index) + replace;
11210
- let end = string.substring(index + close.length);
11211
- let nextIndex = end.indexOf(close);
11212
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
11210
+ let result = "";
11211
+ let cursor2 = 0;
11212
+ do {
11213
+ result += string.substring(cursor2, index) + replace;
11214
+ cursor2 = index + close.length;
11215
+ index = string.indexOf(close, cursor2);
11216
+ } while (~index);
11217
+ return result + string.substring(cursor2);
11218
+ };
11219
+ var createColors = (enabled = isColorSupported) => {
11220
+ let init = enabled ? formatter : () => String;
11221
+ return {
11222
+ isColorSupported: enabled,
11223
+ reset: init("\x1B[0m", "\x1B[0m"),
11224
+ bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
11225
+ dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
11226
+ italic: init("\x1B[3m", "\x1B[23m"),
11227
+ underline: init("\x1B[4m", "\x1B[24m"),
11228
+ inverse: init("\x1B[7m", "\x1B[27m"),
11229
+ hidden: init("\x1B[8m", "\x1B[28m"),
11230
+ strikethrough: init("\x1B[9m", "\x1B[29m"),
11231
+ black: init("\x1B[30m", "\x1B[39m"),
11232
+ red: init("\x1B[31m", "\x1B[39m"),
11233
+ green: init("\x1B[32m", "\x1B[39m"),
11234
+ yellow: init("\x1B[33m", "\x1B[39m"),
11235
+ blue: init("\x1B[34m", "\x1B[39m"),
11236
+ magenta: init("\x1B[35m", "\x1B[39m"),
11237
+ cyan: init("\x1B[36m", "\x1B[39m"),
11238
+ white: init("\x1B[37m", "\x1B[39m"),
11239
+ gray: init("\x1B[90m", "\x1B[39m"),
11240
+ bgBlack: init("\x1B[40m", "\x1B[49m"),
11241
+ bgRed: init("\x1B[41m", "\x1B[49m"),
11242
+ bgGreen: init("\x1B[42m", "\x1B[49m"),
11243
+ bgYellow: init("\x1B[43m", "\x1B[49m"),
11244
+ bgBlue: init("\x1B[44m", "\x1B[49m"),
11245
+ bgMagenta: init("\x1B[45m", "\x1B[49m"),
11246
+ bgCyan: init("\x1B[46m", "\x1B[49m"),
11247
+ bgWhite: init("\x1B[47m", "\x1B[49m")
11248
+ };
11213
11249
  };
11214
- var createColors = (enabled = isColorSupported) => ({
11215
- isColorSupported: enabled,
11216
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
11217
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
11218
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
11219
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
11220
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
11221
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
11222
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
11223
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
11224
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
11225
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
11226
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
11227
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
11228
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
11229
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
11230
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
11231
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
11232
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
11233
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
11234
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
11235
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
11236
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
11237
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
11238
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
11239
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
11240
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
11241
- });
11242
11250
  module.exports = createColors();
11243
11251
  module.exports.createColors = createColors;
11244
11252
  }
@@ -17754,7 +17762,7 @@ import path10 from "path";
17754
17762
  import url from "url";
17755
17763
  var createIgnore = import_ignore.default.default;
17756
17764
  var slash = path10.sep === "\\" ? (filePath) => string_replace_all_default(
17757
- /* isOptionalObject*/
17765
+ /* isOptionalObject */
17758
17766
  false,
17759
17767
  filePath,
17760
17768
  "\\",
@@ -17946,7 +17954,7 @@ function countEndOfLineChars(text, eol) {
17946
17954
  }
17947
17955
  function normalizeEndOfLine(text) {
17948
17956
  return string_replace_all_default(
17949
- /* isOptionalObject*/
17957
+ /* isOptionalObject */
17950
17958
  false,
17951
17959
  text,
17952
17960
  /\r\n?/g,
@@ -18421,7 +18429,7 @@ function mapDoc(doc2, cb) {
18421
18429
  function breakParentGroup(groupStack) {
18422
18430
  if (groupStack.length > 0) {
18423
18431
  const parentGroup = at_default(
18424
- /* isOptionalObject*/
18432
+ /* isOptionalObject */
18425
18433
  false,
18426
18434
  groupStack,
18427
18435
  -1
@@ -18466,12 +18474,12 @@ function propagateBreaks(doc2) {
18466
18474
  function stripTrailingHardlineFromParts(parts) {
18467
18475
  parts = [...parts];
18468
18476
  while (parts.length >= 2 && at_default(
18469
- /* isOptionalObject*/
18477
+ /* isOptionalObject */
18470
18478
  false,
18471
18479
  parts,
18472
18480
  -2
18473
18481
  ).type === DOC_TYPE_LINE && at_default(
18474
- /* isOptionalObject*/
18482
+ /* isOptionalObject */
18475
18483
  false,
18476
18484
  parts,
18477
18485
  -1
@@ -18480,7 +18488,7 @@ function stripTrailingHardlineFromParts(parts) {
18480
18488
  }
18481
18489
  if (parts.length > 0) {
18482
18490
  const lastPart = stripTrailingHardlineFromDoc(at_default(
18483
- /* isOptionalObject*/
18491
+ /* isOptionalObject */
18484
18492
  false,
18485
18493
  parts,
18486
18494
  -1
@@ -18568,7 +18576,7 @@ function cleanDocFn(doc2) {
18568
18576
  }
18569
18577
  const [currentPart, ...restParts] = Array.isArray(part) ? part : [part];
18570
18578
  if (typeof currentPart === "string" && typeof at_default(
18571
- /* isOptionalObject*/
18579
+ /* isOptionalObject */
18572
18580
  false,
18573
18581
  parts,
18574
18582
  -1
@@ -18803,7 +18811,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat
18803
18811
  }
18804
18812
  const groupMode = doc2.break ? MODE_BREAK : mode;
18805
18813
  const contents = doc2.expandedStates && groupMode === MODE_BREAK ? at_default(
18806
- /* isOptionalObject*/
18814
+ /* isOptionalObject */
18807
18815
  false,
18808
18816
  doc2.expandedStates,
18809
18817
  -1
@@ -18870,7 +18878,7 @@ function printDocToString(doc2, options8) {
18870
18878
  switch (get_doc_type_default(doc3)) {
18871
18879
  case DOC_TYPE_STRING: {
18872
18880
  const formatted = newLine !== "\n" ? string_replace_all_default(
18873
- /* isOptionalObject*/
18881
+ /* isOptionalObject */
18874
18882
  false,
18875
18883
  doc3,
18876
18884
  "\n",
@@ -18940,7 +18948,7 @@ function printDocToString(doc2, options8) {
18940
18948
  } else {
18941
18949
  if (doc3.expandedStates) {
18942
18950
  const mostExpanded = at_default(
18943
- /* isOptionalObject*/
18951
+ /* isOptionalObject */
18944
18952
  false,
18945
18953
  doc3.expandedStates,
18946
18954
  -1
@@ -18988,7 +18996,7 @@ function printDocToString(doc2, options8) {
18988
18996
  }
18989
18997
  if (doc3.id) {
18990
18998
  groupModeMap[doc3.id] = at_default(
18991
- /* isOptionalObject*/
18999
+ /* isOptionalObject */
18992
19000
  false,
18993
19001
  cmds,
18994
19002
  -1
@@ -19204,7 +19212,7 @@ var AstPath = class {
19204
19212
  siblings
19205
19213
  } = this;
19206
19214
  return at_default(
19207
- /* isOptionalObject*/
19215
+ /* isOptionalObject */
19208
19216
  false,
19209
19217
  stack2,
19210
19218
  siblings === null ? -2 : -4
@@ -19213,7 +19221,7 @@ var AstPath = class {
19213
19221
  /** @type {number | null} */
19214
19222
  get index() {
19215
19223
  return this.siblings === null ? null : at_default(
19216
- /* isOptionalObject*/
19224
+ /* isOptionalObject */
19217
19225
  false,
19218
19226
  this.stack,
19219
19227
  -2
@@ -19222,7 +19230,7 @@ var AstPath = class {
19222
19230
  /** @type {object} */
19223
19231
  get node() {
19224
19232
  return at_default(
19225
- /* isOptionalObject*/
19233
+ /* isOptionalObject */
19226
19234
  false,
19227
19235
  this.stack,
19228
19236
  -1
@@ -19246,7 +19254,7 @@ var AstPath = class {
19246
19254
  stack: stack2
19247
19255
  } = this;
19248
19256
  const maybeArray = at_default(
19249
- /* isOptionalObject*/
19257
+ /* isOptionalObject */
19250
19258
  false,
19251
19259
  stack2,
19252
19260
  -3
@@ -19302,7 +19310,7 @@ var AstPath = class {
19302
19310
  } = stack2;
19303
19311
  if (length > 1) {
19304
19312
  return at_default(
19305
- /* isOptionalObject*/
19313
+ /* isOptionalObject */
19306
19314
  false,
19307
19315
  stack2,
19308
19316
  -2
@@ -19314,7 +19322,7 @@ var AstPath = class {
19314
19322
  // this.stack.
19315
19323
  getValue() {
19316
19324
  return at_default(
19317
- /* isOptionalObject*/
19325
+ /* isOptionalObject */
19318
19326
  false,
19319
19327
  this.stack,
19320
19328
  -1
@@ -19340,7 +19348,7 @@ var AstPath = class {
19340
19348
  length
19341
19349
  } = stack2;
19342
19350
  let value = at_default(
19343
- /* isOptionalObject*/
19351
+ /* isOptionalObject */
19344
19352
  false,
19345
19353
  stack2,
19346
19354
  -1
@@ -19376,7 +19384,7 @@ var AstPath = class {
19376
19384
  length
19377
19385
  } = stack2;
19378
19386
  let value = at_default(
19379
- /* isOptionalObject*/
19387
+ /* isOptionalObject */
19380
19388
  false,
19381
19389
  stack2,
19382
19390
  -1
@@ -20388,7 +20396,7 @@ function normalizeOptionSettings(settings) {
20388
20396
  };
20389
20397
  if (Array.isArray(option.default)) {
20390
20398
  option.default = at_default(
20391
- /* isOptionalObject*/
20399
+ /* isOptionalObject */
20392
20400
  false,
20393
20401
  option.default,
20394
20402
  -1
@@ -20544,7 +20552,7 @@ function optionInfoToSchema(optionInfo, {
20544
20552
  if (isCLI && !optionInfo.array) {
20545
20553
  const originalPreprocess = parameters.preprocess || ((x) => x);
20546
20554
  parameters.preprocess = (value, schema2, utils) => schema2.preprocess(originalPreprocess(Array.isArray(value) ? at_default(
20547
- /* isOptionalObject*/
20555
+ /* isOptionalObject */
20548
20556
  false,
20549
20557
  value,
20550
20558
  -1
@@ -20587,7 +20595,7 @@ function getParserPluginByParserName(plugins, parserName) {
20587
20595
  throw new Error("parserName is required.");
20588
20596
  }
20589
20597
  const plugin = array_find_last_default(
20590
- /* isOptionalObject*/
20598
+ /* isOptionalObject */
20591
20599
  false,
20592
20600
  plugins,
20593
20601
  (plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName)
@@ -20606,7 +20614,7 @@ function getPrinterPluginByAstFormat(plugins, astFormat) {
20606
20614
  throw new Error("astFormat is required.");
20607
20615
  }
20608
20616
  const plugin = array_find_last_default(
20609
- /* isOptionalObject*/
20617
+ /* isOptionalObject */
20610
20618
  false,
20611
20619
  plugins,
20612
20620
  (plugin2) => plugin2.printers && Object.prototype.hasOwnProperty.call(plugin2.printers, astFormat)
@@ -21310,7 +21318,7 @@ async function formatRange(originalText, opts) {
21310
21318
  cursorOffset += countEndOfLineChars(formatted.slice(0, cursorOffset), "\n");
21311
21319
  }
21312
21320
  formatted = string_replace_all_default(
21313
- /* isOptionalObject*/
21321
+ /* isOptionalObject */
21314
21322
  false,
21315
21323
  formatted,
21316
21324
  "\n",
@@ -22555,7 +22563,7 @@ var object_omit_default = omit;
22555
22563
  import * as doc from "./doc.mjs";
22556
22564
 
22557
22565
  // src/main/version.evaluate.cjs
22558
- var version_evaluate_default = "3.3.1";
22566
+ var version_evaluate_default = "3.3.2";
22559
22567
 
22560
22568
  // src/utils/public.js
22561
22569
  var public_exports = {};
@@ -22716,7 +22724,7 @@ function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
22716
22724
  const otherQuote = enclosingQuote === '"' ? "'" : '"';
22717
22725
  const regex = /\\(.)|(["'])/gs;
22718
22726
  const raw = string_replace_all_default(
22719
- /* isOptionalObject*/
22727
+ /* isOptionalObject */
22720
22728
  false,
22721
22729
  rawText,
22722
22730
  regex,
package/internal/cli.mjs CHANGED
@@ -1739,7 +1739,7 @@ var preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUp
1739
1739
  var preserveConsecutiveUppercase = (input, toLowerCase) => {
1740
1740
  LEADING_CAPITAL.lastIndex = 0;
1741
1741
  return string_replace_all_default(
1742
- /* isOptionalObject*/
1742
+ /* isOptionalObject */
1743
1743
  false,
1744
1744
  input,
1745
1745
  LEADING_CAPITAL,
@@ -1750,10 +1750,10 @@ var postProcess = (input, toUpperCase) => {
1750
1750
  SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
1751
1751
  NUMBERS_AND_IDENTIFIER.lastIndex = 0;
1752
1752
  return string_replace_all_default(
1753
- /* isOptionalObject*/
1753
+ /* isOptionalObject */
1754
1754
  false,
1755
1755
  string_replace_all_default(
1756
- /* isOptionalObject*/
1756
+ /* isOptionalObject */
1757
1757
  false,
1758
1758
  input,
1759
1759
  NUMBERS_AND_IDENTIFIER,
@@ -1862,7 +1862,7 @@ function isJson(value) {
1862
1862
  }
1863
1863
  }
1864
1864
  var normalizeToPosix = path.sep === "\\" ? (filepath) => string_replace_all_default(
1865
- /* isOptionalObject*/
1865
+ /* isOptionalObject */
1866
1866
  false,
1867
1867
  filepath,
1868
1868
  "\\",
@@ -2570,7 +2570,7 @@ var Context = class {
2570
2570
  popContextPlugins() {
2571
2571
  __privateGet(this, _stack).pop();
2572
2572
  Object.assign(this, at_default(
2573
- /* isOptionalObject*/
2573
+ /* isOptionalObject */
2574
2574
  false,
2575
2575
  __privateGet(this, _stack),
2576
2576
  -1
@@ -2786,14 +2786,14 @@ function sortPaths(paths) {
2786
2786
  }
2787
2787
  function escapePathForGlob(path10) {
2788
2788
  return string_replace_all_default(
2789
- /* isOptionalObject*/
2789
+ /* isOptionalObject */
2790
2790
  false,
2791
2791
  string_replace_all_default(
2792
- /* isOptionalObject*/
2792
+ /* isOptionalObject */
2793
2793
  false,
2794
2794
  fastGlob.escapePath(
2795
2795
  string_replace_all_default(
2796
- /* isOptionalObject*/
2796
+ /* isOptionalObject */
2797
2797
  false,
2798
2798
  path10,
2799
2799
  "\\",
@@ -3616,7 +3616,7 @@ function createLogger(logLevel = "log") {
3616
3616
  ...options
3617
3617
  };
3618
3618
  message = string_replace_all_default(
3619
- /* isOptionalObject*/
3619
+ /* isOptionalObject */
3620
3620
  false,
3621
3621
  message,
3622
3622
  /^/gm,
@@ -3685,7 +3685,7 @@ var CHOICE_USAGE_MARGIN = 3;
3685
3685
  var CHOICE_USAGE_INDENTATION = 2;
3686
3686
  function indent(str, spaces) {
3687
3687
  return string_replace_all_default(
3688
- /* isOptionalObject*/
3688
+ /* isOptionalObject */
3689
3689
  false,
3690
3690
  str,
3691
3691
  /^/gm,
@@ -3716,7 +3716,7 @@ function createOptionUsageRow(header, content, threshold) {
3716
3716
  const separator = header.length >= threshold ? `
3717
3717
  ${" ".repeat(threshold)}` : " ".repeat(threshold - header.length);
3718
3718
  const description = string_replace_all_default(
3719
- /* isOptionalObject*/
3719
+ /* isOptionalObject */
3720
3720
  false,
3721
3721
  content,
3722
3722
  "\n",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin/prettier.cjs",
6
6
  "repository": "prettier/prettier",