module-deps
Advanced tools
Comparing version 3.5.6 to 3.5.7
@@ -46,3 +46,4 @@ var fs = require('fs'); | ||
this.resolver = opts.resolve || browserResolve; | ||
this.options = opts; | ||
this.options = copy(opts || {}); | ||
if (!this.options.modules) this.options.modules = {}; | ||
this.pending = 0; | ||
@@ -49,0 +50,0 @@ |
{ | ||
"name": "module-deps", | ||
"version": "3.5.6", | ||
"version": "3.5.7", | ||
"description": "walk the dependency graph to generate json output that can be fed into browser-pack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,3 @@ var parser = require('../'); | ||
var packer = require('browser-pack'); | ||
var path = require('path'); | ||
@@ -10,3 +11,3 @@ test('bundle', function (t) { | ||
var p = parser(); | ||
p.end(__dirname + '/files/main.js'); | ||
p.end(path.join(__dirname, '/files/main.js')); | ||
p.on('error', t.fail.bind(t)); | ||
@@ -13,0 +14,0 @@ var pack = packer(); |
@@ -6,2 +6,3 @@ var mdeps = require('../'); | ||
var concat = require('concat-stream'); | ||
var path = require('path'); | ||
@@ -11,3 +12,3 @@ test('cycle', function (t) { | ||
var p = mdeps(); | ||
p.end(__dirname + '/cycle/main.js'); | ||
p.end(path.join(__dirname, '/cycle/main.js')); | ||
var pack = packer(); | ||
@@ -14,0 +15,0 @@ |
var mdeps = require('../'); | ||
var test = require('tape'); | ||
var through = require('through2'); | ||
var path = require('path'); | ||
test(function (t) { | ||
test('dotdot', function (t) { | ||
var expected = [ | ||
__dirname + '/dotdot/index.js', | ||
__dirname + '/dotdot/abc/index.js' | ||
path.join(__dirname, '/dotdot/index.js'), | ||
path.join(__dirname, '/dotdot/abc/index.js') | ||
]; | ||
@@ -13,3 +14,3 @@ t.plan(expected.length); | ||
var d = mdeps(); | ||
d.end(__dirname + '/dotdot/abc/index.js'); | ||
d.end(path.join(__dirname, '/dotdot/abc/index.js')); | ||
@@ -16,0 +17,0 @@ d.pipe(through.obj(function (row, enc, next) { |
var parser = require('../'); | ||
var test = require('tape'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var files = { | ||
foo: __dirname + '/files/foo.js', | ||
bar: __dirname + '/files/bar.js' | ||
foo: path.join(__dirname, '/files/foo.js'), | ||
bar: path.join(__dirname, '/files/bar.js') | ||
}; | ||
@@ -9,0 +10,0 @@ |
@@ -5,7 +5,8 @@ var parser = require('../'); | ||
var concat = require('concat-stream'); | ||
var path = require('path'); | ||
var files = { | ||
main: __dirname + '/files/main.js', | ||
foo: __dirname + '/files/foo.js', | ||
bar: __dirname + '/files/bar.js' | ||
main: path.join(__dirname, '/files/main.js'), | ||
foo: path.join(__dirname, '/files/foo.js'), | ||
bar: path.join(__dirname, '/files/bar.js') | ||
}; | ||
@@ -12,0 +13,0 @@ |
@@ -6,2 +6,3 @@ var mdeps = require('../'); | ||
var concat = require('concat-stream'); | ||
var path = require('path'); | ||
@@ -18,3 +19,3 @@ test('pkg filter', function (t) { | ||
}); | ||
p.end(__dirname + '/files/pkg_filter/test.js'); | ||
p.end(path.join(__dirname, '/files/pkg_filter/test.js')); | ||
@@ -21,0 +22,0 @@ var pack = packer(); |
var mdeps = require('../'); | ||
var test = require('tape'); | ||
var path = require('path'); | ||
var pkg = require('./pkg/package.json'); | ||
pkg.__dirname = __dirname + '/pkg'; | ||
pkg.__dirname = path.join(__dirname, '/pkg'); | ||
@@ -14,4 +15,4 @@ test('pkg', function (t) { | ||
}); | ||
d.end(__dirname + '/pkg/main.js'); | ||
d.end(path.join(__dirname, '/pkg/main.js')); | ||
d.resume(); | ||
}); |
var parser = require('../'); | ||
var test = require('tape'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var files = { | ||
main: __dirname + '/files/main.js', | ||
foo: __dirname + '/files/foo.js', | ||
bar: __dirname + '/files/bar.js', | ||
extra: __dirname + '/files/extra.js' | ||
main: path.join(__dirname, '/files/main.js'), | ||
foo: path.join(__dirname, '/files/foo.js'), | ||
bar: path.join(__dirname, '/files/bar.js'), | ||
extra: path.join(__dirname, '/files/extra.js') | ||
}; | ||
@@ -11,0 +12,0 @@ var sources = { |
@@ -5,2 +5,3 @@ var mdeps = require('../'); | ||
var packer = require('browser-pack'); | ||
var path = require('path'); | ||
@@ -13,3 +14,3 @@ test('transform', function (t) { | ||
}); | ||
p.end(__dirname + '/files/tr_2dep_module/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_2dep_module/main.js')); | ||
var pack = packer(); | ||
@@ -16,0 +17,0 @@ |
@@ -6,2 +6,3 @@ var mdeps = require('../'); | ||
var through = require('through'); | ||
var path = require('path'); | ||
@@ -18,5 +19,5 @@ test('transform', function (t) { | ||
p.on('error', function (err) { | ||
t.ok(/tr_sh\/main\.js/.test(err)); | ||
t.ok(/tr_sh[\\\/]main\.js/.test(err)); | ||
}); | ||
p.end(__dirname + '/files/tr_sh/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_sh/main.js')); | ||
}); |
@@ -6,2 +6,3 @@ var mdeps = require('../'); | ||
var through = require('through'); | ||
var path = require('path'); | ||
@@ -21,3 +22,3 @@ test('transform', function (t) { | ||
}); | ||
p.end(__dirname + '/files/tr_sh/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_sh/main.js')); | ||
var pack = packer(); | ||
@@ -24,0 +25,0 @@ |
@@ -6,2 +6,3 @@ var mdeps = require('../'); | ||
var concat = require('concat-stream'); | ||
var path = require('path'); | ||
@@ -14,8 +15,8 @@ test('global transforms', function (t) { | ||
globalTransform: [ | ||
__dirname + '/files/tr_global/node_modules/tr-e', | ||
__dirname + '/files/tr_global/node_modules/tr-f' | ||
path.join(__dirname, '/files/tr_global/node_modules/tr-e'), | ||
path.join(__dirname, '/files/tr_global/node_modules/tr-f') | ||
], | ||
transformKey: [ 'browserify', 'transform' ] | ||
}); | ||
p.end(__dirname + '/files/tr_global/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_global/main.js')); | ||
var pack = packer(); | ||
@@ -22,0 +23,0 @@ |
@@ -5,2 +5,3 @@ var mdeps = require('../'); | ||
var packer = require('browser-pack'); | ||
var path = require('path'); | ||
@@ -13,3 +14,3 @@ test('transform', function (t) { | ||
}); | ||
p.end(__dirname + '/files/tr_module/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_module/main.js')); | ||
var pack = packer(); | ||
@@ -16,0 +17,0 @@ |
@@ -6,2 +6,3 @@ var mdeps = require('../'); | ||
var concat = require('concat-stream'); | ||
var path = require('path'); | ||
@@ -13,3 +14,3 @@ test('transform options', function (t) { | ||
}); | ||
p.end(__dirname + '/tr_opts/main.js'); | ||
p.end(path.join(__dirname, '/tr_opts/main.js')); | ||
var pack = packer(); | ||
@@ -16,0 +17,0 @@ |
@@ -5,2 +5,3 @@ var mdeps = require('../'); | ||
var packer = require('browser-pack'); | ||
var path = require('path'); | ||
@@ -12,3 +13,3 @@ test('transform', function (t) { | ||
}); | ||
p.end(__dirname + '/files/tr_rel/subdir/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_rel/subdir/main.js')); | ||
var pack = packer(); | ||
@@ -15,0 +16,0 @@ |
@@ -5,2 +5,3 @@ var mdeps = require('../'); | ||
var packer = require('browser-pack'); | ||
var path = require('path'); | ||
@@ -13,3 +14,3 @@ test('transform', function (t) { | ||
}); | ||
p.end(__dirname + '/files/tr_sh/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_sh/main.js')); | ||
var pack = packer(); | ||
@@ -16,0 +17,0 @@ |
@@ -5,2 +5,3 @@ var mdeps = require('../'); | ||
var packer = require('browser-pack'); | ||
var path = require('path'); | ||
@@ -12,3 +13,3 @@ test('transform', function (t) { | ||
}); | ||
p.end(__dirname + '/files/tr_whole_package/main.js'); | ||
p.end(path.join(__dirname, '/files/tr_whole_package/main.js')); | ||
var pack = packer(); | ||
@@ -15,0 +16,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
46916
90
1193
18