@zag-js/store
Advanced tools
Comparing version 0.56.0 to 0.56.1
@@ -34,15 +34,10 @@ "use strict"; | ||
function getGlobal() { | ||
if (typeof globalThis !== "undefined") | ||
return globalThis; | ||
if (typeof self !== "undefined") | ||
return self; | ||
if (typeof window !== "undefined") | ||
return window; | ||
if (typeof global !== "undefined") | ||
return global; | ||
if (typeof globalThis !== "undefined") return globalThis; | ||
if (typeof self !== "undefined") return self; | ||
if (typeof window !== "undefined") return window; | ||
if (typeof global !== "undefined") return global; | ||
} | ||
function makeGlobal(key, value) { | ||
const g = getGlobal(); | ||
if (!g) | ||
return value(); | ||
if (!g) return value(); | ||
g[key] || (g[key] = value()); | ||
@@ -49,0 +44,0 @@ return g[key]; |
{ | ||
"name": "@zag-js/store", | ||
"version": "0.56.0", | ||
"version": "0.56.1", | ||
"description": "The reactive store package for zag machines", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
78050
979