Comparing version 1.0.1 to 1.0.2
@@ -1,6 +0,7 @@ | ||
module.exports = inflight | ||
var wrappy = require('wrappy') | ||
var reqs = Object.create(null) | ||
var once = require('once') | ||
module.exports = wrappy(inflight) | ||
function inflight (key, cb) { | ||
@@ -17,4 +18,3 @@ if (reqs[key]) { | ||
function makeres(key) { | ||
return once(res) | ||
function res(error, data) { | ||
return once(function(error, data) { | ||
var cbs = reqs[key] | ||
@@ -25,3 +25,3 @@ delete reqs[key] | ||
}) | ||
} | ||
}) | ||
} |
{ | ||
"name": "inflight", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Add callbacks to requests in flight to avoid async duplication", | ||
"main": "inflight.js", | ||
"dependencies": { | ||
"once": "^1.3.0" | ||
"once": "^1.3.0", | ||
"wrappy": "1" | ||
}, | ||
@@ -9,0 +10,0 @@ "devDependencies": { |
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
3429
2
+ Addedwrappy@1