broccoli-funnel
Advanced tools
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) { |
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
48154
995