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

insert-module-globals

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insert-module-globals - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

7

index.js

@@ -123,5 +123,6 @@ var parseScope = require('lexical-scope');

var keys = Object.keys(globals);
return '(function(' + keys + '){' + src + '\n})('
+ keys.map(function (key) { return globals[key] }).join(',') + ')'
;
if (keys.length === 0) return src;
return 'var ' + keys.map(function (key) {
return key + '=' + globals[key];
}).join(',') + ';' + src;
}
{
"name": "insert-module-globals",
"version": "1.2.0",
"version": "1.2.1",
"description": "insert implicit module globals into a module-deps stream",

@@ -5,0 +5,0 @@ "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