@putout/printer 18.49.3 → 18.50.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/ChangeLog
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
2026.11.14, v18.50.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- f509fd69 @putout/printer: CallExpression: member callee not first argument
|
|
5
|
+
|
|
6
|
+
2026.11.11, v18.50.0
|
|
7
|
+
|
|
8
|
+
feature:
|
|
9
|
+
- b1b2f37b @putout/printer: type-checker: !=
|
|
10
|
+
- 7599dd31 @putout/printer: @putout/plugin-printer v9.0.0
|
|
11
|
+
|
|
1
12
|
2026.11.09, v18.49.3
|
|
2
13
|
|
|
3
14
|
feature:
|
|
@@ -42,10 +42,10 @@ const isMemberCallee = createTypeChecker([
|
|
|
42
42
|
'+: node.callee.object -> CallExpression',
|
|
43
43
|
]);
|
|
44
44
|
|
|
45
|
-
const
|
|
45
|
+
const callWithSomeArg = (fn) => (path) => parseArgs(path).some(fn);
|
|
46
46
|
|
|
47
47
|
const isMultiline = createTypeChecker([
|
|
48
|
-
['+',
|
|
48
|
+
['+', callWithSomeArg(isMemberCallee)],
|
|
49
49
|
['-: -> !', tooLong],
|
|
50
50
|
['+', isInsideCall],
|
|
51
51
|
]);
|
|
@@ -58,6 +58,7 @@ const createValueParser = (fn) => (a) => (b, ...c) => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
const equal = createValueParser((a, b) => b === a);
|
|
61
|
+
const notEqual = createValueParser((a, b) => b !== a);
|
|
61
62
|
const more = createValueParser((a, b) => b > a);
|
|
62
63
|
const less = createValueParser((a, b) => b < a);
|
|
63
64
|
const moreOrEqual = createValueParser((a, b) => b >= a);
|
|
@@ -65,6 +66,7 @@ const lessOrEqual = createValueParser((a, b) => b <= a);
|
|
|
65
66
|
|
|
66
67
|
const CMP = {
|
|
67
68
|
'=': equal,
|
|
69
|
+
'!=': notEqual,
|
|
68
70
|
'>': more,
|
|
69
71
|
'<': less,
|
|
70
72
|
'>=': moreOrEqual,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/printer",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.50.1",
|
|
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",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@putout/operator-filesystem": "^11.2.1",
|
|
85
85
|
"@putout/operator-match-files": "^12.4.1",
|
|
86
86
|
"@putout/plugin-minify": "^12.0.0",
|
|
87
|
-
"@putout/plugin-printer": "^
|
|
87
|
+
"@putout/plugin-printer": "^9.0.0",
|
|
88
88
|
"@putout/plugin-promises": "^20.0.0",
|
|
89
89
|
"@putout/plugin-react-hook-form": "^6.0.0",
|
|
90
90
|
"@putout/plugin-react-hooks": "^9.0.0",
|