@putout/engine-parser
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -9,4 +9,2 @@ 'use strict'; | ||
const isObject = (a) => typeof a === 'object'; | ||
module.exports = (source, {parser, isTS, isFlow, isJSX}) => { | ||
@@ -20,5 +18,2 @@ if (parser === 'babel') | ||
if (isObject(parser)) | ||
return parser.parse(source); | ||
if (parser === 'espree') | ||
@@ -25,0 +20,0 @@ return espree.parse(source); |
@@ -29,4 +29,3 @@ 'use strict'; | ||
module.exports.getParser = getParser; | ||
function getParser({parser = 'babel', isTS, isFlow, isJSX} = {}) { | ||
function getParser({parser = 'babel', isTS, isFlow, isJSX}) { | ||
return { | ||
@@ -33,0 +32,0 @@ parse(source) { |
{ | ||
"name": "@putout/engine-parser", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "putout parser", |
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
11377
251