Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

castle-chat-lib

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

castle-chat-lib - npm Package Compare versions

Comparing version 2.7.0 to 2.8.0

2

package.json
{
"name": "castle-chat-lib",
"version": "2.7.0",
"version": "2.8.0",
"description": "",

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

@@ -88,7 +88,12 @@ import _ from 'lodash';

let message = messages[i];
if (this._seenChatIds[message.chatMessageId]) {
continue;
if (message.editCount > this._seenChatIds[message.chatMessageId]) {
message.isEdit = true;
} else {
continue;
}
}
this._seenChatIds[message.chatMessageId] = true;
this._seenChatIds[message.chatMessageId] = message.editCount;

@@ -127,3 +132,3 @@ let newMessage = {

for (let i = 0; i < chatMessageIds.length; i++) {
this._seenChatIds[chatMessageIds[i]] = false;
delete this._seenChatIds[chatMessageIds[i]];
}

@@ -162,2 +167,4 @@ }

fromUserId
isEdited
editCount
body

@@ -260,2 +267,4 @@ createdTime

fromUserId
isEdited
editCount
body

@@ -262,0 +271,0 @@ createdTime

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc