ezfw-core 1.0.10 → 1.0.12

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.
package/core/ez.ts CHANGED
@@ -59,6 +59,7 @@ export interface EzFramework {
59
59
  grid?: { query: typeof EzGridQuery };
60
60
  moment: typeof moment;
61
61
 
62
+ ready: Promise<void>;
62
63
  _initModules(): Promise<void>;
63
64
  /**
64
65
  * Define a component in the Ez framework
@@ -250,6 +251,7 @@ const ez: EzFramework = {
250
251
  _services: null,
251
252
  _eventBus: null,
252
253
  moment: moment,
254
+ ready: null as unknown as Promise<void>,
253
255
 
254
256
  async _initModules(): Promise<void> {
255
257
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -604,7 +606,7 @@ const ez: EzFramework = {
604
606
  };
605
607
 
606
608
  // Initialize framework
607
- (async () => {
609
+ ez.ready = (async () => {
608
610
  await ez._initModules();
609
611
  ez._initTheme();
610
612
  })();
package/core/services.ts CHANGED
@@ -74,15 +74,16 @@ export class EzServices {
74
74
  try {
75
75
  const env = (import.meta as unknown as { env: Record<string, string> }).env || {};
76
76
  if (!env.VITE_CRYPTO_SECRET) {
77
+ console.debug('[ez] CryptoService skipped - VITE_CRYPTO_SECRET not set');
77
78
  return;
78
79
  }
79
80
 
80
81
  const { CryptoService } = await import(/* @vite-ignore */ '../services/crypto.js');
81
82
  await CryptoService.init(env.VITE_CRYPTO_SECRET);
82
83
  this._crypto = CryptoService;
84
+ console.log('[ez] CryptoService initialized');
83
85
  } catch (e) {
84
- // Crypto service not available - skip silently
85
- console.debug('[ez] CryptoService not initialized - libsodium-wrappers not installed');
86
+ console.warn('[ez] CryptoService not initialized:', e);
86
87
  }
87
88
  }
88
89
 
@@ -94,6 +95,7 @@ export class EzServices {
94
95
  try {
95
96
  const env = (import.meta as unknown as { env: Record<string, string> }).env || {};
96
97
  if (env.VITE_USE_FIREBASE !== 'true') {
98
+ console.debug('[ez] FirebaseService skipped - VITE_USE_FIREBASE not true');
97
99
  return;
98
100
  }
99
101
 
@@ -106,9 +108,9 @@ export class EzServices {
106
108
  const { FirebaseService } = await import(/* @vite-ignore */ '../services/firebase.js');
107
109
  this._firebase = new FirebaseService(firebaseConfig) as unknown as FirebaseService;
108
110
  await this._firebase!.init();
111
+ console.log('[ez] FirebaseService initialized');
109
112
  } catch (e) {
110
- // Firebase not available - skip silently
111
- console.debug('[ez] FirebaseService not initialized - firebase not installed');
113
+ console.warn('[ez] FirebaseService not initialized:', e);
112
114
  }
113
115
  }
114
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezfw-core",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Ez Framework - A declarative component framework for building modern web applications",
5
5
  "type": "module",
6
6
  "main": "./core/ez.ts",