inflight
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "inflight", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Add callbacks to requests in flight to avoid async duplication", | ||
@@ -5,0 +5,0 @@ "main": "inflight.js", |
@@ -20,2 +20,5 @@ # inflight | ||
// If we got a falsey value back, then there's already a req going | ||
if (!callback) return | ||
// this is where you'd fetch the url or whatever | ||
@@ -22,0 +25,0 @@ // callback is also once()-ified, so it can safely be assigned |
3381
38