insert-module-globals
Advanced tools
Comparing version 7.0.5 to 7.0.6
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29040
40
651
9
21
+ Addedpath-is-absolute@^1.0.1
+ Addedpath-is-absolute@1.0.1(transitive)