@openreplay/tracker
Advanced tools
Comparing version 3.4.8 to 3.4.9
@@ -7,3 +7,3 @@ import Message from "../messages/message.js"; | ||
import type { Options as WebworkerOptions } from "../messages/webworker.js"; | ||
interface OnStartInfo { | ||
export interface OnStartInfo { | ||
sessionID: string; | ||
@@ -10,0 +10,0 @@ sessionToken: string; |
@@ -20,3 +20,3 @@ "use strict"; | ||
this.isActive = false; | ||
this.version = '3.4.8'; | ||
this.version = '3.4.9'; | ||
this.projectKey = projectKey; | ||
@@ -23,0 +23,0 @@ this.options = Object.assign({ |
@@ -11,2 +11,3 @@ import App from "./app/index.js"; | ||
import { Options as TimingOptions } from "./modules/timing.js"; | ||
export type { OnStartInfo } from './app/index.js'; | ||
export declare type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & { | ||
@@ -26,3 +27,3 @@ projectID?: number; | ||
active(): boolean; | ||
start(): void; | ||
start(): Promise<import("./app/index.js").OnStartInfo>; | ||
stop(): void; | ||
@@ -29,0 +30,0 @@ getSessionToken(): string | null | undefined; |
@@ -118,3 +118,3 @@ "use strict"; | ||
req.send(JSON.stringify({ | ||
trackerVersion: '3.4.8', | ||
trackerVersion: '3.4.9', | ||
projectKey: options.projectKey, | ||
@@ -142,8 +142,8 @@ doNotTrack, | ||
console.error(`OpenReplay: you are trying to start Tracker on a node.js environment. If you want to use OpenReplay with SSR, please, use componentDidMount or useEffect API for placing the \`tracker.start()\` line. Check documentation on ${utils_js_1.DOCS_HOST}${DOCS_SETUP}`); | ||
return; | ||
return Promise.reject("Trying to start not in browser."); | ||
} | ||
if (this.app === null) { | ||
return; | ||
return Promise.reject("Browser doesn't support required api, or doNotTrack is active."); | ||
} | ||
this.app.start(); | ||
return this.app.start(); | ||
} | ||
@@ -150,0 +150,0 @@ stop() { |
@@ -7,3 +7,3 @@ import Message from "../messages/message.js"; | ||
import type { Options as WebworkerOptions } from "../messages/webworker.js"; | ||
interface OnStartInfo { | ||
export interface OnStartInfo { | ||
sessionID: string; | ||
@@ -10,0 +10,0 @@ sessionToken: string; |
@@ -17,3 +17,3 @@ import { timestamp, log, warn } from "../utils.js"; | ||
this.isActive = false; | ||
this.version = '3.4.8'; | ||
this.version = '3.4.9'; | ||
this.projectKey = projectKey; | ||
@@ -20,0 +20,0 @@ this.options = Object.assign({ |
@@ -11,2 +11,3 @@ import App from "./app/index.js"; | ||
import { Options as TimingOptions } from "./modules/timing.js"; | ||
export type { OnStartInfo } from './app/index.js'; | ||
export declare type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & { | ||
@@ -26,3 +27,3 @@ projectID?: number; | ||
active(): boolean; | ||
start(): void; | ||
start(): Promise<import("./app/index.js").OnStartInfo>; | ||
stop(): void; | ||
@@ -29,0 +30,0 @@ getSessionToken(): string | null | undefined; |
@@ -114,3 +114,3 @@ import App, { DEFAULT_INGEST_POINT } from "./app/index.js"; | ||
req.send(JSON.stringify({ | ||
trackerVersion: '3.4.8', | ||
trackerVersion: '3.4.9', | ||
projectKey: options.projectKey, | ||
@@ -138,8 +138,8 @@ doNotTrack, | ||
console.error(`OpenReplay: you are trying to start Tracker on a node.js environment. If you want to use OpenReplay with SSR, please, use componentDidMount or useEffect API for placing the \`tracker.start()\` line. Check documentation on ${DOCS_HOST}${DOCS_SETUP}`); | ||
return; | ||
return Promise.reject("Trying to start not in browser."); | ||
} | ||
if (this.app === null) { | ||
return; | ||
return Promise.reject("Browser doesn't support required api, or doNotTrack is active."); | ||
} | ||
this.app.start(); | ||
return this.app.start(); | ||
} | ||
@@ -146,0 +146,0 @@ stop() { |
{ | ||
"name": "@openreplay/tracker", | ||
"description": "The OpenReplay tracker main package", | ||
"version": "3.4.8", | ||
"version": "3.4.9", | ||
"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
327456
8160