Socket
Socket
Sign inDemoInstall

@openreplay/tracker

Package Overview
Dependencies
Maintainers
3
Versions
209
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 3.2.4 to 3.2.5

2

cjs/app/index.js

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

this.isActive = false;
this.version = '3.2.4';
this.version = '3.2.5';
this.projectKey = projectKey;

@@ -23,0 +23,0 @@ this.options = Object.assign({

@@ -39,4 +39,3 @@ import App from './app';

issue(key: string, payload: any): void;
handleError: (e: Error) => void;
handleErrorEvent: (e: ErrorEvent | PromiseRejectionEvent) => void;
handleError: (e: Error | ErrorEvent | PromiseRejectionEvent) => void;
}

@@ -55,10 +55,10 @@ "use strict";

this.handleError = (e) => {
if (e instanceof Error && this.app !== null) {
if (this.app === null) {
return;
}
if (e instanceof Error) {
this.app.send(exception_1.getExceptionMessage(e, []));
}
};
this.handleErrorEvent = (e) => {
if ((e instanceof ErrorEvent ||
('PromiseRejectionEvent' in window && e instanceof PromiseRejectionEvent)) &&
this.app !== null) {
else if (e instanceof ErrorEvent ||
('PromiseRejectionEvent' in window && e instanceof PromiseRejectionEvent)) {
const msg = exception_1.getExceptionMessageFromEvent(e);

@@ -112,3 +112,3 @@ if (msg != null) {

req.send(JSON.stringify({
trackerVersion: '3.2.4',
trackerVersion: '3.2.5',
projectKey: options.projectKey,

@@ -115,0 +115,0 @@ doNotTrack,

@@ -17,3 +17,3 @@ import { timestamp, log } from '../utils';

this.isActive = false;
this.version = '3.2.4';
this.version = '3.2.5';
this.projectKey = projectKey;

@@ -20,0 +20,0 @@ this.options = Object.assign({

@@ -39,4 +39,3 @@ import App from './app';

issue(key: string, payload: any): void;
handleError: (e: Error) => void;
handleErrorEvent: (e: ErrorEvent | PromiseRejectionEvent) => void;
handleError: (e: Error | ErrorEvent | PromiseRejectionEvent) => void;
}

@@ -51,10 +51,10 @@ import App, { DEFAULT_INGEST_POINT } from './app';

this.handleError = (e) => {
if (e instanceof Error && this.app !== null) {
if (this.app === null) {
return;
}
if (e instanceof Error) {
this.app.send(getExceptionMessage(e, []));
}
};
this.handleErrorEvent = (e) => {
if ((e instanceof ErrorEvent ||
('PromiseRejectionEvent' in window && e instanceof PromiseRejectionEvent)) &&
this.app !== null) {
else if (e instanceof ErrorEvent ||
('PromiseRejectionEvent' in window && e instanceof PromiseRejectionEvent)) {
const msg = getExceptionMessageFromEvent(e);

@@ -108,3 +108,3 @@ if (msg != null) {

req.send(JSON.stringify({
trackerVersion: '3.2.4',
trackerVersion: '3.2.5',
projectKey: options.projectKey,

@@ -111,0 +111,0 @@ doNotTrack,

{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "3.2.4",
"version": "3.2.5",
"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