🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-native-moengage-inbox

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-moengage-inbox - npm Package Compare versions

Comparing version

to
2.1.1

android/.gradle/7.4/checksums/checksums.lock

9

CHANGELOG.md

@@ -0,1 +1,8 @@

# 09-11-2022
## 2.1.1
- Bugfix
- The payload of `fetchAllMessages()` is not in sync with the defined model
- `trackMessageClicked()` and `deleteMessage()` not working on Android if the campaign has an image.
# 28-10-2022

@@ -5,3 +12,3 @@

- Android
- MOEN-18664: AGP version updated to `7.3.1`
- AGP version updated to `7.3.1`
- Gradle version updated to `7.4`

@@ -8,0 +15,0 @@ - Target SDK version - 31

2

package.json
{
"name": "react-native-moengage-inbox",
"version": "2.1.0",
"version": "2.1.1",
"description": "Inbox Module for the MoEngage Platform",

@@ -5,0 +5,0 @@ "main": "src/index.ts",

@@ -6,5 +6,5 @@ import MoEInboxMessage from './MoEInboxMessage'

platform: MoEPlatform;
messages?: Array<MoEInboxMessage>;
messages: MoEInboxMessage[];
constructor(platform: MoEPlatform, messages: Array<MoEInboxMessage> | undefined) {
constructor(platform: MoEPlatform, messages: MoEInboxMessage[]) {
this.platform = platform;

@@ -11,0 +11,0 @@ this.messages = messages;

@@ -11,2 +11,3 @@ import { Platform } from "react-native";

import { MOE_DATA } from "../utils/MoEInboxConstants"
import { MoEMediaType } from "../model/MoEMediaType";
const PLATFORM = 'platform'

@@ -19,3 +20,3 @@ const UNCLICKED_COUNT = 'unClickedCount'

var platform;
var messageList:Array<MoEInboxMessage>|undefined;
var messageList:MoEInboxMessage[] = [];

@@ -30,7 +31,7 @@ if (isValidObject(inboxData)) {

if (inboxMessage != null)
messageList?.push(inboxMessage);
messageList.push(inboxMessage);
}
}
if (platform != undefined)
return new MoEInboxData(platform, messages)
return new MoEInboxData(platform, messageList)
return undefined;

@@ -205,3 +206,2 @@ }

}
return json

@@ -228,3 +228,3 @@ }

return new MoEInboxData(platform, undefined)
return new MoEInboxData(platform, [])
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet