@adobe/react-native-aepmessaging 6.0.1 → 6.0.2

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.
@@ -32,7 +32,7 @@ declare class Messaging {
32
32
  * Retrieves the last message that has been shown in the UI
33
33
  * @returns The latest message to have been displayed
34
34
  */
35
- static getLatestMessage(): Promise<Message>;
35
+ static getLatestMessage(): Promise<Message | null | undefined>;
36
36
  /**
37
37
  * Retrieves the previously fetched (and cached) feeds content from the SDK for the provided surfaces.
38
38
  * If the feeds content for one or more surfaces isn't previously cached in the SDK, it will not be retrieved from Adobe Journey Optimizer via the Experience Edge network.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@adobe/react-native-aepmessaging",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "Adobe Experience Platform support for React Native apps.",
5
5
  "homepage": "https://developer.adobe.com/client-sdks/documentation/",
6
6
  "license": "Apache-2.0",
7
- "main": "./src/index.ts",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "scripts": {
9
10
  "cleanup": "rm -rf node_modules",
10
11
  "tsc": "tsc"
@@ -38,5 +39,5 @@
38
39
  "installConfig": {
39
40
  "hoistingLimits": "dependencies"
40
41
  },
41
- "gitHead": "3cd87ac432f001bbbb5cf16febc47597899fcd08"
42
+ "gitHead": "dded69cc74199e7350a886731cbfeb61bae5d257"
42
43
  }
package/src/Messaging.ts CHANGED
@@ -73,7 +73,7 @@ class Messaging {
73
73
  * Retrieves the last message that has been shown in the UI
74
74
  * @returns The latest message to have been displayed
75
75
  */
76
- static async getLatestMessage(): Promise<Message> {
76
+ static async getLatestMessage(): Promise<Message | null | undefined> {
77
77
  const message = await RCTAEPMessaging.getLatestMessage();
78
78
  return message ? new Message(message) : undefined;
79
79
  }
package/.babelrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-typescript", "react-native"],
3
- "plugins": [
4
- ["module-resolver", {
5
- "root": [ "./src/" ]
6
- }]
7
- ]
8
- }
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "noEmit": false,
5
- "rootDir": "./src",
6
- "outDir": "./dist",
7
- "noImplicitAny": false
8
- },
9
- "exclude": ["__tests__", "js"]
10
- }