Socket
Socket
Sign inDemoInstall

ast-types

Package Overview
Dependencies
1
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.23 to 0.3.24

3

lib/node-path.js

@@ -165,3 +165,4 @@ var assert = require("assert");

|| n.Property.check(parent)
|| n.ConditionalExpression.check(parent);
|| n.ConditionalExpression.check(parent)
|| n.AssignmentExpression.check(parent);

@@ -168,0 +169,0 @@ if (n.YieldExpression.check(node))

@@ -21,3 +21,3 @@ {

],
"version": "0.3.23",
"version": "0.3.24",
"homepage": "http://github.com/benjamn/ast-types",

@@ -24,0 +24,0 @@ "repository": {

@@ -482,2 +482,11 @@ var assert = require("assert");

assert.ok(byPath.get("expression", "right").needsParens());
var sequenceAssignmentAST = b.assignmentExpression(
'=',
b.identifier('a'),
b.sequenceExpression([b.literal(1), b.literal(2)])
);
var sequenceAssignmentPath = new NodePath(sequenceAssignmentAST);
assert.ok(sequenceAssignmentPath.get("right").needsParens());
});

@@ -484,0 +493,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc