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

acorn-globals

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-globals - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

10

index.js

@@ -56,3 +56,3 @@ 'use strict';

}
}
};
var declarePattern = function (node, parent) {

@@ -83,7 +83,7 @@ switch (node.type) {

}
}
};
var declareModuleSpecifier = function (node, parents) {
ast.locals = ast.locals || {};
ast.locals[node.local.name] = true;
}
};
walk.ancestor(ast, {

@@ -144,3 +144,3 @@ 'VariableDeclaration': function (node, parents) {

}
node.parents = parents;
node.parents = parents.slice();
globals.push(node);

@@ -157,3 +157,3 @@ }

}
node.parents = parents;
node.parents = parents.slice();
globals.push(node);

@@ -160,0 +160,0 @@ }

{
"name": "acorn-globals",
"version": "4.1.0",
"version": "4.2.0",
"description": "Detect global variables in JavaScript using acorn",

@@ -5,0 +5,0 @@ "keywords": [

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