@zag-js/form-utils
Advanced tools
Comparing version 0.0.0-dev-20221005155029 to 0.0.0-dev-20221031080845
@@ -35,3 +35,4 @@ "use strict"; | ||
function getWindow(el) { | ||
return (el == null ? void 0 : el.ownerDocument.defaultView) ?? window; | ||
var _a; | ||
return (_a = el == null ? void 0 : el.ownerDocument.defaultView) != null ? _a : window; | ||
} | ||
@@ -56,5 +57,6 @@ function observeAttributes(node, attributes, fn) { | ||
function getDescriptor(el, options) { | ||
var _a; | ||
const { type, property } = options; | ||
const proto = getWindow(el)[type].prototype; | ||
return Object.getOwnPropertyDescriptor(proto, property) ?? {}; | ||
return (_a = Object.getOwnPropertyDescriptor(proto, property)) != null ? _a : {}; | ||
} | ||
@@ -61,0 +63,0 @@ function dispatchInputValueEvent(el, value) { |
{ | ||
"name": "@zag-js/form-utils", | ||
"version": "0.0.0-dev-20221005155029", | ||
"version": "0.0.0-dev-20221031080845", | ||
"description": "", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20221005155029" | ||
"@zag-js/dom-utils": "0.0.0-dev-20221031080845" | ||
}, | ||
@@ -25,0 +25,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11415
263