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

broccoli-funnel

Package Overview
Dependencies
Maintainers
2
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 0.2.5 to 0.2.6

15

index.js

@@ -50,2 +50,3 @@ 'use strict';

this._instantiatedStack = (new Error()).stack;
this._buildStart = undefined;
}

@@ -97,2 +98,3 @@

Funnel.prototype.build = function() {
this._buildStart = new Date();
this.destPath = path.join(this.outputPath, this.destDir);

@@ -108,3 +110,5 @@ if (this.destPath[this.destPath.length -1] === '/') {

var linkedRoots = false;
if (this.shouldLinkRoots()) {
linkedRoots = true;
if (fs.existsSync(inputPath)) {

@@ -119,2 +123,9 @@ fs.rmdirSync(this.outputPath);

}
this._debug('build, %o', {
in: new Date() - this._buildStart + 'ms',
linkedRoots: linkedRoots,
inputPath: inputPath,
destPath: this.destPath
});
};

@@ -152,5 +163,7 @@

this._debug('processFilters %o', {
in: new Date() - this._buildStart + 'ms',
filesFound: files.length,
filesProcessed: count,
inputPath: inputPath
inputPath: inputPath,
destPath: this.destPath
});

@@ -157,0 +170,0 @@ };

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

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

`include` *{Array of RegExps|Glob Strings|Functions}*
`include` *{Array of GlobStrings|RegExps|Functions}*

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

You can select files that match a regular expression copy those subdirectories to a
You can select files that match a glob expression and copy those subdirectories to a
new location, preserving their location within parent directories:

@@ -203,3 +203,3 @@

var todoRelatedFiles = new Funnel('src', {
include: [new RegExp(/todo/)]
include: ['todo/**/*']
});

@@ -221,3 +221,3 @@

`exclude` *{Array of RegExps|Glob Strings|Functions}*
`exclude` *{Array of Glob Strings|Glob Strings|Functions}*

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

You can select files that match a regular expression exclude them from copying:
You can select files that match a glob expression and exclude them from copying:

@@ -259,3 +259,3 @@ ```javascript

var nobodyLikesTodosAnyway = new Funnel('src', {
exclude: [new RegExp(/todo/)]
exclude: ['todo/**/*']
});

@@ -262,0 +262,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