New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openreplay/tracker-assist

Package Overview
Dependencies
Maintainers
3
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openreplay/tracker-assist - npm Package Compare versions

Comparing version 6.0.0-beta.1 to 6.0.0

2

cjs/Assist.d.ts

@@ -27,3 +27,3 @@ import type { Properties } from 'csstype';

private readonly noSecureMode;
readonly version = "6.0.0-beta.1";
readonly version = "6.0.0";
private socket;

@@ -30,0 +30,0 @@ private peer;

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

this.noSecureMode = noSecureMode;
this.version = '6.0.0-beta.1';
this.version = '6.0.0';
this.socket = null;

@@ -130,3 +130,3 @@ this.peer = null;

});
this.remoteControl = new RemoteControl_js_1.default(this.options, id => {
const onGrand = (id) => {
var _a;

@@ -144,3 +144,3 @@ if (!callUI) {

return callingAgents.get(id);
}, (id, isDenied) => onRelease(id, isDenied));
};
const onRelease = (id, isDenied) => {

@@ -170,2 +170,3 @@ var _a, _b, _c;

};
this.remoteControl = new RemoteControl_js_1.default(this.options, onGrand, (id, isDenied) => onRelease(id, isDenied));
const onAcceptRecording = () => {

@@ -217,3 +218,8 @@ socket.emit('recording_accepted');

setTimeout(() => {
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e));
this.app.start().then(() => { this.assistDemandedRestart = false; })
.then(() => {
var _a;
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect([id,]);
})
.catch(e => app.debug.error(e));
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again

@@ -223,3 +229,2 @@ }, 500);

socket.on('AGENTS_CONNECTED', (ids) => {
var _a;
ids.forEach(id => {

@@ -236,6 +241,10 @@ var _a, _b, _c;

setTimeout(() => {
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e));
this.app.start().then(() => { this.assistDemandedRestart = false; })
.then(() => {
var _a;
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect(ids);
})
.catch(e => app.debug.error(e));
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again
}, 500);
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect(ids);
});

@@ -256,4 +265,3 @@ socket.on('AGENT_DISCONNECTED', (id) => {

});
socket.on('call_end', (info) => {
const id = info.data;
socket.on('call_end', (id) => {
if (!callingAgents.has(id)) {

@@ -482,3 +490,4 @@ app.debug.warn('Received call_end from unknown agent', id);

var _a;
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.releaseControl();
// sometimes means new agent connected so we keep id for control
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.releaseControl(false, true);
if (this.peer) {

@@ -485,0 +494,0 @@ this.peer.destroy();

@@ -12,4 +12,4 @@ "use strict";

}
if (!app.checkRequiredVersion || !app.checkRequiredVersion('3.5.14')) {
console.warn('OpenReplay Assist: couldn\'t load. The minimum required version of @openreplay/tracker/cjs@3.5.14 is not met');
if (!app.checkRequiredVersion || !app.checkRequiredVersion('8.0.0')) {
console.warn('OpenReplay Assist: couldn\'t load. The minimum required version of @openreplay/tracker/cjs@8.0.0 is not met');
return;

@@ -16,0 +16,0 @@ }

@@ -18,3 +18,3 @@ import type { Options as AssistOptions } from './Assist';

requestControl: (id: string) => void;
releaseControl: (isDenied?: boolean) => void;
releaseControl: (isDenied?: boolean, keepId?: boolean) => void;
grantControl: (id: string) => void;

@@ -21,0 +21,0 @@ resetMouse: () => void;

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

};
this.releaseControl = (isDenied) => {
this.releaseControl = (isDenied, keepId) => {
if (this.confirm) {

@@ -68,3 +68,5 @@ this.confirm.remove();

this.status = RCStatus.Disabled;
sessionStorage.removeItem(this.options.session_control_peer_key);
if (!keepId) {
sessionStorage.removeItem(this.options.session_control_peer_key);
}
this.onRelease(this.agentID, isDenied);

@@ -85,3 +87,8 @@ this.agentID = null;

if (document.hidden)
this.releaseControl(false);
this.releaseControl(false, true);
else {
if (this.status === RCStatus.Disabled) {
this.reconnect([id,]);
}
}
});

@@ -88,0 +95,0 @@ };

@@ -27,3 +27,3 @@ import type { Properties } from 'csstype';

private readonly noSecureMode;
readonly version = "6.0.0-beta.1";
readonly version = "6.0.0";
private socket;

@@ -30,0 +30,0 @@ private peer;

@@ -23,3 +23,3 @@ import { connect, } from 'socket.io-client';

this.noSecureMode = noSecureMode;
this.version = '6.0.0-beta.1';
this.version = '6.0.0';
this.socket = null;

@@ -128,3 +128,3 @@ this.peer = null;

});
this.remoteControl = new RemoteControl(this.options, id => {
const onGrand = (id) => {
var _a;

@@ -142,3 +142,3 @@ if (!callUI) {

return callingAgents.get(id);
}, (id, isDenied) => onRelease(id, isDenied));
};
const onRelease = (id, isDenied) => {

@@ -168,2 +168,3 @@ var _a, _b, _c;

};
this.remoteControl = new RemoteControl(this.options, onGrand, (id, isDenied) => onRelease(id, isDenied));
const onAcceptRecording = () => {

@@ -215,3 +216,8 @@ socket.emit('recording_accepted');

setTimeout(() => {
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e));
this.app.start().then(() => { this.assistDemandedRestart = false; })
.then(() => {
var _a;
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect([id,]);
})
.catch(e => app.debug.error(e));
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again

@@ -221,3 +227,2 @@ }, 500);

socket.on('AGENTS_CONNECTED', (ids) => {
var _a;
ids.forEach(id => {

@@ -234,6 +239,10 @@ var _a, _b, _c;

setTimeout(() => {
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e));
this.app.start().then(() => { this.assistDemandedRestart = false; })
.then(() => {
var _a;
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect(ids);
})
.catch(e => app.debug.error(e));
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again
}, 500);
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect(ids);
});

@@ -254,4 +263,3 @@ socket.on('AGENT_DISCONNECTED', (id) => {

});
socket.on('call_end', (info) => {
const id = info.data;
socket.on('call_end', (id) => {
if (!callingAgents.has(id)) {

@@ -480,3 +488,4 @@ app.debug.warn('Received call_end from unknown agent', id);

var _a;
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.releaseControl();
// sometimes means new agent connected so we keep id for control
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.releaseControl(false, true);
if (this.peer) {

@@ -483,0 +492,0 @@ this.peer.destroy();

@@ -10,4 +10,4 @@ import './_slim.js';

}
if (!app.checkRequiredVersion || !app.checkRequiredVersion('3.5.14')) {
console.warn('OpenReplay Assist: couldn\'t load. The minimum required version of @openreplay/tracker@3.5.14 is not met');
if (!app.checkRequiredVersion || !app.checkRequiredVersion('8.0.0')) {
console.warn('OpenReplay Assist: couldn\'t load. The minimum required version of @openreplay/tracker@8.0.0 is not met');
return;

@@ -14,0 +14,0 @@ }

@@ -18,3 +18,3 @@ import type { Options as AssistOptions } from './Assist';

requestControl: (id: string) => void;
releaseControl: (isDenied?: boolean) => void;
releaseControl: (isDenied?: boolean, keepId?: boolean) => void;
grantControl: (id: string) => void;

@@ -21,0 +21,0 @@ resetMouse: () => void;

@@ -57,3 +57,3 @@ import Mouse from './Mouse.js';

};
this.releaseControl = (isDenied) => {
this.releaseControl = (isDenied, keepId) => {
if (this.confirm) {

@@ -65,3 +65,5 @@ this.confirm.remove();

this.status = RCStatus.Disabled;
sessionStorage.removeItem(this.options.session_control_peer_key);
if (!keepId) {
sessionStorage.removeItem(this.options.session_control_peer_key);
}
this.onRelease(this.agentID, isDenied);

@@ -82,3 +84,8 @@ this.agentID = null;

if (document.hidden)
this.releaseControl(false);
this.releaseControl(false, true);
else {
if (this.status === RCStatus.Disabled) {
this.reconnect([id,]);
}
}
});

@@ -85,0 +92,0 @@ };

{
"name": "@openreplay/tracker-assist",
"description": "Tracker plugin for screen assistance through the WebRTC",
"version": "6.0.0-beta.1",
"version": "6.0.0",
"keywords": [

@@ -24,3 +24,3 @@ "WebRTC",

"replace-pkg-version": "replace-in-files lib/* cjs/* --string='PACKAGE_VERSION' --replacement=$npm_package_version",
"replace-req-version": "replace-in-files lib/* cjs/* --string='REQUIRED_TRACKER_VERSION' --replacement='3.5.14'",
"replace-req-version": "replace-in-files lib/* cjs/* --string='REQUIRED_TRACKER_VERSION' --replacement='8.0.0'",
"prepublishOnly": "npm run build",

@@ -27,0 +27,0 @@ "prepare": "cd ../../ && husky install tracker/.husky/",

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