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

ast-types

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-types - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

9

lib/scope.js

@@ -6,2 +6,3 @@ var assert = require("assert");

var Node = namedTypes.Node;
var Expression = namedTypes.Expression;
var isArray = types.builtInTypes.array;

@@ -172,3 +173,3 @@ var hasOwn = Object.prototype.hasOwnProperty;

} else if (Node.check(node)) {
} else if (Node.check(node) && !Expression.check(node)) {
types.eachField(node, function(name, child) {

@@ -185,4 +186,4 @@ var childPath = path.get(name);

if (!node) {
// None of the remaining cases matter if node is falsy.
if (!node || Expression.check(node)) {
// Ignore falsy values and Expressions.

@@ -196,3 +197,3 @@ } else if (namedTypes.FunctionDeclaration.check(node)) {

} else if (Scope.isEstablishedBy(node)) {
} else if (ScopeType.check(node)) {
if (namedTypes.CatchClause.check(node)) {

@@ -199,0 +200,0 @@ var catchParamName = node.param.name;

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

],
"version": "0.6.2",
"version": "0.6.3",
"homepage": "http://github.com/benjamn/ast-types",

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

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