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

dompteuse

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dompteuse - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

example/package.json

@@ -13,3 +13,3 @@ {

"typescript": "1.8.7",
"dompteuse": "0.3.0",
"dompteuse": "0.3.1",
"snabbdom": "0.4.2",

@@ -16,0 +16,0 @@ "most": "0.19.6",

@@ -63,3 +63,3 @@ 'use strict';

var listener = function listener(evt) {
if (targetMatches(evt.target, sub.selector, el)) sub.streamAdd(evt);
if (targetMatches(evt.target, sel, el)) add(evt);
};

@@ -66,0 +66,0 @@

{
"name": "dompteuse",
"version": "0.3.0",
"version": "0.3.1",
"main": "lib/dompteuse",

@@ -5,0 +5,0 @@ "typings": "lib/dompteuse.d.ts",

@@ -301,1 +301,15 @@ # dompteuse

```
## Events
Builds a Stream of DOM Events using Event delegation.
```javascript
listenAt(node: Element, targetSelector: string, eventName: string): Stream<Event>
```
```javascript
import { Events } from 'dompteuse'
const stream = Events.listenAt(document.body, '.button', 'click')
```

@@ -53,4 +53,3 @@ import most from 'most';

const listener = evt => {
if (targetMatches(evt.target, sub.selector, el))
sub.streamAdd(evt);
if (targetMatches(evt.target, sel, el)) add(evt);
}

@@ -57,0 +56,0 @@

Sorry, the diff of this file is too big to display

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