@putout/engine-parser 14.1.0 → 14.2.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/README.md CHANGED
@@ -47,7 +47,7 @@ const code = print(ast, {
47
47
 
48
48
  print(ast, {
49
49
  printer: ['babel', {
50
- alginSpaces: false, // when you don't want to add spaces on empty lines
50
+ alignSpaces: false, // when you don't want to add spaces on empty lines
51
51
  }],
52
52
  });
53
53
  ```
@@ -23,7 +23,6 @@ module.exports.parse = function babelParse(source, overrides) {
23
23
  const parserOptions = {
24
24
  sourceFileName,
25
25
  sourceType: 'module',
26
- tokens: true,
27
26
  ...options,
28
27
  errorRecovery: isRecovery,
29
28
  plugins: clean([
@@ -39,6 +38,7 @@ module.exports.parse = function babelParse(source, overrides) {
39
38
  if (printer === 'babel')
40
39
  assign(parserOptions, {
41
40
  createParenthesizedExpressions: true,
41
+ tokens: true,
42
42
  });
43
43
 
44
44
  const ast = parse(source, parserOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-parser",
3
- "version": "14.1.0",
3
+ "version": "14.2.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout parser",
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-putout": "^28.0.0",
57
57
  "espree": "^10.0.0",
58
58
  "esprima": "^4.0.1",
59
- "hermes-parser": "^0.31.0",
59
+ "hermes-parser": "^0.32.0",
60
60
  "just-camel-case": "^6.2.0",
61
61
  "madrun": "^11.0.0",
62
62
  "mock-require": "^3.0.3",