Socket
Socket
Sign inDemoInstall

glob-stream

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-stream - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

index.js

@@ -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 @@

2

package.json
{
"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});

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