@putout/engine-parser 9.5.0 → 9.6.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.
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
const process = require('process');
|
|
4
4
|
const once = require('once');
|
|
5
5
|
|
|
6
|
-
// stricter validation to prevent even more invalid ASTs: not only
|
|
7
|
-
// from a tree shape point of view but also ensuring that nodes in
|
|
8
|
-
// the correct position carry valid information. For example, starting
|
|
9
|
-
// from Babel 8 t.identifier("123") will be disallowed, because 123 is
|
|
10
|
-
// not a valid identifier.
|
|
6
|
+
// stricter validation to prevent even more invalid ASTs: not only// from a tree shape point of view but also ensuring that nodes in// the correct position carry valid information. For example, starting// from Babel 8 t.identifier("123") will be disallowed, because 123 is// not a valid identifier.
|
|
11
7
|
process.env.BABEL_TYPES_8_BREAKING = true;
|
|
12
8
|
|
|
13
9
|
const plugins = require('./plugins');
|
|
@@ -17,9 +13,7 @@ const clean = (a) => a.filter(Boolean);
|
|
|
17
13
|
const initBabel = once(() => require('@putout/babel'));
|
|
18
14
|
const {assign} = Object;
|
|
19
15
|
|
|
20
|
-
// There is a difference in options naming for babel and recast
|
|
21
|
-
// recast -> sourceFileName
|
|
22
|
-
// babel, putout: sourceFilename
|
|
16
|
+
// There is a difference in options naming for babel and recast// recast -> sourceFileName// babel, putout: sourceFilename
|
|
23
17
|
module.exports.parse = function babelParse(source, {sourceFilename, isTS, isJSX = true, isFlow = getFlow(source)}) {
|
|
24
18
|
const {parse} = initBabel();
|
|
25
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-parser",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout parser",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@putout/babel": "^1.0.4",
|
|
37
|
-
"@putout/printer": "^
|
|
37
|
+
"@putout/printer": "^6.0.0",
|
|
38
38
|
"@putout/recast": "^1.12.1",
|
|
39
39
|
"estree-to-babel": "^8.0.0",
|
|
40
40
|
"nano-memoize": "^3.0.11",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"c8": "^8.0.0",
|
|
53
53
|
"eslint": "^8.0.1",
|
|
54
54
|
"eslint-plugin-n": "^16.0.0",
|
|
55
|
-
"eslint-plugin-putout": "^
|
|
55
|
+
"eslint-plugin-putout": "^21.0.0",
|
|
56
56
|
"espree": "^9.0.0",
|
|
57
57
|
"esprima": "^4.0.1",
|
|
58
|
-
"hermes-parser": "^0.
|
|
58
|
+
"hermes-parser": "^0.17.0",
|
|
59
59
|
"just-camel-case": "^4.0.2",
|
|
60
60
|
"lerna": "^6.0.1",
|
|
61
61
|
"madrun": "^9.0.0",
|