add-weak-listener
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,2 +8,11 @@ /** | ||
}); | ||
/** | ||
* The interface is congruent with addEventListener. The Listener | ||
* is not prevented from being garbage collected. | ||
* | ||
* @param target EventTarget Target on which the handler would be added. | ||
* @param type string The event type name | ||
* @param listener The callback | ||
* @param options The AddEventListenerOptions | ||
*/ | ||
export function addWeakListener(target, type, listener, options) { | ||
@@ -10,0 +19,0 @@ const weakRef = new WeakRef(listener); |
@@ -33,1 +33,3 @@ /** | ||
} | ||
export default addWeakListener; |
{ | ||
"name": "add-weak-listener", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Add weak event listeners based on WeakRefs", | ||
@@ -10,2 +10,6 @@ "main": "index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ashubham/add-weak-listener.git" | ||
}, | ||
"keywords": [ | ||
@@ -22,3 +26,4 @@ "weak", | ||
"typescript": "^4.5.5" | ||
} | ||
}, | ||
"types": "index.d.ts" | ||
} |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14776
149
1
43
0