glob-stream
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -41,3 +41,7 @@ var es = require('event-stream'); | ||
globber.on('match', function(filename) { | ||
stream.write(path.join(opt.cwd, filename)); | ||
var isRoot = (filename[0] === path.sep); | ||
if (!isRoot) { | ||
filename = path.join(opt.cwd, filename); | ||
} | ||
stream.write(filename); | ||
}); | ||
@@ -44,0 +48,0 @@ |
{ | ||
"name": "glob-stream", | ||
"description": "File system globs as a stream", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"homepage": "http://github.com/wearefractal/glob-stream", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/wearefractal/glob-stream.git", |
@@ -47,2 +47,15 @@ var gs = require('../'); | ||
it('should not fuck up direct paths with no cwd', function(done) { | ||
var stream = gs.create(join(__dirname, "./fixtures/test.coffee")); | ||
should.exist(stream); | ||
stream.on('error', function(err) { | ||
throw err; | ||
}); | ||
stream.on('data', function(file) { | ||
should.exist(file); | ||
String(file).should.equal(join(__dirname, "./fixtures/test.coffee")); | ||
done(); | ||
}); | ||
}); | ||
it('should return a file name stream with negation from a glob', function(done) { | ||
@@ -49,0 +62,0 @@ var stream = gs.create(["./fixtures/**/*.js", "!./fixtures/**/test.js"], {cwd: __dirname}); |
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
9185
141