aeremmiddleware 1.0.14 → 1.0.18

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": "aeremmiddleware",
3
- "version": "1.0.14",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "type": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,5 @@
1
+ import PushNotificationFCM from "./pushNotificationFCM";
2
+
3
+ export const pushNotification = {
4
+ pushNotificationFCM: PushNotificationFCM
5
+ };
@@ -1,6 +1,7 @@
1
1
  const FCM = require("fcm-node");
2
2
 
3
- export async function sendPushNotification(
3
+ export default class PushNotificationFCM{
4
+ public async sendPushNotification(
4
5
  serverKey:string,
5
6
  registrationIds: string[],
6
7
  title: string,
@@ -33,4 +34,5 @@ export async function sendPushNotification(
33
34
  }
34
35
  });
35
36
  });
37
+ }
36
38
  }
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { finance } from "./Finance";
2
2
  import { socials } from "./Socials";
3
- import {sendPushNotification } from "./PushNotification/pushNotificationFCM";
3
+ import {pushNotification } from "./PushNotification";
4
4
 
5
5
 
6
- export const AeremMiddleware = {
7
- finance,socials, sendPushNotification
6
+ export const AeremMiddleware = {
7
+ finance,socials, pushNotification
8
8
 
9
9
  }