browserify
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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' | ||
); | ||
}; |
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
61158
82
1467