New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

add-weak-listener

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-weak-listener - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

9

index.js

@@ -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);

2

index.ts

@@ -33,1 +33,3 @@ /**

}
export default addWeakListener;

9

package.json
{
"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

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