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

insert-module-globals

Package Overview
Dependencies
Maintainers
39
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 7.0.1 to 7.0.2

test/subdir.js

8

index.js

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

var relpath = path.relative(path.dirname(fromPath), fullPath);
// If fullPath is in the same directory as fromPath, relpath will
// result in something like "index.js". require() needs "./" prepended
// to these paths.
if (path.dirname(relpath) === '.') {
// If fullPath is in the same directory or a subdirectory of fromPath,
// relpath will result in something like "index.js", "src/abc.js".
// require() needs "./" prepended to these paths.
if (!/^\./.test(relpath)) {
relpath = "./" + relpath;

@@ -18,0 +18,0 @@ }

{
"name": "insert-module-globals",
"version": "7.0.1",
"version": "7.0.2",
"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