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

tapable

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tapable - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

34

lib/Tapable.js

@@ -107,18 +107,20 @@ /*

for(var i = 0; i < plugins.length; i++) {
args[args.length-1] = function(i, err, result) {
if(i >= currentPos) return; // ignore
done.push(i);
if(err || result) {
currentPos = i + 1;
done = done.filter(function(item) {
return item <= i;
});
currentError = err;
currentResult = result;
}
if(done.length == currentPos) {
callback(currentError, currentResult);
currentPos = 0;
}
}.bind(this, i);
args[args.length-1] = (function(i) {
return function(err, result) {
if(i >= currentPos) return; // ignore
done.push(i);
if(err || result) {
currentPos = i + 1;
done = done.filter(function(item) {
return item <= i;
});
currentError = err;
currentResult = result;
}
if(done.length == currentPos) {
callback(currentError, currentResult);
currentPos = 0;
}
};
}(i));
plugins[i].apply(this, args);

@@ -125,0 +127,0 @@ }

{
"name": "tapable",
"version": "0.1.2",
"version": "0.1.3",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Just a little module for plugins.",

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