@zag-js/store
Advanced tools
Comparing version 0.0.0-dev-20240611102459 to 0.0.0-dev-20240611130830
@@ -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.0.0-dev-20240611102459", | ||
"version": "0.0.0-dev-20240611130830", | ||
"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
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
78068
979