putout 34.0.0 → 34.0.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/ChangeLog +62 -0
- package/lib/{loader.mjs → loader/loader.mjs} +9 -11
- package/lib/loader/register.mjs +3 -0
- package/lib/putout.mjs +0 -1
- package/package.json +19 -18
package/ChangeLog
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
2023.12.11, v34.0.2
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 8dc1419e7 putout: @putout/plugin-tape v13.0.0
|
|
5
|
+
- 08a6d22ed putout: loader: node v18 support
|
|
6
|
+
- 649f93cab @putout/plugin-tape: drop support of node < 18
|
|
7
|
+
- a9c79f088 @putout/plugin-tape: convert-equal-to-deep-equal: add support of Buffer.from
|
|
8
|
+
|
|
9
|
+
2023.12.10, v34.0.1
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- f7e47b98c @putout/plugin-filesystem: convert-simple-filesystem-to-filesystem: no root
|
|
13
|
+
- db826f521 root: supertape v9.0.0
|
|
14
|
+
- 5d701db17 @putout/engine-runner: @putout/plugin-filesystem v3.0.0
|
|
15
|
+
- c2565294b @putout/operator-match-files: @putout/operator-filesystem v3.0.0
|
|
16
|
+
- cb0f7c440 putout: @putout/processor-filesystem v3.0.0
|
|
17
|
+
- 7dce3aca7 @putout/processor-filesystem: drop support of node < 18
|
|
18
|
+
- ba8151007 @putout/processor-filesystem: @putout/operator-filesystem v3.0.0
|
|
19
|
+
- 18de89088 putout: @putout/plugin-filesystem v3.0.0
|
|
20
|
+
- 4000aefb7 @putout/plugin-filesystem: drop support of node < 18
|
|
21
|
+
- 503ddaa8e root: redlint v2.0.0
|
|
22
|
+
- 855e32271 putout: @putout/engine-processor v11.0.0
|
|
23
|
+
- c7cda4be7 @putout/engine-processor: @putout/engine-loader v13.0.0
|
|
24
|
+
- 4e59d193b @putout/engine-runner: @putout/operator-filesystem v3.0.0
|
|
25
|
+
- 2427fbc6c @putout/engine-runner: @putout/operator-declare v9.0.0
|
|
26
|
+
- 7a4b94335 @putout/processor-typescript: drop support of node < 18
|
|
27
|
+
- 452aab285 @putout/test v9
|
|
28
|
+
- 4974fa08f supertape v9
|
|
29
|
+
- 6ed9a72c7 @putout/processor-typescript: ts-morph v21.0.1
|
|
30
|
+
- 1bc93231f putout: @putout/traverse v10.0.0
|
|
31
|
+
- a53f71372 @putout/traverse: @putout/compare v14.0.0
|
|
32
|
+
- fada9498c putout: @putout/operator-add-args v8.0.0
|
|
33
|
+
- a3bc047c0 @putout/operator-add-args: @putout/engine-parser v10.0.2
|
|
34
|
+
- 79bd83024 @putout/operator-add-args: @putout/compare v14.0.0
|
|
35
|
+
- 119e1aea4 putout: @putout/operator-declare v9.0.0
|
|
36
|
+
- aae106ce5 @putout/operator-declare: @putout/compare v14.0.0
|
|
37
|
+
- 531cd0ee0 @putout/operator-declare: @putout/engine-parser v10.0.2
|
|
38
|
+
- 895195844 putout: @putout/operator-filesystem v3.0.0
|
|
39
|
+
- 749eccec5 @putout/operator-filesystem: drop supprot of node < 18
|
|
40
|
+
- a44a2b2e7 @putout/operator-filesystem: @putout/engine-parser v10.0.2
|
|
41
|
+
- d2a858a81 putout: @putout/operator-match-files v2.0.0
|
|
42
|
+
- d228ab9f6 @putout/operator-match-files: drop support of node < 18
|
|
43
|
+
- 01c9f1bb0 @putout/operator-match-files: @putout/engine-parser v10.0.2
|
|
44
|
+
- 690d79b59 root: eslint-plugin-putout v22.0.0
|
|
45
|
+
- f6e174fa8 @putout/engine-parser: @putout/printer v7.0.0
|
|
46
|
+
- b7dc22537 eslint-plugin-putout: @putout/engine-parser v10.0.0
|
|
47
|
+
- 7e5e6484f eslint-plugin-putout: drop support of node < 18
|
|
48
|
+
- 289484295 putout: @putout/engine-runner v20.0.1
|
|
49
|
+
- b07ce3330 @putout/engine-runner: @putout/compare v14.0.0
|
|
50
|
+
- 8fc516c98 @putout/engine-runner: drop support of node < 18
|
|
51
|
+
- 70c64d288 @putout/engine-runner: @putout/engine-parser v10.0.0
|
|
52
|
+
- db59abcee putout: @putout/engine-loader v13.0.0
|
|
53
|
+
- 250d4065f @putout/engine-loader: @putout/engine-parser v10.0.0
|
|
54
|
+
- 6cc48341a @putout/engine-loader: drop support of node < 18
|
|
55
|
+
- 0b137fc45 putout: @putout/compare v14.0.0
|
|
56
|
+
- bf7c384be putout: @putout/engine-parser v10.0.0
|
|
57
|
+
- a660029ee @putout/compare: @putout/engine-parser v10.0.0
|
|
58
|
+
- dc4e2e959 @putout/compare: drop support of node < 18
|
|
59
|
+
- 9b9eb15e9 @putout/engine-parser: drop support of node < 18
|
|
60
|
+
- 1a8c94d7f @putout/engine-parser: @putout/printer v6.17.0
|
|
61
|
+
- 01159751b root: madrun v10.0.0
|
|
62
|
+
|
|
1
63
|
2023.12.09, v34.0.0
|
|
2
64
|
|
|
3
65
|
fix:
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
-
import {putoutAsync} from '
|
|
3
|
-
import ignores from '
|
|
4
|
-
import parseOptions from '
|
|
2
|
+
import {putoutAsync} from '../putout.js';
|
|
3
|
+
import ignores from '../ignores.js';
|
|
4
|
+
import parseOptions from '../parse-options/index.js';
|
|
5
5
|
|
|
6
6
|
const cwd = process.cwd();
|
|
7
7
|
|
|
8
|
-
const toLoad = (transformSource) => async (url, context,
|
|
9
|
-
const {source: rawSource} = await
|
|
8
|
+
const toLoad = (transformSource) => async (url, context, nextLoad) => {
|
|
9
|
+
const {format, source: rawSource} = await nextLoad(url, context);
|
|
10
10
|
|
|
11
|
-
if (
|
|
12
|
-
return
|
|
13
|
-
format: 'commonjs',
|
|
14
|
-
};
|
|
11
|
+
if (format !== 'module')
|
|
12
|
+
return nextLoad(url);
|
|
15
13
|
|
|
16
14
|
const {source} = await transformSource(rawSource, {
|
|
17
15
|
url,
|
|
18
16
|
});
|
|
19
17
|
|
|
20
18
|
return {
|
|
21
|
-
source,
|
|
22
19
|
format: 'module',
|
|
20
|
+
source,
|
|
23
21
|
};
|
|
24
22
|
};
|
|
25
23
|
|
|
@@ -42,7 +40,7 @@ export const transformSource = async (source, context) => {
|
|
|
42
40
|
});
|
|
43
41
|
|
|
44
42
|
return {
|
|
45
|
-
source: code,
|
|
43
|
+
source: Buffer.from(code),
|
|
46
44
|
};
|
|
47
45
|
};
|
|
48
46
|
|
package/lib/putout.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.2",
|
|
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",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"./package.json": "./package.json",
|
|
22
22
|
"./lint/json": "./lib/lint/json.mjs",
|
|
23
23
|
"./transform": "./lib/transform.js",
|
|
24
|
-
"./find-places": "./lib/find-places.js"
|
|
24
|
+
"./find-places": "./lib/find-places.js",
|
|
25
|
+
"./register": "./lib/loader/register.mjs"
|
|
25
26
|
},
|
|
26
27
|
"bin": {
|
|
27
28
|
"putout": "bin/putout.mjs"
|
|
@@ -54,11 +55,11 @@
|
|
|
54
55
|
"@putout/cli-ruler": "^3.0.0",
|
|
55
56
|
"@putout/cli-staged": "^1.0.0",
|
|
56
57
|
"@putout/cli-validate-args": "^1.0.0",
|
|
57
|
-
"@putout/compare": "^
|
|
58
|
-
"@putout/engine-loader": "^
|
|
59
|
-
"@putout/engine-parser": "^
|
|
60
|
-
"@putout/engine-processor": "^
|
|
61
|
-
"@putout/engine-runner": "^
|
|
58
|
+
"@putout/compare": "^14.0.0",
|
|
59
|
+
"@putout/engine-loader": "^13.0.0",
|
|
60
|
+
"@putout/engine-parser": "^10.0.0",
|
|
61
|
+
"@putout/engine-processor": "^11.0.0",
|
|
62
|
+
"@putout/engine-runner": "^20.0.1",
|
|
62
63
|
"@putout/eslint": "^2.0.0",
|
|
63
64
|
"@putout/formatter-codeframe": "^5.0.0",
|
|
64
65
|
"@putout/formatter-dump": "^4.0.0",
|
|
@@ -71,11 +72,11 @@
|
|
|
71
72
|
"@putout/formatter-stream": "^4.0.0",
|
|
72
73
|
"@putout/formatter-time": "^1.0.1",
|
|
73
74
|
"@putout/operate": "^11.0.0",
|
|
74
|
-
"@putout/operator-add-args": "^
|
|
75
|
-
"@putout/operator-declare": "^
|
|
76
|
-
"@putout/operator-filesystem": "^
|
|
75
|
+
"@putout/operator-add-args": "^8.0.0",
|
|
76
|
+
"@putout/operator-declare": "^9.0.0",
|
|
77
|
+
"@putout/operator-filesystem": "^3.0.0",
|
|
77
78
|
"@putout/operator-json": "^1.0.1",
|
|
78
|
-
"@putout/operator-match-files": "^
|
|
79
|
+
"@putout/operator-match-files": "^2.0.0",
|
|
79
80
|
"@putout/operator-regexp": "^1.0.0",
|
|
80
81
|
"@putout/plugin-apply-at": "^2.0.0",
|
|
81
82
|
"@putout/plugin-apply-destructuring": "^7.0.0",
|
|
@@ -107,7 +108,7 @@
|
|
|
107
108
|
"@putout/plugin-eslint": "^6.0.0",
|
|
108
109
|
"@putout/plugin-extract-object-properties": "^9.0.0",
|
|
109
110
|
"@putout/plugin-extract-sequence-expressions": "^3.0.0",
|
|
110
|
-
"@putout/plugin-filesystem": "^
|
|
111
|
+
"@putout/plugin-filesystem": "^3.0.0",
|
|
111
112
|
"@putout/plugin-for-of": "^3.0.0",
|
|
112
113
|
"@putout/plugin-github": "^11.0.0",
|
|
113
114
|
"@putout/plugin-gitignore": "^4.0.0",
|
|
@@ -162,19 +163,19 @@
|
|
|
162
163
|
"@putout/plugin-simplify-ternary": "^6.0.0",
|
|
163
164
|
"@putout/plugin-split-nested-destructuring": "^3.0.0",
|
|
164
165
|
"@putout/plugin-split-variable-declarations": "^3.0.0",
|
|
165
|
-
"@putout/plugin-tape": "^
|
|
166
|
+
"@putout/plugin-tape": "^13.0.0",
|
|
166
167
|
"@putout/plugin-try-catch": "^3.0.0",
|
|
167
168
|
"@putout/plugin-types": "^3.0.0",
|
|
168
169
|
"@putout/plugin-typescript": "^5.0.0",
|
|
169
170
|
"@putout/plugin-webpack": "^3.0.0",
|
|
170
171
|
"@putout/processor-css": "^8.0.0",
|
|
171
|
-
"@putout/processor-filesystem": "^
|
|
172
|
+
"@putout/processor-filesystem": "^3.0.0",
|
|
172
173
|
"@putout/processor-ignore": "^5.0.0",
|
|
173
174
|
"@putout/processor-javascript": "^5.0.0",
|
|
174
175
|
"@putout/processor-json": "^8.0.0",
|
|
175
176
|
"@putout/processor-markdown": "^11.0.0",
|
|
176
177
|
"@putout/processor-yaml": "^7.0.0",
|
|
177
|
-
"@putout/traverse": "^
|
|
178
|
+
"@putout/traverse": "^10.0.0",
|
|
178
179
|
"ajv": "^8.8.2",
|
|
179
180
|
"chalk": "^4.0.0",
|
|
180
181
|
"ci-info": "^4.0.0",
|
|
@@ -212,16 +213,16 @@
|
|
|
212
213
|
"currify": "^4.0.0",
|
|
213
214
|
"eslint": "^8.0.1",
|
|
214
215
|
"eslint-plugin-n": "^16.0.0",
|
|
215
|
-
"eslint-plugin-putout": "^
|
|
216
|
+
"eslint-plugin-putout": "^22.0.0",
|
|
216
217
|
"just-camel-case": "^4.0.2",
|
|
217
218
|
"lerna": "^6.0.1",
|
|
218
|
-
"madrun": "^
|
|
219
|
+
"madrun": "^10.0.0",
|
|
219
220
|
"mock-require": "^3.0.2",
|
|
220
221
|
"montag": "^1.2.1",
|
|
221
222
|
"nodemon": "^3.0.1",
|
|
222
223
|
"pullout": "^4.0.0",
|
|
223
224
|
"strip-ansi": "^7.0.0",
|
|
224
|
-
"supertape": "^
|
|
225
|
+
"supertape": "^9.0.0"
|
|
225
226
|
},
|
|
226
227
|
"license": "MIT",
|
|
227
228
|
"engines": {
|