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.13.0 to 2.14.0

2

package.json
{
"name": "castle-chat-lib",
"version": "2.13.0",
"version": "2.14.0",
"description": "",

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

@@ -243,2 +243,26 @@ import _ from 'lodash';

async editMessageAsync(chatMessageId, message, tempChatMessageId = '') {
try {
let result = await this._api.graphqlAsync(
`
mutation($chatMessageId: ID!, $message: String!, $tempChatMessageId: ID) {
editChatMessage(chatMessageId: $chatMessageId, message: $message, tempChatMessageId: $tempChatMessageId)
}
`,
{
chatMessageId,
message,
tempChatMessageId,
}
);
if (result.errors && result.errors.length) {
throw new Error(result.errors);
}
} catch (e) {
console.log('send message error');
console.log(JSON.stringify(e));
}
}
async _subscribedChannelsAsync() {

@@ -245,0 +269,0 @@ const result = await this._api.graphqlAsync(

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