@newtalaria/browser 0.1.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/README.md +123 -0
- package/dist/client.d.ts +35 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13454 -0
- package/dist/index.js.map +7 -0
- package/dist/replay/hooks.d.ts +6 -0
- package/dist/replay/hooks.d.ts.map +1 -0
- package/dist/replay/privacy.d.ts +4 -0
- package/dist/replay/privacy.d.ts.map +1 -0
- package/dist/replay/recorder.d.ts +11 -0
- package/dist/replay/recorder.d.ts.map +1 -0
- package/dist/replay/segment_buffer.d.ts +31 -0
- package/dist/replay/segment_buffer.d.ts.map +1 -0
- package/dist/transport/events.d.ts +22 -0
- package/dist/transport/events.d.ts.map +1 -0
- package/dist/transport/replays.d.ts +26 -0
- package/dist/transport/replays.d.ts.map +1 -0
- package/dist/transport/serverpod.d.ts +17 -0
- package/dist/transport/serverpod.d.ts.map +1 -0
- package/dist/types.d.ts +48 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/estimate.d.ts +3 -0
- package/dist/utils/estimate.d.ts.map +1 -0
- package/dist/utils/gzip.d.ts +5 -0
- package/dist/utils/gzip.d.ts.map +1 -0
- package/dist/utils/id.d.ts +3 -0
- package/dist/utils/id.d.ts.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type Teardown = () => void;
|
|
2
|
+
/** Mirror console output into rrweb as `talaria-console` custom events. */
|
|
3
|
+
export declare function installConsoleHook(): Teardown;
|
|
4
|
+
/** Capture fetch / XHR metadata only (no bodies, no auth headers). */
|
|
5
|
+
export declare function installNetworkHook(): Teardown;
|
|
6
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/replay/hooks.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC;AAiBlC,2EAA2E;AAC3E,wBAAgB,kBAAkB,IAAI,QAAQ,CA2B7C;AAsBD,sEAAsE;AACtE,wBAAgB,kBAAkB,IAAI,QAAQ,CAgF7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privacy.d.ts","sourceRoot":"","sources":["../../src/replay/privacy.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAY7C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAI3D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RrwebEvent } from './segment_buffer.js';
|
|
2
|
+
export interface RecorderOptions {
|
|
3
|
+
maskAllInputs: boolean;
|
|
4
|
+
blockSelector?: string;
|
|
5
|
+
onEvent: (event: RrwebEvent) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface RecorderHandle {
|
|
8
|
+
stop: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function startRecorder(options: RecorderOptions): RecorderHandle;
|
|
11
|
+
//# sourceMappingURL=recorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../src/replay/recorder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAmBtE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Minimal rrweb event shape used by the buffer. */
|
|
2
|
+
export interface RrwebEvent {
|
|
3
|
+
type: number;
|
|
4
|
+
data: unknown;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
}
|
|
7
|
+
/** Flush when uncompressed JSON is roughly this large. */
|
|
8
|
+
export declare const SEGMENT_SIZE_BYTES = 100000;
|
|
9
|
+
/** Periodic flush interval. */
|
|
10
|
+
export declare const SEGMENT_FLUSH_MS = 5000;
|
|
11
|
+
/** Keep ~60s of events while buffering (error-only sample path). */
|
|
12
|
+
export declare const RING_BUFFER_MS = 60000;
|
|
13
|
+
export declare class SegmentBuffer {
|
|
14
|
+
private events;
|
|
15
|
+
private pendingBytes;
|
|
16
|
+
get length(): number;
|
|
17
|
+
get estimatedBytes(): number;
|
|
18
|
+
push(event: RrwebEvent): void;
|
|
19
|
+
/** Drop events older than the ring window (buffer-only mode). */
|
|
20
|
+
trimRing(now?: number): void;
|
|
21
|
+
shouldFlushBySize(): boolean;
|
|
22
|
+
takeAll(): RrwebEvent[];
|
|
23
|
+
/** Re-queue events at the front (failed upload retry). */
|
|
24
|
+
prepend(events: RrwebEvent[]): void;
|
|
25
|
+
peekTimes(): {
|
|
26
|
+
startedAt: Date;
|
|
27
|
+
endedAt: Date;
|
|
28
|
+
} | null;
|
|
29
|
+
private recomputeBytes;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=segment_buffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segment_buffer.d.ts","sourceRoot":"","sources":["../../src/replay/segment_buffer.ts"],"names":[],"mappings":"AAEA,oDAAoD;AACpD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,SAAU,CAAC;AAC1C,+BAA+B;AAC/B,eAAO,MAAM,gBAAgB,OAAQ,CAAC;AACtC,oEAAoE;AACpE,eAAO,MAAM,cAAc,QAAS,CAAC;AAErC,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,YAAY,CAAK;IAEzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAK7B,iEAAiE;IACjE,QAAQ,CAAC,GAAG,SAAa,GAAG,IAAI;IAYhC,iBAAiB,IAAI,OAAO;IAI5B,OAAO,IAAI,UAAU,EAAE;IAOvB,0DAA0D;IAC1D,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI;IAMnC,SAAS,IAAI;QAAE,SAAS,EAAE,IAAI,CAAC;QAAC,OAAO,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI;IAUtD,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ServerpodTransport } from './serverpod.js';
|
|
2
|
+
import type { SeverityLevel } from '../types.js';
|
|
3
|
+
export interface IngestEventParams {
|
|
4
|
+
message: string;
|
|
5
|
+
environment: string;
|
|
6
|
+
level?: SeverityLevel;
|
|
7
|
+
eventType?: 'error' | 'warning' | 'info' | 'debug';
|
|
8
|
+
title?: string;
|
|
9
|
+
stackTrace?: string;
|
|
10
|
+
release?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
replayId?: string | null;
|
|
14
|
+
requestId?: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
tags?: Record<string, string>;
|
|
17
|
+
extraJson?: string;
|
|
18
|
+
timestamp?: string;
|
|
19
|
+
keepalive?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function ingestEvent(transport: ServerpodTransport, params: IngestEventParams): Promise<unknown>;
|
|
22
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/transport/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,WAAW,CAC/B,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,OAAO,CAAC,CA2BlB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ServerpodTransport } from './serverpod.js';
|
|
2
|
+
export interface StartReplayParams {
|
|
3
|
+
replayId: string;
|
|
4
|
+
environment: string;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
userId?: string;
|
|
8
|
+
keepalive?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface IngestSegmentParams {
|
|
11
|
+
replayId: string;
|
|
12
|
+
segmentIndex: number;
|
|
13
|
+
events: unknown[];
|
|
14
|
+
startedAt: Date;
|
|
15
|
+
endedAt: Date;
|
|
16
|
+
keepalive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface FinishReplayParams {
|
|
19
|
+
replayId: string;
|
|
20
|
+
reason?: string;
|
|
21
|
+
keepalive?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function startReplay(transport: ServerpodTransport, params: StartReplayParams): Promise<unknown>;
|
|
24
|
+
export declare function ingestReplaySegment(transport: ServerpodTransport, params: IngestSegmentParams): Promise<unknown>;
|
|
25
|
+
export declare function finishReplay(transport: ServerpodTransport, params: FinishReplayParams): Promise<unknown>;
|
|
26
|
+
//# sourceMappingURL=replays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replays.d.ts","sourceRoot":"","sources":["../../src/transport/replays.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,WAAW,CAC/B,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,OAAO,CAAC,CAgBlB;AAED,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,OAAO,CAAC,CAoBlB;AAED,wBAAsB,YAAY,CAChC,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,OAAO,CAAC,CAalB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ServerpodTransportOptions {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Minimal Serverpod RPC client: POST `{baseUrl}/{endpoint}/{method}` with
|
|
7
|
+
* named JSON parameters and API-key auth.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ServerpodTransport {
|
|
10
|
+
private readonly baseUrl;
|
|
11
|
+
private readonly apiKey;
|
|
12
|
+
constructor(options: ServerpodTransportOptions);
|
|
13
|
+
call(endpoint: string, method: string, body: Record<string, unknown>, opts?: {
|
|
14
|
+
keepalive?: boolean;
|
|
15
|
+
}): Promise<unknown>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=serverpod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverpod.d.ts","sourceRoot":"","sources":["../../src/transport/serverpod.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,OAAO,EAAE,yBAAyB;IAKxC,IAAI,CACR,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAC7B,OAAO,CAAC,OAAO,CAAC;CA8BpB"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Severity levels accepted by Talaria event ingest. */
|
|
2
|
+
export type SeverityLevel = 'debug' | 'info' | 'warning' | 'error' | 'fatal';
|
|
3
|
+
/** Environments accepted by Talaria wire enums. */
|
|
4
|
+
export type Environment = 'production' | 'staging' | 'development';
|
|
5
|
+
export interface TalariaInitOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Serverpod host, e.g. `http://localhost:8080` or `https://ingest.example.com`.
|
|
8
|
+
* Alias of `baseUrl`.
|
|
9
|
+
*/
|
|
10
|
+
dsn?: string;
|
|
11
|
+
/** Same as `dsn` — prefer one of the two. */
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
/** Project API key (`tal_live_…`). */
|
|
14
|
+
apiKey: string;
|
|
15
|
+
environment: Environment | string;
|
|
16
|
+
release?: string;
|
|
17
|
+
/** Fraction of sessions that upload continuously (0–1). Default `0`. */
|
|
18
|
+
replaysSessionSampleRate?: number;
|
|
19
|
+
/** Fraction of errors that attach + flush a replay (0–1). Default `1`. */
|
|
20
|
+
replaysOnErrorSampleRate?: number;
|
|
21
|
+
/** Passed to rrweb. Default `true`. */
|
|
22
|
+
maskAllInputs?: boolean;
|
|
23
|
+
/** CSS selectors blocked from the DOM snapshot (plus `[data-talaria-mask]`). */
|
|
24
|
+
blockSelector?: string;
|
|
25
|
+
/** Optional app user id attached to events / replay start. */
|
|
26
|
+
userId?: string;
|
|
27
|
+
/** Disable automatic `window` / `unhandledrejection` handlers. */
|
|
28
|
+
disableDefaultIntegrations?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface CaptureContext {
|
|
31
|
+
tags?: Record<string, string>;
|
|
32
|
+
extra?: Record<string, unknown>;
|
|
33
|
+
userId?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ResolvedOptions {
|
|
37
|
+
baseUrl: string;
|
|
38
|
+
apiKey: string;
|
|
39
|
+
environment: string;
|
|
40
|
+
release?: string;
|
|
41
|
+
replaysSessionSampleRate: number;
|
|
42
|
+
replaysOnErrorSampleRate: number;
|
|
43
|
+
maskAllInputs: boolean;
|
|
44
|
+
blockSelector: string;
|
|
45
|
+
userId?: string;
|
|
46
|
+
disableDefaultIntegrations: boolean;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7E,mDAAmD;AACnD,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,0EAA0E;IAC1E,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uCAAuC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0BAA0B,EAAE,OAAO,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate.d.ts","sourceRoot":"","sources":["../../src/utils/estimate.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMxD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Gzip-compress bytes using the browser CompressionStream API. */
|
|
2
|
+
export declare function gzipBytes(data: Uint8Array): Promise<Uint8Array>;
|
|
3
|
+
/** Encode bytes as a Serverpod ByteData JSON string. */
|
|
4
|
+
export declare function toServerpodByteData(bytes: Uint8Array): string;
|
|
5
|
+
//# sourceMappingURL=gzip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gzip.d.ts","sourceRoot":"","sources":["../../src/utils/gzip.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,wBAAsB,SAAS,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAcrE;AAED,wDAAwD;AACxD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAS7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/utils/id.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,wBAAgB,QAAQ,IAAI,MAAM,CAcjC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@newtalaria/browser",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Talaria browser SDK — error capture and session replay (rrweb)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --format=esm --platform=browser --outfile=dist/index.js --sourcemap && npm run copy:example",
|
|
21
|
+
"copy:example": "mkdir -p ../../examples/sdk-spa/vendor && cp dist/index.js ../../examples/sdk-spa/vendor/talaria.js && cp dist/index.js.map ../../examples/sdk-spa/vendor/talaria.js.map",
|
|
22
|
+
"build:types": "tsc -p tsconfig.json",
|
|
23
|
+
"clean": "rm -rf dist",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"rrweb": "^2.0.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"esbuild": "^0.25.0",
|
|
31
|
+
"typescript": "^5.8.0"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"keywords": [
|
|
36
|
+
"talaria",
|
|
37
|
+
"error-tracking",
|
|
38
|
+
"session-replay",
|
|
39
|
+
"rrweb"
|
|
40
|
+
],
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/dunatron/new_talaria.git",
|
|
44
|
+
"directory": "new_talaria_js/packages/browser"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/dunatron/new_talaria/tree/main/new_talaria_js/packages/browser",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/dunatron/new_talaria/issues"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
}
|
|
53
|
+
}
|