Socket
Socket
Sign inDemoInstall

ast-types

Package Overview
Dependencies
27
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.4 to 0.3.5

5

lib/scope.js

@@ -12,7 +12,10 @@ var assert = require("assert");

assert.ok(Scope.isEstablishedBy(node));
var depth;
if (parentScope) {
assert.ok(parentScope instanceof Scope);
depth = parentScope.depth + 1;
} else {
parentScope = null;
depth = 0;
}

@@ -23,2 +26,3 @@

isGlobal: { value: !parentScope, enumerable: true },
depth: { value: depth },
parent: { value: parentScope },

@@ -71,2 +75,3 @@ bindings: { value: {} }

// TODO What about CatchClause??
function scanScope(node, bindings) {

@@ -73,0 +78,0 @@ if (isArray.check(node)) {

2

package.json

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

],
"version": "0.3.4",
"version": "0.3.5",
"homepage": "http://github.com/benjamn/ast-types",

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

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