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

abstract-syntax-tree

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-syntax-tree - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

4

CHANGELOG.md
# abstract-syntax-tree changelog
## 2.5.0
* edit: change cherow to meriyah
## 2.3.0

@@ -4,0 +8,0 @@

16

package.json
{
"name": "abstract-syntax-tree",
"version": "2.4.0",
"version": "2.5.0",
"description": "abstract syntax tree",
"main": "index.js",
"scripts": {
"test": "ava \"test/*.js\"",
"test": "ava test/*.js",
"lint": "standard",
"benchmark": "ava 'test/benchmarks/*.js'",
"benchmark": "ava test/benchmarks/*.js",
"coverage": "nyc npm test",

@@ -36,11 +36,10 @@ "coverage:report": "nyc --reporter=text-lcov npm test > coverage.lcov && codecov"

"devDependencies": {
"ava": "^1.4.1",
"ava": "^2.4.0",
"benchmark": "^2.1.4",
"codecov": "^3.2.0",
"nyc": "^14.0.0",
"standard": "^12.0.1"
"codecov": "^3.6.1",
"nyc": "^14.1.1",
"standard": "^13.0.2"
},
"dependencies": {
"astring": "^1.3.0",
"cherow": "^1.6.9",
"comparify": "^0.2.0",

@@ -50,2 +49,3 @@ "esquery": "^1.0.1",

"estraverse": "^4.2.0",
"meriyah": "^1.9.1",
"source-map": "^0.7.2",

@@ -52,0 +52,0 @@ "to-ast": "^1.0.0"

@@ -55,3 +55,3 @@ # abstract-syntax-tree

The goal of this library is to consolidate common abstract syntax tree operations in one place. It uses a variety of libriaries under the hood based on their performance and flexibility, e.g. [cherow](https://github.com/cherow/cherow) for parsing and [astring](https://github.com/davidbonnet/astring) for source code generation.
The goal of this library is to consolidate common abstract syntax tree operations in one place. It uses a variety of libriaries under the hood based on their performance and flexibility, e.g. [meriyah](https://github.com/meriyah/meriyah) for parsing and [astring](https://github.com/davidbonnet/astring) for source code generation.

@@ -88,3 +88,3 @@ The library exposes a set of utility methods that can be useful for analysis or transformation of abstract syntax trees. It supports functional and object-oriented programming style.

The library uses [cherow](https://github.com/cherow/cherow) to create an [estree](https://github.com/estree/estree) compatible abstract syntax tree. All [cherow parsing options](https://github.com/cherow/cherow#options) can be passed to the parse method.
The library uses [meriyah](https://github.com/meriyah/meriyah) to create an [estree](https://github.com/estree/estree) compatible abstract syntax tree. All [meriyah parsing options](https://github.com/meriyah/meriyah#api) can be passed to the parse method.

@@ -91,0 +91,0 @@ ```js

@@ -9,3 +9,3 @@ const esquery = require('esquery')

}
let nodes = []
const nodes = []
traverse(tree, {

@@ -12,0 +12,0 @@ enter (node) {

@@ -1,5 +0,5 @@

const cherow = require('cherow')
const meriyah = require('meriyah')
module.exports = function parse (source, options) {
return cherow.parseModule(source, options)
return meriyah.parseModule(source, options)
}
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