@ccci/micro-server 1.0.113 → 1.0.115
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/dist/index.js +3 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -250944,7 +250944,6 @@ class WebSocketServer {
|
|
|
250944
250944
|
|
|
250945
250945
|
// src/utils/PushNotifier.ts
|
|
250946
250946
|
var import_firebase_admin = __toESM(require_lib18(), 1);
|
|
250947
|
-
|
|
250948
250947
|
class PushNotifier {
|
|
250949
250948
|
static FirebaseAdmin = import_firebase_admin.default;
|
|
250950
250949
|
static instance = 0;
|
|
@@ -250953,12 +250952,9 @@ class PushNotifier {
|
|
|
250953
250952
|
PushNotifier.rootDir = path4;
|
|
250954
250953
|
const configPath = `${PushNotifier.rootDir}/notif.config.ts`;
|
|
250955
250954
|
if (!PushNotifier.instance) {
|
|
250956
|
-
console.log("configPath :>> ", configPath);
|
|
250957
250955
|
import(configPath).then((FirebaseServiceAccount) => {
|
|
250958
|
-
console.log("FirebaseServiceAccount :>> ", FirebaseServiceAccount);
|
|
250959
|
-
console.log("FirebaseServiceAccount :>> ", FirebaseServiceAccount.default);
|
|
250960
250956
|
PushNotifier.FirebaseAdmin.initializeApp({
|
|
250961
|
-
credential: import_firebase_admin.default.credential.cert(FirebaseServiceAccount)
|
|
250957
|
+
credential: import_firebase_admin.default.credential.cert(FirebaseServiceAccount.default)
|
|
250962
250958
|
});
|
|
250963
250959
|
PushNotifier.instance = PushNotifier.FirebaseAdmin.app.length;
|
|
250964
250960
|
});
|
|
@@ -250971,6 +250967,8 @@ class PushNotifier {
|
|
|
250971
250967
|
notification: message,
|
|
250972
250968
|
data: metadata
|
|
250973
250969
|
};
|
|
250970
|
+
Logger.info("PushNotifier.FirebaseAdmin :>> ", PushNotifier.FirebaseAdmin);
|
|
250971
|
+
Logger.info("params :>> ", params);
|
|
250974
250972
|
let result = await PushNotifier.FirebaseAdmin.messaging().sendEachForMulticast(params);
|
|
250975
250973
|
return result;
|
|
250976
250974
|
} catch (error) {
|