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.10.1 to 1.11.0

12

lib/parse.js

@@ -5,6 +5,14 @@ 'use strict';

const toBabel = require('estree-to-babel');
const memo = require('nano-memoize');
const customParser = require('./custom-parser');
const memo = require('micro-memoize');
module.exports = memo((source, {parser, isTS, isFlow, isJSX} = {}) => {
module.exports = memo((source, options) => {
const {
parser,
isTS,
isFlow,
isJSX,
} = options || {};
const ast = recast.parse(source, {

@@ -11,0 +19,0 @@ parser: getParser({

2

lib/template.js
'use strict';
const template = require('@babel/template').default;
const memo = require('micro-memoize');
const memo = require('nano-memoize');

@@ -6,0 +6,0 @@ const plugins = require('./parsers/babel-plugins');

{
"name": "@putout/engine-parser",
"version": "1.10.1",
"version": "1.11.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -36,3 +36,3 @@ "description": "putout parser",

"estree-to-babel": "^2.1.0",
"micro-memoize": "^4.0.8",
"nano-memoize": "^1.1.8",
"once": "^1.4.0",

@@ -39,0 +39,0 @@ "recast": "^0.18.3"

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