@aws-amplify/rtn-push-notification 1.2.34 → 1.2.35-local-stack.00864ae.0
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const getConstants: () => {
|
|
2
2
|
NativeEvent: {
|
|
3
|
-
BACKGROUND_MESSAGE_RECEIVED?: string
|
|
3
|
+
BACKGROUND_MESSAGE_RECEIVED?: string;
|
|
4
4
|
FOREGROUND_MESSAGE_RECEIVED: string;
|
|
5
5
|
LAUNCH_NOTIFICATION_OPENED: string;
|
|
6
6
|
NOTIFICATION_OPENED: string;
|
|
7
7
|
TOKEN_RECEIVED: string;
|
|
8
8
|
};
|
|
9
|
-
NativeHeadlessTaskKey?: string
|
|
9
|
+
NativeHeadlessTaskKey?: string;
|
|
10
10
|
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { PushNotificationMessage, PushNotificationPermissionStatus, PushNotificationPermissions, } from './types';
|
|
2
2
|
declare const module: {
|
|
3
|
-
addMessageEventListener: (event: string, listener: (message: import("./types").PushNotificationMessage | null, completionHandlerId?: string
|
|
4
|
-
addTokenEventListener: (event: string, listener: (token: string) => void) => import("react-native
|
|
3
|
+
addMessageEventListener: (event: string, listener: (message: import("./types").PushNotificationMessage | null, completionHandlerId?: string) => void) => import("react-native").EmitterSubscription;
|
|
4
|
+
addTokenEventListener: (event: string, listener: (token: string) => void) => import("react-native").EmitterSubscription;
|
|
5
5
|
completeNotification: (completionHandlerId: string) => void;
|
|
6
6
|
getBadgeCount: () => void | Promise<number | null>;
|
|
7
7
|
getConstants: () => {
|
|
8
8
|
NativeEvent: {
|
|
9
|
-
BACKGROUND_MESSAGE_RECEIVED?: string
|
|
9
|
+
BACKGROUND_MESSAGE_RECEIVED?: string;
|
|
10
10
|
FOREGROUND_MESSAGE_RECEIVED: string;
|
|
11
11
|
LAUNCH_NOTIFICATION_OPENED: string;
|
|
12
12
|
NOTIFICATION_OPENED: string;
|
|
13
13
|
TOKEN_RECEIVED: string;
|
|
14
14
|
};
|
|
15
|
-
NativeHeadlessTaskKey?: string
|
|
15
|
+
NativeHeadlessTaskKey?: string;
|
|
16
16
|
};
|
|
17
17
|
getLaunchNotification: () => Promise<import("./types").PushNotificationMessage | null>;
|
|
18
18
|
getPermissionStatus: () => Promise<import("./types").PushNotificationPermissionStatus>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/rtn-push-notification",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.35-local-stack.00864ae.0+00864ae",
|
|
4
4
|
"description": "React Native module for aws-amplify push notifications",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"lodash": "^4.17.21"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"react-native": "0.72.17"
|
|
31
|
-
"typescript": "5.0.2"
|
|
30
|
+
"react-native": "0.72.17"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
34
33
|
"react-native": ">=0.70"
|
|
@@ -51,5 +50,5 @@
|
|
|
51
50
|
"dist/esm",
|
|
52
51
|
"src"
|
|
53
52
|
],
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "00864aec571d0509655eea0673e896d69d434972"
|
|
55
54
|
}
|