Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 3.1.0 to 3.1.1

4

index.js

@@ -0,1 +1,3 @@

'use strict';
var es = require('event-stream');

@@ -35,3 +37,3 @@ var Combine = require('combine-stream');

module.exports = us = {
var us = module.exports = {
// creates a stream for a single glob or filter

@@ -38,0 +40,0 @@ createStream: function(ourGlob, negatives, opt) {

{
"name": "glob-stream",
"description": "File system globs as a stream",
"version": "3.1.0",
"version": "3.1.1",
"homepage": "http://github.com/wearefractal/glob-stream",

@@ -19,6 +19,7 @@ "repository": "git://github.com/wearefractal/glob-stream.git",

"mocha": "*",
"should": "*"
"should": "*",
"jshint": "*"
},
"scripts": {
"test": "mocha"
"test": "mocha && jshint"
},

@@ -25,0 +26,0 @@ "engines": {

@@ -190,3 +190,25 @@ var gs = require('../');

});
it('should return a correctly ordered file name stream for two globs and custom base', function(done) {
var baseDir = join(__dirname, "./fixtures");
var globArray = [
"./whatsgoingon/key/isaidhey/whatsgoingon/test.txt",
"./test.coffee",
"./whatsgoingon/test.js"
];
var stream = gs.create(globArray, {cwd: baseDir, cwdbase: true});
var files = [];
stream.on('error', done);
stream.on('data', function(file) {
should.exist(file);
should.exist(file.base);
file.base.should.equal(baseDir);
});
stream.on('end', function() {
done();
});
});
it('should return a input stream for multiple globs, with negation (globbing)', function(done) {

@@ -193,0 +215,0 @@ var expectedPath = join(__dirname, "./fixtures/stuff/run.dmc");

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