Socket
Socket
Sign inDemoInstall

browserify

Package Overview
Dependencies
Maintainers
0
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

test/single_file.js

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);

2

package.json
{
"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",

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