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

insert-module-globals

Package Overview
Dependencies
Maintainers
3
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.0 to 7.0.1

11

index.js

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

var relpath = path.relative(path.dirname(fromPath), fullPath);
if (relpath[0] !== "." && relpath[0] !== "/") {
// 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) === '.') {
relpath = "./" + relpath;
}
return relpath.replace(/\\/g, '/');
// On Windows: Convert path separators to what require() expects
if (path.sep === '\\') {
relpath = relpath.replace(/\\/g, '/');
}
return relpath;
}

@@ -18,0 +25,0 @@

2

package.json
{
"name": "insert-module-globals",
"version": "7.0.0",
"version": "7.0.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