ezfw-core 1.0.11 → 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/services.ts +6 -4
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
111
|
-
console.debug('[ez] FirebaseService not initialized - firebase not installed');
|
|
113
|
+
console.warn('[ez] FirebaseService not initialized:', e);
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
|