@almadar/ui 2.48.4 → 2.48.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2486,22 +2486,13 @@ function cn(...inputs) {
2486
2486
  // lib/logger.ts
2487
2487
  var LEVEL_PRIORITY = { DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3 };
2488
2488
  var ENV = typeof process !== "undefined" && process.env ? process.env : {};
2489
- var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
2490
- function getViteEnv(key) {
2491
- try {
2492
- const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2493
- return meta ? meta.env?.[key] : void 0;
2494
- } catch {
2495
- return void 0;
2496
- }
2497
- }
2498
- function envGet(key, viteKey) {
2499
- return ENV[key] ?? (viteKey ? getViteEnv(viteKey) : void 0) ?? VITE_ENV[viteKey ?? key];
2489
+ function envGet(key) {
2490
+ return ENV[key] ?? ENV[`VITE_${key}`];
2500
2491
  }
2501
- var NODE_ENV = envGet("NODE_ENV", "VITE_NODE_ENV") ?? "development";
2502
- var CONFIGURED_LEVEL = (envGet("LOG_LEVEL", "VITE_LOG_LEVEL") ?? (NODE_ENV === "production" ? "info" : "debug")).toUpperCase();
2492
+ var NODE_ENV = envGet("NODE_ENV") ?? "development";
2493
+ var CONFIGURED_LEVEL = (envGet("LOG_LEVEL") ?? (NODE_ENV === "production" ? "info" : "debug")).toUpperCase();
2503
2494
  var MIN_PRIORITY = LEVEL_PRIORITY[CONFIGURED_LEVEL] ?? 0;
2504
- var DEBUG_FILTER = (envGet("ALMADAR_DEBUG", "VITE_ALMADAR_DEBUG") ?? "").split(",").map((s) => s.trim()).filter(Boolean);
2495
+ var DEBUG_FILTER = (envGet("ALMADAR_DEBUG") ?? "").split(",").map((s) => s.trim()).filter(Boolean);
2505
2496
  function matchesNamespace(namespace) {
2506
2497
  if (DEBUG_FILTER.length === 0) return true;
2507
2498
  return DEBUG_FILTER.some((pattern) => {