@openreplay/tracker 18.1.1 → 19.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/common/messages.gen.d.ts +13 -2
- package/dist/cjs/entry.js +167 -140
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +167 -140
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/index.d.ts +4 -0
- package/dist/cjs/main/app/messages.gen.d.ts +1 -0
- package/dist/lib/common/messages.gen.d.ts +13 -2
- package/dist/lib/entry.js +167 -140
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +167 -140
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/index.d.ts +4 -0
- package/dist/lib/main/app/messages.gen.d.ts +1 -0
- package/dist/types/common/messages.gen.d.ts +13 -2
- package/dist/types/main/app/index.d.ts +4 -0
- package/dist/types/main/app/messages.gen.d.ts +1 -0
- package/package.json +3 -4
|
@@ -319,6 +319,10 @@ export default class App {
|
|
|
319
319
|
coldStartTs: number;
|
|
320
320
|
singleBuffer: boolean;
|
|
321
321
|
private getSessionVersionHash;
|
|
322
|
+
private get sessionVersionKey();
|
|
323
|
+
private storeSessionVersion;
|
|
324
|
+
/** a tab adopting a session over BroadcastChannel inherits its version too */
|
|
325
|
+
private adoptSessionVersion;
|
|
322
326
|
private checkSessionToken;
|
|
323
327
|
/**
|
|
324
328
|
* start buffering messages without starting the actual session, which gives
|
|
@@ -80,3 +80,4 @@ export declare function Redux(action: string, state: string, duration: number, a
|
|
|
80
80
|
export declare function SetPageLocation(url: string, referrer: string, navigationStart: number, documentTitle: string): Messages.SetPageLocation;
|
|
81
81
|
export declare function GraphQL(operationKind: string, operationName: string, variables: string, response: string, duration: number): Messages.GraphQL;
|
|
82
82
|
export declare function WebVitals(name: string, value: string): Messages.WebVitals;
|
|
83
|
+
export declare function IssueEvent(messageID: number, timestamp: number, type: string, contextString: string, context: string, payload: string, url: string): Messages.IssueEvent;
|
|
@@ -78,7 +78,8 @@ export declare const enum Type {
|
|
|
78
78
|
Redux = 121,
|
|
79
79
|
SetPageLocation = 122,
|
|
80
80
|
GraphQL = 123,
|
|
81
|
-
WebVitals = 124
|
|
81
|
+
WebVitals = 124,
|
|
82
|
+
IssueEvent = 125
|
|
82
83
|
}
|
|
83
84
|
export type Timestamp = [
|
|
84
85
|
Type.Timestamp,
|
|
@@ -577,8 +578,18 @@ export type WebVitals = [
|
|
|
577
578
|
string,
|
|
578
579
|
string
|
|
579
580
|
];
|
|
581
|
+
export type IssueEvent = [
|
|
582
|
+
Type.IssueEvent,
|
|
583
|
+
number,
|
|
584
|
+
number,
|
|
585
|
+
string,
|
|
586
|
+
string,
|
|
587
|
+
string,
|
|
588
|
+
string,
|
|
589
|
+
string
|
|
590
|
+
];
|
|
580
591
|
export declare const ASSET_MESSAGES: ReadonlySet<number>;
|
|
581
592
|
export declare const DEVTOOLS_MESSAGES: ReadonlySet<number>;
|
|
582
593
|
export declare const ANALYTICS_MESSAGES: ReadonlySet<number>;
|
|
583
|
-
type Message = Timestamp | SetPageLocationDeprecated | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequestDeprecated | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | StringDictGlobal | SetNodeAttributeDictGlobal | NodeAnimationResult | Profiler | OTable | StateAction | ReduxDeprecated | Vuex | MobX | NgRx | GraphQLDeprecated | PerformanceTrack | StringDictDeprecated | SetNodeAttributeDictDeprecated | StringDict | SetNodeAttributeDict | ResourceTimingDeprecatedDeprecated | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | SetNodeSlot | MouseClick | MouseClickDeprecated | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | NetworkRequest | WSChannel | ResourceTiming | Incident | LongAnimationTask | InputChange | SelectionChange | MouseThrashing | UnbindNodes | ResourceTimingDeprecated | TabChange | TabData | CanvasNode | TagTrigger | Redux | SetPageLocation | GraphQL | WebVitals;
|
|
594
|
+
type Message = Timestamp | SetPageLocationDeprecated | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequestDeprecated | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | StringDictGlobal | SetNodeAttributeDictGlobal | NodeAnimationResult | Profiler | OTable | StateAction | ReduxDeprecated | Vuex | MobX | NgRx | GraphQLDeprecated | PerformanceTrack | StringDictDeprecated | SetNodeAttributeDictDeprecated | StringDict | SetNodeAttributeDict | ResourceTimingDeprecatedDeprecated | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | SetNodeSlot | MouseClick | MouseClickDeprecated | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | NetworkRequest | WSChannel | ResourceTiming | Incident | LongAnimationTask | InputChange | SelectionChange | MouseThrashing | UnbindNodes | ResourceTimingDeprecated | TabChange | TabData | CanvasNode | TagTrigger | Redux | SetPageLocation | GraphQL | WebVitals | IssueEvent;
|
|
584
595
|
export default Message;
|
|
@@ -319,6 +319,10 @@ export default class App {
|
|
|
319
319
|
coldStartTs: number;
|
|
320
320
|
singleBuffer: boolean;
|
|
321
321
|
private getSessionVersionHash;
|
|
322
|
+
private get sessionVersionKey();
|
|
323
|
+
private storeSessionVersion;
|
|
324
|
+
/** a tab adopting a session over BroadcastChannel inherits its version too */
|
|
325
|
+
private adoptSessionVersion;
|
|
322
326
|
private checkSessionToken;
|
|
323
327
|
/**
|
|
324
328
|
* start buffering messages without starting the actual session, which gives
|
|
@@ -80,3 +80,4 @@ export declare function Redux(action: string, state: string, duration: number, a
|
|
|
80
80
|
export declare function SetPageLocation(url: string, referrer: string, navigationStart: number, documentTitle: string): Messages.SetPageLocation;
|
|
81
81
|
export declare function GraphQL(operationKind: string, operationName: string, variables: string, response: string, duration: number): Messages.GraphQL;
|
|
82
82
|
export declare function WebVitals(name: string, value: string): Messages.WebVitals;
|
|
83
|
+
export declare function IssueEvent(messageID: number, timestamp: number, type: string, contextString: string, context: string, payload: string, url: string): Messages.IssueEvent;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openreplay/tracker",
|
|
3
3
|
"description": "The OpenReplay tracker main package",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "19.0.0-beta.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logging",
|
|
7
7
|
"replay"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"test": "jest --coverage=false",
|
|
48
48
|
"test:ci": "jest --coverage=true",
|
|
49
49
|
"postversion": "bun run build",
|
|
50
|
-
"prepublishOnly": "bun run
|
|
50
|
+
"prepublishOnly": "bun run build"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@babel/core": "^7.29.0",
|
|
@@ -75,8 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@openreplay/network-proxy": "^1.2.5",
|
|
78
|
-
"error-stack-parser": "
|
|
79
|
-
"error-stack-parser-es": "^0.1.5",
|
|
78
|
+
"error-stack-parser-es": "2.0.1",
|
|
80
79
|
"web-vitals": "^5.1.0"
|
|
81
80
|
},
|
|
82
81
|
"engines": {
|