New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

abstract-syntax-tree

Package Overview
Dependencies
Maintainers
2
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.9.5 to 2.10.0

src/transform/toBinaryExpression.js

2

index.js

@@ -199,2 +199,4 @@ const find = require('./src/find')

AbstractSyntaxTree.toBinaryExpression = require('./src/transform/toBinaryExpression')
module.exports = AbstractSyntaxTree

2

package.json
{
"name": "abstract-syntax-tree",
"version": "2.9.5",
"version": "2.10.0",
"description": "abstract syntax tree",

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

@@ -444,2 +444,19 @@ # abstract-syntax-tree

## Transformations
#### toBinaryExpression
```js
const { toBinaryExpression } = require('abstract-syntax-tree')
const expression = {
type: 'ArrayExpression',
elements: [
{ type: 'Literal', value: 'foo' },
{ type: 'Literal', value: 'bar' },
{ type: 'Literal', value: 'baz' }
]
}
console.log(toBinaryExpression(expression)) // { type: 'BinaryExpression', ... }
```
## Optimizations

@@ -446,0 +463,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