@starko-one/sdk 0.0.0-stage → 0.1.0-beta.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 +248 -0
- package/LICENSE +17 -0
- package/NOTICE +58 -0
- package/README.md +81 -2
- package/dist/api-BAFm4Lxj.d.ts +558 -0
- package/dist/api-DNrctwJu.d.cts +558 -0
- package/dist/browser/index.cjs +168 -0
- package/dist/browser/index.d.cts +131 -0
- package/dist/browser/index.d.ts +131 -0
- package/dist/browser/index.js +7 -0
- package/dist/build/rollup.cjs +22 -0
- package/dist/build/rollup.d.cts +34 -0
- package/dist/build/rollup.d.ts +34 -0
- package/dist/build/rollup.js +3 -0
- package/dist/build/vite.cjs +51 -0
- package/dist/build/vite.d.cts +23 -0
- package/dist/build/vite.d.ts +23 -0
- package/dist/build/vite.js +46 -0
- package/dist/build/webpack.cjs +18 -0
- package/dist/build/webpack.d.cts +39 -0
- package/dist/build/webpack.d.ts +39 -0
- package/dist/build/webpack.js +3 -0
- package/dist/chunk-2PM4FRM5.cjs +431 -0
- package/dist/chunk-335HNCOJ.js +249 -0
- package/dist/chunk-3AW5B2WW.js +115 -0
- package/dist/chunk-3R5TQAWD.js +216 -0
- package/dist/chunk-6H5MOPTQ.cjs +1230 -0
- package/dist/chunk-7TKNT3QJ.cjs +2487 -0
- package/dist/chunk-A4WLNFMU.cjs +220 -0
- package/dist/chunk-ALYFFOPR.cjs +134 -0
- package/dist/chunk-BVVFVRMO.js +1113 -0
- package/dist/chunk-CIHNKN62.cjs +15 -0
- package/dist/chunk-CMGCH6HD.js +1212 -0
- package/dist/chunk-D6QAPQ7L.cjs +56 -0
- package/dist/chunk-DUO5V6WZ.js +213 -0
- package/dist/chunk-EC2WZ6PG.js +90 -0
- package/dist/chunk-EFURLFJT.cjs +187 -0
- package/dist/chunk-EROUORMY.js +53 -0
- package/dist/chunk-LXBXFOAP.cjs +96 -0
- package/dist/chunk-MF6SA6DB.js +563 -0
- package/dist/chunk-N5R6ORIB.js +413 -0
- package/dist/chunk-N6R6BWHK.cjs +142 -0
- package/dist/chunk-QAGGN2T7.cjs +225 -0
- package/dist/chunk-QV4HRIDD.cjs +659 -0
- package/dist/chunk-TKNDYQB3.cjs +583 -0
- package/dist/chunk-UI5YC4TH.js +131 -0
- package/dist/chunk-VEHZYLK6.cjs +1151 -0
- package/dist/chunk-VNCWOGTI.js +12 -0
- package/dist/chunk-VWNIOGE6.js +180 -0
- package/dist/chunk-WDKRKGYF.js +608 -0
- package/dist/chunk-XOZIXBUK.js +2462 -0
- package/dist/chunk-ZS3K3SDR.cjs +258 -0
- package/dist/cli/index.cjs +2780 -0
- package/dist/common-DLFAqL2d.d.cts +36 -0
- package/dist/common-DbSXkaw6.d.ts +36 -0
- package/dist/dedupe-Bh5riD8Z.d.cts +13 -0
- package/dist/dedupe-DoYiSx-9.d.ts +13 -0
- package/dist/handler-BcnsnvhF.d.cts +82 -0
- package/dist/handler-qHzilC9T.d.ts +82 -0
- package/dist/index.cjs +309 -0
- package/dist/index.d.cts +187 -0
- package/dist/index.d.ts +187 -0
- package/dist/index.js +4 -0
- package/dist/next/client.cjs +113 -0
- package/dist/next/client.d.cts +26 -0
- package/dist/next/client.d.ts +26 -0
- package/dist/next/client.js +41 -0
- package/dist/next/config.cjs +277 -0
- package/dist/next/config.d.cts +193 -0
- package/dist/next/config.d.ts +193 -0
- package/dist/next/config.js +263 -0
- package/dist/next/index.cjs +148 -0
- package/dist/next/index.d.cts +32 -0
- package/dist/next/index.d.ts +32 -0
- package/dist/next/index.js +59 -0
- package/dist/node/index.cjs +257 -0
- package/dist/node/index.d.cts +145 -0
- package/dist/node/index.d.ts +145 -0
- package/dist/node/index.js +83 -0
- package/dist/options-BUhWuWJX.d.cts +79 -0
- package/dist/options-BUhWuWJX.d.ts +79 -0
- package/dist/react/index.cjs +107 -0
- package/dist/react/index.d.cts +84 -0
- package/dist/react/index.d.ts +84 -0
- package/dist/react/index.js +103 -0
- package/dist/scope-D1ouJm2h.d.cts +628 -0
- package/dist/scope-D1ouJm2h.d.ts +628 -0
- package/dist/server-edge-7624N3WF.cjs +51 -0
- package/dist/server-edge-BEEXWL7T.js +48 -0
- package/dist/server-node-ET4LIPEC.cjs +27 -0
- package/dist/server-node-TQUVMZUC.js +24 -0
- package/dist/session-C_WzbEN2.d.cts +4 -0
- package/dist/session-C_WzbEN2.d.ts +4 -0
- package/dist/session-propagation-Pr0Zb9Zn.d.cts +30 -0
- package/dist/session-propagation-RM5py1bp.d.ts +30 -0
- package/dist/starko.min.js +6 -0
- package/docs/browser.md +386 -0
- package/docs/configuration.md +310 -0
- package/docs/nextjs.md +488 -0
- package/docs/node.md +427 -0
- package/docs/other-backends.md +232 -0
- package/docs/privacy.md +112 -0
- package/docs/react.md +187 -0
- package/docs/source-maps.md +482 -0
- package/docs/troubleshooting.md +263 -0
- package/docs/widget.md +84 -0
- package/docs/wire-format.md +547 -0
- package/package.json +191 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { I as Integration } from './api-DNrctwJu.cjs';
|
|
2
|
+
|
|
3
|
+
/** The `request` argument of Next's `onRequestError`. */
|
|
4
|
+
interface NextRequestErrorRequest {
|
|
5
|
+
/** Resource path, e.g. `/blog?name=foo`. */
|
|
6
|
+
path: string;
|
|
7
|
+
method: string;
|
|
8
|
+
headers: {
|
|
9
|
+
[key: string]: string | string[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/** The `context` argument of Next's `onRequestError`. */
|
|
13
|
+
interface NextRequestErrorContext {
|
|
14
|
+
routerKind: "Pages Router" | "App Router";
|
|
15
|
+
/** The route file path, e.g. `/app/blog/[dynamic]`. */
|
|
16
|
+
routePath: string;
|
|
17
|
+
routeType: "render" | "route" | "action" | "proxy" | "middleware";
|
|
18
|
+
renderSource?: "react-server-components" | "react-server-components-payload" | "server-rendering";
|
|
19
|
+
revalidateReason?: "on-demand" | "stale" | undefined;
|
|
20
|
+
renderType?: "dynamic" | "dynamic-resume";
|
|
21
|
+
}
|
|
22
|
+
type NextOnRequestError = (error: unknown, request: Readonly<NextRequestErrorRequest>, context: Readonly<NextRequestErrorContext>) => void | Promise<void>;
|
|
23
|
+
/** True for Next's / React's control-flow throws (checked on the value and up to 5 `cause`s). */
|
|
24
|
+
declare function isNextControlFlow(error: unknown, depth?: number): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Drops events whose thrown value is one of Next's control-flow errors,
|
|
27
|
+
* whatever captured it: `onRequestError`, `captureException(e)` in a
|
|
28
|
+
* server action's `catch` around `redirect()`, an unhandled rejection of a
|
|
29
|
+
* postponed or aborted prerender, the browser's global handlers. A real
|
|
30
|
+
* error that merely has a `digest` (Next gives one to every server error)
|
|
31
|
+
* is kept: only the digests of `CONTROL_FLOW` count. Added by default on the
|
|
32
|
+
* server (`register()`) and in the browser (`@starko-one/sdk/next/client`).
|
|
33
|
+
*/
|
|
34
|
+
declare function nextControlFlowIntegration(): Integration;
|
|
35
|
+
|
|
36
|
+
export { type NextRequestErrorRequest as N, type NextRequestErrorContext as a, type NextOnRequestError as b, isNextControlFlow as i, nextControlFlowIntegration as n };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { I as Integration } from './api-BAFm4Lxj.js';
|
|
2
|
+
|
|
3
|
+
/** The `request` argument of Next's `onRequestError`. */
|
|
4
|
+
interface NextRequestErrorRequest {
|
|
5
|
+
/** Resource path, e.g. `/blog?name=foo`. */
|
|
6
|
+
path: string;
|
|
7
|
+
method: string;
|
|
8
|
+
headers: {
|
|
9
|
+
[key: string]: string | string[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/** The `context` argument of Next's `onRequestError`. */
|
|
13
|
+
interface NextRequestErrorContext {
|
|
14
|
+
routerKind: "Pages Router" | "App Router";
|
|
15
|
+
/** The route file path, e.g. `/app/blog/[dynamic]`. */
|
|
16
|
+
routePath: string;
|
|
17
|
+
routeType: "render" | "route" | "action" | "proxy" | "middleware";
|
|
18
|
+
renderSource?: "react-server-components" | "react-server-components-payload" | "server-rendering";
|
|
19
|
+
revalidateReason?: "on-demand" | "stale" | undefined;
|
|
20
|
+
renderType?: "dynamic" | "dynamic-resume";
|
|
21
|
+
}
|
|
22
|
+
type NextOnRequestError = (error: unknown, request: Readonly<NextRequestErrorRequest>, context: Readonly<NextRequestErrorContext>) => void | Promise<void>;
|
|
23
|
+
/** True for Next's / React's control-flow throws (checked on the value and up to 5 `cause`s). */
|
|
24
|
+
declare function isNextControlFlow(error: unknown, depth?: number): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Drops events whose thrown value is one of Next's control-flow errors,
|
|
27
|
+
* whatever captured it: `onRequestError`, `captureException(e)` in a
|
|
28
|
+
* server action's `catch` around `redirect()`, an unhandled rejection of a
|
|
29
|
+
* postponed or aborted prerender, the browser's global handlers. A real
|
|
30
|
+
* error that merely has a `digest` (Next gives one to every server error)
|
|
31
|
+
* is kept: only the digests of `CONTROL_FLOW` count. Added by default on the
|
|
32
|
+
* server (`register()`) and in the browser (`@starko-one/sdk/next/client`).
|
|
33
|
+
*/
|
|
34
|
+
declare function nextControlFlowIntegration(): Integration;
|
|
35
|
+
|
|
36
|
+
export { type NextRequestErrorRequest as N, type NextRequestErrorContext as a, type NextOnRequestError as b, isNextControlFlow as i, nextControlFlowIntegration as n };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { I as Integration } from './api-DNrctwJu.cjs';
|
|
2
|
+
|
|
3
|
+
interface DedupeOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The identity of the request the event belongs to (compared by
|
|
6
|
+
* identity); events of different requests are never duplicates. Servers
|
|
7
|
+
* pass the current request scope's.
|
|
8
|
+
*/
|
|
9
|
+
requestKey?: () => unknown;
|
|
10
|
+
}
|
|
11
|
+
declare function dedupeIntegration(options?: DedupeOptions): Integration;
|
|
12
|
+
|
|
13
|
+
export { type DedupeOptions as D, dedupeIntegration as d };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { I as Integration } from './api-BAFm4Lxj.js';
|
|
2
|
+
|
|
3
|
+
interface DedupeOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The identity of the request the event belongs to (compared by
|
|
6
|
+
* identity); events of different requests are never duplicates. Servers
|
|
7
|
+
* pass the current request scope's.
|
|
8
|
+
*/
|
|
9
|
+
requestKey?: () => unknown;
|
|
10
|
+
}
|
|
11
|
+
declare function dedupeIntegration(options?: DedupeOptions): Integration;
|
|
12
|
+
|
|
13
|
+
export { type DedupeOptions as D, dedupeIntegration as d };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { O as Options, I as Integration, C as Client } from './api-DNrctwJu.cjs';
|
|
2
|
+
import { S as Scope } from './scope-D1ouJm2h.cjs';
|
|
3
|
+
|
|
4
|
+
interface NodeOptions extends Options {
|
|
5
|
+
/**
|
|
6
|
+
* Secret key (`sk_starko_…`) with the `errors:write` scope, sent as
|
|
7
|
+
* `Authorization: Bearer …`. Optional. With it the server trusts the
|
|
8
|
+
* `user.id` events name without a hash. Server-side only; never logged.
|
|
9
|
+
*/
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/** `server_name` on every event. Default: the host name. */
|
|
12
|
+
serverName?: string;
|
|
13
|
+
/** How long to wait for queued events on `beforeExit` and SIGTERM / SIGINT, ms. Default 2000. (`close(timeout)` and `flush(timeout)` take their own.) */
|
|
14
|
+
shutdownTimeout?: number;
|
|
15
|
+
/**
|
|
16
|
+
* How long the fatal path (an uncaught error the app does not handle)
|
|
17
|
+
* waits for the event to go out before the process exits, ms. Short on
|
|
18
|
+
* purpose: the app keeps running on a broken state meanwhile. Default 1000.
|
|
19
|
+
*/
|
|
20
|
+
fatalFlushTimeout?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The `fetch` to send with instead of `node:http` / `node:https` (a proxy:
|
|
23
|
+
* undici's `fetch` with a `ProxyAgent` dispatcher). With it, the transport
|
|
24
|
+
* cannot unref its sockets: a request in flight keeps the process alive
|
|
25
|
+
* until it ends (at most its 10 s deadline).
|
|
26
|
+
*/
|
|
27
|
+
fetch?: typeof fetch;
|
|
28
|
+
}
|
|
29
|
+
/** In order: dedupe first, then request isolation and the process hooks, then the data adders. */
|
|
30
|
+
declare function getDefaultIntegrations(): Integration[];
|
|
31
|
+
/**
|
|
32
|
+
* Start the SDK. Calling it again replaces the previous client (whose hooks
|
|
33
|
+
* are removed). Returns the client, or undefined when it could not start;
|
|
34
|
+
* never throws.
|
|
35
|
+
*/
|
|
36
|
+
declare function init(options: NodeOptions): Client | undefined;
|
|
37
|
+
|
|
38
|
+
/** What an event says about the request it was captured in (all optional). */
|
|
39
|
+
interface RequestData {
|
|
40
|
+
method?: string;
|
|
41
|
+
/** Absolute or path-only URL; sanitised when the event is built (fragment dropped, sensitive query values redacted). */
|
|
42
|
+
url?: string;
|
|
43
|
+
/** The route pattern (`/users/:id`), not the concrete path. */
|
|
44
|
+
route?: string;
|
|
45
|
+
/** The browser session that made the request (`x-starko-session-id`, validated). */
|
|
46
|
+
sessionId?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Serving begins now (rule 2 at the top of the file): the base is frozen,
|
|
50
|
+
* request scopes fork it from now on, and writes outside any request scope
|
|
51
|
+
* are confined to the code that makes them. Called by Next's `register()`
|
|
52
|
+
* on the Node runtime, the Edge runtime's `init`, the HTTP server
|
|
53
|
+
* instrumentation and every request scope; call it yourself when the
|
|
54
|
+
* process serves requests some other way (a queue consumer, a custom
|
|
55
|
+
* transport) and you want that from the start. Idempotent.
|
|
56
|
+
*/
|
|
57
|
+
declare function markServing(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Run `fn` as one request: a fork of the BASE (what `init()` was given and
|
|
60
|
+
* what the app set on the global scope before serving began; never another
|
|
61
|
+
* request's or a job's user, never breadcrumbs) that nothing outside `fn`
|
|
62
|
+
* (and its async continuations) sees, carrying `request`. Serving begins.
|
|
63
|
+
* Returns what `fn` returns; what `fn` throws propagates.
|
|
64
|
+
*/
|
|
65
|
+
declare function runWithRequestScope<T>(fn: (scope: Scope) => T, request?: RequestData | (() => RequestData)): T;
|
|
66
|
+
/** The request the current code runs for, if any. */
|
|
67
|
+
declare function getRequestData(): RequestData | undefined;
|
|
68
|
+
/** The identity of the request the current code runs for (dedupe compares it), if any. */
|
|
69
|
+
declare function currentRequestKey(): object | undefined;
|
|
70
|
+
|
|
71
|
+
type WaitUntil = (p: Promise<unknown>) => void;
|
|
72
|
+
/** The platform's `waitUntil` for the request running now, if it offers one. */
|
|
73
|
+
declare function platformWaitUntil(): WaitUntil | undefined;
|
|
74
|
+
interface WrapHandlerOptions<A extends unknown[]> {
|
|
75
|
+
/** Longest wait for queued events after each call, ms. Default 2000. */
|
|
76
|
+
flushTimeout?: number;
|
|
77
|
+
/** Request data for a call, when the first argument is not a request (a Lambda event, say). */
|
|
78
|
+
getRequestData?: (...args: A) => RequestData | undefined;
|
|
79
|
+
}
|
|
80
|
+
declare function wrapHandler<A extends unknown[], R>(fn: (...args: A) => R, options?: WrapHandlerOptions<A>): (...args: A) => R;
|
|
81
|
+
|
|
82
|
+
export { type NodeOptions as N, type RequestData as R, type WrapHandlerOptions as W, getDefaultIntegrations as a, currentRequestKey as c, getRequestData as g, init as i, markServing as m, platformWaitUntil as p, runWithRequestScope as r, wrapHandler as w };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { O as Options, I as Integration, C as Client } from './api-BAFm4Lxj.js';
|
|
2
|
+
import { S as Scope } from './scope-D1ouJm2h.js';
|
|
3
|
+
|
|
4
|
+
interface NodeOptions extends Options {
|
|
5
|
+
/**
|
|
6
|
+
* Secret key (`sk_starko_…`) with the `errors:write` scope, sent as
|
|
7
|
+
* `Authorization: Bearer …`. Optional. With it the server trusts the
|
|
8
|
+
* `user.id` events name without a hash. Server-side only; never logged.
|
|
9
|
+
*/
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/** `server_name` on every event. Default: the host name. */
|
|
12
|
+
serverName?: string;
|
|
13
|
+
/** How long to wait for queued events on `beforeExit` and SIGTERM / SIGINT, ms. Default 2000. (`close(timeout)` and `flush(timeout)` take their own.) */
|
|
14
|
+
shutdownTimeout?: number;
|
|
15
|
+
/**
|
|
16
|
+
* How long the fatal path (an uncaught error the app does not handle)
|
|
17
|
+
* waits for the event to go out before the process exits, ms. Short on
|
|
18
|
+
* purpose: the app keeps running on a broken state meanwhile. Default 1000.
|
|
19
|
+
*/
|
|
20
|
+
fatalFlushTimeout?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The `fetch` to send with instead of `node:http` / `node:https` (a proxy:
|
|
23
|
+
* undici's `fetch` with a `ProxyAgent` dispatcher). With it, the transport
|
|
24
|
+
* cannot unref its sockets: a request in flight keeps the process alive
|
|
25
|
+
* until it ends (at most its 10 s deadline).
|
|
26
|
+
*/
|
|
27
|
+
fetch?: typeof fetch;
|
|
28
|
+
}
|
|
29
|
+
/** In order: dedupe first, then request isolation and the process hooks, then the data adders. */
|
|
30
|
+
declare function getDefaultIntegrations(): Integration[];
|
|
31
|
+
/**
|
|
32
|
+
* Start the SDK. Calling it again replaces the previous client (whose hooks
|
|
33
|
+
* are removed). Returns the client, or undefined when it could not start;
|
|
34
|
+
* never throws.
|
|
35
|
+
*/
|
|
36
|
+
declare function init(options: NodeOptions): Client | undefined;
|
|
37
|
+
|
|
38
|
+
/** What an event says about the request it was captured in (all optional). */
|
|
39
|
+
interface RequestData {
|
|
40
|
+
method?: string;
|
|
41
|
+
/** Absolute or path-only URL; sanitised when the event is built (fragment dropped, sensitive query values redacted). */
|
|
42
|
+
url?: string;
|
|
43
|
+
/** The route pattern (`/users/:id`), not the concrete path. */
|
|
44
|
+
route?: string;
|
|
45
|
+
/** The browser session that made the request (`x-starko-session-id`, validated). */
|
|
46
|
+
sessionId?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Serving begins now (rule 2 at the top of the file): the base is frozen,
|
|
50
|
+
* request scopes fork it from now on, and writes outside any request scope
|
|
51
|
+
* are confined to the code that makes them. Called by Next's `register()`
|
|
52
|
+
* on the Node runtime, the Edge runtime's `init`, the HTTP server
|
|
53
|
+
* instrumentation and every request scope; call it yourself when the
|
|
54
|
+
* process serves requests some other way (a queue consumer, a custom
|
|
55
|
+
* transport) and you want that from the start. Idempotent.
|
|
56
|
+
*/
|
|
57
|
+
declare function markServing(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Run `fn` as one request: a fork of the BASE (what `init()` was given and
|
|
60
|
+
* what the app set on the global scope before serving began; never another
|
|
61
|
+
* request's or a job's user, never breadcrumbs) that nothing outside `fn`
|
|
62
|
+
* (and its async continuations) sees, carrying `request`. Serving begins.
|
|
63
|
+
* Returns what `fn` returns; what `fn` throws propagates.
|
|
64
|
+
*/
|
|
65
|
+
declare function runWithRequestScope<T>(fn: (scope: Scope) => T, request?: RequestData | (() => RequestData)): T;
|
|
66
|
+
/** The request the current code runs for, if any. */
|
|
67
|
+
declare function getRequestData(): RequestData | undefined;
|
|
68
|
+
/** The identity of the request the current code runs for (dedupe compares it), if any. */
|
|
69
|
+
declare function currentRequestKey(): object | undefined;
|
|
70
|
+
|
|
71
|
+
type WaitUntil = (p: Promise<unknown>) => void;
|
|
72
|
+
/** The platform's `waitUntil` for the request running now, if it offers one. */
|
|
73
|
+
declare function platformWaitUntil(): WaitUntil | undefined;
|
|
74
|
+
interface WrapHandlerOptions<A extends unknown[]> {
|
|
75
|
+
/** Longest wait for queued events after each call, ms. Default 2000. */
|
|
76
|
+
flushTimeout?: number;
|
|
77
|
+
/** Request data for a call, when the first argument is not a request (a Lambda event, say). */
|
|
78
|
+
getRequestData?: (...args: A) => RequestData | undefined;
|
|
79
|
+
}
|
|
80
|
+
declare function wrapHandler<A extends unknown[], R>(fn: (...args: A) => R, options?: WrapHandlerOptions<A>): (...args: A) => R;
|
|
81
|
+
|
|
82
|
+
export { type NodeOptions as N, type RequestData as R, type WrapHandlerOptions as W, getDefaultIntegrations as a, currentRequestKey as c, getRequestData as g, init as i, markServing as m, platformWaitUntil as p, runWithRequestScope as r, wrapHandler as w };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6H5MOPTQ_cjs = require('./chunk-6H5MOPTQ.cjs');
|
|
4
|
+
var chunkZS3K3SDR_cjs = require('./chunk-ZS3K3SDR.cjs');
|
|
5
|
+
var chunkQV4HRIDD_cjs = require('./chunk-QV4HRIDD.cjs');
|
|
6
|
+
var chunkN6R6BWHK_cjs = require('./chunk-N6R6BWHK.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "Client", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk6H5MOPTQ_cjs.Client; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "DEFAULT_REMOTE_CONFIG", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunk6H5MOPTQ_cjs.DEFAULT_REMOTE_CONFIG; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "EventQueue", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunk6H5MOPTQ_cjs.EventQueue; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "MAX_EVENT_BYTES", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunk6H5MOPTQ_cjs.MAX_EVENT_BYTES; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "RateLimiter", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunk6H5MOPTQ_cjs.RateLimiter; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "browserStackParser", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunk6H5MOPTQ_cjs.browserStackParser; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "createStackParser", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunk6H5MOPTQ_cjs.createStackParser; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "dedupeIntegration", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunk6H5MOPTQ_cjs.dedupeIntegration; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "eventUrl", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunk6H5MOPTQ_cjs.eventUrl; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "geckoLineParser", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunk6H5MOPTQ_cjs.geckoLineParser; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "isSuppressed", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunk6H5MOPTQ_cjs.isSuppressed; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "nodeStackParser", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunk6H5MOPTQ_cjs.nodeStackParser; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "normalizeRemoteConfig", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunk6H5MOPTQ_cjs.normalizeRemoteConfig; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "sanitizeUrl", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunk6H5MOPTQ_cjs.sanitizeUrl; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "trimBreadcrumbs", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunk6H5MOPTQ_cjs.trimBreadcrumbs; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "trimEvent", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunk6H5MOPTQ_cjs.trimEvent; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "v8LineParser", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunk6H5MOPTQ_cjs.v8LineParser; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "buildExceptions", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkZS3K3SDR_cjs.buildExceptions; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "capturedAs", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkZS3K3SDR_cjs.capturedAs; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "coerce", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunkZS3K3SDR_cjs.coerce; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "getDebugIdMap", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunkZS3K3SDR_cjs.getDebugIdMap; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "getInjectedRelease", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunkZS3K3SDR_cjs.getInjectedRelease; }
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "markCaptured", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () { return chunkZS3K3SDR_cjs.markCaptured; }
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "toWireFrames", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return chunkZS3K3SDR_cjs.toWireFrames; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "BreadcrumbBuffer", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunkQV4HRIDD_cjs.BreadcrumbBuffer; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "SDK_VERSION", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunkQV4HRIDD_cjs.SDK_VERSION; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "Scope", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunkQV4HRIDD_cjs.Scope; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "addBreadcrumb", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunkQV4HRIDD_cjs.addBreadcrumb; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "captureException", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunkQV4HRIDD_cjs.captureException; }
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "captureMessage", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return chunkQV4HRIDD_cjs.captureMessage; }
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "close", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () { return chunkQV4HRIDD_cjs.close; }
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, "createLogger", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () { return chunkQV4HRIDD_cjs.createLogger; }
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "flush", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () { return chunkQV4HRIDD_cjs.flush; }
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "getClient", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () { return chunkQV4HRIDD_cjs.getClient; }
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "getCurrentScope", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function () { return chunkQV4HRIDD_cjs.getCurrentScope; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "getGlobalScope", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkQV4HRIDD_cjs.getGlobalScope; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "identify", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunkQV4HRIDD_cjs.identify; }
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "normalize", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () { return chunkQV4HRIDD_cjs.normalize; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "normalizeToSize", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkQV4HRIDD_cjs.normalizeToSize; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "safeStringify", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunkQV4HRIDD_cjs.safeStringify; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "safely", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunkQV4HRIDD_cjs.safely; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "setContext", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return chunkQV4HRIDD_cjs.setContext; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "setCurrentClient", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return chunkQV4HRIDD_cjs.setCurrentClient; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "setExtra", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunkQV4HRIDD_cjs.setExtra; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "setExtras", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkQV4HRIDD_cjs.setExtras; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "setScopeManager", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return chunkQV4HRIDD_cjs.setScopeManager; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "setTag", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunkQV4HRIDD_cjs.setTag; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "setTags", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunkQV4HRIDD_cjs.setTags; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "setUser", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunkQV4HRIDD_cjs.setUser; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "uuid4", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return chunkQV4HRIDD_cjs.uuid4; }
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "withScope", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () { return chunkQV4HRIDD_cjs.withScope; }
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(exports, "DEBUG_ID_COMMENT", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: function () { return chunkN6R6BWHK_cjs.DEBUG_ID_COMMENT; }
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "DEBUG_ID_GLOBAL", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return chunkN6R6BWHK_cjs.DEBUG_ID_GLOBAL; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "DEBUG_ID_NAMESPACE", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunkN6R6BWHK_cjs.DEBUG_ID_NAMESPACE; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "DEFAULT_HOST", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return chunkN6R6BWHK_cjs.DEFAULT_HOST; }
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(exports, "LIMITS", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return chunkN6R6BWHK_cjs.LIMITS; }
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "NATIVE_DEBUG_ID_GLOBAL", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () { return chunkN6R6BWHK_cjs.NATIVE_DEBUG_ID_GLOBAL; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "PATHS", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return chunkN6R6BWHK_cjs.PATHS; }
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(exports, "REDACTED", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () { return chunkN6R6BWHK_cjs.REDACTED; }
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "RELEASE_GLOBAL", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () { return chunkN6R6BWHK_cjs.RELEASE_GLOBAL; }
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(exports, "SENSITIVE_QUERY_PARAMS", {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return chunkN6R6BWHK_cjs.SENSITIVE_QUERY_PARAMS; }
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(exports, "SESSION_ID_PATTERN", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function () { return chunkN6R6BWHK_cjs.SESSION_ID_PATTERN; }
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "SOURCEMAP_BULK_MAX_CHECK", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_BULK_MAX_CHECK; }
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, "SOURCEMAP_BULK_MAX_MAPS", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_BULK_MAX_MAPS; }
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperty(exports, "SOURCEMAP_BULK_MAX_OBJECT_BYTES", {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_BULK_MAX_OBJECT_BYTES; }
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "SOURCEMAP_BULK_REQUEST_CONCURRENCY", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_BULK_REQUEST_CONCURRENCY; }
|
|
273
|
+
});
|
|
274
|
+
Object.defineProperty(exports, "SOURCEMAP_BULK_UPLOAD_CONCURRENCY", {
|
|
275
|
+
enumerable: true,
|
|
276
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_BULK_UPLOAD_CONCURRENCY; }
|
|
277
|
+
});
|
|
278
|
+
Object.defineProperty(exports, "SOURCEMAP_BULK_VERIFY_PER_WORKSPACE", {
|
|
279
|
+
enumerable: true,
|
|
280
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_BULK_VERIFY_PER_WORKSPACE; }
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "SOURCEMAP_MAX_BYTES", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_MAX_BYTES; }
|
|
285
|
+
});
|
|
286
|
+
Object.defineProperty(exports, "SOURCEMAP_MAX_CHUNKS_PER_CHECK", {
|
|
287
|
+
enumerable: true,
|
|
288
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_MAX_CHUNKS_PER_CHECK; }
|
|
289
|
+
});
|
|
290
|
+
Object.defineProperty(exports, "SOURCEMAP_MAX_FILE_NAME", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_MAX_FILE_NAME; }
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(exports, "SOURCEMAP_MAX_PARTS", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_MAX_PARTS; }
|
|
297
|
+
});
|
|
298
|
+
Object.defineProperty(exports, "SOURCEMAP_PART_BYTES", {
|
|
299
|
+
enumerable: true,
|
|
300
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_PART_BYTES; }
|
|
301
|
+
});
|
|
302
|
+
Object.defineProperty(exports, "SOURCEMAP_ROUTE_MAX_SECONDS", {
|
|
303
|
+
enumerable: true,
|
|
304
|
+
get: function () { return chunkN6R6BWHK_cjs.SOURCEMAP_ROUTE_MAX_SECONDS; }
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "WIRE_VERSION", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () { return chunkN6R6BWHK_cjs.WIRE_VERSION; }
|
|
309
|
+
});
|