Socket
Socket
Sign inDemoInstall

broccoli-funnel

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-funnel - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

16

CHANGELOG.md
# master
# 2.0.2
- Fix usage of `allowEmpty` when also using `include` / `exclude`
# 2.0.1
* Fixes issue with double dots in file names (#8) by using `fs.existSync` directly
# 2.0.0
* Drops support for `node@0.12`
# 1.2.0
* Improve excludes performance by using node-walk-sync for excludes when possible (#93)
# 1.1.0

@@ -4,0 +20,0 @@

12

index.js

@@ -201,2 +201,4 @@ 'use strict';

let inputPathExists = fs.existsSync(inputPath);
let linkedRoots = false;

@@ -220,4 +222,2 @@ if (this.shouldLinkRoots()) {

let inputPathExists = fs.existsSync(inputPath);
// This is specifically looking for broken symlinks.

@@ -260,4 +260,10 @@ let outputPathExists = fs.existsSync(this.outputPath);

this._isRebuild = true;
} else {
} else if (inputPathExists) {
this.processFilters(inputPath);
} else if (!this.allowEmpty) {
throw new Error(`You specified a \`"srcDir": ${this.srcDir}\` which does not exist and did not specify \`"allowEmpty": true\`.`);
} else { // !inputPathExists && this.allowEmpty
// Just make an empty folder so that any downstream consumers who don't know
// to ignore this on `allowEmpty` don't get trolled.
mkdirp(this.destPath);
}

@@ -264,0 +270,0 @@

{
"name": "broccoli-funnel",
"version": "2.0.1",
"version": "2.0.2",
"description": "Broccoli plugin that allows you to filter files selected from an input node down based on regular expressions.",

@@ -20,5 +20,3 @@ "main": "index.js",

"test": "mocha tests/",
"test:debug": "mocha debug tests/",
"preversion": "npm test",
"postversion": "git push origin master --follow-tags && npm publish"
"test:debug": "mocha debug tests/"
},

@@ -25,0 +23,0 @@ "keywords": [

@@ -219,3 +219,3 @@ # Broccoli Funnel

`exclude` *{Array of Glob Strings|Glob String|Function}*
`exclude` *{Array of Glob Strings|Function}*

@@ -222,0 +222,0 @@ One or more matcher expression (regular expression, glob string, or function). Files within the node whose names match this

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