Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putout/engine-parser

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/engine-parser - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

5

lib/custom-parser.js

@@ -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);

3

lib/parse.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc