Socket
Socket
Sign inDemoInstall

glob-stream

Package Overview
Dependencies
40
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.0 to 7.0.0

8

index.js

@@ -23,4 +23,6 @@ 'use strict';

ourOpt.cwdbase = typeof ourOpt.cwdbase === 'boolean' ? ourOpt.cwdbase : false;
ourOpt.uniqueBy = typeof ourOpt.uniqueBy === 'string' ||
typeof ourOpt.uniqueBy === 'function' ? ourOpt.uniqueBy : 'path';
ourOpt.uniqueBy =
typeof ourOpt.uniqueBy === 'string' || typeof ourOpt.uniqueBy === 'function'
? ourOpt.uniqueBy
: 'path';

@@ -86,3 +88,3 @@ if (ourOpt.cwdbase) {

function indexGreaterThan(index) {
return function(obj) {
return function (obj) {
return obj.index > index;

@@ -89,0 +91,0 @@ };

{
"name": "glob-stream",
"version": "6.1.0",
"version": "7.0.0",
"description": "A Readable Stream interface over node-glob.",
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
"contributors": [

@@ -13,3 +13,3 @@ "Eric Schoffstall <yo@contra.io>",

"engines": {
"node": ">= 0.10"
"node": ">=10.13.0"
},

@@ -23,31 +23,37 @@ "main": "index.js",

"scripts": {
"lint": "eslint . && jscs index.js readable.js test/",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "mocha --async-only",
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls"
"test": "nyc mocha --async-only"
},
"dependencies": {
"extend": "^3.0.0",
"glob": "^7.1.1",
"glob-parent": "^3.1.0",
"extend": "^3.0.2",
"glob": "^7.2.0",
"glob-parent": "^6.0.2",
"is-negated-glob": "^1.0.0",
"ordered-read-streams": "^1.0.0",
"pumpify": "^1.3.5",
"readable-stream": "^2.1.5",
"remove-trailing-separator": "^1.0.1",
"to-absolute-glob": "^2.0.0",
"unique-stream": "^2.0.2"
"ordered-read-streams": "^1.0.1",
"pumpify": "^2.0.1",
"readable-stream": "^3.6.0",
"remove-trailing-separator": "^1.1.0",
"to-absolute-glob": "^2.0.2",
"unique-stream": "^2.3.1"
},
"devDependencies": {
"eslint": "^1.10.3",
"eslint-config-gulp": "^2.0.0",
"expect": "^1.19.0",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"jscs": "^2.4.0",
"jscs-preset-gulp": "^1.0.0",
"mississippi": "^1.2.0",
"mocha": "^2.4.5"
"eslint": "^7.0.0",
"eslint-config-gulp": "^5.0.0",
"eslint-plugin-node": "^11.1.0",
"expect": "^27.0.0",
"mississippi": "^4.0.0",
"mocha": "^8.0.0",
"nyc": "^15.0.1",
"sinon": "^9.2.3"
},
"nyc": {
"reporter": [
"lcov",
"text-summary"
]
},
"prettier": {
"singleQuote": true
},
"keywords": [

@@ -54,0 +60,0 @@ "glob",

@@ -70,3 +70,3 @@ 'use strict';

globber.on('match', function(filepath) {
globber.on('match', function (filepath) {
found = true;

@@ -83,3 +83,3 @@ var obj = {

globber.once('end', function() {
globber.once('end', function () {
if (allowEmpty !== true && !found && globIsSingular(globber)) {

@@ -102,7 +102,7 @@ var err = new Error(globErrMessage1 + ourGlob + globErrMessage2);

GlobStream.prototype._read = function() {
GlobStream.prototype._read = function () {
this._globber.resume();
};
GlobStream.prototype.destroy = function(err) {
GlobStream.prototype.destroy = function (err) {
var self = this;

@@ -112,3 +112,3 @@

process.nextTick(function() {
process.nextTick(function () {
if (err) {

@@ -115,0 +115,0 @@ self.emit('error', err);

@@ -9,3 +9,3 @@ <p align="center">

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

@@ -16,13 +16,16 @@ A [Readable Stream][readable-stream-url] interface over [node-glob][node-glob-url].

```javascript
```js
var gs = require('glob-stream');
var readable = gs('./files/**/*.coffee', { /* options */ });
var readable = gs('./files/**/*.coffee', {
/* options */
});
var writable = /* your WriteableStream */
var writable =
/* your WriteableStream */
readable.pipe(writable);
readable.pipe(writable);
```
You can pass any combination of glob strings. One caveat is that you cannot __only__ pass a negative glob, you must give it at least one positive glob so it knows where to start. If given a non-glob path (also referred to as a singular glob), only one file will be emitted. If given a singular glob and no files match, an error is emitted (see also [`options.allowEmpty`][allow-empty-url]).
You can pass any combination of glob strings. One caveat is that you cannot **only** pass a negative glob, you must give it at least one positive glob so it knows where to start. If given a non-glob path (also referred to as a singular glob), only one file will be emitted. If given a singular glob and no files match, an error is emitted (see also [`options.allowEmpty`][allow-empty-url]).

@@ -73,3 +76,3 @@ ## API

__Note: This is never passed to [node-glob][node-glob-url] because it is pre-resolved against your paths.__
**Note: This is never passed to [node-glob][node-glob-url] because it is pre-resolved against your paths.**

@@ -116,10 +119,12 @@ Type: `String`

The following would __not__ exclude any files:
The following would **not** exclude any files:
```js
gs(['!b*.js', '*.js'])
gs(['!b*.js', '*.js']);
```
However, this would exclude all files that started with `b`:
```js
gs(['*.js', '!b*.js'])
gs(['*.js', '!b*.js']);
```

@@ -131,2 +136,3 @@

<!-- prettier-ignore-start -->
[node-glob-url]: https://github.com/isaacs/node-glob

@@ -137,16 +143,11 @@ [glob-parent-url]: https://github.com/es128/glob-parent

[downloads-image]: http://img.shields.io/npm/dm/glob-stream.svg
[downloads-image]: https://img.shields.io/npm/dm/glob-stream.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/glob-stream
[npm-image]: http://img.shields.io/npm/v/glob-stream.svg
[npm-image]: https://img.shields.io/npm/v/glob-stream.svg?style=flat-square
[travis-url]: https://travis-ci.org/gulpjs/glob-stream
[travis-image]: http://img.shields.io/travis/gulpjs/glob-stream.svg?label=travis-ci
[ci-url]: https://github.com/gulpjs/glob-stream/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/glob-stream/dev?style=flat-square
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-stream
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-stream.svg?label=appveyor
[coveralls-url]: https://coveralls.io/r/gulpjs/glob-stream
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/glob-stream.svg
[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-stream/master.svg?style=flat-square
<!-- prettier-ignore-end -->

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc