Socket
Socket
Sign inDemoInstall

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.5 to 7.0.6

test/roots.js

3

index.js

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

var path = require('path');
var isAbsolute = path.isAbsolute || require('path-is-absolute');
var processPath = require.resolve('process/browser.js');

@@ -16,3 +17,3 @@ var isbufferPath = require.resolve('is-buffer')

// require() needs "./" prepended to these paths.
if (!/^\./.test(relpath)) {
if (!/^\./.test(relpath) && !isAbsolute(relpath)) {
relpath = "./" + relpath;

@@ -19,0 +20,0 @@ }

{
"name": "insert-module-globals",
"version": "7.0.5",
"version": "7.0.6",
"description": "insert implicit module globals into a module-deps stream",

@@ -15,2 +15,3 @@ "main": "index.js",

"lexical-scope": "^1.2.0",
"path-is-absolute": "^1.0.1",
"process": "~0.11.0",

@@ -17,0 +18,0 @@ "through2": "^2.0.0",

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