@sentry/browser 7.0.0-beta.0 → 7.0.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/README.md +2 -3
- package/cjs/client.js +125 -102
- package/cjs/client.js.map +1 -1
- package/cjs/eventbuilder.js +225 -165
- package/cjs/eventbuilder.js.map +1 -1
- package/cjs/exports.js +55 -59
- package/cjs/exports.js.map +1 -1
- package/cjs/flags.js +7 -3
- package/cjs/flags.js.map +1 -1
- package/cjs/helpers.js +123 -96
- package/cjs/helpers.js.map +1 -1
- package/cjs/index.js +77 -10
- package/cjs/index.js.map +1 -1
- package/cjs/integrations/breadcrumbs.js +222 -174
- package/cjs/integrations/breadcrumbs.js.map +1 -1
- package/cjs/integrations/dedupe.js +184 -142
- package/cjs/integrations/dedupe.js.map +1 -1
- package/cjs/integrations/globalhandlers.js +211 -170
- package/cjs/integrations/globalhandlers.js.map +1 -1
- package/cjs/integrations/httpcontext.js +51 -0
- package/cjs/integrations/httpcontext.js.map +1 -0
- package/cjs/integrations/index.js +18 -14
- package/cjs/integrations/index.js.map +1 -1
- package/cjs/integrations/linkederrors.js +81 -50
- package/cjs/integrations/linkederrors.js.map +1 -1
- package/cjs/integrations/trycatch.js +247 -208
- package/cjs/integrations/trycatch.js.map +1 -1
- package/cjs/sdk.js +166 -125
- package/cjs/sdk.js.map +1 -1
- package/cjs/stack-parsers.js +143 -93
- package/cjs/stack-parsers.js.map +1 -1
- package/cjs/transports/fetch.js +30 -15
- package/cjs/transports/fetch.js.map +1 -1
- package/cjs/transports/index.js +10 -6
- package/cjs/transports/index.js.map +1 -1
- package/cjs/transports/utils.js +56 -51
- package/cjs/transports/utils.js.map +1 -1
- package/cjs/transports/xhr.js +40 -30
- package/cjs/transports/xhr.js.map +1 -1
- package/esm/client.js +124 -101
- package/esm/client.js.map +1 -1
- package/esm/eventbuilder.js +218 -158
- package/esm/eventbuilder.js.map +1 -1
- package/esm/exports.js +12 -8
- package/esm/exports.js.map +1 -1
- package/esm/flags.js +5 -2
- package/esm/flags.js.map +1 -1
- package/esm/helpers.js +122 -95
- package/esm/helpers.js.map +1 -1
- package/esm/index.js +27 -7
- package/esm/index.js.map +1 -1
- package/esm/integrations/breadcrumbs.js +218 -171
- package/esm/integrations/breadcrumbs.js.map +1 -1
- package/esm/integrations/dedupe.js +181 -139
- package/esm/integrations/dedupe.js.map +1 -1
- package/esm/integrations/globalhandlers.js +208 -167
- package/esm/integrations/globalhandlers.js.map +1 -1
- package/esm/integrations/httpcontext.js +49 -0
- package/esm/integrations/httpcontext.js.map +1 -0
- package/esm/integrations/index.js +7 -7
- package/esm/integrations/index.js.map +1 -1
- package/esm/integrations/linkederrors.js +77 -46
- package/esm/integrations/linkederrors.js.map +1 -1
- package/esm/integrations/trycatch.js +244 -205
- package/esm/integrations/trycatch.js.map +1 -1
- package/esm/sdk.js +163 -123
- package/esm/sdk.js.map +1 -1
- package/esm/stack-parsers.js +134 -91
- package/esm/stack-parsers.js.map +1 -1
- package/esm/transports/fetch.js +28 -13
- package/esm/transports/fetch.js.map +1 -1
- package/esm/transports/index.js +3 -3
- package/esm/transports/index.js.map +1 -1
- package/esm/transports/utils.js +55 -50
- package/esm/transports/utils.js.map +1 -1
- package/esm/transports/xhr.js +38 -28
- package/esm/transports/xhr.js.map +1 -1
- package/package.json +4 -4
- package/types/client.d.ts +3 -2
- package/types/client.d.ts.map +1 -1
- package/types/exports.d.ts +3 -4
- package/types/exports.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/integrations/{useragent.d.ts → httpcontext.d.ts} +3 -3
- package/types/integrations/httpcontext.d.ts.map +1 -0
- package/types/integrations/index.d.ts +1 -1
- package/types/integrations/index.d.ts.map +1 -1
- package/types/sdk.d.ts +2 -2
- package/types/sdk.d.ts.map +1 -1
- package/types/transports/fetch.d.ts +3 -5
- package/types/transports/fetch.d.ts.map +1 -1
- package/types/transports/types.d.ts +10 -0
- package/types/transports/types.d.ts.map +1 -0
- package/types/transports/xhr.d.ts +3 -7
- package/types/transports/xhr.d.ts.map +1 -1
- package/cjs/client.d.ts +0 -63
- package/cjs/client.d.ts.map +0 -1
- package/cjs/eventbuilder.d.ts +0 -37
- package/cjs/eventbuilder.d.ts.map +0 -1
- package/cjs/exports.d.ts +0 -11
- package/cjs/exports.d.ts.map +0 -1
- package/cjs/flags.d.ts +0 -3
- package/cjs/flags.d.ts.map +0 -1
- package/cjs/helpers.d.ts +0 -47
- package/cjs/helpers.d.ts.map +0 -1
- package/cjs/index.d.ts +0 -15
- package/cjs/index.d.ts.map +0 -1
- package/cjs/integrations/breadcrumbs.d.ts +0 -46
- package/cjs/integrations/breadcrumbs.d.ts.map +0 -1
- package/cjs/integrations/dedupe.d.ts +0 -21
- package/cjs/integrations/dedupe.d.ts.map +0 -1
- package/cjs/integrations/globalhandlers.d.ts +0 -30
- package/cjs/integrations/globalhandlers.d.ts.map +0 -1
- package/cjs/integrations/index.d.ts +0 -7
- package/cjs/integrations/index.d.ts.map +0 -1
- package/cjs/integrations/linkederrors.d.ts +0 -42
- package/cjs/integrations/linkederrors.d.ts.map +0 -1
- package/cjs/integrations/trycatch.d.ts +0 -33
- package/cjs/integrations/trycatch.d.ts.map +0 -1
- package/cjs/integrations/useragent.d.ts +0 -17
- package/cjs/integrations/useragent.d.ts.map +0 -1
- package/cjs/integrations/useragent.js +0 -40
- package/cjs/integrations/useragent.js.map +0 -1
- package/cjs/sdk.d.ts +0 -112
- package/cjs/sdk.d.ts.map +0 -1
- package/cjs/stack-parsers.d.ts +0 -9
- package/cjs/stack-parsers.d.ts.map +0 -1
- package/cjs/transports/fetch.d.ts +0 -10
- package/cjs/transports/fetch.d.ts.map +0 -1
- package/cjs/transports/index.d.ts +0 -3
- package/cjs/transports/index.d.ts.map +0 -1
- package/cjs/transports/utils.d.ts +0 -48
- package/cjs/transports/utils.d.ts.map +0 -1
- package/cjs/transports/xhr.d.ts +0 -11
- package/cjs/transports/xhr.d.ts.map +0 -1
- package/cjs/version.d.ts +0 -2
- package/cjs/version.d.ts.map +0 -1
- package/cjs/version.js +0 -4
- package/cjs/version.js.map +0 -1
- package/esm/client.d.ts +0 -63
- package/esm/client.d.ts.map +0 -1
- package/esm/eventbuilder.d.ts +0 -37
- package/esm/eventbuilder.d.ts.map +0 -1
- package/esm/exports.d.ts +0 -11
- package/esm/exports.d.ts.map +0 -1
- package/esm/flags.d.ts +0 -3
- package/esm/flags.d.ts.map +0 -1
- package/esm/helpers.d.ts +0 -47
- package/esm/helpers.d.ts.map +0 -1
- package/esm/index.d.ts +0 -15
- package/esm/index.d.ts.map +0 -1
- package/esm/integrations/breadcrumbs.d.ts +0 -46
- package/esm/integrations/breadcrumbs.d.ts.map +0 -1
- package/esm/integrations/dedupe.d.ts +0 -21
- package/esm/integrations/dedupe.d.ts.map +0 -1
- package/esm/integrations/globalhandlers.d.ts +0 -30
- package/esm/integrations/globalhandlers.d.ts.map +0 -1
- package/esm/integrations/index.d.ts +0 -7
- package/esm/integrations/index.d.ts.map +0 -1
- package/esm/integrations/linkederrors.d.ts +0 -42
- package/esm/integrations/linkederrors.d.ts.map +0 -1
- package/esm/integrations/trycatch.d.ts +0 -33
- package/esm/integrations/trycatch.d.ts.map +0 -1
- package/esm/integrations/useragent.d.ts +0 -17
- package/esm/integrations/useragent.d.ts.map +0 -1
- package/esm/integrations/useragent.js +0 -38
- package/esm/integrations/useragent.js.map +0 -1
- package/esm/sdk.d.ts +0 -112
- package/esm/sdk.d.ts.map +0 -1
- package/esm/stack-parsers.d.ts +0 -9
- package/esm/stack-parsers.d.ts.map +0 -1
- package/esm/transports/fetch.d.ts +0 -10
- package/esm/transports/fetch.d.ts.map +0 -1
- package/esm/transports/index.d.ts +0 -3
- package/esm/transports/index.d.ts.map +0 -1
- package/esm/transports/utils.d.ts +0 -48
- package/esm/transports/utils.d.ts.map +0 -1
- package/esm/transports/xhr.d.ts +0 -11
- package/esm/transports/xhr.d.ts.map +0 -1
- package/esm/version.d.ts +0 -2
- package/esm/version.d.ts.map +0 -1
- package/esm/version.js +0 -3
- package/esm/version.js.map +0 -1
- package/types/integrations/useragent.d.ts.map +0 -1
- package/types/version.d.ts +0 -2
- package/types/version.d.ts.map +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/types';
|
|
2
|
-
/** UserAgent */
|
|
3
|
-
export declare class UserAgent implements Integration {
|
|
4
|
-
/**
|
|
5
|
-
* @inheritDoc
|
|
6
|
-
*/
|
|
7
|
-
static id: string;
|
|
8
|
-
/**
|
|
9
|
-
* @inheritDoc
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(): void;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=useragent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useragent.d.ts","sourceRoot":"","sources":["../../../../src/integrations/useragent.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,WAAW,EAAE,MAAM,eAAe,CAAC;AAKnD,gBAAgB;AAChB,qBAAa,SAAU,YAAW,WAAW;IAC3C;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAe;IAEvC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAgB;IAEnC;;OAEG;IACI,SAAS,IAAI,IAAI;CAyBzB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
const core_1 = require("@sentry/core");
|
|
3
|
-
const utils_1 = require("@sentry/utils");
|
|
4
|
-
const global = utils_1.getGlobalObject();
|
|
5
|
-
/** UserAgent */
|
|
6
|
-
class UserAgent {
|
|
7
|
-
constructor() {
|
|
8
|
-
/**
|
|
9
|
-
* @inheritDoc
|
|
10
|
-
*/
|
|
11
|
-
this.name = UserAgent.id;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
setupOnce() {
|
|
17
|
-
core_1.addGlobalEventProcessor((event) => {
|
|
18
|
-
if (core_1.getCurrentHub().getIntegration(UserAgent)) {
|
|
19
|
-
// if none of the information we want exists, don't bother
|
|
20
|
-
if (!global.navigator && !global.location && !global.document) {
|
|
21
|
-
return event;
|
|
22
|
-
}
|
|
23
|
-
// grab as much info as exists and add it to the event
|
|
24
|
-
const url = (event.request && event.request.url) || (global.location && global.location.href);
|
|
25
|
-
const { referrer } = global.document || {};
|
|
26
|
-
const { userAgent } = global.navigator || {};
|
|
27
|
-
const headers = Object.assign(Object.assign(Object.assign({}, (event.request && event.request.headers)), (referrer && { Referer: referrer })), (userAgent && { 'User-Agent': userAgent }));
|
|
28
|
-
const request = Object.assign(Object.assign({}, (url && { url })), { headers });
|
|
29
|
-
return Object.assign(Object.assign({}, event), { request });
|
|
30
|
-
}
|
|
31
|
-
return event;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.UserAgent = UserAgent;
|
|
36
|
-
/**
|
|
37
|
-
* @inheritDoc
|
|
38
|
-
*/
|
|
39
|
-
UserAgent.id = 'UserAgent';
|
|
40
|
-
//# sourceMappingURL=useragent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useragent.js","sourceRoot":"","sources":["../../../../src/integrations/useragent.ts"],"names":[],"mappings":";AAAA,uCAAsE;AAEtE,yCAAgD;AAEhD,MAAM,MAAM,GAAG,uBAAe,EAAU,CAAC;AAEzC,gBAAgB;AAChB,MAAa,SAAS;IAAtB;QAME;;WAEG;QACI,SAAI,GAAW,SAAS,CAAC,EAAE,CAAC;IA8BrC,CAAC;IA5BC;;OAEG;IACI,SAAS;QACd,8BAAuB,CAAC,CAAC,KAAY,EAAE,EAAE;YACvC,IAAI,oBAAa,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;gBAC7C,0DAA0D;gBAC1D,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;oBAC7D,OAAO,KAAK,CAAC;iBACd;gBAED,sDAAsD;gBACtD,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAC9F,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;gBAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;gBAE7C,MAAM,OAAO,iDACR,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GACxC,CAAC,QAAQ,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,GACnC,CAAC,SAAS,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAC9C,CAAC;gBACF,MAAM,OAAO,mCAAQ,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,CAAC,KAAE,OAAO,GAAE,CAAC;gBAEjD,uCAAY,KAAK,KAAE,OAAO,IAAG;aAC9B;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC;;AAtCH,8BAuCC;AAtCC;;GAEG;AACW,YAAE,GAAW,WAAW,CAAC","sourcesContent":["import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { Event, Integration } from '@sentry/types';\nimport { getGlobalObject } from '@sentry/utils';\n\nconst global = getGlobalObject<Window>();\n\n/** UserAgent */\nexport class UserAgent implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'UserAgent';\n\n /**\n * @inheritDoc\n */\n public name: string = UserAgent.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(): void {\n addGlobalEventProcessor((event: Event) => {\n if (getCurrentHub().getIntegration(UserAgent)) {\n // if none of the information we want exists, don't bother\n if (!global.navigator && !global.location && !global.document) {\n return event;\n }\n\n // grab as much info as exists and add it to the event\n const url = (event.request && event.request.url) || (global.location && global.location.href);\n const { referrer } = global.document || {};\n const { userAgent } = global.navigator || {};\n\n const headers = {\n ...(event.request && event.request.headers),\n ...(referrer && { Referer: referrer }),\n ...(userAgent && { 'User-Agent': userAgent }),\n };\n const request = { ...(url && { url }), headers };\n\n return { ...event, request };\n }\n return event;\n });\n }\n}\n"]}
|
package/cjs/sdk.d.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { Hub, Integrations as CoreIntegrations } from '@sentry/core';
|
|
2
|
-
import { BrowserOptions } from './client';
|
|
3
|
-
import { ReportDialogOptions } from './helpers';
|
|
4
|
-
import { Breadcrumbs, Dedupe, GlobalHandlers, LinkedErrors, TryCatch, UserAgent } from './integrations';
|
|
5
|
-
export declare const defaultIntegrations: (CoreIntegrations.FunctionToString | CoreIntegrations.InboundFilters | GlobalHandlers | TryCatch | Breadcrumbs | LinkedErrors | UserAgent | Dedupe)[];
|
|
6
|
-
/**
|
|
7
|
-
* The Sentry Browser SDK Client.
|
|
8
|
-
*
|
|
9
|
-
* To use this SDK, call the {@link init} function as early as possible when
|
|
10
|
-
* loading the web page. To set context information or send manual events, use
|
|
11
|
-
* the provided methods.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* import { init } from '@sentry/browser';
|
|
18
|
-
*
|
|
19
|
-
* init({
|
|
20
|
-
* dsn: '__DSN__',
|
|
21
|
-
* // ...
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* import { configureScope } from '@sentry/browser';
|
|
29
|
-
* configureScope((scope: Scope) => {
|
|
30
|
-
* scope.setExtra({ battery: 0.7 });
|
|
31
|
-
* scope.setTag({ user_mode: 'admin' });
|
|
32
|
-
* scope.setUser({ id: '4711' });
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* import { addBreadcrumb } from '@sentry/browser';
|
|
40
|
-
* addBreadcrumb({
|
|
41
|
-
* message: 'My Breadcrumb',
|
|
42
|
-
* // ...
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
*
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* import * as Sentry from '@sentry/browser';
|
|
51
|
-
* Sentry.captureMessage('Hello, world!');
|
|
52
|
-
* Sentry.captureException(new Error('Good bye'));
|
|
53
|
-
* Sentry.captureEvent({
|
|
54
|
-
* message: 'Manual',
|
|
55
|
-
* stacktrace: [
|
|
56
|
-
* // ...
|
|
57
|
-
* ],
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @see {@link BrowserOptions} for documentation on configuration options.
|
|
62
|
-
*/
|
|
63
|
-
export declare function init(options?: BrowserOptions): void;
|
|
64
|
-
/**
|
|
65
|
-
* Present the user with a report dialog.
|
|
66
|
-
*
|
|
67
|
-
* @param options Everything is optional, we try to fetch all info need from the global scope.
|
|
68
|
-
*/
|
|
69
|
-
export declare function showReportDialog(options?: ReportDialogOptions, hub?: Hub): void;
|
|
70
|
-
/**
|
|
71
|
-
* This is the getter for lastEventId.
|
|
72
|
-
*
|
|
73
|
-
* @returns The last event id of a captured event.
|
|
74
|
-
*/
|
|
75
|
-
export declare function lastEventId(): string | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* This function is here to be API compatible with the loader.
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
export declare function forceLoad(): void;
|
|
81
|
-
/**
|
|
82
|
-
* This function is here to be API compatible with the loader.
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
export declare function onLoad(callback: () => void): void;
|
|
86
|
-
/**
|
|
87
|
-
* Call `flush()` on the current client, if there is one. See {@link Client.flush}.
|
|
88
|
-
*
|
|
89
|
-
* @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause
|
|
90
|
-
* the client to wait until all events are sent before resolving the promise.
|
|
91
|
-
* @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it
|
|
92
|
-
* doesn't (or if there's no client defined).
|
|
93
|
-
*/
|
|
94
|
-
export declare function flush(timeout?: number): PromiseLike<boolean>;
|
|
95
|
-
/**
|
|
96
|
-
* Call `close()` on the current client, if there is one. See {@link Client.close}.
|
|
97
|
-
*
|
|
98
|
-
* @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this
|
|
99
|
-
* parameter will cause the client to wait until all events are sent before disabling itself.
|
|
100
|
-
* @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it
|
|
101
|
-
* doesn't (or if there's no client defined).
|
|
102
|
-
*/
|
|
103
|
-
export declare function close(timeout?: number): PromiseLike<boolean>;
|
|
104
|
-
/**
|
|
105
|
-
* Wrap code within a try/catch block so the SDK is able to capture errors.
|
|
106
|
-
*
|
|
107
|
-
* @param fn A function to wrap.
|
|
108
|
-
*
|
|
109
|
-
* @returns The result of wrapped function call.
|
|
110
|
-
*/
|
|
111
|
-
export declare function wrap(fn: (...args: any) => any): any;
|
|
112
|
-
//# sourceMappingURL=sdk.d.ts.map
|
package/cjs/sdk.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,GAAG,EAEH,YAAY,IAAI,gBAAgB,EACjC,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAuC,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAwB,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIxG,eAAO,MAAM,mBAAmB,uJAS/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,cAAmB,GAAG,IAAI,CA8BvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,mBAAwB,EAAE,GAAG,GAAE,GAAqB,GAAG,IAAI,CAyCpG;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,MAAM,GAAG,SAAS,CAEhD;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAO5D;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAO5D;AAED;;;;;;GAMG;AAEH,wBAAgB,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,CAEnD"}
|
package/cjs/stack-parsers.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StackLineParser } from '@sentry/types';
|
|
2
|
-
export declare const chromeStackLineParser: StackLineParser;
|
|
3
|
-
export declare const geckoStackLineParser: StackLineParser;
|
|
4
|
-
export declare const winjsStackLineParser: StackLineParser;
|
|
5
|
-
export declare const opera10StackLineParser: StackLineParser;
|
|
6
|
-
export declare const opera11StackLineParser: StackLineParser;
|
|
7
|
-
export declare const defaultStackLineParsers: StackLineParser[];
|
|
8
|
-
export declare const defaultStackParser: import("@sentry/types").StackParser;
|
|
9
|
-
//# sourceMappingURL=stack-parsers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-parsers.d.ts","sourceRoot":"","sources":["../../../src/stack-parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAqB,MAAM,eAAe,CAAC;AA+D/E,eAAO,MAAM,qBAAqB,EAAE,eAA2C,CAAC;AAoChF,eAAO,MAAM,oBAAoB,EAAE,eAAyC,CAAC;AAa7E,eAAO,MAAM,oBAAoB,EAAE,eAAyC,CAAC;AAS7E,eAAO,MAAM,sBAAsB,EAAE,eAA6C,CAAC;AAUnF,eAAO,MAAM,sBAAsB,EAAE,eAA6C,CAAC;AAEnF,eAAO,MAAM,uBAAuB,mBAAsE,CAAC;AAE3G,eAAO,MAAM,kBAAkB,qCAAgD,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseTransportOptions, Transport } from '@sentry/types';
|
|
2
|
-
import { FetchImpl } from './utils';
|
|
3
|
-
export interface FetchTransportOptions extends BaseTransportOptions {
|
|
4
|
-
requestOptions?: RequestInit;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Creates a Transport that uses the Fetch API to send events to Sentry.
|
|
8
|
-
*/
|
|
9
|
-
export declare function makeFetchTransport(options: FetchTransportOptions, nativeFetch?: FetchImpl): Transport;
|
|
10
|
-
//# sourceMappingURL=fetch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/transports/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAkD,MAAM,eAAe,CAAC;AAEhH,OAAO,EAAE,SAAS,EAAgC,MAAM,SAAS,CAAC;AAElE,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,cAAc,CAAC,EAAE,WAAW,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,qBAAqB,EAC9B,WAAW,GAAE,SAA0C,GACtD,SAAS,CAkBX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export declare type FetchImpl = typeof fetch;
|
|
2
|
-
/**
|
|
3
|
-
* A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.
|
|
4
|
-
* Whenever someone wraps the Fetch API and returns the wrong promise chain,
|
|
5
|
-
* this chain becomes orphaned and there is no possible way to capture it's rejections
|
|
6
|
-
* other than allowing it bubble up to this very handler. eg.
|
|
7
|
-
*
|
|
8
|
-
* const f = window.fetch;
|
|
9
|
-
* window.fetch = function () {
|
|
10
|
-
* const p = f.apply(this, arguments);
|
|
11
|
-
*
|
|
12
|
-
* p.then(function() {
|
|
13
|
-
* console.log('hi.');
|
|
14
|
-
* });
|
|
15
|
-
*
|
|
16
|
-
* return p;
|
|
17
|
-
* }
|
|
18
|
-
*
|
|
19
|
-
* `p.then(function () { ... })` is producing a completely separate promise chain,
|
|
20
|
-
* however, what's returned is `p` - the result of original `fetch` call.
|
|
21
|
-
*
|
|
22
|
-
* This mean, that whenever we use the Fetch API to send our own requests, _and_
|
|
23
|
-
* some ad-blocker blocks it, this orphaned chain will _always_ reject,
|
|
24
|
-
* effectively causing another event to be captured.
|
|
25
|
-
* This makes a whole process become an infinite loop, which we need to somehow
|
|
26
|
-
* deal with, and break it in one way or another.
|
|
27
|
-
*
|
|
28
|
-
* To deal with this issue, we are making sure that we _always_ use the real
|
|
29
|
-
* browser Fetch API, instead of relying on what `window.fetch` exposes.
|
|
30
|
-
* The only downside to this would be missing our own requests as breadcrumbs,
|
|
31
|
-
* but because we are already not doing this, it should be just fine.
|
|
32
|
-
*
|
|
33
|
-
* Possible failed fetch error messages per-browser:
|
|
34
|
-
*
|
|
35
|
-
* Chrome: Failed to fetch
|
|
36
|
-
* Edge: Failed to Fetch
|
|
37
|
-
* Firefox: NetworkError when attempting to fetch resource
|
|
38
|
-
* Safari: resource blocked by content blocker
|
|
39
|
-
*/
|
|
40
|
-
export declare function getNativeFetchImplementation(): FetchImpl;
|
|
41
|
-
/**
|
|
42
|
-
* Sends sdk client report using sendBeacon or fetch as a fallback if available
|
|
43
|
-
*
|
|
44
|
-
* @param url report endpoint
|
|
45
|
-
* @param body report payload
|
|
46
|
-
*/
|
|
47
|
-
export declare function sendReport(url: string, body: string): void;
|
|
48
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/transports/utils.ts"],"names":[],"mappings":"AAOA,oBAAY,SAAS,GAAG,OAAO,KAAK,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,4BAA4B,IAAI,SAAS,CAiCxD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAiB1D"}
|
package/cjs/transports/xhr.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseTransportOptions, Transport } from '@sentry/types';
|
|
2
|
-
export interface XHRTransportOptions extends BaseTransportOptions {
|
|
3
|
-
headers?: {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Creates a Transport that uses the XMLHttpRequest API to send events to Sentry.
|
|
9
|
-
*/
|
|
10
|
-
export declare function makeXHRTransport(options: XHRTransportOptions): Transport;
|
|
11
|
-
//# sourceMappingURL=xhr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../../../../src/transports/xhr.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAkD,MAAM,eAAe,CAAC;AAahH,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAgCxE"}
|
package/cjs/version.d.ts
DELETED
package/cjs/version.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,8BAA8B,CAAC"}
|
package/cjs/version.js
DELETED
package/cjs/version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":";AAAA,wGAAwG;AAC3F,QAAA,QAAQ,GAAG,2BAA2B,CAAC","sourcesContent":["// TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkInfo metadata\nexport const SDK_NAME = 'sentry.javascript.browser';\n"]}
|
package/esm/client.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { BaseClient, Scope } from '@sentry/core';
|
|
2
|
-
import { ClientOptions, Event, EventHint, Options, Severity, SeverityLevel } from '@sentry/types';
|
|
3
|
-
export interface BaseBrowserOptions {
|
|
4
|
-
/**
|
|
5
|
-
* A pattern for error URLs which should exclusively be sent to Sentry.
|
|
6
|
-
* This is the opposite of {@link Options.denyUrls}.
|
|
7
|
-
* By default, all errors will be sent.
|
|
8
|
-
*/
|
|
9
|
-
allowUrls?: Array<string | RegExp>;
|
|
10
|
-
/**
|
|
11
|
-
* A pattern for error URLs which should not be sent to Sentry.
|
|
12
|
-
* To allow certain errors instead, use {@link Options.allowUrls}.
|
|
13
|
-
* By default, all errors will be sent.
|
|
14
|
-
*/
|
|
15
|
-
denyUrls?: Array<string | RegExp>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Configuration options for the Sentry Browser SDK.
|
|
19
|
-
* @see @sentry/types Options for more information.
|
|
20
|
-
*/
|
|
21
|
-
export interface BrowserOptions extends Options, BaseBrowserOptions {
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Configuration options for the Sentry Browser SDK Client class
|
|
25
|
-
* @see BrowserClient for more information.
|
|
26
|
-
*/
|
|
27
|
-
export interface BrowserClientOptions extends ClientOptions, BaseBrowserOptions {
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* The Sentry Browser SDK Client.
|
|
31
|
-
*
|
|
32
|
-
* @see BrowserOptions for documentation on configuration options.
|
|
33
|
-
* @see SentryClient for usage documentation.
|
|
34
|
-
*/
|
|
35
|
-
export declare class BrowserClient extends BaseClient<BrowserClientOptions> {
|
|
36
|
-
/**
|
|
37
|
-
* Creates a new Browser SDK instance.
|
|
38
|
-
*
|
|
39
|
-
* @param options Configuration options for this SDK.
|
|
40
|
-
*/
|
|
41
|
-
constructor(options: BrowserClientOptions);
|
|
42
|
-
/**
|
|
43
|
-
* @inheritDoc
|
|
44
|
-
*/
|
|
45
|
-
eventFromException(exception: unknown, hint?: EventHint): PromiseLike<Event>;
|
|
46
|
-
/**
|
|
47
|
-
* @inheritDoc
|
|
48
|
-
*/
|
|
49
|
-
eventFromMessage(message: string, level?: Severity | SeverityLevel, hint?: EventHint): PromiseLike<Event>;
|
|
50
|
-
/**
|
|
51
|
-
* @inheritDoc
|
|
52
|
-
*/
|
|
53
|
-
sendEvent(event: Event): void;
|
|
54
|
-
/**
|
|
55
|
-
* @inheritDoc
|
|
56
|
-
*/
|
|
57
|
-
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null>;
|
|
58
|
-
/**
|
|
59
|
-
* Sends client reports as an envelope.
|
|
60
|
-
*/
|
|
61
|
-
private _flushOutcomes;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=client.d.ts.map
|
package/esm/client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwD,KAAK,EAAe,MAAM,cAAc,CAAC;AACpH,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkBlG,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAEnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,OAAO,EAAE,kBAAkB;CAAG;AAEtE;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,aAAa,EAAE,kBAAkB;CAAG;AAElF;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,oBAAoB,CAAC;IACjE;;;;OAIG;gBACgB,OAAO,EAAE,oBAAoB;IAwBhD;;OAEG;IACI,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC;IAInF;;OAEG;IACI,gBAAgB,CACrB,OAAO,EAAE,MAAM,EAEf,KAAK,GAAE,QAAQ,GAAG,aAAsB,EACxC,IAAI,CAAC,EAAE,SAAS,GACf,WAAW,CAAC,KAAK,CAAC;IAIrB;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAgCpC;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC;IAKjG;;OAEG;IACH,OAAO,CAAC,cAAc;CAwBvB"}
|
package/esm/eventbuilder.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Event, EventHint, Exception, Severity, SeverityLevel, StackFrame, StackParser } from '@sentry/types';
|
|
2
|
-
/**
|
|
3
|
-
* This function creates an exception from a JavaScript Error
|
|
4
|
-
*/
|
|
5
|
-
export declare function exceptionFromError(stackParser: StackParser, ex: Error): Exception;
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare function eventFromPlainObject(stackParser: StackParser, exception: Record<string, unknown>, syntheticException?: Error, isUnhandledRejection?: boolean): Event;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare function eventFromError(stackParser: StackParser, ex: Error): Event;
|
|
14
|
-
/** Parses stack frames from an error */
|
|
15
|
-
export declare function parseStackFrames(stackParser: StackParser, ex: Error & {
|
|
16
|
-
framesToPop?: number;
|
|
17
|
-
stacktrace?: string;
|
|
18
|
-
}): StackFrame[];
|
|
19
|
-
/**
|
|
20
|
-
* Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare function eventFromException(stackParser: StackParser, exception: unknown, hint?: EventHint, attachStacktrace?: boolean): PromiseLike<Event>;
|
|
24
|
-
/**
|
|
25
|
-
* Builds and Event from a Message
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare function eventFromMessage(stackParser: StackParser, message: string, level?: Severity | SeverityLevel, hint?: EventHint, attachStacktrace?: boolean): PromiseLike<Event>;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare function eventFromUnknownInput(stackParser: StackParser, exception: unknown, syntheticException?: Error, attachStacktrace?: boolean, isUnhandledRejection?: boolean): Event;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export declare function eventFromString(stackParser: StackParser, input: string, syntheticException?: Error, attachStacktrace?: boolean): Event;
|
|
37
|
-
//# sourceMappingURL=eventbuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventbuilder.d.ts","sourceRoot":"","sources":["../../../src/eventbuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAe9G;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,GAAG,SAAS,CAkBjF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,kBAAkB,CAAC,EAAE,KAAK,EAC1B,oBAAoB,CAAC,EAAE,OAAO,GAC7B,KAAK,CA0BP;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,GAAG,KAAK,CAMzE;AAED,wCAAwC;AACxC,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,EAAE,EAAE,KAAK,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACxD,UAAU,EAAE,CAed;AAmCD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,SAAS,EAChB,gBAAgB,CAAC,EAAE,OAAO,GACzB,WAAW,CAAC,KAAK,CAAC,CASpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EAEf,KAAK,GAAE,QAAQ,GAAG,aAAsB,EACxC,IAAI,CAAC,EAAE,SAAS,EAChB,gBAAgB,CAAC,EAAE,OAAO,GACzB,WAAW,CAAC,KAAK,CAAC,CAQpB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,OAAO,EAClB,kBAAkB,CAAC,EAAE,KAAK,EAC1B,gBAAgB,CAAC,EAAE,OAAO,EAC1B,oBAAoB,CAAC,EAAE,OAAO,GAC7B,KAAK,CAiEP;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,MAAM,EACb,kBAAkB,CAAC,EAAE,KAAK,EAC1B,gBAAgB,CAAC,EAAE,OAAO,GACzB,KAAK,CAeP"}
|
package/esm/exports.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type { Breadcrumb, BreadcrumbHint, Request, SdkInfo, Event, EventHint, Exception, Severity, SeverityLevel, StackFrame, Stacktrace, Thread, User, } from '@sentry/types';
|
|
2
|
-
export type { BrowserOptions } from './client';
|
|
3
|
-
export type { ReportDialogOptions } from './helpers';
|
|
4
|
-
export { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, createTransport, getHubFromCarrier, getCurrentHub, Hub, makeMain, Scope, Session, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, FunctionToString, InboundFilters, } from '@sentry/core';
|
|
5
|
-
export { BrowserClient } from './client';
|
|
6
|
-
export { makeFetchTransport, makeXHRTransport } from './transports';
|
|
7
|
-
export { defaultStackParser, defaultStackLineParsers, chromeStackLineParser, geckoStackLineParser, opera10StackLineParser, opera11StackLineParser, winjsStackLineParser, } from './stack-parsers';
|
|
8
|
-
export { defaultIntegrations, forceLoad, init, lastEventId, onLoad, showReportDialog, flush, close, wrap } from './sdk';
|
|
9
|
-
export { SDK_NAME } from './version';
|
|
10
|
-
export { GlobalHandlers, TryCatch, Breadcrumbs, LinkedErrors, UserAgent, Dedupe } from './integrations';
|
|
11
|
-
//# sourceMappingURL=exports.d.ts.map
|
package/esm/exports.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/exports.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,OAAO,EACP,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EAET,QAAQ,EACR,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,GACL,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,GAAG,EACH,QAAQ,EACR,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACxH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
package/esm/flags.d.ts
DELETED
package/esm/flags.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../src/flags.ts"],"names":[],"mappings":"AAgBA,2DAA2D;AAC3D,eAAO,MAAM,cAAc,SAAoE,CAAC"}
|
package/esm/helpers.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { DsnLike, Mechanism, WrappedFunction } from '@sentry/types';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export declare function shouldIgnoreOnError(): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare function ignoreNextOnError(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Instruments the given function and sends an event to Sentry every time the
|
|
12
|
-
* function throws an exception.
|
|
13
|
-
*
|
|
14
|
-
* @param fn A function to wrap.
|
|
15
|
-
* @returns The wrapped function.
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare function wrap(fn: WrappedFunction, options?: {
|
|
19
|
-
mechanism?: Mechanism;
|
|
20
|
-
}, before?: WrappedFunction): any;
|
|
21
|
-
/**
|
|
22
|
-
* All properties the report dialog supports
|
|
23
|
-
*/
|
|
24
|
-
export interface ReportDialogOptions {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
eventId?: string;
|
|
27
|
-
dsn?: DsnLike;
|
|
28
|
-
user?: {
|
|
29
|
-
email?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
};
|
|
32
|
-
lang?: string;
|
|
33
|
-
title?: string;
|
|
34
|
-
subtitle?: string;
|
|
35
|
-
subtitle2?: string;
|
|
36
|
-
labelName?: string;
|
|
37
|
-
labelEmail?: string;
|
|
38
|
-
labelComments?: string;
|
|
39
|
-
labelClose?: string;
|
|
40
|
-
labelSubmit?: string;
|
|
41
|
-
errorGeneric?: string;
|
|
42
|
-
errorFormEntry?: string;
|
|
43
|
-
successMessage?: string;
|
|
44
|
-
/** Callback after reportDialog showed up */
|
|
45
|
-
onLoad?(): void;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=helpers.d.ts.map
|
package/esm/helpers.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,SAAS,EAAS,eAAe,EAAE,MAAM,eAAe,CAAC;AAWjG;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAMxC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,EAAE,EAAE,eAAe,EACnB,OAAO,GAAE;IACP,SAAS,CAAC,EAAE,SAAS,CAAC;CAClB,EACN,MAAM,CAAC,EAAE,eAAe,GAEvB,GAAG,CAyGL;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAElC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,MAAM,CAAC,IAAI,IAAI,CAAC;CACjB"}
|
package/esm/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './exports';
|
|
2
|
-
import { Integrations as CoreIntegrations } from '@sentry/core';
|
|
3
|
-
import * as BrowserIntegrations from './integrations';
|
|
4
|
-
declare const INTEGRATIONS: {
|
|
5
|
-
GlobalHandlers: typeof BrowserIntegrations.GlobalHandlers;
|
|
6
|
-
TryCatch: typeof BrowserIntegrations.TryCatch;
|
|
7
|
-
Breadcrumbs: typeof BrowserIntegrations.Breadcrumbs;
|
|
8
|
-
LinkedErrors: typeof BrowserIntegrations.LinkedErrors;
|
|
9
|
-
UserAgent: typeof BrowserIntegrations.UserAgent;
|
|
10
|
-
Dedupe: typeof BrowserIntegrations.Dedupe;
|
|
11
|
-
FunctionToString: typeof CoreIntegrations.FunctionToString;
|
|
12
|
-
InboundFilters: typeof CoreIntegrations.InboundFilters;
|
|
13
|
-
};
|
|
14
|
-
export { INTEGRATIONS as Integrations };
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhE,OAAO,KAAK,mBAAmB,MAAM,gBAAgB,CAAC;AAUtD,QAAA,MAAM,YAAY;;;;;;;;;CAIjB,CAAC;AAEF,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/types';
|
|
2
|
-
/** JSDoc */
|
|
3
|
-
interface BreadcrumbsOptions {
|
|
4
|
-
console: boolean;
|
|
5
|
-
dom: boolean | {
|
|
6
|
-
serializeAttribute: string | string[];
|
|
7
|
-
};
|
|
8
|
-
fetch: boolean;
|
|
9
|
-
history: boolean;
|
|
10
|
-
sentry: boolean;
|
|
11
|
-
xhr: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const BREADCRUMB_INTEGRATION_ID = "Breadcrumbs";
|
|
14
|
-
/**
|
|
15
|
-
* Default Breadcrumbs instrumentations
|
|
16
|
-
* TODO: Deprecated - with v6, this will be renamed to `Instrument`
|
|
17
|
-
*/
|
|
18
|
-
export declare class Breadcrumbs implements Integration {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static id: string;
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
name: string;
|
|
27
|
-
/**
|
|
28
|
-
* Options of the breadcrumbs integration.
|
|
29
|
-
*/
|
|
30
|
-
readonly options: Readonly<BreadcrumbsOptions>;
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
constructor(options?: Partial<BreadcrumbsOptions>);
|
|
35
|
-
/**
|
|
36
|
-
* Instrument browser built-ins w/ breadcrumb capturing
|
|
37
|
-
* - Console API
|
|
38
|
-
* - DOM API (click/typing)
|
|
39
|
-
* - XMLHttpRequest API
|
|
40
|
-
* - Fetch API
|
|
41
|
-
* - History API
|
|
42
|
-
*/
|
|
43
|
-
setupOnce(): void;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/integrations/breadcrumbs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,YAAY;AACZ,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,OAAO,GAAG;QAAE,kBAAkB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;IACzD,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;CACd;AAED,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,qBAAa,WAAY,YAAW,WAAW;IAC7C;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAA6B;IAErD;;OAEG;IACI,IAAI,EAAE,MAAM,CAAkB;IAErC;;OAEG;IAEH,SAAgB,OAAO,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAEtD;;OAEG;gBACgB,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAYxD;;;;;;;OAOG;IACI,SAAS,IAAI,IAAI;CAiBzB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EventProcessor, Hub, Integration } from '@sentry/types';
|
|
2
|
-
/** Deduplication filter */
|
|
3
|
-
export declare class Dedupe implements Integration {
|
|
4
|
-
/**
|
|
5
|
-
* @inheritDoc
|
|
6
|
-
*/
|
|
7
|
-
static id: string;
|
|
8
|
-
/**
|
|
9
|
-
* @inheritDoc
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
private _previousEvent?;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=dedupe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dedupe.d.ts","sourceRoot":"","sources":["../../../../src/integrations/dedupe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,cAAc,EAAa,GAAG,EAAE,WAAW,EAAc,MAAM,eAAe,CAAC;AAK/F,2BAA2B;AAC3B,qBAAa,MAAO,YAAW,WAAW;IACxC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAY;IAEpC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAa;IAEhC;;OAEG;IACH,OAAO,CAAC,cAAc,CAAC,CAAQ;IAE/B;;OAEG;IACI,SAAS,CAAC,uBAAuB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,GAAG,IAAI;CAsB9G"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/types';
|
|
2
|
-
declare type GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';
|
|
3
|
-
/** JSDoc */
|
|
4
|
-
declare type GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;
|
|
5
|
-
/** Global handlers */
|
|
6
|
-
export declare class GlobalHandlers implements Integration {
|
|
7
|
-
/**
|
|
8
|
-
* @inheritDoc
|
|
9
|
-
*/
|
|
10
|
-
static id: string;
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/** JSDoc */
|
|
16
|
-
private readonly _options;
|
|
17
|
-
/**
|
|
18
|
-
* Stores references functions to installing handlers. Will set to undefined
|
|
19
|
-
* after they have been run so that they are not used twice.
|
|
20
|
-
*/
|
|
21
|
-
private _installFunc;
|
|
22
|
-
/** JSDoc */
|
|
23
|
-
constructor(options?: GlobalHandlersIntegrations);
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
setupOnce(): void;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=globalhandlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalhandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/globalhandlers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,WAAW,EAA0B,MAAM,eAAe,CAAC;AAgB3F,aAAK,oCAAoC,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE/E,YAAY;AACZ,aAAK,0BAA0B,GAAG,MAAM,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;AAExF,sBAAsB;AACtB,qBAAa,cAAe,YAAW,WAAW;IAChD;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAoB;IAE5C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAqB;IAExC,YAAY;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD;;;OAGG;IACH,OAAO,CAAC,YAAY,CAGlB;IAEF,YAAY;gBACO,OAAO,CAAC,EAAE,0BAA0B;IAOvD;;OAEG;IACI,SAAS,IAAI,IAAI;CAgBzB"}
|