browserify
Advanced tools
Comparing version 0.1.4 to 0.1.5
12
index.js
@@ -112,2 +112,14 @@ var fs = require('fs'); | ||
} | ||
else if (libname.match(/\//)) { | ||
var body = fs.readFileSync(require.resolve(libname), 'utf8'); | ||
var src = wrapperBody | ||
.replace('$body', function () { | ||
return body | ||
}) | ||
.replace(/\$filename/g, function () { | ||
return JSON.stringify(libname) | ||
}) | ||
; | ||
return { source : src }; | ||
} | ||
else { | ||
@@ -114,0 +126,0 @@ var mods = source.modules(libname); |
{ | ||
"name" : "browserify", | ||
"version" : "0.1.4", | ||
"version" : "0.1.5", | ||
"description" : "Browser-side require() for js directories and npm modules", | ||
@@ -5,0 +5,0 @@ "main" : "./index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
28563
34
635
3