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

@zag-js/dom-query

Package Overview
Dependencies
Maintainers
1
Versions
683
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.0-dev-20221018140542 to 0.0.0-dev-20221031080845

12

dist/index.js

@@ -53,8 +53,10 @@ "use strict";

function getDocument(el) {
var _a;
if (isDocument(el))
return el;
return (el == null ? void 0 : el.ownerDocument) ?? document;
return (_a = el == null ? void 0 : el.ownerDocument) != null ? _a : document;
}
function getWindow(el) {
return getDocument(el).defaultView ?? window;
var _a;
return (_a = getDocument(el).defaultView) != null ? _a : window;
}

@@ -66,4 +68,4 @@

getRootNode(ctx) {
var _a;
return ((_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) ?? document;
var _a, _b;
return (_b = (_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) != null ? _b : document;
},

@@ -84,3 +86,3 @@ getDoc(ctx) {

return function emit(evt, detail, options) {
const { bubbles = true, cancelable, composed = true } = options ?? {};
const { bubbles = true, cancelable, composed = true } = options != null ? options : {};
const eventName = `zag:${String(evt)}`;

@@ -87,0 +89,0 @@ const init = {

{
"name": "@zag-js/dom-query",
"version": "0.0.0-dev-20221018140542",
"version": "0.0.0-dev-20221031080845",
"description": "The dom helper library for zag.js machines",

@@ -5,0 +5,0 @@ "keywords": [

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