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

quiq-chat

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quiq-chat - npm Package Compare versions

Comparing version 1.29.0 to 1.30.0

coverage/lcov-report/quiq-chat/src/services/index.html

2

package.json
{
"name": "quiq-chat",
"version": "1.29.0",
"version": "1.30.0",
"description": "Library to help with network requests to create a webchat client for Quiq Messaging",

@@ -5,0 +5,0 @@ "main": "build/quiq-chat.js",

@@ -169,16 +169,3 @@ // @flow

const conversation = await getConversation();
// Process initial messages, but do not send callback. We'll send all messages in callback next.
this._processConversationResult(conversation, false);
// Send all messages in initial newMessages callback
if (this.callbacks.onNewMessages && this.messages.length) {
this.callbacks.onNewMessages(this.messages);
}
storage.setQuiqUserIsSubscribed(conversation.isSubscribed);
if (conversation.isSubscribed) {
await this._connectSocket();
}
await this._getConversationAndConnect();
} catch (err) {

@@ -304,2 +291,19 @@ log.error(`Could not start QuiqChatClient: ${err.message}`, {exception: err});

_getConversationAndConnect = async () => {
const conversation = await getConversation();
// Process initial messages, but do not send callback. We'll send all messages in callback next.
this._processConversationResult(conversation, false);
// Send all messages in initial newMessages callback
if (this.callbacks.onNewMessages && this.messages.length) {
this.callbacks.onNewMessages(this.messages);
}
storage.setQuiqUserIsSubscribed(conversation.isSubscribed);
if (conversation.isSubscribed) {
await this._connectSocket();
}
};
_hasUserJoinedConversation = (): boolean => {

@@ -407,8 +411,7 @@ if (!this.events) {

// Disconnect/reconnect websocket
// (Connection establishment handler will refresh messages)
await this._connectSocket();
this.trackingId = newTrackingId;
await this._getConversationAndConnect();
} else {
this.trackingId = newTrackingId;
}
this.trackingId = newTrackingId;
};

@@ -415,0 +418,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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

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

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

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