Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

disconnected

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

disconnected - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "disconnected",
"version": "0.1.2",
"version": "0.1.3",
"description": "Enables `connected` and `disconnected` element's listeners.",

@@ -5,0 +5,0 @@ "main": "cjs/index.js",

# disconnected
Enables `connected` and `disconnected` element's listeners.
In less than 0.5K, it enables `connected` and `disconnected` element's listeners to [hyperHTML](https://github.com/WebReflection/hyperHTML#hyperhtml), but it can also be used with any other library/vanilla JS.
The only optional dependencies it has are constructable `Event` and the `WeakSet`. Both must be passed along as configuration object, and polyfills might be needed only for legacy browsers.
```js

@@ -23,8 +25,8 @@ // requires both modern Event and WeakSet

The module is compatible with every browser, as long as usable `Event` and `WeakSet` are provided.
### Compatibility
Even IE9.
[Even IE9](https://webreflection.github.io/disconnected/test/), as long as a usable `Event` and `WeakSet` are provided.
### DOM Level 0 Like events ?

@@ -50,2 +52,2 @@

div.onconnected = null;
```
```
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