@putout/printer 18.2.3 → 18.2.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.03.07, v18.2.4
2
+
3
+ fix:
4
+ - 61b7dec @putout/printer: ArrayExpression: array-inside-call: filesystem
5
+
1
6
  2026.03.07, v18.2.3
2
7
 
3
8
  fix:
@@ -13,6 +13,8 @@ import {
13
13
  isInsideArray,
14
14
  } from '#is';
15
15
 
16
+ const isZero = (path) => !path.node.elements.length;
17
+
16
18
  const isParentProperty = (path) => path.find(isObjectProperty);
17
19
 
18
20
  const isNumbersArray = createTypeChecker([
@@ -201,6 +203,7 @@ const isBodyWithOneElement = createTypeChecker([
201
203
  ]);
202
204
 
203
205
  export const isMultiLine = createTypeChecker([
206
+ ['-', isZero],
204
207
  ['+', isBodyWithOneElement],
205
208
  ['+', isMoreThenMaxElementLengthInOneLine],
206
209
  ['+', isElementsMoreThenMaxWithFirstString],
@@ -225,9 +228,9 @@ export const isMultiLine = createTypeChecker([
225
228
  ['-', isSimpleAndObject],
226
229
  ['-', isSiblingIsArray],
227
230
  ['-', isStringsInsideArray],
231
+ ['-', isNumbersArray],
228
232
  ['+', tooLong],
229
233
  ['+', isCoupleLines],
230
- ['-', isNumbersArray],
231
234
  ]);
232
235
 
233
236
  function isOneSimple(path) {
@@ -77,6 +77,5 @@ function createRawCode(currentType) {
77
77
  }
78
78
 
79
79
  return operator;
80
- }
80
+ }/* c8 ignore end */
81
81
 
82
- /* c8 ignore end */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.2.3",
3
+ "version": "18.2.4",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",