Socket
Socket
Sign inDemoInstall

@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-20221015064943 to 0.0.0-dev-20221015071051

2

dist/index.d.ts

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

getById: <T_1 = HTMLElement>(ctx: Ctx, id: string) => T_1 | null;
createEmitter: (ctx: Ctx, ns: string, target: HTMLElement | null) => (evt: string, detail: Record<string, any>, options?: Omit<CustomEventInit<EventInit>, "detail">) => void;
createEmitter: (ctx: Ctx, ns: string, target: HTMLElement | null) => (evt: string, detail: Record<string, any>, options?: EventInit) => void;
} & T;

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

@@ -304,6 +304,9 @@ "use strict";

return (evt, detail, options) => {
const event = new win.CustomEvent(`zag:${ns}:${evt}`, {
const { bubbles = true, cancelable } = options ?? {};
const eventName = `zag:${ns}:${evt}`;
const event = new win.CustomEvent(eventName, {
detail,
bubbles: (options == null ? void 0 : options.bubbles) || true,
cancelable: options == null ? void 0 : options.cancelable
bubbles,
cancelable,
composed: true
});

@@ -310,0 +313,0 @@ target.dispatchEvent(event);

{
"name": "@zag-js/dom-utils",
"version": "0.0.0-dev-20221015064943",
"version": "0.0.0-dev-20221015071051",
"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