abstract-syntax-tree
Advanced tools
Comparing version 2.0.0 to 2.0.1
# 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 @@ |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19621
0