putout 38.0.8 → 38.0.10
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 +23 -0
- package/lib/putout.js +1 -8
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
2025.02.09, v38.0.10
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- d8372b25d putout: @putout/processor-css v10.0.0
|
|
5
|
+
- 4088078e4 @putout/processor-css: drop support of 🐊 < 38
|
|
6
|
+
- 1ecef2753 @putout/processor-css: align-spaces v2.0.0
|
|
7
|
+
- 96f8b560e @putout/engine-parser: align-spaces v2.0.0
|
|
8
|
+
- 751e23450 eslint-plugin-putout: align-spaces v2.0.0
|
|
9
|
+
- 9cf373e4b @putout/engine-parser: printer: babel: trim spaces (babel/babel#17121)
|
|
10
|
+
- c30554998 @putout/engine-parser: printer: babel: align spaces by default (babel/babel#17120)
|
|
11
|
+
- 970f80ba1 putout: printer: babel
|
|
12
|
+
- 1de78eb14 @putout/engine-parser: print: improve support of babel
|
|
13
|
+
|
|
14
|
+
2025.02.08, v38.0.9
|
|
15
|
+
|
|
16
|
+
fix:
|
|
17
|
+
- a5caadeb0 putout: get rid of sourceFileName
|
|
18
|
+
- 917e3cb49 @putout/operator-declare: rm unused check
|
|
19
|
+
|
|
20
|
+
feature:
|
|
21
|
+
- 49ca79f58 @putout/operator-declare: rm unused check
|
|
22
|
+
- 7e1a59001 @putout/compare: @putout/operate v13.0.0
|
|
23
|
+
|
|
1
24
|
2025.02.06, v38.0.8
|
|
2
25
|
|
|
3
26
|
feature:
|
package/lib/putout.js
CHANGED
|
@@ -30,15 +30,12 @@ function putout(source, opts) {
|
|
|
30
30
|
parser,
|
|
31
31
|
isTS,
|
|
32
32
|
isJSX,
|
|
33
|
-
sourceFileName,
|
|
34
|
-
sourceMapName,
|
|
35
33
|
printer,
|
|
36
34
|
} = opts;
|
|
37
35
|
|
|
38
36
|
const [clearSource, shebang] = cutShebang(source);
|
|
39
37
|
|
|
40
38
|
const ast = parse(clearSource, {
|
|
41
|
-
sourceFileName,
|
|
42
39
|
parser,
|
|
43
40
|
isTS,
|
|
44
41
|
isJSX,
|
|
@@ -54,8 +51,8 @@ function putout(source, opts) {
|
|
|
54
51
|
};
|
|
55
52
|
|
|
56
53
|
const printed = print(ast, {
|
|
57
|
-
sourceMapName,
|
|
58
54
|
printer,
|
|
55
|
+
source,
|
|
59
56
|
});
|
|
60
57
|
|
|
61
58
|
const code = mergeShebang(shebang, printed);
|
|
@@ -74,15 +71,12 @@ module.exports.putoutAsync = async (source, opts) => {
|
|
|
74
71
|
parser,
|
|
75
72
|
isTS,
|
|
76
73
|
isJSX,
|
|
77
|
-
sourceFileName,
|
|
78
|
-
sourceMapName,
|
|
79
74
|
printer,
|
|
80
75
|
} = opts;
|
|
81
76
|
|
|
82
77
|
const [clearSource, shebang] = cutShebang(source);
|
|
83
78
|
|
|
84
79
|
const ast = parse(clearSource, {
|
|
85
|
-
sourceFileName,
|
|
86
80
|
parser,
|
|
87
81
|
isTS,
|
|
88
82
|
isJSX,
|
|
@@ -98,7 +92,6 @@ module.exports.putoutAsync = async (source, opts) => {
|
|
|
98
92
|
};
|
|
99
93
|
|
|
100
94
|
const printed = print(ast, {
|
|
101
|
-
sourceMapName,
|
|
102
95
|
printer,
|
|
103
96
|
});
|
|
104
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.10",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"@putout/plugin-types": "^6.0.0",
|
|
189
189
|
"@putout/plugin-typescript": "^10.0.0",
|
|
190
190
|
"@putout/plugin-webpack": "^3.0.0",
|
|
191
|
-
"@putout/processor-css": "^
|
|
191
|
+
"@putout/processor-css": "^10.0.0",
|
|
192
192
|
"@putout/processor-filesystem": "^5.0.0",
|
|
193
193
|
"@putout/processor-ignore": "^6.0.0",
|
|
194
194
|
"@putout/processor-javascript": "^5.0.0",
|