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 5.1.1 to 5.2.0

11

lib/parsers/babel/index.js
'use strict';
const {assign} = Object;
const once = require('once');

@@ -14,6 +12,2 @@

const initBabel = once(() => require('@babel/parser'));
const clean = (a) => a.filter(Boolean);
const getFlow = (a) => a.includes('// @flow');
const plugins = require('./plugins');

@@ -24,2 +18,7 @@ const options = require('./options');

const getFlow = (a) => a.includes('// @flow');
const clean = (a) => a.filter(Boolean);
const initBabel = once(() => require('@babel/parser'));
const {assign} = Object;
// There is a difference in options naming for babel and recast

@@ -26,0 +25,0 @@ // recast -> sourceFileName

@@ -16,6 +16,4 @@ 'use strict';

'throwExpressions',
['recordAndTuple', {
syntaxType: 'hash',
}],
'recordAndTuple',
];
{
"name": "@putout/engine-parser",
"version": "5.1.1",
"version": "5.2.0",
"type": "commonjs",

@@ -9,2 +9,3 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

"main": "./lib/parser.js",
"commitType": "colon",
"release": false,

@@ -37,6 +38,6 @@ "tag": false,

"dependencies": {
"@babel/generator": "^7.12.5",
"@babel/parser": "^7.15.0",
"@babel/template": "^7.10.4",
"@babel/types": "^7.12.6",
"@babel/generator": "^7.19.0",
"@babel/parser": "^7.19.0",
"@babel/template": "^7.18.10",
"@babel/types": "^7.19.0",
"@putout/recast": "^1.1.0",

@@ -58,9 +59,9 @@ "estree-to-babel": "^5.0.0",

"eslint": "^8.0.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-putout": "^15.0.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-putout": "^16.0.0",
"espree": "^9.0.0",
"esprima": "^4.0.1",
"hermes-parser": "^0.6.0",
"hermes-parser": "^0.9.0",
"just-camel-case": "^4.0.2",
"lerna": "^4.0.0",
"lerna": "^5.0.0",
"madrun": "^9.0.0",

@@ -67,0 +68,0 @@ "montag": "^1.0.0",

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