mayo-firebase-config 1.2.19 → 1.2.21
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.
@@ -22,7 +22,8 @@ const extractFirebaseConfig = () => __awaiter(void 0, void 0, void 0, function*
|
|
22
22
|
mayo_logger_1.Logger.info('Successfully extracted Firebase config', null, { tag: 'mayo-firebase-config-extractor' });
|
23
23
|
}
|
24
24
|
else {
|
25
|
-
mayo_logger_1.Logger.
|
25
|
+
mayo_logger_1.Logger.error('Failed to extract valid Firebase config or the config is empty', null, { tag: 'mayo-firebase-config-extractor' });
|
26
|
+
throw new Error('Failed to extract valid Firebase config or the config is empty');
|
26
27
|
}
|
27
28
|
// Be cautious about logging potentially sensitive information
|
28
29
|
mayo_logger_1.Logger.info('Extracted Firebase config:', { config }, { tag: 'mayo-firebase-config-extractor' });
|
package/package.json
CHANGED
@@ -8,13 +8,13 @@ console.log('MODULE MODULE MODULE MODULE :', Object.keys(FirebaseConfigExtractor
|
|
8
8
|
export const extractFirebaseConfig = async (): Promise<FirebaseConfig> => {
|
9
9
|
try {
|
10
10
|
Logger.info('Starting1 Firebase config extraction...', null, { tag: 'mayo-firebase-config-extractor' });
|
11
|
-
|
12
11
|
const config: FirebaseConfig = await FirebaseConfigExtractor.extractFirebaseConfig();
|
13
12
|
|
14
13
|
if (config && typeof config === 'object' && Object.keys(config).length > 0) {
|
15
14
|
Logger.info('Successfully extracted Firebase config', null, { tag: 'mayo-firebase-config-extractor' });
|
16
15
|
} else {
|
17
|
-
Logger.
|
16
|
+
Logger.error('Failed to extract valid Firebase config or the config is empty', null, { tag: 'mayo-firebase-config-extractor' });
|
17
|
+
throw new Error('Failed to extract valid Firebase config or the config is empty');
|
18
18
|
}
|
19
19
|
|
20
20
|
// Be cautious about logging potentially sensitive information
|