@launchdarkly/browser-telemetry 0.0.9 → 0.1.1
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/CHANGELOG.md +44 -0
- package/README.md +1 -5
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +746 -0
- package/dist/index.d.ts +746 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/package.json +22 -32
- package/dist/cjs/bundle.cjs.js +0 -21
- package/dist/cjs/bundle.cjs.js.map +0 -1
- package/dist/cjs/package.json +0 -5
- package/dist/cjs/src/BrowserTelemetryImpl.d.ts +0 -31
- package/dist/cjs/src/BrowserTelemetryImpl.d.ts.map +0 -1
- package/dist/cjs/src/api/Breadcrumb.d.ts +0 -105
- package/dist/cjs/src/api/Breadcrumb.d.ts.map +0 -1
- package/dist/cjs/src/api/BrowserTelemetry.d.ts +0 -13
- package/dist/cjs/src/api/BrowserTelemetry.d.ts.map +0 -1
- package/dist/cjs/src/api/Collector.d.ts +0 -10
- package/dist/cjs/src/api/Collector.d.ts.map +0 -1
- package/dist/cjs/src/api/ErrorData.d.ts +0 -10
- package/dist/cjs/src/api/ErrorData.d.ts.map +0 -1
- package/dist/cjs/src/api/EventData.d.ts +0 -4
- package/dist/cjs/src/api/EventData.d.ts.map +0 -1
- package/dist/cjs/src/api/Options.d.ts +0 -133
- package/dist/cjs/src/api/Options.d.ts.map +0 -1
- package/dist/cjs/src/collectors/dom/ClickCollector.d.ts +0 -12
- package/dist/cjs/src/collectors/dom/ClickCollector.d.ts.map +0 -1
- package/dist/cjs/src/collectors/dom/KeypressCollector.d.ts +0 -14
- package/dist/cjs/src/collectors/dom/KeypressCollector.d.ts.map +0 -1
- package/dist/cjs/src/collectors/dom/getTarget.d.ts +0 -11
- package/dist/cjs/src/collectors/dom/getTarget.d.ts.map +0 -1
- package/dist/cjs/src/collectors/dom/toSelector.d.ts +0 -59
- package/dist/cjs/src/collectors/dom/toSelector.d.ts.map +0 -1
- package/dist/cjs/src/collectors/error.d.ts +0 -9
- package/dist/cjs/src/collectors/error.d.ts.map +0 -1
- package/dist/cjs/src/collectors/http/HttpCollectorOptions.d.ts +0 -13
- package/dist/cjs/src/collectors/http/HttpCollectorOptions.d.ts.map +0 -1
- package/dist/cjs/src/collectors/http/fetch.d.ts +0 -13
- package/dist/cjs/src/collectors/http/fetch.d.ts.map +0 -1
- package/dist/cjs/src/collectors/http/fetchDecorator.d.ts +0 -22
- package/dist/cjs/src/collectors/http/fetchDecorator.d.ts.map +0 -1
- package/dist/cjs/src/collectors/http/xhr.d.ts +0 -14
- package/dist/cjs/src/collectors/http/xhr.d.ts.map +0 -1
- package/dist/cjs/src/collectors/http/xhrDecorator.d.ts +0 -8
- package/dist/cjs/src/collectors/http/xhrDecorator.d.ts.map +0 -1
- package/dist/cjs/src/collectors/rrweb/ContinuousReplay.d.ts +0 -20
- package/dist/cjs/src/collectors/rrweb/ContinuousReplay.d.ts.map +0 -1
- package/dist/cjs/src/collectors/rrweb/EventBuffer.d.ts +0 -10
- package/dist/cjs/src/collectors/rrweb/EventBuffer.d.ts.map +0 -1
- package/dist/cjs/src/collectors/rrweb/RollingBuffer.d.ts +0 -19
- package/dist/cjs/src/collectors/rrweb/RollingBuffer.d.ts.map +0 -1
- package/dist/cjs/src/collectors/rrweb/RollingReplay.d.ts +0 -18
- package/dist/cjs/src/collectors/rrweb/RollingReplay.d.ts.map +0 -1
- package/dist/cjs/src/collectors/rrweb/SessionReplay.d.ts +0 -17
- package/dist/cjs/src/collectors/rrweb/SessionReplay.d.ts.map +0 -1
- package/dist/cjs/src/collectors/rrweb/SessionReplayOptions.d.ts +0 -13
- package/dist/cjs/src/collectors/rrweb/SessionReplayOptions.d.ts.map +0 -1
- package/dist/cjs/src/filters/defaultUrlFilter.d.ts +0 -8
- package/dist/cjs/src/filters/defaultUrlFilter.d.ts.map +0 -1
- package/dist/cjs/src/filters/filterHttpBreadcrumb.d.ts +0 -9
- package/dist/cjs/src/filters/filterHttpBreadcrumb.d.ts.map +0 -1
- package/dist/cjs/src/filters/filterUrl.d.ts +0 -3
- package/dist/cjs/src/filters/filterUrl.d.ts.map +0 -1
- package/dist/cjs/src/index.d.ts +0 -9
- package/dist/cjs/src/index.d.ts.map +0 -1
- package/dist/cjs/src/inspectors.d.ts +0 -5
- package/dist/cjs/src/inspectors.d.ts.map +0 -1
- package/dist/cjs/src/options.d.ts +0 -81
- package/dist/cjs/src/options.d.ts.map +0 -1
- package/dist/cjs/src/randomUuidV4.d.ts +0 -12
- package/dist/cjs/src/randomUuidV4.d.ts.map +0 -1
- package/dist/cjs/src/stack/StackFrame.d.ts +0 -37
- package/dist/cjs/src/stack/StackFrame.d.ts.map +0 -1
- package/dist/cjs/src/stack/StackParser.d.ts +0 -56
- package/dist/cjs/src/stack/StackParser.d.ts.map +0 -1
- package/dist/cjs/src/stack/StackTrace.d.ts +0 -5
- package/dist/cjs/src/stack/StackTrace.d.ts.map +0 -1
- package/dist/esm/bundle.es.js +0 -21
- package/dist/esm/bundle.es.js.map +0 -1
- package/dist/esm/package.json +0 -5
- package/dist/esm/src/BrowserTelemetryImpl.d.ts +0 -31
- package/dist/esm/src/BrowserTelemetryImpl.d.ts.map +0 -1
- package/dist/esm/src/api/Breadcrumb.d.ts +0 -105
- package/dist/esm/src/api/Breadcrumb.d.ts.map +0 -1
- package/dist/esm/src/api/BrowserTelemetry.d.ts +0 -13
- package/dist/esm/src/api/BrowserTelemetry.d.ts.map +0 -1
- package/dist/esm/src/api/Collector.d.ts +0 -10
- package/dist/esm/src/api/Collector.d.ts.map +0 -1
- package/dist/esm/src/api/ErrorData.d.ts +0 -10
- package/dist/esm/src/api/ErrorData.d.ts.map +0 -1
- package/dist/esm/src/api/EventData.d.ts +0 -4
- package/dist/esm/src/api/EventData.d.ts.map +0 -1
- package/dist/esm/src/api/Options.d.ts +0 -133
- package/dist/esm/src/api/Options.d.ts.map +0 -1
- package/dist/esm/src/collectors/dom/ClickCollector.d.ts +0 -12
- package/dist/esm/src/collectors/dom/ClickCollector.d.ts.map +0 -1
- package/dist/esm/src/collectors/dom/KeypressCollector.d.ts +0 -14
- package/dist/esm/src/collectors/dom/KeypressCollector.d.ts.map +0 -1
- package/dist/esm/src/collectors/dom/getTarget.d.ts +0 -11
- package/dist/esm/src/collectors/dom/getTarget.d.ts.map +0 -1
- package/dist/esm/src/collectors/dom/toSelector.d.ts +0 -59
- package/dist/esm/src/collectors/dom/toSelector.d.ts.map +0 -1
- package/dist/esm/src/collectors/error.d.ts +0 -9
- package/dist/esm/src/collectors/error.d.ts.map +0 -1
- package/dist/esm/src/collectors/http/HttpCollectorOptions.d.ts +0 -13
- package/dist/esm/src/collectors/http/HttpCollectorOptions.d.ts.map +0 -1
- package/dist/esm/src/collectors/http/fetch.d.ts +0 -13
- package/dist/esm/src/collectors/http/fetch.d.ts.map +0 -1
- package/dist/esm/src/collectors/http/fetchDecorator.d.ts +0 -22
- package/dist/esm/src/collectors/http/fetchDecorator.d.ts.map +0 -1
- package/dist/esm/src/collectors/http/xhr.d.ts +0 -14
- package/dist/esm/src/collectors/http/xhr.d.ts.map +0 -1
- package/dist/esm/src/collectors/http/xhrDecorator.d.ts +0 -8
- package/dist/esm/src/collectors/http/xhrDecorator.d.ts.map +0 -1
- package/dist/esm/src/collectors/rrweb/ContinuousReplay.d.ts +0 -20
- package/dist/esm/src/collectors/rrweb/ContinuousReplay.d.ts.map +0 -1
- package/dist/esm/src/collectors/rrweb/EventBuffer.d.ts +0 -10
- package/dist/esm/src/collectors/rrweb/EventBuffer.d.ts.map +0 -1
- package/dist/esm/src/collectors/rrweb/RollingBuffer.d.ts +0 -19
- package/dist/esm/src/collectors/rrweb/RollingBuffer.d.ts.map +0 -1
- package/dist/esm/src/collectors/rrweb/RollingReplay.d.ts +0 -18
- package/dist/esm/src/collectors/rrweb/RollingReplay.d.ts.map +0 -1
- package/dist/esm/src/collectors/rrweb/SessionReplay.d.ts +0 -17
- package/dist/esm/src/collectors/rrweb/SessionReplay.d.ts.map +0 -1
- package/dist/esm/src/collectors/rrweb/SessionReplayOptions.d.ts +0 -13
- package/dist/esm/src/collectors/rrweb/SessionReplayOptions.d.ts.map +0 -1
- package/dist/esm/src/filters/defaultUrlFilter.d.ts +0 -8
- package/dist/esm/src/filters/defaultUrlFilter.d.ts.map +0 -1
- package/dist/esm/src/filters/filterHttpBreadcrumb.d.ts +0 -9
- package/dist/esm/src/filters/filterHttpBreadcrumb.d.ts.map +0 -1
- package/dist/esm/src/filters/filterUrl.d.ts +0 -3
- package/dist/esm/src/filters/filterUrl.d.ts.map +0 -1
- package/dist/esm/src/index.d.ts +0 -9
- package/dist/esm/src/index.d.ts.map +0 -1
- package/dist/esm/src/inspectors.d.ts +0 -5
- package/dist/esm/src/inspectors.d.ts.map +0 -1
- package/dist/esm/src/options.d.ts +0 -81
- package/dist/esm/src/options.d.ts.map +0 -1
- package/dist/esm/src/randomUuidV4.d.ts +0 -12
- package/dist/esm/src/randomUuidV4.d.ts.map +0 -1
- package/dist/esm/src/stack/StackFrame.d.ts +0 -37
- package/dist/esm/src/stack/StackFrame.d.ts.map +0 -1
- package/dist/esm/src/stack/StackParser.d.ts +0 -56
- package/dist/esm/src/stack/StackParser.d.ts.map +0 -1
- package/dist/esm/src/stack/StackTrace.d.ts +0 -5
- package/dist/esm/src/stack/StackTrace.d.ts.map +0 -1
package/dist/esm/package.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { LDClient, LDContext, LDEvaluationDetail, LDInspection } from 'launchdarkly-js-client-sdk';
|
|
2
|
-
import { Breadcrumb } from './api/Breadcrumb';
|
|
3
|
-
import { BrowserTelemetry } from './api/BrowserTelemetry';
|
|
4
|
-
import { EventData } from './api/EventData';
|
|
5
|
-
import { ParsedOptions } from './options';
|
|
6
|
-
export default class BrowserTelemetryImpl implements BrowserTelemetry {
|
|
7
|
-
private options;
|
|
8
|
-
private maxPendingEvents;
|
|
9
|
-
private maxBreadcrumbs;
|
|
10
|
-
private pendingEvents;
|
|
11
|
-
private client?;
|
|
12
|
-
private breadcrumbs;
|
|
13
|
-
private inspectorInstances;
|
|
14
|
-
private collectors;
|
|
15
|
-
private sessionId;
|
|
16
|
-
constructor(options: ParsedOptions);
|
|
17
|
-
register(client: LDClient): void;
|
|
18
|
-
inspectors(): LDInspection[];
|
|
19
|
-
private capture;
|
|
20
|
-
captureError(exception: Error): void;
|
|
21
|
-
captureErrorEvent(errorEvent: ErrorEvent): void;
|
|
22
|
-
captureSession(sessionEvent: EventData): void;
|
|
23
|
-
addBreadcrumb(breadcrumb: Breadcrumb): void;
|
|
24
|
-
close(): void;
|
|
25
|
-
handleFlagUsed(flagKey: string, detail: LDEvaluationDetail, context: LDContext): void;
|
|
26
|
-
handleFlagDetailChanged(flagKey: string, detail: LDEvaluationDetail): void;
|
|
27
|
-
private dispatchError;
|
|
28
|
-
private dispatchFlagUsed;
|
|
29
|
-
private dispatchFlagDetailChanged;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=BrowserTelemetryImpl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserTelemetryImpl.d.ts","sourceRoot":"","sources":["../../src/BrowserTelemetryImpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,YAAY,EACb,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,UAAU,EAA+B,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,OAAO,EAAE,aAAa,EAAsB,MAAM,WAAW,CAAC;AAkC9D,MAAM,CAAC,OAAO,OAAO,oBAAqB,YAAW,gBAAgB;IAavD,OAAO,CAAC,OAAO;IAZ3B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,aAAa,CAA2C;IAChE,OAAO,CAAC,MAAM,CAAC,CAAW;IAE1B,OAAO,CAAC,WAAW,CAAoB;IAEvC,OAAO,CAAC,kBAAkB,CAAsB;IAChD,OAAO,CAAC,UAAU,CAAmB;IACrC,OAAO,CAAC,SAAS,CAA0B;gBAEvB,OAAO,EAAE,aAAa;IAiD1C,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI;IAOhC,UAAU,IAAI,YAAY,EAAE;IAI5B,OAAO,CAAC,OAAO;IAWf,YAAY,CAAC,SAAS,EAAE,KAAK,GAAG,IAAI;IAuBpC,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAI/C,cAAc,CAAC,YAAY,EAAE,SAAS,GAAG,IAAI;IAI7C,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAO3C,KAAK,IAAI,IAAI;IAIb,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI;IAgBrF,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAiB1E,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,yBAAyB;CAKlC"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
export type BreadcrumbClass = 'custom' | 'log' | 'navigation' | 'feature-management' | 'ui' | 'http';
|
|
2
|
-
export type BreadcrumbLevel = 'error' | 'warning' | 'info' | 'debug';
|
|
3
|
-
export type BreadcrumbDataValue = boolean | number | string;
|
|
4
|
-
export type BreadcrumbData = Record<string, BreadcrumbDataValue>;
|
|
5
|
-
export interface Breadcrumb {
|
|
6
|
-
/**
|
|
7
|
-
* The class of the breadcrumb. This is the top level categorization of breadcrumbs.
|
|
8
|
-
*/
|
|
9
|
-
class: BreadcrumbClass;
|
|
10
|
-
/**
|
|
11
|
-
* When the event associated with the breadcrumb happened. The timestamp is in milliseconds since January 1, 1970
|
|
12
|
-
* Universal Coordinated Time (UTC)
|
|
13
|
-
*
|
|
14
|
-
* For most breadcrumbs this will not be different than the time of breadcrumb creation, but if there is a delay
|
|
15
|
-
* between the event and breadcrumb capture, then the time of the event should be used instead.
|
|
16
|
-
*/
|
|
17
|
-
timestamp: number;
|
|
18
|
-
/**
|
|
19
|
-
* The level of severity of the breadcrumb. The default choice of level should be `info` if there isn't a clear
|
|
20
|
-
* reason to use a different level.
|
|
21
|
-
*/
|
|
22
|
-
level: BreadcrumbLevel;
|
|
23
|
-
/**
|
|
24
|
-
* The type of the breadcrumb. Each class may be split into multiple types with the type more specifically
|
|
25
|
-
* categorizing the type of event.
|
|
26
|
-
*/
|
|
27
|
-
type?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A message associated with the breadcrumb.
|
|
30
|
-
*/
|
|
31
|
-
message?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Any data associated with the breadcrumb.
|
|
34
|
-
*/
|
|
35
|
-
data?: BreadcrumbData;
|
|
36
|
-
}
|
|
37
|
-
type ImplementsCrumb<U extends Breadcrumb> = U;
|
|
38
|
-
export type CustomBreadcrumb = ImplementsCrumb<{
|
|
39
|
-
class: 'custom';
|
|
40
|
-
timestamp: number;
|
|
41
|
-
level: BreadcrumbLevel;
|
|
42
|
-
type?: string;
|
|
43
|
-
message?: string;
|
|
44
|
-
data?: BreadcrumbData;
|
|
45
|
-
}>;
|
|
46
|
-
export type LogBreadcrumb = ImplementsCrumb<{
|
|
47
|
-
class: 'log';
|
|
48
|
-
timestamp: number;
|
|
49
|
-
level: BreadcrumbLevel;
|
|
50
|
-
message: string;
|
|
51
|
-
data?: BreadcrumbData;
|
|
52
|
-
}>;
|
|
53
|
-
export type NavigationBreadcrumb = ImplementsCrumb<{
|
|
54
|
-
class: 'navigation';
|
|
55
|
-
timestamp: number;
|
|
56
|
-
level: 'info';
|
|
57
|
-
type?: string;
|
|
58
|
-
data?: {
|
|
59
|
-
/**
|
|
60
|
-
* The location being navigated from. In a web application this would typically be a URL.
|
|
61
|
-
*/
|
|
62
|
-
from?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The location being navigated to. In a web application this would typically be a URL.
|
|
65
|
-
*/
|
|
66
|
-
to?: string;
|
|
67
|
-
};
|
|
68
|
-
}>;
|
|
69
|
-
export type FeatureManagementBreadcrumb = ImplementsCrumb<{
|
|
70
|
-
class: 'feature-management';
|
|
71
|
-
timestamp: number;
|
|
72
|
-
level: 'info';
|
|
73
|
-
type: 'flag-evaluated' | 'flag-detail-changed';
|
|
74
|
-
data?: {
|
|
75
|
-
/**
|
|
76
|
-
* The flag key.
|
|
77
|
-
*/
|
|
78
|
-
key?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The evaluated value for simple types.
|
|
81
|
-
*/
|
|
82
|
-
value?: boolean | string | number;
|
|
83
|
-
};
|
|
84
|
-
}>;
|
|
85
|
-
export type UiBreadcrumb = ImplementsCrumb<{
|
|
86
|
-
class: 'ui';
|
|
87
|
-
timestamp: number;
|
|
88
|
-
level: 'info';
|
|
89
|
-
type: 'click' | 'input';
|
|
90
|
-
message: string;
|
|
91
|
-
}>;
|
|
92
|
-
export type HttpBreadcrumb = ImplementsCrumb<{
|
|
93
|
-
class: 'http';
|
|
94
|
-
timestamp: number;
|
|
95
|
-
level: 'error' | 'info';
|
|
96
|
-
type: 'xhr' | 'fetch';
|
|
97
|
-
data?: {
|
|
98
|
-
url?: string;
|
|
99
|
-
method?: string;
|
|
100
|
-
statusCode: number;
|
|
101
|
-
statusText: string;
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
|
-
export {};
|
|
105
|
-
//# sourceMappingURL=Breadcrumb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/api/Breadcrumb.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,QAAQ,GACR,KAAK,GACL,YAAY,GACZ,oBAAoB,GACpB,IAAI,GACJ,MAAM,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEjE,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED,KAAK,eAAe,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC7C,KAAK,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC;IAC1C,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC;IACxD,KAAK,EAAE,oBAAoB,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,gBAAgB,GAAG,qBAAqB,CAAC;IAC/C,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAGb;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;KACnC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;IACzC,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LDClient, LDInspection } from 'launchdarkly-js-client-sdk';
|
|
2
|
-
import { Breadcrumb } from './Breadcrumb';
|
|
3
|
-
import { EventData } from './EventData';
|
|
4
|
-
export interface BrowserTelemetry {
|
|
5
|
-
inspectors(): LDInspection[];
|
|
6
|
-
captureError(exception: Error): void;
|
|
7
|
-
captureErrorEvent(errorEvent: ErrorEvent): void;
|
|
8
|
-
captureSession(sessionEvent: EventData): void;
|
|
9
|
-
addBreadcrumb(breadcrumb: Breadcrumb): void;
|
|
10
|
-
register(client: LDClient): void;
|
|
11
|
-
close(): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=BrowserTelemetry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserTelemetry.d.ts","sourceRoot":"","sources":["../../../src/api/BrowserTelemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,IAAI,YAAY,EAAE,CAAC;IAE7B,YAAY,CAAC,SAAS,EAAE,KAAK,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAChD,cAAc,CAAC,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAE9C,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAE5C,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEjC,KAAK,IAAI,IAAI,CAAC;CACf"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type LDContext, type LDEvaluationDetail } from 'launchdarkly-js-client-sdk';
|
|
2
|
-
import { BrowserTelemetry } from './BrowserTelemetry';
|
|
3
|
-
export interface Collector {
|
|
4
|
-
register(telemetry: BrowserTelemetry, sessionId: string): void;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
handleFlagUsed?(flagKey: string, flagDetail: LDEvaluationDetail, _context: LDContext): void;
|
|
7
|
-
handleFlagDetailChanged?(flagKey: string, detail: LDEvaluationDetail): void;
|
|
8
|
-
handleErrorEvent?(name: string, message: string): void;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=Collector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Collector.d.ts","sourceRoot":"","sources":["../../../src/api/Collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/D,UAAU,IAAI,IAAI,CAAC;IAEnB,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5F,uBAAuB,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAE5E,gBAAgB,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import StackTrace from '../stack/StackTrace';
|
|
2
|
-
import { Breadcrumb } from './Breadcrumb';
|
|
3
|
-
export interface ErrorData {
|
|
4
|
-
type: string;
|
|
5
|
-
message: string;
|
|
6
|
-
stack: StackTrace;
|
|
7
|
-
breadcrumbs: Breadcrumb[];
|
|
8
|
-
sessionId: string;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=ErrorData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorData.d.ts","sourceRoot":"","sources":["../../../src/api/ErrorData.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventData.d.ts","sourceRoot":"","sources":["../../../src/api/EventData.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IAExB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Collector } from './Collector';
|
|
2
|
-
/**
|
|
3
|
-
* Interface for URL filters.
|
|
4
|
-
*
|
|
5
|
-
* Given a URL the filter may return a different string to represent that URL.
|
|
6
|
-
* This string will be included in the telemetry events instead of the original.
|
|
7
|
-
*
|
|
8
|
-
* The URL will be filtered by SDK internal filters before this function is called.
|
|
9
|
-
*
|
|
10
|
-
* To redact a URL entirely return an empty string.
|
|
11
|
-
*
|
|
12
|
-
* Example:
|
|
13
|
-
* customUrlFilter: (url) => {
|
|
14
|
-
* if (url.includes('secret')) {
|
|
15
|
-
* return ''
|
|
16
|
-
* }
|
|
17
|
-
* return url;
|
|
18
|
-
* }
|
|
19
|
-
*/
|
|
20
|
-
export interface UrlFilter {
|
|
21
|
-
(url: string): string;
|
|
22
|
-
}
|
|
23
|
-
export interface HttpBreadCrumbOptions {
|
|
24
|
-
/**
|
|
25
|
-
* If fetch should be instrumented and breadcrumbs included for fetch requests.
|
|
26
|
-
*
|
|
27
|
-
* Defaults to true.
|
|
28
|
-
*/
|
|
29
|
-
instrumentFetch?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* If XMLHttpRequests should be instrumented and breadcrumbs included for XMLHttpRequests.
|
|
32
|
-
*
|
|
33
|
-
* Defaults to true.
|
|
34
|
-
*/
|
|
35
|
-
instrumentXhr?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Customize URL filtering. This will be applied in addition to some baseline filtering included
|
|
38
|
-
* which redacts components of LaunchDarkly URLs.
|
|
39
|
-
*/
|
|
40
|
-
customUrlFilter?: UrlFilter;
|
|
41
|
-
}
|
|
42
|
-
export interface StackOptions {
|
|
43
|
-
/**
|
|
44
|
-
* Configuration that controls how source is captured.
|
|
45
|
-
*/
|
|
46
|
-
source?: {
|
|
47
|
-
/**
|
|
48
|
-
* The number of lines captured before the originating line.
|
|
49
|
-
*
|
|
50
|
-
* Defaults to 3.
|
|
51
|
-
*/
|
|
52
|
-
beforeLines?: number;
|
|
53
|
-
/**
|
|
54
|
-
* The number of lines captured after the originating line.
|
|
55
|
-
*
|
|
56
|
-
* Defaults to 3.
|
|
57
|
-
*/
|
|
58
|
-
afterLines?: number;
|
|
59
|
-
/**
|
|
60
|
-
* The maximum length of source line to include. Lines longer than this will be
|
|
61
|
-
* trimmed.
|
|
62
|
-
*
|
|
63
|
-
* Defaults to 280.
|
|
64
|
-
*/
|
|
65
|
-
maxLineLength?: number;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Options for configuring browser telemetry.
|
|
70
|
-
*/
|
|
71
|
-
export interface Options {
|
|
72
|
-
/**
|
|
73
|
-
* The maximum number of pending events. Events may be captured before the LaunchDarkly
|
|
74
|
-
* SDK is initialized and these are stored until they can be sent. This only affects the
|
|
75
|
-
* events captured during initialization.
|
|
76
|
-
*/
|
|
77
|
-
maxPendingEvents?: number;
|
|
78
|
-
/**
|
|
79
|
-
* Properties related to automatic breadcrumb collection.
|
|
80
|
-
*/
|
|
81
|
-
breadcrumbs?: {
|
|
82
|
-
/**
|
|
83
|
-
* Set the maximum number of breadcrumbs. Defaults to 50.
|
|
84
|
-
*/
|
|
85
|
-
maxBreadcrumbs?: number;
|
|
86
|
-
/**
|
|
87
|
-
* True to enable automatic evaluation breadcrumbs. Defaults to true.
|
|
88
|
-
*/
|
|
89
|
-
evaluations?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* True to enable flag change breadcrumbs. Defaults to true.
|
|
92
|
-
*/
|
|
93
|
-
flagChange?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* True to enable click breadcrumbs. Defaults to true.
|
|
96
|
-
*/
|
|
97
|
-
click?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* True to enable input breadcrumbs for keypresses. Defaults to true.
|
|
100
|
-
*
|
|
101
|
-
* Input breadcrumbs do not include entered text, just that text was entered.
|
|
102
|
-
*/
|
|
103
|
-
keyboardInput?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Controls instrumentation and breadcrumbs for HTTP requests.
|
|
106
|
-
* The default is to instrument XMLHttpRequests and fetch requests.
|
|
107
|
-
*
|
|
108
|
-
* `false` to disable all HTTP breadcrumbs and instrumentation.
|
|
109
|
-
*
|
|
110
|
-
* Example:
|
|
111
|
-
* ```
|
|
112
|
-
* // This would instrument only XmlHttpRequests
|
|
113
|
-
* http: {
|
|
114
|
-
* instrumentFetch: false
|
|
115
|
-
* instrumentXhr: true
|
|
116
|
-
* }
|
|
117
|
-
*
|
|
118
|
-
* // Disable all HTTP instrumentation:
|
|
119
|
-
* http: false
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
http?: HttpBreadCrumbOptions | false;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Additional, or custom, collectors.
|
|
126
|
-
*/
|
|
127
|
-
collectors?: Collector[];
|
|
128
|
-
/**
|
|
129
|
-
* Configuration that controls the capture of the stack trace.
|
|
130
|
-
*/
|
|
131
|
-
stack?: StackOptions;
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=Options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/api/Options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;;;WAIG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;;;WAIG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;;;WAKG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB;;WAEG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;;;;;;;;;;;;;;WAiBG;QACH,IAAI,CAAC,EAAE,qBAAqB,GAAG,KAAK,CAAC;KACtC,CAAC;IAEF;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BrowserTelemetry } from '../../api/BrowserTelemetry';
|
|
2
|
-
import { Collector } from '../../api/Collector';
|
|
3
|
-
/**
|
|
4
|
-
* Collects mouse click events and adds them as breadcrumbs.
|
|
5
|
-
*/
|
|
6
|
-
export default class ClickCollector implements Collector {
|
|
7
|
-
private destination?;
|
|
8
|
-
constructor();
|
|
9
|
-
register(telemetry: BrowserTelemetry, _sessionId: string): void;
|
|
10
|
-
unregister(): void;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ClickCollector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClickCollector.d.ts","sourceRoot":"","sources":["../../../../src/collectors/dom/ClickCollector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,SAAS;IACtD,OAAO,CAAC,WAAW,CAAC,CAAmB;;IAsBvC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAG/D,UAAU,IAAI,IAAI;CAGnB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BrowserTelemetry } from '../../api/BrowserTelemetry';
|
|
2
|
-
import { Collector } from '../../api/Collector';
|
|
3
|
-
/**
|
|
4
|
-
* Collects mouse click events and adds them as breadcrumbs.
|
|
5
|
-
*/
|
|
6
|
-
export default class KeypressCollector implements Collector {
|
|
7
|
-
private destination?;
|
|
8
|
-
private lastEvent?;
|
|
9
|
-
constructor();
|
|
10
|
-
register(telemetry: BrowserTelemetry, _sessionId: string): void;
|
|
11
|
-
unregister(): void;
|
|
12
|
-
private shouldDeduplicate;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=KeypressCollector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeypressCollector.d.ts","sourceRoot":"","sources":["../../../../src/collectors/dom/KeypressCollector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAQhD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,SAAS;IACzD,OAAO,CAAC,WAAW,CAAC,CAAmB;IACvC,OAAO,CAAC,SAAS,CAAC,CAAe;;IAgCjC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAG/D,UAAU,IAAI,IAAI;IAIlB,OAAO,CAAC,iBAAiB;CAQ1B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the event target. This is wrapped because in some situations a browser may throw when
|
|
3
|
-
* accessing the event target.
|
|
4
|
-
*
|
|
5
|
-
* @param event The event to get the target from.
|
|
6
|
-
* @returns The event target, or undefined if one is not available.
|
|
7
|
-
*/
|
|
8
|
-
export default function getTarget(event: {
|
|
9
|
-
target: any;
|
|
10
|
-
}): Element | undefined;
|
|
11
|
-
//# sourceMappingURL=getTarget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTarget.d.ts","sourceRoot":"","sources":["../../../../src/collectors/dom/getTarget.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAAG,OAAO,GAAG,SAAS,CAM7E"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The elements of a node we need to generate a string representation.
|
|
3
|
-
*
|
|
4
|
-
* All element fields are optional, so a type guard is not required to use this typing.
|
|
5
|
-
*/
|
|
6
|
-
interface BasicElement {
|
|
7
|
-
tagName?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Given an element produce a class name in CSS selector format.
|
|
13
|
-
*
|
|
14
|
-
* Exported for testing.
|
|
15
|
-
*
|
|
16
|
-
* @param element The element to get a class name for.
|
|
17
|
-
* @returns The class name, or undefined if there is no class name.
|
|
18
|
-
*/
|
|
19
|
-
export declare function getClassName(element: BasicElement): string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Produce a string representation for a single DOM element. Does not produce the full selector.
|
|
22
|
-
*
|
|
23
|
-
* Exported for testing.
|
|
24
|
-
*
|
|
25
|
-
* @param element The element to produce a text representation for.
|
|
26
|
-
* @returns A text representation of the element, or an empty string if one cannot be produced.
|
|
27
|
-
*/
|
|
28
|
-
export declare function elementToString(element: BasicElement): string;
|
|
29
|
-
/**
|
|
30
|
-
* Given an HTML element produce a CSS selector.
|
|
31
|
-
*
|
|
32
|
-
* Defaults to a maximum depth of 10 components.
|
|
33
|
-
*
|
|
34
|
-
* Example:
|
|
35
|
-
* ```
|
|
36
|
-
* <html>
|
|
37
|
-
* <body>
|
|
38
|
-
* <div>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li class="some-class">
|
|
41
|
-
* <p id="some-id">toaster</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* </ul>
|
|
44
|
-
* </div>
|
|
45
|
-
* </body>
|
|
46
|
-
* </html>
|
|
47
|
-
* ```
|
|
48
|
-
* The <p> element in the above HTML would produce:
|
|
49
|
-
* `body > div > ul > li.some-class > p#some-id`
|
|
50
|
-
*
|
|
51
|
-
* @param element The element to generate a selector from.
|
|
52
|
-
* @param options Options which control selector generation.
|
|
53
|
-
* @returns The generated selector.
|
|
54
|
-
*/
|
|
55
|
-
export default function toSelector(element: unknown, options?: {
|
|
56
|
-
maxDepth: number;
|
|
57
|
-
}): string;
|
|
58
|
-
export {};
|
|
59
|
-
//# sourceMappingURL=toSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toSelector.d.ts","sourceRoot":"","sources":["../../../../src/collectors/dom/toSelector.ts"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAgBtE;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAkB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE;IACP,QAAQ,EAAE,MAAM,CAAC;CACC,GACnB,MAAM,CAkBR"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BrowserTelemetry } from '../api/BrowserTelemetry';
|
|
2
|
-
import { Collector } from '../api/Collector';
|
|
3
|
-
export default class ErrorCollector implements Collector {
|
|
4
|
-
private destination?;
|
|
5
|
-
constructor();
|
|
6
|
-
register(telemetry: BrowserTelemetry): void;
|
|
7
|
-
unregister(): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/collectors/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,SAAS;IACtD,OAAO,CAAC,WAAW,CAAC,CAAmB;;IAqBvC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAG3C,UAAU,IAAI,IAAI;CAGnB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UrlFilter } from '../../api/Options';
|
|
2
|
-
/**
|
|
3
|
-
* Options which impact the behavior of http collectors.
|
|
4
|
-
*/
|
|
5
|
-
export default interface HttpCollectorOptions {
|
|
6
|
-
/**
|
|
7
|
-
* A list of filters to execute on the URL of the breadcrumb.
|
|
8
|
-
*
|
|
9
|
-
* This allows for redaction of potentially sensitive information in URLs.
|
|
10
|
-
*/
|
|
11
|
-
urlFilters: UrlFilter[];
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=HttpCollectorOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCollectorOptions.d.ts","sourceRoot":"","sources":["../../../../src/collectors/http/HttpCollectorOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,oBAAoB;IAC3C;;;;OAIG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BrowserTelemetry } from '../../api/BrowserTelemetry';
|
|
2
|
-
import { Collector } from '../../api/Collector';
|
|
3
|
-
import HttpCollectorOptions from './HttpCollectorOptions';
|
|
4
|
-
/**
|
|
5
|
-
* Instrument fetch requests and generate a breadcrumb for each request.
|
|
6
|
-
*/
|
|
7
|
-
export default class FetchCollector implements Collector {
|
|
8
|
-
private destination?;
|
|
9
|
-
constructor(options: HttpCollectorOptions);
|
|
10
|
-
register(telemetry: BrowserTelemetry, _sessionId: string): void;
|
|
11
|
-
unregister(): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=fetch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/collectors/http/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,SAAS;IACtD,OAAO,CAAC,WAAW,CAAC,CAAmB;gBAE3B,OAAO,EAAE,oBAAoB;IAOzC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAI/D,UAAU,IAAI,IAAI;CAGnB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HttpBreadcrumb } from '../../api/Breadcrumb';
|
|
2
|
-
/**
|
|
3
|
-
* Given fetch arguments produce a URL and method.
|
|
4
|
-
*
|
|
5
|
-
* Exposed for testing.
|
|
6
|
-
*
|
|
7
|
-
* @param input First parameter to fetch.
|
|
8
|
-
* @param init Second, optional, parameter to fetch.
|
|
9
|
-
* @returns Return the URL and method. If not method or url can be accessed, then 'GET' will be the
|
|
10
|
-
* method and the url will be an empty string.
|
|
11
|
-
*/
|
|
12
|
-
export declare function processFetchArgs(input: RequestInfo | URL, init?: RequestInit | undefined): {
|
|
13
|
-
url: string;
|
|
14
|
-
method: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Decorate fetch and execute the callback whenever a fetch is completed providing a breadcrumb.
|
|
18
|
-
*
|
|
19
|
-
* @param callback Function which handles a breadcrumb.
|
|
20
|
-
*/
|
|
21
|
-
export default function decorateFetch(callback: (breadcrumb: HttpBreadcrumb) => void): void;
|
|
22
|
-
//# sourceMappingURL=fetchDecorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDecorator.d.ts","sourceRoot":"","sources":["../../../../src/collectors/http/fetchDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAMtD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,GAC7B;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAoBjC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,QAgDnF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BrowserTelemetry } from '../../api/BrowserTelemetry';
|
|
2
|
-
import { Collector } from '../../api/Collector';
|
|
3
|
-
import HttpCollectorOptions from './HttpCollectorOptions';
|
|
4
|
-
/**
|
|
5
|
-
* Instrument XMLHttpRequest and provide a breadcrumb for every XMLHttpRequest
|
|
6
|
-
* which is completed.
|
|
7
|
-
*/
|
|
8
|
-
export default class XhrCollector implements Collector {
|
|
9
|
-
private destination?;
|
|
10
|
-
constructor(options: HttpCollectorOptions);
|
|
11
|
-
register(telemetry: BrowserTelemetry, _sessionId: string): void;
|
|
12
|
-
unregister(): void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=xhr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../../../../src/collectors/http/xhr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAG1D;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,SAAS;IACpD,OAAO,CAAC,WAAW,CAAC,CAAmB;gBAE3B,OAAO,EAAE,oBAAoB;IAOzC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAI/D,UAAU,IAAI,IAAI;CAGnB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpBreadcrumb } from '../../api/Breadcrumb';
|
|
2
|
-
/**
|
|
3
|
-
* Decorate XMLHttpRequest and execute the callback whenever a request is completed.
|
|
4
|
-
*
|
|
5
|
-
* @param callback Function which handles a breadcrumb.
|
|
6
|
-
*/
|
|
7
|
-
export default function decorateXhr(callback: (breadcrumb: HttpBreadcrumb) => void): void;
|
|
8
|
-
//# sourceMappingURL=xhrDecorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xhrDecorator.d.ts","sourceRoot":"","sources":["../../../../src/collectors/http/xhrDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAqBtD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,QAgGjF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BrowserTelemetry } from '../../api/BrowserTelemetry';
|
|
2
|
-
import { Collector } from '../../api/Collector';
|
|
3
|
-
import { ContinuousCapture } from './SessionReplayOptions';
|
|
4
|
-
export default class ContinuousReplay implements Collector {
|
|
5
|
-
private telemetry?;
|
|
6
|
-
private buffer;
|
|
7
|
-
private stopper?;
|
|
8
|
-
private visibilityHandler;
|
|
9
|
-
private timerHandle;
|
|
10
|
-
private index;
|
|
11
|
-
private sessionId?;
|
|
12
|
-
constructor(options: ContinuousCapture);
|
|
13
|
-
register(telemetry: BrowserTelemetry, sessionId: string): void;
|
|
14
|
-
unregister(): void;
|
|
15
|
-
private handleVisibilityChange;
|
|
16
|
-
private recordCapture;
|
|
17
|
-
private startCapture;
|
|
18
|
-
private restartCapture;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ContinuousReplay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContinuousReplay.d.ts","sourceRoot":"","sources":["../../../../src/collectors/rrweb/ContinuousReplay.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,SAAS;IACxD,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,SAAS,CAAC,CAAS;gBAEf,OAAO,EAAE,iBAAiB;IAqBtC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAK9D,UAAU,IAAI,IAAI;IAOlB,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,cAAc;CAKvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventBuffer.d.ts","sourceRoot":"","sources":["../../../../src/collectors/rrweb/EventBuffer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,OAAO,EAAE,GAAG,EAAE,CAAM;IAC3B,OAAO,CAAC,IAAI,CAAS;gBAET,IAAI,EAAE,MAAM;IAIxB,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAOrB,QAAQ,IAAI,OAAO;IAInB,WAAW,IAAI,OAAO;IAItB,KAAK,IAAI,IAAI;CAId"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A session buffer is a circular buffer of buffers. Each buffer has a fixed size and is intended
|
|
3
|
-
* to match the "checkout" size of rrweb. Each individual buffer should contain a valid replay
|
|
4
|
-
* and then the sum of all the buffers should also be a valid replay containing each of the other
|
|
5
|
-
* session chunks.
|
|
6
|
-
*
|
|
7
|
-
* The buffer can continuously capture events while always remaining in a playable state
|
|
8
|
-
* and dropping old events.
|
|
9
|
-
*/
|
|
10
|
-
export default class RollingBuffer {
|
|
11
|
-
private buffers;
|
|
12
|
-
private writePointer;
|
|
13
|
-
private headPointer;
|
|
14
|
-
constructor(bufferSize: number, numBuffers: number);
|
|
15
|
-
push(item: any): void;
|
|
16
|
-
toArray(): any[];
|
|
17
|
-
reset(): void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=RollingBuffer.d.ts.map
|