@openreplay/tracker
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308463
7704