@putout/engine-parser
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -9,2 +9,4 @@ 'use strict'; | ||
const isObject = (a) => typeof a === 'object'; | ||
module.exports = (source, {parser, isTS, isFlow, isJSX}) => { | ||
@@ -18,2 +20,5 @@ if (parser === 'babel') | ||
if (isObject(parser)) | ||
return parser.parse(source); | ||
if (parser === 'espree') | ||
@@ -20,0 +25,0 @@ return espree.parse(source); |
{ | ||
"name": "@putout/engine-parser", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -46,2 +46,3 @@ "description": "putout parser", | ||
"@babel/types": "^7.6.3", | ||
"@cloudcmd/stub": "^2.3.4", | ||
"@putout/test": "^1.1.1", | ||
@@ -48,0 +49,0 @@ "acorn": "https://github.com/coderaiser/acorn/archive/7.1.0.tar.gz", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11525
254
22