putout 29.2.2 → 29.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 +17 -0
- package/lib/putout.js +9 -2
- package/package.json +3 -3
package/ChangeLog
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
2023.04.09, v29.2.4
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 0b24d68f2 @putout/processor-markdown: drop newline at eof of JSON
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- e8d1ada1f package: @putout/processor-markdown v9.0.0
|
|
8
|
+
- ef1a5a8ca @putout/processor-markdown: drop support of 🐊 < 29
|
|
9
|
+
- f732db953 package: @putout/processor-json v6.0.1
|
|
10
|
+
- 9a40166c7 @putout/processor-json: add newline at eof when missing
|
|
11
|
+
|
|
12
|
+
2023.04.07, v29.2.3
|
|
13
|
+
|
|
14
|
+
feature:
|
|
15
|
+
- c771cd99a package: @putout/processor-yaml v5.0.0
|
|
16
|
+
- 575f41e09 @putout/processor-yaml: drop support of 🐊 < 29
|
|
17
|
+
|
|
1
18
|
2023.04.07, v29.2.2
|
|
2
19
|
|
|
3
20
|
fix:
|
package/lib/putout.js
CHANGED
|
@@ -87,6 +87,15 @@ module.exports.findPlaces = (ast, source, opts) => {
|
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
// why we pass 'source' to 'transform()'?
|
|
91
|
+
// because we need to calcluate position in a right way
|
|
92
|
+
// and determine is shebang is exists
|
|
93
|
+
//
|
|
94
|
+
// 25 return {¬
|
|
95
|
+
// 26 line: shebang ? line + 1 : line,¬
|
|
96
|
+
// 27 column,¬
|
|
97
|
+
// 28 };¬
|
|
98
|
+
//
|
|
90
99
|
module.exports.transform = transform;
|
|
91
100
|
function transform(ast, source, opts) {
|
|
92
101
|
opts = defaultOpts(opts);
|
|
@@ -99,7 +108,6 @@ function transform(ast, source, opts) {
|
|
|
99
108
|
fixCount,
|
|
100
109
|
loadPlugins,
|
|
101
110
|
runPlugins,
|
|
102
|
-
recast = true,
|
|
103
111
|
} = opts;
|
|
104
112
|
|
|
105
113
|
const [, shebang] = cutShebang(source);
|
|
@@ -107,7 +115,6 @@ function transform(ast, source, opts) {
|
|
|
107
115
|
pluginNames,
|
|
108
116
|
cache,
|
|
109
117
|
rules,
|
|
110
|
-
recast,
|
|
111
118
|
});
|
|
112
119
|
|
|
113
120
|
const places = runPlugins({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "29.2.
|
|
3
|
+
"version": "29.2.4",
|
|
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",
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
"@putout/processor-ignore": "^4.0.0",
|
|
166
166
|
"@putout/processor-javascript": "^4.0.0",
|
|
167
167
|
"@putout/processor-json": "^6.0.0",
|
|
168
|
-
"@putout/processor-markdown": "^
|
|
169
|
-
"@putout/processor-yaml": "^
|
|
168
|
+
"@putout/processor-markdown": "^9.0.0",
|
|
169
|
+
"@putout/processor-yaml": "^5.0.0",
|
|
170
170
|
"@putout/traverse": "^5.0.0",
|
|
171
171
|
"ajv": "^8.8.2",
|
|
172
172
|
"chalk": "^4.0.0",
|