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 1.1.1 to 1.1.2

test/field/sub.js

14

lib/wrap.js

@@ -269,9 +269,11 @@ var detective = require('detective');

var pkgfile = null;
try {
pkgfile = resolve.sync(mfile + '/package.json')
var pkgfile = basedir + '/package.json';
if (!mfile.match(/^(\.\.?)?\//)) {
try {
pkgfile = resolve.sync(mfile + '/package.json', {
basedir : basedir
});
}
catch (err) {}
}
catch (err) {
pkgfile = basedir + '/package.json';
}

@@ -278,0 +280,0 @@ if (pkgfile && !checkedPackages[pkgfile]) {

{
"name" : "browserify",
"version" : "1.1.1",
"version" : "1.1.2",
"description" : "Browser-side require() for js directories and npm modules",

@@ -5,0 +5,0 @@ "main" : "./index.js",

@@ -27,6 +27,8 @@ var assert = require('assert');

'path', 'events', 'stream',
'/node_modules/dnode/package.json',
'/node_modules/dnode/browser/index.js',
// move this one later when socket.io supports browserify
'/node_modules/dnode/browser/socket.io.js',
'/node_modules/dnode/package.json',
// ^ move this one later when socket.io supports browserify
'/node_modules/dnode/node_modules/dnode-protocol/index.js',

@@ -33,0 +35,0 @@ '/node_modules/dnode/node_modules/dnode-protocol/package.json',

@@ -40,1 +40,13 @@ var assert = require('assert');

};
exports.fieldSub = function () {
var dir = __dirname + '/field/';
var src = browserify(dir + '/sub.js').bundle();
var c = {};
vm.runInNewContext(src, c);
assert.equal(
c.require('./sub.js'),
'browser'
);
};
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