@aws-amplify/react-native 1.1.9 → 1.1.10-unstable.3c4d29e.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,21 +1,21 @@
1
1
  export declare const loadAmplifyPushNotification: () => {
2
- addMessageEventListener: (event: string, listener: (message: import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null, completionHandlerId?: string | undefined) => void) => import("react-native/types").EmitterSubscription;
3
- addTokenEventListener: (event: string, listener: (token: string) => void) => import("react-native/types").EmitterSubscription;
2
+ addMessageEventListener: (event: string, listener: (message: import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null, completionHandlerId?: string) => void) => import("react-native").EmitterSubscription;
3
+ addTokenEventListener: (event: string, listener: (token: string) => void) => import("react-native").EmitterSubscription;
4
4
  completeNotification: (completionHandlerId: string) => void;
5
5
  getBadgeCount: () => void | Promise<number | null>;
6
6
  getConstants: () => {
7
7
  NativeEvent: {
8
- BACKGROUND_MESSAGE_RECEIVED?: string | undefined;
8
+ BACKGROUND_MESSAGE_RECEIVED?: string;
9
9
  FOREGROUND_MESSAGE_RECEIVED: string;
10
10
  LAUNCH_NOTIFICATION_OPENED: string;
11
11
  NOTIFICATION_OPENED: string;
12
12
  TOKEN_RECEIVED: string;
13
13
  };
14
- NativeHeadlessTaskKey?: string | undefined;
14
+ NativeHeadlessTaskKey?: string;
15
15
  };
16
16
  getLaunchNotification: () => Promise<import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null>;
17
17
  getPermissionStatus: () => Promise<import("@aws-amplify/rtn-push-notification").PushNotificationPermissionStatus>;
18
18
  registerHeadlessTask: (task: (message: import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null) => Promise<void>) => void;
19
- requestPermissions: ({ alert, badge, sound }?: import("@aws-amplify/rtn-push-notification").PushNotificationPermissions | undefined) => Promise<boolean>;
19
+ requestPermissions: ({ alert, badge, sound }?: import("@aws-amplify/rtn-push-notification").PushNotificationPermissions) => Promise<boolean>;
20
20
  setBadgeCount: (count: number) => void;
21
21
  };
@@ -1,3 +1,3 @@
1
1
  export declare const loadAmplifyWebBrowser: () => {
2
- openAuthSessionAsync: (url: string, redirectUrls: string[], prefersEphemeralSession?: boolean | undefined) => Promise<string | null | undefined>;
2
+ openAuthSessionAsync: (url: string, redirectUrls: string[], prefersEphemeralSession?: boolean) => Promise<string | null | undefined>;
3
3
  };
@@ -1,20 +1,20 @@
1
1
  export declare const loadBuffer: () => {
2
- new (str: string, encoding?: string | undefined): Buffer;
2
+ new (str: string, encoding?: string): Buffer;
3
3
  new (size: number): Buffer;
4
4
  new (array: Uint8Array): Buffer;
5
5
  new (arrayBuffer: ArrayBuffer): Buffer;
6
- new (array: readonly any[]): Buffer;
6
+ new (array: ReadonlyArray<any>): Buffer;
7
7
  new (buffer: Buffer): Buffer;
8
8
  prototype: Buffer;
9
- from(arrayBuffer: ArrayBuffer, byteOffset?: number | undefined, length?: number | undefined): Buffer;
10
- from(data: string | readonly any[] | Buffer | ArrayBuffer): Buffer;
11
- from(str: string, encoding?: string | undefined): Buffer;
9
+ from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
10
+ from(data: ReadonlyArray<any> | string | Buffer | ArrayBuffer): Buffer;
11
+ from(str: string, encoding?: string): Buffer;
12
12
  isBuffer(obj: any): obj is Buffer;
13
13
  isEncoding(encoding: string): boolean;
14
- byteLength(string: string | Buffer | ArrayBuffer | DataView, encoding?: string | undefined): number;
15
- concat(list: readonly Buffer[], totalLength?: number | undefined): Buffer;
14
+ byteLength(string: string | Buffer | DataView | ArrayBuffer, encoding?: string): number;
15
+ concat(list: ReadonlyArray<Buffer>, totalLength?: number): Buffer;
16
16
  compare(buf1: Buffer, buf2: Buffer): number;
17
- alloc(size: number, fill?: string | number | Buffer | undefined, encoding?: string | undefined): Buffer;
17
+ alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
18
18
  allocUnsafe(size: number): Buffer;
19
19
  allocUnsafeSlow(size: number): Buffer;
20
20
  poolSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/react-native",
3
- "version": "1.1.9",
3
+ "version": "1.1.10-unstable.3c4d29e.0+3c4d29e",
4
4
  "description": "React Native core module for aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -33,14 +33,13 @@
33
33
  "react-native-get-random-values": ">=1.8.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@aws-amplify/rtn-push-notification": "1.2.34",
37
- "@aws-amplify/rtn-web-browser": "1.1.3",
36
+ "@aws-amplify/rtn-push-notification": "1.2.35-unstable.3c4d29e.0+3c4d29e",
37
+ "@aws-amplify/rtn-web-browser": "1.1.4-unstable.3c4d29e.0+3c4d29e",
38
38
  "@react-native-async-storage/async-storage": "^1.17.12",
39
39
  "@react-native-community/netinfo": "4.7.0",
40
40
  "@types/base-64": "1.0.0",
41
41
  "react-native": "0.72.17",
42
- "react-native-get-random-values": "1.9.0",
43
- "typescript": "5.1.6"
42
+ "react-native-get-random-values": "1.9.0"
44
43
  },
45
44
  "repository": {
46
45
  "type": "git",
@@ -61,5 +60,5 @@
61
60
  "src"
62
61
  ],
63
62
  "source": "src/index",
64
- "gitHead": "f2ac9929610f7f878f124083ceaf03465113cd44"
63
+ "gitHead": "3c4d29e37797e6bec73db534278ed5ffd3c5d7e5"
65
64
  }