Socket
Socket
Sign inDemoInstall

glob-stream

Package Overview
Dependencies
Maintainers
3
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 6.0.0 to 6.1.0

4

index.js

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

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