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

@evo/chat-core

Package Overview
Dependencies
Maintainers
11
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evo/chat-core - npm Package Compare versions

Comparing version 0.7.11 to 0.7.12

7

lib/besida.js

@@ -435,3 +435,8 @@ 'use strict';

}).catch(function (error) {
sendingMessage = sendingMessage.set('isErrorOnSending', true);
var ourError = error && error.data && error.data.errors || {};
sendingMessage = sendingMessage.withMutations(function (msg) {
msg.set('isErrorOnSending', true);
msg.set('isSpellingError', (0, _utils.isSpellingError)(Object.keys(ourError)[0]));
});
updReceiveRoom = (0, _utils.updateMessageById)(baseStore.getIn(roomPath), msgId, sendingMessage);

@@ -438,0 +443,0 @@ baseStore = baseStore.setIn(roomPath, updReceiveRoom);

@@ -36,2 +36,3 @@ 'use strict';

exports.getUserRoleInRoom = getUserRoleInRoom;
exports.isSpellingError = isSpellingError;
exports.prepareMessage = prepareMessage;

@@ -271,2 +272,6 @@ exports.prepareContextMessage = prepareContextMessage;

function isSpellingError(error) {
return [c.ERROR_TYPE_STOP_WORD, c.ERROR_TYPE_CAPS_LOCK].includes(error);
}
function prepareMessage(baseStore, msgId, roomIdent, body, platform, source, device) {

@@ -273,0 +278,0 @@ var isTemporaryMessage = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;

2

package.json
{
"name": "@evo/chat-core",
"version": "0.7.11",
"version": "0.7.12",
"description": "core Besida module with base functional set for chat",

@@ -5,0 +5,0 @@ "author": "d.medvinskiy",

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