New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hqjs/babel-plugin-expose-global-to-window

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hqjs/babel-plugin-expose-global-to-window - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

@@ -49,3 +49,3 @@ const moduleVisitor = isModule => ({

const { id } = nodePath.node;
const binding = programPath.scope.bindings[id.name];
const binding = id && programPath.scope.bindings[id.name];
if (isModule.value || !binding || binding.path !== nodePath) return;

@@ -52,0 +52,0 @@ programPath.node.body.push(assignToWindow(t, id));

{
"name": "@hqjs/babel-plugin-expose-global-to-window",
"version": "0.0.1",
"version": "0.0.2",
"description": "Explicitly expose global variables and functions to window in non module script",

@@ -31,2 +31,2 @@ "main": "index.js",

}
}
}
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