@openreplay/tracker-assist
Advanced tools
Comparing version 3.4.15 to 3.4.16-beta.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// 16kb should be max according to specification | ||
// 64kb chrome | ||
const crOrFf = typeof navigator !== "undefined" && | ||
(navigator.userAgent.indexOf("Chrom") !== -1 || // Chrome && Chromium | ||
navigator.userAgent.indexOf("Firefox") !== -1); | ||
const MESSAGES_PER_SEND = crOrFf ? 100 : 25; | ||
const MESSAGES_PER_SEND = crOrFf ? 200 : 50; | ||
// Bffering required in case of webRTC | ||
@@ -32,2 +33,4 @@ class BufferingConnection { | ||
let i = 0; | ||
//@ts-ignore | ||
messages = messages.filter(m => m._id !== 39); | ||
while (i < messages.length) { | ||
@@ -34,0 +37,0 @@ this.buffer.push(messages.slice(i, i += this.msgsPerSend)); |
@@ -72,3 +72,3 @@ "use strict"; | ||
port: location.protocol === 'http:' && appOptions.__DISABLE_SECURE_MODE ? 80 : 443, | ||
//debug: // 0 Print nothing //1 Prints only errors. / 2 Prints errors and warnings. / 3 Prints all logs. | ||
debug: appOptions.__debug_log ? 2 : 0, // 0 Print nothing //1 Prints only errors. / 2 Prints errors and warnings. / 3 Prints all logs. | ||
}; | ||
@@ -75,0 +75,0 @@ if (options.config) { |
@@ -6,7 +6,8 @@ "use strict"; | ||
this.position = [0, 0]; | ||
this.pScrEl = document.scrollingElement || document.documentElement; | ||
this.pScrEl = document.scrollingElement || document.documentElement; // Is it always correct | ||
this.lastScrEl = null; | ||
this.resetLastScrEl = () => { this.lastScrEl = null; }; | ||
this.handleWScroll = e => { | ||
if (e.target !== this.lastScrEl) { | ||
if (e.target !== this.lastScrEl && | ||
this.lastScrEl !== "window") { | ||
this.resetLastScrEl(); | ||
@@ -13,0 +14,0 @@ } |
// 16kb should be max according to specification | ||
// 64kb chrome | ||
const crOrFf = typeof navigator !== "undefined" && | ||
(navigator.userAgent.indexOf("Chrom") !== -1 || // Chrome && Chromium | ||
navigator.userAgent.indexOf("Firefox") !== -1); | ||
const MESSAGES_PER_SEND = crOrFf ? 100 : 25; | ||
const MESSAGES_PER_SEND = crOrFf ? 200 : 50; | ||
// Bffering required in case of webRTC | ||
@@ -30,2 +31,4 @@ export default class BufferingConnection { | ||
let i = 0; | ||
//@ts-ignore | ||
messages = messages.filter(m => m._id !== 39); | ||
while (i < messages.length) { | ||
@@ -32,0 +35,0 @@ this.buffer.push(messages.slice(i, i += this.msgsPerSend)); |
@@ -70,3 +70,3 @@ import './_slim.js'; | ||
port: location.protocol === 'http:' && appOptions.__DISABLE_SECURE_MODE ? 80 : 443, | ||
//debug: // 0 Print nothing //1 Prints only errors. / 2 Prints errors and warnings. / 3 Prints all logs. | ||
debug: appOptions.__debug_log ? 2 : 0, // 0 Print nothing //1 Prints only errors. / 2 Prints errors and warnings. / 3 Prints all logs. | ||
}; | ||
@@ -73,0 +73,0 @@ if (options.config) { |
export default class Mouse { | ||
constructor() { | ||
this.position = [0, 0]; | ||
this.pScrEl = document.scrollingElement || document.documentElement; | ||
this.pScrEl = document.scrollingElement || document.documentElement; // Is it always correct | ||
this.lastScrEl = null; | ||
this.resetLastScrEl = () => { this.lastScrEl = null; }; | ||
this.handleWScroll = e => { | ||
if (e.target !== this.lastScrEl) { | ||
if (e.target !== this.lastScrEl && | ||
this.lastScrEl !== "window") { | ||
this.resetLastScrEl(); | ||
@@ -10,0 +11,0 @@ } |
{ | ||
"name": "@openreplay/tracker-assist", | ||
"description": "Tracker plugin for screen assistance through the WebRTC", | ||
"version": "3.4.15", | ||
"version": "3.4.16-beta.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "WebRTC", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
108360
44
2617
2