Socket
Socket
Sign inDemoInstall

@openreplay/tracker

Package Overview
Dependencies
Maintainers
3
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openreplay/tracker - npm Package Compare versions

Comparing version 11.0.0-beta.1 to 11.0.0

1

cjs/app/index.d.ts

@@ -57,2 +57,3 @@ import type Message from './messages.gen.js';

disableStringDict?: boolean;
assistSocketHost?: string;
onStart?: StartCallback;

@@ -59,0 +60,0 @@ network?: NetworkOptions;

3

cjs/app/index.js

@@ -45,3 +45,3 @@ "use strict";

this.activityState = ActivityState.NotActive;
this.version = '11.0.0-beta.1'; // TODO: version compatability check inside each plugin.
this.version = '11.0.0'; // TODO: version compatability check inside each plugin.
this.compressionThreshold = 24 * 1000;

@@ -76,2 +76,3 @@ this.restartAttempts = 0;

forceSingleTab: false,
assistSocketHost: '',
}, options);

@@ -78,0 +79,0 @@ if (!this.options.forceSingleTab && globalThis && 'BroadcastChannel' in globalThis) {

@@ -165,3 +165,3 @@ "use strict";

req.send(JSON.stringify({
trackerVersion: '11.0.0-beta.1',
trackerVersion: '11.0.0',
projectKey: options.projectKey,

@@ -168,0 +168,0 @@ doNotTrack,

@@ -28,3 +28,3 @@ import App from '../../app/index.js';

createGreeting(title: string, micRequired: boolean, cameraRequired: boolean): void;
showWidget(description: string, tasks: {
showWidget(guidelines: string, tasks: {
title: string;

@@ -37,3 +37,3 @@ description: string;

toggleDescriptionVisibility: () => void;
createDescriptionSection(description: string): HTMLElement;
createDescriptionSection(guidelines: string): HTMLElement;
currentTaskIndex: number;

@@ -40,0 +40,0 @@ createTasksSection(tasks: {

@@ -143,3 +143,3 @@ "use strict";

this.removeGreeting = () => {
this.container.innerHTML = '';
// this.container.innerHTML = ''
if (micRequired || cameraRequired) {

@@ -159,3 +159,3 @@ void this.userRecorder.startRecording(30, recorder_js_1.Quality.Standard, micRequired, cameraRequired);

void this.signalTest('begin');
this.showWidget(((_a = this.test) === null || _a === void 0 ? void 0 : _a.description) || '', ((_b = this.test) === null || _b === void 0 ? void 0 : _b.tasks) || []);
this.showWidget(((_a = this.test) === null || _a === void 0 ? void 0 : _a.guidelines) || '', ((_b = this.test) === null || _b === void 0 ? void 0 : _b.tasks) || []);
};

@@ -166,3 +166,3 @@ this.container.append(titleElement, descriptionElement, noticeElement, buttonElement);

}
showWidget(description, tasks, inProgress) {
showWidget(guidelines, tasks, inProgress) {
this.container.innerHTML = '';

@@ -185,3 +185,3 @@ Object.assign(this.bg.style, {

Object.assign(this.container.style, styles.containerWidgetStyle);
const descriptionSection = this.createDescriptionSection(description);
const descriptionSection = this.createDescriptionSection(guidelines);
const tasksSection = this.createTasksSection(tasks);

@@ -241,3 +241,3 @@ const stopButton = createElement('div', 'stop_bn_or', styles.stopWidgetStyle, 'Abort Session');

}
createDescriptionSection(description) {
createDescriptionSection(guidelines) {
const section = createElement('div', 'description_section_or', styles.descriptionWidgetStyle);

@@ -250,5 +250,6 @@ const titleContainer = createElement('div', 'description_s_title_or', styles.sectionTitleStyle);

maxHeight: '250px',
overflow: 'scroll',
overflowY: 'auto',
whiteSpace: 'pre-wrap',
});
descriptionC.innerHTML = description;
descriptionC.innerHTML = guidelines;
const button = createElement('div', 'button_begin_or', styles.buttonWidgetStyle, 'Begin Test');

@@ -397,2 +398,3 @@ titleContainer.append(title, icon);

var _a, _b, _c, _d, _e, _f;
let isLoading = true;
void this.signalTest('done');

@@ -404,11 +406,13 @@ const section = createElement('div', 'end_section_or', styles.endSectionStyle);

}, ((_a = this.test) === null || _a === void 0 ? void 0 : _a.reqMic) || ((_b = this.test) === null || _b === void 0 ? void 0 : _b.reqCamera) ? 'Uploading test recording...' : 'Thank you! 👍');
const description = createElement('div', 'end_description_or', {}, (_d = (_c = this.test) === null || _c === void 0 ? void 0 : _c.conclusion) !== null && _d !== void 0 ? _d : 'Thank you for participating in our user test. Your feedback has been captured and will be used to enhance our website. \n' +
const description = createElement('div', 'end_description_or', {}, (_d = (_c = this.test) === null || _c === void 0 ? void 0 : _c.conclusion) !== null && _d !== void 0 ? _d : 'Thank you for participating in our usability test. Your feedback has been captured and will be used to enhance our website. \n' +
'\n' +
'We appreciate your time and valuable input.');
const button = createElement('div', 'end_button_or', styles.buttonWidgetStyle, 'Uploading session...');
if (((_e = this.test) === null || _e === void 0 ? void 0 : _e.reqMic) || ((_f = this.test) === null || _f === void 0 ? void 0 : _f.reqCamera)) {
this.userRecorder.sendToAPI().then(() => {
void this.userRecorder.sendToAPI().then(() => {
title.textContent = 'Thank you! 👍';
button.textContent = 'End Session';
isLoading = false;
});
}
const button = createElement('div', 'end_button_or', styles.buttonWidgetStyle, 'End Session');
if (this.taskSection) {

@@ -424,2 +428,5 @@ this.container.removeChild(this.taskSection);

button.onclick = () => {
if (isLoading)
return;
window.close();
document.body.removeChild(this.bg);

@@ -426,0 +433,0 @@ };

@@ -57,2 +57,3 @@ import type Message from './messages.gen.js';

disableStringDict?: boolean;
assistSocketHost?: string;
onStart?: StartCallback;

@@ -59,0 +60,0 @@ network?: NetworkOptions;

@@ -42,3 +42,3 @@ import { Timestamp, Metadata, UserID, TabChange, TabData } from './messages.gen.js';

this.activityState = ActivityState.NotActive;
this.version = '11.0.0-beta.1'; // TODO: version compatability check inside each plugin.
this.version = '11.0.0'; // TODO: version compatability check inside each plugin.
this.compressionThreshold = 24 * 1000;

@@ -73,2 +73,3 @@ this.restartAttempts = 0;

forceSingleTab: false,
assistSocketHost: '',
}, options);

@@ -75,0 +76,0 @@ if (!this.options.forceSingleTab && globalThis && 'BroadcastChannel' in globalThis) {

@@ -160,3 +160,3 @@ import App, { DEFAULT_INGEST_POINT } from './app/index.js';

req.send(JSON.stringify({
trackerVersion: '11.0.0-beta.1',
trackerVersion: '11.0.0',
projectKey: options.projectKey,

@@ -163,0 +163,0 @@ doNotTrack,

@@ -28,3 +28,3 @@ import App from '../../app/index.js';

createGreeting(title: string, micRequired: boolean, cameraRequired: boolean): void;
showWidget(description: string, tasks: {
showWidget(guidelines: string, tasks: {
title: string;

@@ -37,3 +37,3 @@ description: string;

toggleDescriptionVisibility: () => void;
createDescriptionSection(description: string): HTMLElement;
createDescriptionSection(guidelines: string): HTMLElement;
currentTaskIndex: number;

@@ -40,0 +40,0 @@ createTasksSection(tasks: {

@@ -141,3 +141,3 @@ import * as styles from './styles.js';

this.removeGreeting = () => {
this.container.innerHTML = '';
// this.container.innerHTML = ''
if (micRequired || cameraRequired) {

@@ -157,3 +157,3 @@ void this.userRecorder.startRecording(30, Quality.Standard, micRequired, cameraRequired);

void this.signalTest('begin');
this.showWidget(((_a = this.test) === null || _a === void 0 ? void 0 : _a.description) || '', ((_b = this.test) === null || _b === void 0 ? void 0 : _b.tasks) || []);
this.showWidget(((_a = this.test) === null || _a === void 0 ? void 0 : _a.guidelines) || '', ((_b = this.test) === null || _b === void 0 ? void 0 : _b.tasks) || []);
};

@@ -164,3 +164,3 @@ this.container.append(titleElement, descriptionElement, noticeElement, buttonElement);

}
showWidget(description, tasks, inProgress) {
showWidget(guidelines, tasks, inProgress) {
this.container.innerHTML = '';

@@ -183,3 +183,3 @@ Object.assign(this.bg.style, {

Object.assign(this.container.style, styles.containerWidgetStyle);
const descriptionSection = this.createDescriptionSection(description);
const descriptionSection = this.createDescriptionSection(guidelines);
const tasksSection = this.createTasksSection(tasks);

@@ -239,3 +239,3 @@ const stopButton = createElement('div', 'stop_bn_or', styles.stopWidgetStyle, 'Abort Session');

}
createDescriptionSection(description) {
createDescriptionSection(guidelines) {
const section = createElement('div', 'description_section_or', styles.descriptionWidgetStyle);

@@ -248,5 +248,6 @@ const titleContainer = createElement('div', 'description_s_title_or', styles.sectionTitleStyle);

maxHeight: '250px',
overflow: 'scroll',
overflowY: 'auto',
whiteSpace: 'pre-wrap',
});
descriptionC.innerHTML = description;
descriptionC.innerHTML = guidelines;
const button = createElement('div', 'button_begin_or', styles.buttonWidgetStyle, 'Begin Test');

@@ -395,2 +396,3 @@ titleContainer.append(title, icon);

var _a, _b, _c, _d, _e, _f;
let isLoading = true;
void this.signalTest('done');

@@ -402,11 +404,13 @@ const section = createElement('div', 'end_section_or', styles.endSectionStyle);

}, ((_a = this.test) === null || _a === void 0 ? void 0 : _a.reqMic) || ((_b = this.test) === null || _b === void 0 ? void 0 : _b.reqCamera) ? 'Uploading test recording...' : 'Thank you! 👍');
const description = createElement('div', 'end_description_or', {}, (_d = (_c = this.test) === null || _c === void 0 ? void 0 : _c.conclusion) !== null && _d !== void 0 ? _d : 'Thank you for participating in our user test. Your feedback has been captured and will be used to enhance our website. \n' +
const description = createElement('div', 'end_description_or', {}, (_d = (_c = this.test) === null || _c === void 0 ? void 0 : _c.conclusion) !== null && _d !== void 0 ? _d : 'Thank you for participating in our usability test. Your feedback has been captured and will be used to enhance our website. \n' +
'\n' +
'We appreciate your time and valuable input.');
const button = createElement('div', 'end_button_or', styles.buttonWidgetStyle, 'Uploading session...');
if (((_e = this.test) === null || _e === void 0 ? void 0 : _e.reqMic) || ((_f = this.test) === null || _f === void 0 ? void 0 : _f.reqCamera)) {
this.userRecorder.sendToAPI().then(() => {
void this.userRecorder.sendToAPI().then(() => {
title.textContent = 'Thank you! 👍';
button.textContent = 'End Session';
isLoading = false;
});
}
const button = createElement('div', 'end_button_or', styles.buttonWidgetStyle, 'End Session');
if (this.taskSection) {

@@ -422,2 +426,5 @@ this.container.removeChild(this.taskSection);

button.onclick = () => {
if (isLoading)
return;
window.close();
document.body.removeChild(this.bg);

@@ -424,0 +431,0 @@ };

{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "11.0.0-beta.1",
"version": "11.0.0",
"keywords": [

@@ -6,0 +6,0 @@ "logging",

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