Comparing version 0.2.7 to 0.2.8
@@ -106,2 +106,20 @@ /* | ||
Tapable.prototype.applyPluginsWaterfall1 = function applyPluginsWaterfall1(name, init, param) { | ||
var plugins = this._plugins[name]; | ||
if(!plugins) return init; | ||
var current = init; | ||
for(var i = 0; i < plugins.length; i++) | ||
current = plugins[i].call(this, current, param); | ||
return current; | ||
}; | ||
Tapable.prototype.applyPluginsWaterfall2 = function applyPluginsWaterfall2(name, init, param1, param2) { | ||
var plugins = this._plugins[name]; | ||
if(!plugins) return init; | ||
var current = init; | ||
for(var i = 0; i < plugins.length; i++) | ||
current = plugins[i].call(this, current, param1, param2); | ||
return current; | ||
}; | ||
Tapable.prototype.applyPluginsBailResult = function applyPluginsBailResult(name) { | ||
@@ -108,0 +126,0 @@ if(!this._plugins[name]) return; |
{ | ||
"name": "tapable", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Just a little module for plugins.", |
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
17079
342