akanjs 2.3.12-rc.0 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akanjs",
3
- "version": "2.3.12-rc.0",
3
+ "version": "2.3.12",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -44,6 +44,9 @@ const getClientEnv = () => globalThis.__AKAN_CLIENT_ENV__;
44
44
 
45
45
  const getFirebaseConfig = () => getClientEnv()?.firebase;
46
46
 
47
+ const firebaseAppPackage = "firebase/app";
48
+ const firebaseMessagingPackage = "firebase/messaging";
49
+
47
50
  const normalizePlatform = (platform: string): PushNotificationPlatform | null => {
48
51
  if (platform === "web" || platform === "ios" || platform === "android") return platform;
49
52
  return null;
@@ -102,8 +105,8 @@ const getWebToken = async (): Promise<PushToken | undefined> => {
102
105
  return undefined;
103
106
  }
104
107
  const [{ getApps, initializeApp }, { getToken: getFirebaseToken, getMessaging }] = await Promise.all([
105
- import("firebase/app"),
106
- import("firebase/messaging"),
108
+ null as unknown as typeof import("firebase/app"), //! temporary disabled
109
+ null as unknown as typeof import("firebase/messaging"), //@ temporary disabled
107
110
  ]);
108
111
  const firebase = getApps()[0] ?? initializeApp(firebaseConfig);
109
112
  const messaging = getMessaging(firebase);