Socket
Socket
Sign inDemoInstall

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 1.0.0 to 1.0.1

10

index.js

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

Plugin.call(this, [inputNode]);
Plugin.call(this, [inputNode], options);

@@ -94,4 +94,8 @@ this._persistentOutput = true;

Funnel.prototype._debugName = function() {
return this.description || this._annotation || this.name || this.constructor.name;
};
Funnel.prototype._debug = function(message) {
debug('broccoli-funnel:' + (this.description || this.name || this.constructor.name)).apply(null, arguments);
debug('broccoli-funnel:' + (this._debugName())).apply(null, arguments);
};

@@ -243,3 +247,3 @@

this._debug('patch: %o', patch);
this._debug('patch size: %d', patch.length);

@@ -246,0 +250,0 @@ var outputPath = this.outputPath;

{
"name": "broccoli-funnel",
"version": "1.0.0",
"version": "1.0.1",
"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",

@@ -618,2 +618,18 @@ 'use strict';

describe('debugName', function() {
it('falls back to the constructor name', function() {
var node = new Funnel('inputTree');
expect(node._debugName()).to.eql('Funnel');
});
it('prefers the provided annotation', function() {
var node = new Funnel('inputTree', {
annotation: 'an annotation'
});
expect(node._debugName()).to.eql('an annotation');
});
});
describe('exclude filtering', function() {

@@ -620,0 +636,0 @@ function testAllExcludeMatchers(glob, regexp, func, expected) {

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