@zag-js/store
Advanced tools
Comparing version 0.65.1 to 0.66.0
@@ -52,3 +52,7 @@ "use strict"; | ||
var refSet = makeGlobal("__zag__refSet", () => /* @__PURE__ */ new WeakSet()); | ||
var buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), canProxy = (x) => isObject(x) && !refSet.has(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !(x instanceof WeakMap) && !(x instanceof WeakSet) && !(x instanceof Error) && !(x instanceof Number) && !(x instanceof Date) && !(x instanceof String) && !(x instanceof RegExp) && !(x instanceof ArrayBuffer), defaultHandlePromise = (promise) => { | ||
var isReactElement = (x) => typeof x === "object" && x !== null && "$$typeof" in x; | ||
var isVueElement = (x) => typeof x === "object" && x !== null && "__v_isVNode" in x; | ||
var isDOMElement = (x) => typeof x === "object" && x !== null && "nodeType" in x && typeof x.nodeName === "string"; | ||
var isElement = (x) => isReactElement(x) || isVueElement(x) || isDOMElement(x); | ||
var buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), canProxy = (x) => isObject(x) && !refSet.has(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !isElement(x) && !(x instanceof WeakMap) && !(x instanceof WeakSet) && !(x instanceof Error) && !(x instanceof Number) && !(x instanceof Date) && !(x instanceof String) && !(x instanceof RegExp) && !(x instanceof ArrayBuffer), defaultHandlePromise = (promise) => { | ||
switch (promise.status) { | ||
@@ -55,0 +59,0 @@ case "fulfilled": |
{ | ||
"name": "@zag-js/store", | ||
"version": "0.65.1", | ||
"version": "0.66.0", | ||
"description": "The reactive store package for zag machines", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -53,2 +53,8 @@ // Credits: https://github.com/pmndrs/valtio | ||
const isReactElement = (x: any) => typeof x === "object" && x !== null && "$$typeof" in x | ||
const isVueElement = (x: any) => typeof x === "object" && x !== null && "__v_isVNode" in x | ||
const isDOMElement = (x: any) => | ||
typeof x === "object" && x !== null && "nodeType" in x && typeof x.nodeName === "string" | ||
const isElement = (x: any) => isReactElement(x) || isVueElement(x) || isDOMElement(x) | ||
const buildProxyFunction = ( | ||
@@ -63,2 +69,3 @@ objectIs = Object.is, | ||
(Array.isArray(x) || !(Symbol.iterator in x)) && | ||
!isElement(x) && | ||
!(x instanceof WeakMap) && | ||
@@ -65,0 +72,0 @@ !(x instanceof WeakSet) && |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
80758
993