@metamask-previews/notification-services-controller 0.1.0-preview-95089367 → 0.1.0-preview-caf274f8
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/NotificationServicesController/NotificationServicesController.js +3 -3
- package/dist/NotificationServicesController/NotificationServicesController.mjs +2 -2
- package/dist/NotificationServicesController/constants/constants.js +1 -1
- package/dist/NotificationServicesController/constants/constants.mjs +1 -1
- package/dist/NotificationServicesController/constants/index.js +2 -2
- package/dist/NotificationServicesController/constants/index.mjs +2 -2
- package/dist/NotificationServicesController/constants/notification-schema.js +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.mjs +1 -1
- package/dist/NotificationServicesController/index.js +6 -6
- package/dist/NotificationServicesController/index.mjs +5 -5
- package/dist/NotificationServicesController/processors/index.js +2 -2
- package/dist/NotificationServicesController/processors/index.mjs +2 -2
- package/dist/NotificationServicesController/processors/process-feature-announcement.js +1 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.js +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.mjs +1 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.js +1 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +1 -1
- package/dist/NotificationServicesController/services/feature-announcements.js +1 -1
- package/dist/NotificationServicesController/services/feature-announcements.mjs +1 -1
- package/dist/NotificationServicesController/services/onchain-notifications.js +1 -1
- package/dist/NotificationServicesController/services/onchain-notifications.mjs +1 -1
- package/dist/NotificationServicesController/utils/utils.js +1 -1
- package/dist/NotificationServicesController/utils/utils.mjs +1 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.js +9 -9
- package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +8 -8
- package/dist/NotificationServicesPushController/constants.js +1 -1
- package/dist/NotificationServicesPushController/constants.mjs +1 -1
- package/dist/NotificationServicesPushController/index.js +12 -12
- package/dist/NotificationServicesPushController/index.mjs +11 -11
- package/dist/NotificationServicesPushController/services/endpoints.js +1 -1
- package/dist/NotificationServicesPushController/services/endpoints.mjs +1 -1
- package/dist/NotificationServicesPushController/services/push/push-web.js +7 -7
- package/dist/NotificationServicesPushController/services/push/push-web.mjs +6 -6
- package/dist/NotificationServicesPushController/services/services.js +8 -8
- package/dist/NotificationServicesPushController/services/services.mjs +7 -7
- package/dist/NotificationServicesPushController/utils/get-notification-data.js +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.js +7 -7
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +6 -6
- package/dist/NotificationServicesPushController/utils/index.js +8 -8
- package/dist/NotificationServicesPushController/utils/index.mjs +7 -7
- package/dist/{chunk-QTK2RMF7.mjs → chunk-57S5B7X2.mjs} +2 -2
- package/dist/{chunk-UPVIT75F.js → chunk-6265FKB5.js} +3 -3
- package/dist/{chunk-DKQBDI4C.js → chunk-6GPIA5G3.js} +35 -35
- package/dist/{chunk-PGMXFZ6Y.js → chunk-ABFHAGGB.js} +3 -3
- package/dist/{chunk-SSWX2N73.mjs → chunk-AHEMTJDE.mjs} +2 -2
- package/dist/{chunk-TT56I53C.mjs → chunk-CQI6FYPZ.mjs} +2 -2
- package/dist/{chunk-JLHFZ2UG.mjs → chunk-DBTJ34DS.mjs} +3 -3
- package/dist/{chunk-YRWUXGL3.js → chunk-DOYL2MCR.js} +102 -82
- package/dist/chunk-DOYL2MCR.js.map +1 -0
- package/dist/{chunk-NJBJIZLR.js → chunk-H4RSHSWR.js} +6 -7
- package/dist/chunk-H4RSHSWR.js.map +1 -0
- package/dist/chunk-IGY2S5BC.js +36 -0
- package/dist/{chunk-CQ6CGSKZ.js → chunk-IK7KP7N3.js} +3 -3
- package/dist/{chunk-FFQNSBPU.js → chunk-KCIC5BWH.js} +7 -7
- package/dist/chunk-NBRY7XVG.mjs +925 -0
- package/dist/chunk-NBRY7XVG.mjs.map +1 -0
- package/dist/{chunk-NXXY4CAP.js → chunk-O6RMA2N6.js} +9 -36
- package/dist/chunk-O6RMA2N6.js.map +1 -0
- package/dist/{chunk-NMLYB3XT.js → chunk-QJTZL7TJ.js} +4 -4
- package/dist/{chunk-VE4DTN4R.mjs → chunk-QSFGJCPI.mjs} +2 -2
- package/dist/{chunk-52NKJDI2.mjs → chunk-TI4UC3G3.mjs} +5 -6
- package/dist/chunk-TI4UC3G3.mjs.map +1 -0
- package/dist/{chunk-LFD7J7KR.mjs → chunk-TS2NQOUA.mjs} +6 -33
- package/dist/chunk-TS2NQOUA.mjs.map +1 -0
- package/dist/chunk-U5UIDVOO.mjs +36 -0
- package/dist/chunk-XYIGTTEP.js +925 -0
- package/dist/chunk-XYIGTTEP.js.map +1 -0
- package/dist/{chunk-RYAHBEX2.mjs → chunk-YSNDM6BH.mjs} +26 -6
- package/dist/chunk-YSNDM6BH.mjs.map +1 -0
- package/dist/{chunk-ODZ6V4PH.mjs → chunk-ZFNFSLS6.mjs} +4 -4
- package/dist/index.js +12 -12
- package/dist/index.mjs +11 -11
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/NotificationServicesController/NotificationServicesController.d.ts +2 -0
- package/dist/types/NotificationServicesController/NotificationServicesController.d.ts.map +1 -1
- package/dist/types/NotificationServicesController/__fixtures__/index.d.ts +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/index.d.ts.map +1 -1
- package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts +0 -1
- package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-26CCETCM.mjs +0 -70
- package/dist/chunk-4KZO4UUC.js +0 -4300
- package/dist/chunk-4KZO4UUC.js.map +0 -1
- package/dist/chunk-52NKJDI2.mjs.map +0 -1
- package/dist/chunk-HCOBC2R5.mjs +0 -4300
- package/dist/chunk-HCOBC2R5.mjs.map +0 -1
- package/dist/chunk-LFD7J7KR.mjs.map +0 -1
- package/dist/chunk-NJBJIZLR.js.map +0 -1
- package/dist/chunk-NXXY4CAP.js.map +0 -1
- package/dist/chunk-RYAHBEX2.mjs.map +0 -1
- package/dist/chunk-V46WVGWN.js +0 -70
- package/dist/chunk-YRWUXGL3.js.map +0 -1
- /package/dist/{chunk-QTK2RMF7.mjs.map → chunk-57S5B7X2.mjs.map} +0 -0
- /package/dist/{chunk-UPVIT75F.js.map → chunk-6265FKB5.js.map} +0 -0
- /package/dist/{chunk-DKQBDI4C.js.map → chunk-6GPIA5G3.js.map} +0 -0
- /package/dist/{chunk-PGMXFZ6Y.js.map → chunk-ABFHAGGB.js.map} +0 -0
- /package/dist/{chunk-SSWX2N73.mjs.map → chunk-AHEMTJDE.mjs.map} +0 -0
- /package/dist/{chunk-TT56I53C.mjs.map → chunk-CQI6FYPZ.mjs.map} +0 -0
- /package/dist/{chunk-JLHFZ2UG.mjs.map → chunk-DBTJ34DS.mjs.map} +0 -0
- /package/dist/{chunk-V46WVGWN.js.map → chunk-IGY2S5BC.js.map} +0 -0
- /package/dist/{chunk-CQ6CGSKZ.js.map → chunk-IK7KP7N3.js.map} +0 -0
- /package/dist/{chunk-FFQNSBPU.js.map → chunk-KCIC5BWH.js.map} +0 -0
- /package/dist/{chunk-NMLYB3XT.js.map → chunk-QJTZL7TJ.js.map} +0 -0
- /package/dist/{chunk-VE4DTN4R.mjs.map → chunk-QSFGJCPI.mjs.map} +0 -0
- /package/dist/{chunk-26CCETCM.mjs.map → chunk-U5UIDVOO.mjs.map} +0 -0
- /package/dist/{chunk-ODZ6V4PH.mjs.map → chunk-ZFNFSLS6.mjs.map} +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6265FKB5js = require('./chunk-6265FKB5.js');
|
|
4
4
|
|
|
5
5
|
// src/NotificationServicesPushController/services/push/push-web.ts
|
|
6
6
|
var _app = require('firebase/app');
|
|
7
7
|
var _messaging = require('firebase/messaging');
|
|
8
8
|
var _sw = require('firebase/messaging/sw');
|
|
9
9
|
var _loglevel = require('loglevel'); var _loglevel2 = _interopRequireDefault(_loglevel);
|
|
10
|
-
var sw = self;
|
|
11
10
|
var createFirebaseApp = async (env) => {
|
|
12
11
|
try {
|
|
13
12
|
return _app.getApp.call(void 0, );
|
|
@@ -32,7 +31,7 @@ async function createRegToken(env) {
|
|
|
32
31
|
try {
|
|
33
32
|
const messaging = await getFirebaseMessaging(env);
|
|
34
33
|
const token = await _messaging.getToken.call(void 0, messaging, {
|
|
35
|
-
serviceWorkerRegistration:
|
|
34
|
+
serviceWorkerRegistration: self.registration,
|
|
36
35
|
vapidKey: env.vapidKey
|
|
37
36
|
});
|
|
38
37
|
return token;
|
|
@@ -60,7 +59,7 @@ async function listenToPushNotificationsReceived(env, handler) {
|
|
|
60
59
|
if (!notificationData) {
|
|
61
60
|
return;
|
|
62
61
|
}
|
|
63
|
-
const notification =
|
|
62
|
+
const notification = _chunk6265FKB5js.processors_exports.processNotification(notificationData);
|
|
64
63
|
await handler(notification);
|
|
65
64
|
} catch (error) {
|
|
66
65
|
_loglevel2.default.error("Unable to send push notification:", {
|
|
@@ -79,8 +78,8 @@ function listenToPushNotificationsClicked(handler) {
|
|
|
79
78
|
const data = event?.notification?.data;
|
|
80
79
|
handler(event, data);
|
|
81
80
|
};
|
|
82
|
-
|
|
83
|
-
const unsubscribe = () =>
|
|
81
|
+
self.addEventListener("notificationclick", clickHandler);
|
|
82
|
+
const unsubscribe = () => self.removeEventListener("notificationclick", clickHandler);
|
|
84
83
|
return unsubscribe;
|
|
85
84
|
}
|
|
86
85
|
|
|
@@ -90,4 +89,4 @@ function listenToPushNotificationsClicked(handler) {
|
|
|
90
89
|
|
|
91
90
|
|
|
92
91
|
exports.createRegToken = createRegToken; exports.deleteRegToken = deleteRegToken; exports.listenToPushNotificationsReceived = listenToPushNotificationsReceived; exports.listenToPushNotificationsClicked = listenToPushNotificationsClicked;
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-H4RSHSWR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/NotificationServicesPushController/services/push/push-web.ts"],"names":[],"mappings":";;;;;AAIA,SAAS,QAAQ,qBAAqB;AACtC,SAAS,UAAU,mBAAmB;AACtC,SAAS,cAAc,2BAA2B;AAElD,OAAO,SAAS;AAQhB,IAAM,oBAAoB,OACxB,QACyB;AACzB,MAAI;AACF,WAAO,OAAO;AAAA,EAChB,QAAQ;AACN,UAAM,iBAAiB;AAAA,MACrB,QAAQ,IAAI;AAAA,MACZ,YAAY,IAAI;AAAA,MAChB,eAAe,IAAI;AAAA,MACnB,WAAW,IAAI;AAAA,MACf,mBAAmB,IAAI;AAAA,MACvB,OAAO,IAAI;AAAA,MACX,eAAe,IAAI;AAAA,IACrB;AACA,WAAO,cAAc,cAAc;AAAA,EACrC;AACF;AAEA,IAAM,uBAAuB,OAC3B,QACuB;AACvB,QAAM,MAAM,MAAM,kBAAkB,GAAG;AACvC,SAAO,aAAa,GAAG;AACzB;AAQA,eAAsB,eACpB,KACwB;AACxB,MAAI;AACF,UAAM,YAAY,MAAM,qBAAqB,GAAG;AAChD,UAAM,QAAQ,MAAM,SAAS,WAAW;AAAA,MACtC,2BAA2B,KAAK;AAAA,MAChC,UAAU,IAAI;AAAA,IAChB,CAAC;AACD,WAAO;AAAA,EACT,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAQA,eAAsB,eACpB,KACkB;AAClB,MAAI;AACF,UAAM,YAAY,MAAM,qBAAqB,GAAG;AAChD,UAAM,YAAY,SAAS;AAC3B,WAAO;AAAA,EACT,SAAS,OAAO;AACd,WAAO;AAAA,EACT;AACF;AAQA,eAAsB,kCACpB,KACA,SACA;AACA,QAAM,YAAY,MAAM,qBAAqB,GAAG;AAChD,QAAM,+BAA+B;AAAA,IACnC;AAAA;AAAA,IAEA,OAAO,YAA4B;AACjC,UAAI;AACF,cAAM,mBAA4C,SAAS,MAAM,OAC7D,KAAK,MAAM,SAAS,MAAM,IAAI,IAC9B;AAEJ,YAAI,CAAC,kBAAkB;AACrB;AAAA,QACF;AAEA,cAAM,eAAe,mBAAW,oBAAoB,gBAAgB;AACpE,cAAM,QAAQ,YAAY;AAAA,MAC5B,SAAS,OAAO;AAEd,YAAI,MAAM,qCAAqC;AAAA,UAC7C,cAAc,SAAS,MAAM;AAAA,UAC7B;AAAA,QACF,CAAC;AACD,cAAM,IAAI,MAAM,kCAAkC;AAAA,MACpD;AAAA,IACF;AAAA,EACF;AAEA,QAAM,cAAc,MAAM,6BAA6B;AACvD,SAAO;AACT;AAQO,SAAS,iCACd,SACA;AACA,QAAM,eAAe,CAAC,UAA6B;AAEjD,UAAM,OAA4B,OAAO,cAAc;AACvD,YAAQ,OAAO,IAAI;AAAA,EACrB;AAEA,OAAK,iBAAiB,qBAAqB,YAAY;AACvD,QAAM,cAAc,MAClB,KAAK,oBAAoB,qBAAqB,YAAY;AAC5D,SAAO;AACT","sourcesContent":["// We are defining that this file uses a webworker global scope.\n// eslint-disable-next-line spaced-comment\n/// <reference lib=\"webworker\" />\nimport type { FirebaseApp } from 'firebase/app';\nimport { getApp, initializeApp } from 'firebase/app';\nimport { getToken, deleteToken } from 'firebase/messaging';\nimport { getMessaging, onBackgroundMessage } from 'firebase/messaging/sw';\nimport type { Messaging, MessagePayload } from 'firebase/messaging/sw';\nimport log from 'loglevel';\n\nimport type { Types } from '../../../NotificationServicesController';\nimport { Processors } from '../../../NotificationServicesController';\nimport type { PushNotificationEnv } from '../../types/firebase';\n\ndeclare const self: ServiceWorkerGlobalScope;\n\nconst createFirebaseApp = async (\n env: PushNotificationEnv,\n): Promise<FirebaseApp> => {\n try {\n return getApp();\n } catch {\n const firebaseConfig = {\n apiKey: env.apiKey,\n authDomain: env.authDomain,\n storageBucket: env.storageBucket,\n projectId: env.projectId,\n messagingSenderId: env.messagingSenderId,\n appId: env.appId,\n measurementId: env.measurementId,\n };\n return initializeApp(firebaseConfig);\n }\n};\n\nconst getFirebaseMessaging = async (\n env: PushNotificationEnv,\n): Promise<Messaging> => {\n const app = await createFirebaseApp(env);\n return getMessaging(app);\n};\n\n/**\n * Creates a registration token for Firebase Cloud Messaging.\n *\n * @param env - env to configure push notifications\n * @returns A promise that resolves with the registration token or null if an error occurs.\n */\nexport async function createRegToken(\n env: PushNotificationEnv,\n): Promise<string | null> {\n try {\n const messaging = await getFirebaseMessaging(env);\n const token = await getToken(messaging, {\n serviceWorkerRegistration: self.registration,\n vapidKey: env.vapidKey,\n });\n return token;\n } catch {\n return null;\n }\n}\n\n/**\n * Deletes the Firebase Cloud Messaging registration token.\n *\n * @param env - env to configure push notifications\n * @returns A promise that resolves with true if the token was successfully deleted, false otherwise.\n */\nexport async function deleteRegToken(\n env: PushNotificationEnv,\n): Promise<boolean> {\n try {\n const messaging = await getFirebaseMessaging(env);\n await deleteToken(messaging);\n return true;\n } catch (error) {\n return false;\n }\n}\n\n/**\n * Service Worker Listener for when push notifications are received.\n * @param env - push notification environment\n * @param handler - handler to actually showing notification, MUST BE PROVEDED\n * @returns unsubscribe handler\n */\nexport async function listenToPushNotificationsReceived(\n env: PushNotificationEnv,\n handler: (notification: Types.INotification) => void | Promise<void>,\n) {\n const messaging = await getFirebaseMessaging(env);\n const unsubscribePushNotifications = onBackgroundMessage(\n messaging,\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n async (payload: MessagePayload) => {\n try {\n const notificationData: Types.NotificationUnion = payload?.data?.data\n ? JSON.parse(payload?.data?.data)\n : undefined;\n\n if (!notificationData) {\n return;\n }\n\n const notification = Processors.processNotification(notificationData);\n await handler(notification);\n } catch (error) {\n // Do Nothing, cannot parse a bad notification\n log.error('Unable to send push notification:', {\n notification: payload?.data?.data,\n error,\n });\n throw new Error('Unable to send push notification');\n }\n },\n );\n\n const unsubscribe = () => unsubscribePushNotifications();\n return unsubscribe;\n}\n\n/**\n * Service Worker Listener for when a notification is clicked\n *\n * @param handler - listen to NotificationEvent from the service worker\n * @returns unsubscribe handler\n */\nexport function listenToPushNotificationsClicked(\n handler: (e: NotificationEvent, notification?: Types.INotification) => void,\n) {\n const clickHandler = (event: NotificationEvent) => {\n // Get Data\n const data: Types.INotification = event?.notification?.data;\n handler(event, data);\n };\n\n self.addEventListener('notificationclick', clickHandler);\n const unsubscribe = () =>\n self.removeEventListener('notificationclick', clickHandler);\n return unsubscribe;\n}\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
var __accessCheck = (obj, member, msg) => {
|
|
7
|
+
if (!member.has(obj))
|
|
8
|
+
throw TypeError("Cannot " + msg);
|
|
9
|
+
};
|
|
10
|
+
var __privateGet = (obj, member, getter) => {
|
|
11
|
+
__accessCheck(obj, member, "read from private field");
|
|
12
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
13
|
+
};
|
|
14
|
+
var __privateAdd = (obj, member, value) => {
|
|
15
|
+
if (member.has(obj))
|
|
16
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
17
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
18
|
+
};
|
|
19
|
+
var __privateSet = (obj, member, value, setter) => {
|
|
20
|
+
__accessCheck(obj, member, "write to private field");
|
|
21
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
22
|
+
return value;
|
|
23
|
+
};
|
|
24
|
+
var __privateMethod = (obj, member, method) => {
|
|
25
|
+
__accessCheck(obj, member, "access private method");
|
|
26
|
+
return method;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.__export = __export; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__privateMethod = __privateMethod;
|
|
36
|
+
//# sourceMappingURL=chunk-IGY2S5BC.js.map
|
|
@@ -13,11 +13,11 @@ var _chunkDY4ELDRQjs = require('./chunk-DY4ELDRQ.js');
|
|
|
13
13
|
var _chunkTLX5QQK5js = require('./chunk-TLX5QQK5.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkIGY2S5BCjs = require('./chunk-IGY2S5BC.js');
|
|
17
17
|
|
|
18
18
|
// src/NotificationServicesController/constants/index.ts
|
|
19
19
|
var constants_exports = {};
|
|
20
|
-
|
|
20
|
+
_chunkIGY2S5BCjs.__export.call(void 0, constants_exports, {
|
|
21
21
|
CHAIN_SYMBOLS: () => _chunkDY4ELDRQjs.CHAIN_SYMBOLS,
|
|
22
22
|
NOTIFICATION_CHAINS: () => _chunkDY4ELDRQjs.NOTIFICATION_CHAINS,
|
|
23
23
|
SUPPORTED_CHAINS: () => _chunkDY4ELDRQjs.SUPPORTED_CHAINS,
|
|
@@ -32,4 +32,4 @@ _chunkV46WVGWNjs.__export.call(void 0, constants_exports, {
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
exports.constants_exports = constants_exports;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-IK7KP7N3.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkABFHAGGBjs = require('./chunk-ABFHAGGB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,21 +11,21 @@ var _chunkPGMXFZ6Yjs = require('./chunk-PGMXFZ6Y.js');
|
|
|
11
11
|
var _chunkEJ52BDLBjs = require('./chunk-EJ52BDLB.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIGY2S5BCjs = require('./chunk-IGY2S5BC.js');
|
|
15
15
|
|
|
16
16
|
// src/NotificationServicesPushController/utils/index.ts
|
|
17
17
|
var utils_exports = {};
|
|
18
|
-
|
|
18
|
+
_chunkIGY2S5BCjs.__export.call(void 0, utils_exports, {
|
|
19
19
|
calcTokenAmount: () => _chunkEJ52BDLBjs.calcTokenAmount,
|
|
20
|
-
createOnChainPushNotificationMessage: () =>
|
|
21
|
-
createOnChainPushNotificationMessages: () =>
|
|
20
|
+
createOnChainPushNotificationMessage: () => _chunkABFHAGGBjs.createOnChainPushNotificationMessage,
|
|
21
|
+
createOnChainPushNotificationMessages: () => _chunkABFHAGGBjs.createOnChainPushNotificationMessages,
|
|
22
22
|
formatAmount: () => _chunkEJ52BDLBjs.formatAmount,
|
|
23
23
|
getAmount: () => _chunkEJ52BDLBjs.getAmount,
|
|
24
24
|
getLeadingZeroCount: () => _chunkEJ52BDLBjs.getLeadingZeroCount,
|
|
25
|
-
isOnChainNotification: () =>
|
|
25
|
+
isOnChainNotification: () => _chunkABFHAGGBjs.isOnChainNotification
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
exports.utils_exports = utils_exports;
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-KCIC5BWH.js.map
|