Comparing version 1.0.0 to 1.0.1
@@ -21,3 +21,7 @@ import { Configuration, MapItem } from './interfaces'; | ||
*/ | ||
defer(key: K): this; | ||
defer(key: K): { | ||
result: Promise<V>; | ||
done: (value: V) => void; | ||
expiry: number; | ||
}; | ||
/** | ||
@@ -24,0 +28,0 @@ * Set item. |
@@ -64,8 +64,9 @@ "use strict"; | ||
}); | ||
this.ref.set(key, { | ||
var item = { | ||
result: result, | ||
done: done, | ||
expiry: this.getExpiry(), | ||
}); | ||
return this; | ||
}; | ||
this.ref.set(key, item); | ||
return item; | ||
}; | ||
@@ -72,0 +73,0 @@ /** |
{ | ||
"name": "defer-map", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A small Map wrapper with defer and expiry.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
14129
10
252