@putout/engine-parser 4.6.0 → 4.7.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.
Files changed (2) hide show
  1. package/README.md +6 -7
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,10 +1,7 @@
1
- # @putout/engine-parser [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]
1
+ # @putout/engine-parser [![NPM version][NPMIMGURL]][NPMURL]
2
2
 
3
- [NPMIMGURL]: https://img.shields.io/npm/v/@putout/engine-parser.svg?style=flat&longCache=true
4
- [NPMURL]: https://npmjs.org/package/@putout/engine-parser"npm"
5
-
6
- [DependencyStatusURL]: https://david-dm.org/coderaiser/putout?path=packages/engine-parser
7
- [DependencyStatusIMGURL]: https://david-dm.org/coderaiser/putout.svg?path=packages/engine-parser
3
+ [NPMIMGURL]: https://img.shields.io/npm/v/@putout/engine-parser.svg?style=flat&longCache=true
4
+ [NPMURL]: https://npmjs.org/package/@putout/engine-parser"npm"
8
5
 
9
6
  `putout` engine that parses input.
10
7
 
@@ -15,6 +12,7 @@ npm i @putout/engine-parser
15
12
  ```
16
13
 
17
14
  ## Supported parsers
15
+
18
16
  - [@babel/parse](https://babeljs.io/docs/en/babel-parser)
19
17
  - [acorn](https://github.com/acornjs/acorn)
20
18
  - [espree](https://github.com/eslint/espree)
@@ -38,9 +36,11 @@ You can add `default options` for custom `parser` you use.
38
36
  `parse` without `memoization`.
39
37
 
40
38
  ### parse.ast(template)
39
+
41
40
  create node using `memoization`.
42
41
 
43
42
  ### parse.ast.fresh(template)
43
+
44
44
  create node without `memoization`.
45
45
 
46
46
  ## Example
@@ -57,4 +57,3 @@ const code = parse('var t = "hello"', {
57
57
  ## License
58
58
 
59
59
  MIT
60
-
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@putout/engine-parser",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "putout parser",
6
- "homepage": "http://github.com/coderaiser/putout",
6
+ "homepage": "https://github.com/coderaiser/putout/tree/master/packages/engine-parser",
7
7
  "main": "./lib/parser.js",
8
8
  "release": false,
9
9
  "tag": false,
10
10
  "changelog": false,
11
11
  "exports": {
12
12
  ".": "./lib/parser.js",
13
+ "./babel": "./lib/parsers/babel/index.js",
13
14
  "./babel/options": "./lib/parsers/babel/options.js"
14
15
  },
15
16
  "repository": {