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.8.91 to 1.8.92

.idea/misc.xml

40

build/quiq-chat.js

@@ -275,3 +275,3 @@ 'use strict';

var version = "1.8.91";
var version = "1.8.92";

@@ -423,2 +423,19 @@ //

//
var MessageTypes = {
// eslint-disable-line import/prefer-default-export
TEXT: 'Text',
CHAT_MESSAGE: 'ChatMessage',
JOIN: 'Join',
LEAVE: 'Leave',
REGISTER: 'Register',
BURN_IT_DOWN: 'BurnItDown',
AGENT_TYPING: 'AgentTyping'
};
var MAX_SOCKET_CONNECTION_ATTEMPTS = 20;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -430,2 +447,3 @@

var ie9Ping = void 0;
var connectionCount = 0;

@@ -465,2 +483,9 @@ var buildRequest = function buildRequest(socketUrl) {

var connectSocket = function connectSocket(builder) {
// Check that maximum retries not exceeded; increment connection count
if (connectionCount >= MAX_SOCKET_CONNECTION_ATTEMPTS) {
console.error('Maximum socket connection attempts exceeded.');
throw new Error('Maximum socket connection attempts exceeded.');
}
connectionCount++;
var socketUrl = builder.socketUrl,

@@ -555,15 +580,2 @@ websocketCallbacks = builder.callbacks;

//
var MessageTypes = {
// eslint-disable-line import/prefer-default-export
TEXT: 'Text',
CHAT_MESSAGE: 'ChatMessage',
JOIN: 'Join',
LEAVE: 'Leave',
REGISTER: 'Register',
BURN_IT_DOWN: 'BurnItDown',
AGENT_TYPING: 'AgentTyping'
};
var _this$1 = undefined;

@@ -570,0 +582,0 @@

{
"name": "quiq-chat",
"version": "1.8.91",
"version": "1.8.92",
"description": "Library to help with network requests to create a webchat client for Quiq Messaging",

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

@@ -25,2 +25,4 @@ // @flow

export const MAX_SOCKET_CONNECTION_ATTEMPTS = 20;
export const noAgentsAvailableClass = 'noAgentsAvailable';

@@ -6,2 +6,3 @@ // @flow

import * as cookies from './cookies';
import {MAX_SOCKET_CONNECTION_ATTEMPTS} from './appConstants';
import type {

@@ -18,2 +19,3 @@ AtmosphereRequest,

let ie9Ping: number;
let connectionCount: number = 0;

@@ -53,2 +55,9 @@ const buildRequest = (socketUrl: string) => {

export const connectSocket = (builder: AtmosphereConnectionBuilder) => {
// Check that maximum retries not exceeded; increment connection count
if (connectionCount >= MAX_SOCKET_CONNECTION_ATTEMPTS) {
console.error('Maximum socket connection attempts exceeded.');
throw new Error('Maximum socket connection attempts exceeded.');
}
connectionCount++;
const {socketUrl, callbacks: websocketCallbacks} = builder;

@@ -55,0 +64,0 @@

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

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