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

@zag-js/dom-utils

Package Overview
Dependencies
Maintainers
1
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/dom-utils - npm Package Compare versions

Comparing version 0.0.0-dev-20221015100745 to 0.0.0-dev-20221015102437

1

dist/index.d.ts

@@ -210,2 +210,3 @@ import { JSX } from '@zag-js/types';

createEmitter: (ctx: Ctx, target: HTMLElement) => (evt: string, detail: Record<string, any>, options?: EventInit) => void;
createListener: (target: HTMLElement) => <T_2 = any>(evt: string, handler: (e: CustomEvent<T_2>) => void) => () => void;
} & T;

@@ -212,0 +213,0 @@ declare function contains(parent: HTMLElement | EventTarget | null | undefined, child: HTMLElement | EventTarget | null): boolean;

@@ -307,2 +307,10 @@ "use strict";

};
},
createListener: (target) => {
return function listen(evt, handler) {
const eventName = `zag:${evt}`;
const listener = (e) => handler(e);
target.addEventListener(eventName, listener);
return () => target.removeEventListener(eventName, listener);
};
}

@@ -309,0 +317,0 @@ };

2

package.json
{
"name": "@zag-js/dom-utils",
"version": "0.0.0-dev-20221015100745",
"version": "0.0.0-dev-20221015102437",
"description": "",

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

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