Socket
Socket
Sign inDemoInstall

@zag-js/dismissable

Package Overview
Dependencies
Maintainers
1
Versions
751
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/dismissable - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

9

dist/index.js

@@ -30,3 +30,3 @@ "use strict";

const res = typeof v === "function" ? v(...a) : v;
return res ?? void 0;
return res != null ? res : void 0;
};

@@ -41,2 +41,3 @@ var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);

function getDocument(el) {
var _a;
if (isWindow(el))

@@ -46,7 +47,7 @@ return el.document;

return el;
return (el == null ? void 0 : el.ownerDocument) ?? document;
return (_a = el == null ? void 0 : el.ownerDocument) != null ? _a : document;
}
function getEventTarget(event) {
var _a;
return ((_a = event.composedPath) == null ? void 0 : _a.call(event)[0]) ?? event.target;
var _a, _b;
return (_b = (_a = event.composedPath) == null ? void 0 : _a.call(event)[0]) != null ? _b : event.target;
}

@@ -53,0 +54,0 @@ function contains(parent, child) {

{
"name": "@zag-js/dismissable",
"version": "0.1.6",
"version": "0.2.0",
"description": "Dismissable layer utilities for the DOM",

@@ -29,7 +29,7 @@ "main": "dist/index.js",

"dependencies": {
"@zag-js/interact-outside": "0.1.6"
"@zag-js/interact-outside": "0.2.0"
},
"devDependencies": {
"@zag-js/dom-utils": "0.1.13",
"@zag-js/utils": "0.1.6"
"@zag-js/dom-utils": "0.2.0",
"@zag-js/utils": "0.2.0"
},

@@ -36,0 +36,0 @@ "bugs": {

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