@zag-js/core
Advanced tools
Comparing version 0.0.0-dev-20220604091934 to 0.0.0-dev-20220604123458
@@ -58,2 +58,10 @@ var __defProp = Object.defineProperty; | ||
} | ||
var isDev = () => void 0 !== "production"; | ||
var isDom = () => typeof window !== "undefined"; | ||
var isArray = (v) => Array.isArray(v); | ||
var isObject = (v) => !(v == null || typeof v !== "object" || isArray(v)); | ||
var isNumber = (v) => typeof v === "number" && !Number.isNaN(v); | ||
var isString = (v) => typeof v === "string"; | ||
var isFunction = (v) => typeof v === "function"; | ||
var isTouchDevice = isDom() && !!navigator.maxTouchPoints; | ||
var runIfFn = (v, ...a) => { | ||
@@ -78,8 +86,2 @@ const res = typeof v === "function" ? v(...a) : v; | ||
})(); | ||
var isDev = () => void 0 !== "production"; | ||
var isArray = (v) => Array.isArray(v); | ||
var isObject = (v) => !(v == null || typeof v !== "object" || isArray(v)); | ||
var isNumber = (v) => typeof v === "number" && !Number.isNaN(v); | ||
var isString = (v) => typeof v === "string"; | ||
var isFunction = (v) => typeof v === "function"; | ||
function warn(...a) { | ||
@@ -86,0 +88,0 @@ const m = a.length === 1 ? a[0] : a[1]; |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.0.0-dev-20220604091934", | ||
"version": "0.0.0-dev-20220604123458", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/utils": "0.0.0-dev-20220604091934", | ||
"@zag-js/utils": "0.0.0-dev-20220604123458", | ||
"klona": "^2.0.5", | ||
@@ -43,0 +43,0 @@ "valtio": "^1.6.0" |
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
233619
2050
+ Added@zag-js/utils@0.0.0-dev-20220604123458(transitive)
- Removed@zag-js/utils@0.0.0-dev-20220604091934(transitive)