@putout/engine-parser 5.1.1 → 5.3.0
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/lib/parsers/babel/index.js +5 -6
- package/lib/parsers/babel/plugins.js +1 -3
- package/lib/template.js +1 -0
- package/package.json +11 -10
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const {assign} = Object;
|
|
4
|
-
|
|
5
3
|
const once = require('once');
|
|
6
4
|
|
|
7
5
|
// stricter validation to prevent even more invalid ASTs: not only
|
|
@@ -11,15 +9,16 @@ const once = require('once');
|
|
|
11
9
|
// not a valid identifier.
|
|
12
10
|
process.env.BABEL_TYPES_8_BREAKING = true;
|
|
13
11
|
|
|
14
|
-
const initBabel = once(() => require('@babel/parser'));
|
|
15
|
-
const clean = (a) => a.filter(Boolean);
|
|
16
|
-
const getFlow = (a) => a.includes('// @flow');
|
|
17
|
-
|
|
18
12
|
const plugins = require('./plugins');
|
|
19
13
|
const options = require('./options');
|
|
20
14
|
|
|
21
15
|
const moveOutDirectives = require('./move-out-directives');
|
|
22
16
|
|
|
17
|
+
const getFlow = (a) => a.includes('// @flow');
|
|
18
|
+
const clean = (a) => a.filter(Boolean);
|
|
19
|
+
const initBabel = once(() => require('@babel/parser'));
|
|
20
|
+
const {assign} = Object;
|
|
21
|
+
|
|
23
22
|
// There is a difference in options naming for babel and recast
|
|
24
23
|
// recast -> sourceFileName
|
|
25
24
|
// babel, putout: sourceFilename
|
package/lib/template.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-parser",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout parser",
|
|
7
7
|
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/engine-parser#readme",
|
|
8
8
|
"main": "./lib/parser.js",
|
|
9
|
+
"commitType": "colon",
|
|
9
10
|
"release": false,
|
|
10
11
|
"tag": false,
|
|
11
12
|
"changelog": false,
|
|
@@ -33,10 +34,10 @@
|
|
|
33
34
|
"report": "madrun report"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@babel/generator": "^7.
|
|
37
|
-
"@babel/parser": "^7.
|
|
38
|
-
"@babel/template": "^7.10
|
|
39
|
-
"@babel/types": "^7.
|
|
37
|
+
"@babel/generator": "^7.19.0",
|
|
38
|
+
"@babel/parser": "^7.19.0",
|
|
39
|
+
"@babel/template": "^7.18.10",
|
|
40
|
+
"@babel/types": "^7.19.0",
|
|
40
41
|
"@putout/recast": "^1.1.0",
|
|
41
42
|
"estree-to-babel": "^5.0.0",
|
|
42
43
|
"nano-memoize": "^1.1.8",
|
|
@@ -53,18 +54,18 @@
|
|
|
53
54
|
"acorn-stage3": "^4.0.0",
|
|
54
55
|
"c8": "^7.5.0",
|
|
55
56
|
"eslint": "^8.0.1",
|
|
56
|
-
"eslint-plugin-
|
|
57
|
-
"eslint-plugin-putout": "^
|
|
57
|
+
"eslint-plugin-n": "^15.2.4",
|
|
58
|
+
"eslint-plugin-putout": "^16.0.0",
|
|
58
59
|
"espree": "^9.0.0",
|
|
59
60
|
"esprima": "^4.0.1",
|
|
60
|
-
"hermes-parser": "^0.
|
|
61
|
+
"hermes-parser": "^0.9.0",
|
|
61
62
|
"just-camel-case": "^4.0.2",
|
|
62
|
-
"lerna": "^
|
|
63
|
+
"lerna": "^6.0.1",
|
|
63
64
|
"madrun": "^9.0.0",
|
|
64
65
|
"montag": "^1.0.0",
|
|
65
66
|
"nodemon": "^2.0.1",
|
|
66
67
|
"putout": "*",
|
|
67
|
-
"supertape": "^
|
|
68
|
+
"supertape": "^8.0.0",
|
|
68
69
|
"tenko": "^2.0.0"
|
|
69
70
|
},
|
|
70
71
|
"license": "MIT",
|