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.0.0 to 2.0.1

4

CHANGELOG.md
# abstract-syntax-tree changelog
## 2.0.1
* edit: remove nodes only if null is returned in the replace method
## 2.0.0

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

2

package.json
{
"name": "abstract-syntax-tree",
"version": "2.0.0",
"version": "2.0.1",
"description": "abstract syntax tree",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ const estraverse = require('estraverse')

return replacement
} else {
} else if (replacement === null) {
parent.body = parent.body.reduce((result, leaf) => {

@@ -14,0 +14,0 @@ return result.concat(node === leaf ? null : leaf)

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