glob-stream
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -23,2 +23,4 @@ 'use strict'; | ||
ourOpt.cwdbase = typeof ourOpt.cwdbase === 'boolean' ? ourOpt.cwdbase : false; | ||
ourOpt.uniqueBy = typeof ourOpt.uniqueBy === 'string' || | ||
typeof ourOpt.uniqueBy === 'function' ? ourOpt.uniqueBy : 'path'; | ||
@@ -70,3 +72,3 @@ if (ourOpt.cwdbase) { | ||
var aggregate = new Combine(streams); | ||
var uniqueStream = unique('path'); | ||
var uniqueStream = unique(ourOpt.uniqueBy); | ||
@@ -73,0 +75,0 @@ return pumpify.obj(aggregate, uniqueStream); |
{ | ||
"name": "glob-stream", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "A Readable Stream interface over node-glob.", | ||
@@ -5,0 +5,0 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)", |
@@ -93,2 +93,10 @@ <p align="center"> | ||
##### `options.uniqueBy` | ||
Filters stream to remove duplicates based on the string property name or the result of function. When using a function, the function receives the streamed data (objects containing `cwd`, `base`, `path` properties) to compare against. | ||
Type: `String` or `Function` | ||
Default: `'path'` | ||
##### other | ||
@@ -95,0 +103,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12156
162
147
0