Socket
Socket
Sign inDemoInstall

acorn-globals

Package Overview
Dependencies
2
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.0.1-canary-4

3

index.js

@@ -10,3 +10,4 @@ 'use strict';

function isBlockScope(node) {
return node.type === 'BlockStatement' || isScope(node);
// The body of switch statement is a block.
return node.type === 'BlockStatement' || node.type === 'SwitchStatement' || isScope(node);
}

@@ -13,0 +14,0 @@

{
"name": "acorn-globals",
"version": "7.0.0",
"version": "7.0.1-canary-4",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc