@genesislcap/foundation-utils 15.50.3-holiday-picker.1 → 15.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +185 -53
- package/dist/dts/error-monitoring/error-monitoring.d.ts +177 -0
- package/dist/dts/error-monitoring/error-monitoring.d.ts.map +1 -0
- package/dist/dts/error-monitoring/index.d.ts +2 -0
- package/dist/dts/error-monitoring/index.d.ts.map +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/error-monitoring/error-monitoring.js +259 -0
- package/dist/esm/error-monitoring/index.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/foundation-utils.api.json +1307 -99
- package/dist/foundation-utils.d.ts +188 -0
- package/package.json +9 -9
|
@@ -71,6 +71,14 @@
|
|
|
71
71
|
"package": "./error"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "js",
|
|
76
|
+
"name": "*",
|
|
77
|
+
"declaration": {
|
|
78
|
+
"name": "*",
|
|
79
|
+
"package": "./error-monitoring"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
74
82
|
{
|
|
75
83
|
"kind": "js",
|
|
76
84
|
"name": "*",
|
|
@@ -650,6 +658,59 @@
|
|
|
650
658
|
}
|
|
651
659
|
]
|
|
652
660
|
},
|
|
661
|
+
{
|
|
662
|
+
"kind": "javascript-module",
|
|
663
|
+
"path": "src/decorators/index.ts",
|
|
664
|
+
"declarations": [],
|
|
665
|
+
"exports": [
|
|
666
|
+
{
|
|
667
|
+
"kind": "js",
|
|
668
|
+
"name": "*",
|
|
669
|
+
"declaration": {
|
|
670
|
+
"name": "*",
|
|
671
|
+
"package": "./renderOnChange"
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "javascript-module",
|
|
678
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
679
|
+
"declarations": [
|
|
680
|
+
{
|
|
681
|
+
"kind": "function",
|
|
682
|
+
"name": "renderOnChange",
|
|
683
|
+
"parameters": [
|
|
684
|
+
{
|
|
685
|
+
"name": "target",
|
|
686
|
+
"type": {
|
|
687
|
+
"text": "FASTElement & { render(): void }"
|
|
688
|
+
},
|
|
689
|
+
"description": "The target to define the property change handler on."
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "name",
|
|
693
|
+
"type": {
|
|
694
|
+
"text": "string"
|
|
695
|
+
},
|
|
696
|
+
"description": "The property name."
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
700
|
+
"privacy": "public"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"exports": [
|
|
704
|
+
{
|
|
705
|
+
"kind": "js",
|
|
706
|
+
"name": "renderOnChange",
|
|
707
|
+
"declaration": {
|
|
708
|
+
"name": "renderOnChange",
|
|
709
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
]
|
|
713
|
+
},
|
|
653
714
|
{
|
|
654
715
|
"kind": "javascript-module",
|
|
655
716
|
"path": "src/directives/index.ts",
|
|
@@ -1187,59 +1248,6 @@
|
|
|
1187
1248
|
}
|
|
1188
1249
|
]
|
|
1189
1250
|
},
|
|
1190
|
-
{
|
|
1191
|
-
"kind": "javascript-module",
|
|
1192
|
-
"path": "src/decorators/index.ts",
|
|
1193
|
-
"declarations": [],
|
|
1194
|
-
"exports": [
|
|
1195
|
-
{
|
|
1196
|
-
"kind": "js",
|
|
1197
|
-
"name": "*",
|
|
1198
|
-
"declaration": {
|
|
1199
|
-
"name": "*",
|
|
1200
|
-
"package": "./renderOnChange"
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
]
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
"kind": "javascript-module",
|
|
1207
|
-
"path": "src/decorators/renderOnChange.ts",
|
|
1208
|
-
"declarations": [
|
|
1209
|
-
{
|
|
1210
|
-
"kind": "function",
|
|
1211
|
-
"name": "renderOnChange",
|
|
1212
|
-
"parameters": [
|
|
1213
|
-
{
|
|
1214
|
-
"name": "target",
|
|
1215
|
-
"type": {
|
|
1216
|
-
"text": "FASTElement & { render(): void }"
|
|
1217
|
-
},
|
|
1218
|
-
"description": "The target to define the property change handler on."
|
|
1219
|
-
},
|
|
1220
|
-
{
|
|
1221
|
-
"name": "name",
|
|
1222
|
-
"type": {
|
|
1223
|
-
"text": "string"
|
|
1224
|
-
},
|
|
1225
|
-
"description": "The property name."
|
|
1226
|
-
}
|
|
1227
|
-
],
|
|
1228
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1229
|
-
"privacy": "public"
|
|
1230
|
-
}
|
|
1231
|
-
],
|
|
1232
|
-
"exports": [
|
|
1233
|
-
{
|
|
1234
|
-
"kind": "js",
|
|
1235
|
-
"name": "renderOnChange",
|
|
1236
|
-
"declaration": {
|
|
1237
|
-
"name": "renderOnChange",
|
|
1238
|
-
"module": "src/decorators/renderOnChange.ts"
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
]
|
|
1242
|
-
},
|
|
1243
1251
|
{
|
|
1244
1252
|
"kind": "javascript-module",
|
|
1245
1253
|
"path": "src/error/errorMap.ts",
|
|
@@ -1439,6 +1447,130 @@
|
|
|
1439
1447
|
}
|
|
1440
1448
|
]
|
|
1441
1449
|
},
|
|
1450
|
+
{
|
|
1451
|
+
"kind": "javascript-module",
|
|
1452
|
+
"path": "src/error-monitoring/error-monitoring.ts",
|
|
1453
|
+
"declarations": [
|
|
1454
|
+
{
|
|
1455
|
+
"kind": "function",
|
|
1456
|
+
"name": "createErrorMonitoringReporter",
|
|
1457
|
+
"return": {
|
|
1458
|
+
"type": {
|
|
1459
|
+
"text": "ConsolaReporter"
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
"parameters": [
|
|
1463
|
+
{
|
|
1464
|
+
"name": "client",
|
|
1465
|
+
"type": {
|
|
1466
|
+
"text": "ErrorMonitoringClient"
|
|
1467
|
+
},
|
|
1468
|
+
"description": "The monitoring client."
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"name": "{ breadcrumbs = true }",
|
|
1472
|
+
"default": "{}",
|
|
1473
|
+
"type": {
|
|
1474
|
+
"text": "Pick<ErrorMonitoringOptions, 'breadcrumbs'>"
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"description": "Set `breadcrumbs: false` to skip breadcrumbs.",
|
|
1479
|
+
"name": "options"
|
|
1480
|
+
}
|
|
1481
|
+
],
|
|
1482
|
+
"description": "Creates a global log reporter that sends foundation logger output to a monitoring client.",
|
|
1483
|
+
"privacy": "public"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"kind": "function",
|
|
1487
|
+
"name": "isFoundationLoggerConsoleBreadcrumb",
|
|
1488
|
+
"return": {
|
|
1489
|
+
"type": {
|
|
1490
|
+
"text": "boolean"
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
"parameters": [
|
|
1494
|
+
{
|
|
1495
|
+
"name": "breadcrumb",
|
|
1496
|
+
"type": {
|
|
1497
|
+
"text": "ErrorMonitoringBreadcrumb"
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
],
|
|
1501
|
+
"description": "True for a console breadcrumb written by a foundation logger.",
|
|
1502
|
+
"privacy": "public"
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"kind": "function",
|
|
1506
|
+
"name": "setupErrorMonitoring",
|
|
1507
|
+
"return": {
|
|
1508
|
+
"type": {
|
|
1509
|
+
"text": ""
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"parameters": [
|
|
1513
|
+
{
|
|
1514
|
+
"name": "client",
|
|
1515
|
+
"type": {
|
|
1516
|
+
"text": "ErrorMonitoringClient"
|
|
1517
|
+
},
|
|
1518
|
+
"description": "The monitoring SDK (for example the Sentry namespace) or an adapter for one."
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"name": "options",
|
|
1522
|
+
"type": {
|
|
1523
|
+
"text": "ErrorMonitoringOptions"
|
|
1524
|
+
},
|
|
1525
|
+
"description": "The DSN, the environment, and extra init options."
|
|
1526
|
+
}
|
|
1527
|
+
],
|
|
1528
|
+
"description": "Sets up error monitoring for a Genesis app in one call.",
|
|
1529
|
+
"privacy": "public"
|
|
1530
|
+
}
|
|
1531
|
+
],
|
|
1532
|
+
"exports": [
|
|
1533
|
+
{
|
|
1534
|
+
"kind": "js",
|
|
1535
|
+
"name": "createErrorMonitoringReporter",
|
|
1536
|
+
"declaration": {
|
|
1537
|
+
"name": "createErrorMonitoringReporter",
|
|
1538
|
+
"module": "src/error-monitoring/error-monitoring.ts"
|
|
1539
|
+
}
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"kind": "js",
|
|
1543
|
+
"name": "isFoundationLoggerConsoleBreadcrumb",
|
|
1544
|
+
"declaration": {
|
|
1545
|
+
"name": "isFoundationLoggerConsoleBreadcrumb",
|
|
1546
|
+
"module": "src/error-monitoring/error-monitoring.ts"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"kind": "js",
|
|
1551
|
+
"name": "setupErrorMonitoring",
|
|
1552
|
+
"declaration": {
|
|
1553
|
+
"name": "setupErrorMonitoring",
|
|
1554
|
+
"module": "src/error-monitoring/error-monitoring.ts"
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "javascript-module",
|
|
1561
|
+
"path": "src/error-monitoring/index.ts",
|
|
1562
|
+
"declarations": [],
|
|
1563
|
+
"exports": [
|
|
1564
|
+
{
|
|
1565
|
+
"kind": "js",
|
|
1566
|
+
"name": "*",
|
|
1567
|
+
"declaration": {
|
|
1568
|
+
"name": "*",
|
|
1569
|
+
"package": "./error-monitoring"
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1442
1574
|
{
|
|
1443
1575
|
"kind": "javascript-module",
|
|
1444
1576
|
"path": "src/feature-flags/featureFlags.ts",
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { ConsolaReporter } from '@genesislcap/foundation-logger';
|
|
2
|
+
/**
|
|
3
|
+
* Severity of a monitoring event or breadcrumb.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type ErrorMonitoringLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug';
|
|
7
|
+
/**
|
|
8
|
+
* Context sent with a captured exception or message.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface ErrorMonitoringContext {
|
|
12
|
+
level?: ErrorMonitoringLevel;
|
|
13
|
+
tags?: Record<string, string>;
|
|
14
|
+
extra?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A breadcrumb: a record of something that happened before an event.
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface ErrorMonitoringBreadcrumb {
|
|
21
|
+
category?: string;
|
|
22
|
+
level?: string;
|
|
23
|
+
message?: string;
|
|
24
|
+
data?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Extra information an SDK passes with a breadcrumb, such as the DOM event or the console arguments.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export type ErrorMonitoringBreadcrumbHint = Record<string, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Options {@link setupErrorMonitoring} passes to the client's `init`.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* The names match Sentry's `init` options. Any other keys from `initOptions` are passed through.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export interface ErrorMonitoringInitOptions {
|
|
39
|
+
dsn: string;
|
|
40
|
+
environment: string;
|
|
41
|
+
/** Drops the console breadcrumbs foundation loggers write; see {@link isFoundationLoggerConsoleBreadcrumb}. */
|
|
42
|
+
beforeBreadcrumb?: <B extends ErrorMonitoringBreadcrumb>(breadcrumb: B, hint?: ErrorMonitoringBreadcrumbHint) => B | null;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Extra options for the client's `init`, merged into what {@link setupErrorMonitoring} passes.
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface ErrorMonitoringExtraInitOptions {
|
|
50
|
+
/** Runs after the built-in filter, for breadcrumbs it keeps, with the SDK's hint. */
|
|
51
|
+
beforeBreadcrumb?: (breadcrumb: ErrorMonitoringBreadcrumb, hint?: ErrorMonitoringBreadcrumbHint) => ErrorMonitoringBreadcrumb | null;
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* An error-monitoring SDK, or an adapter for one. The method names and shapes match the Sentry
|
|
56
|
+
* browser SDKs, so `import * as Sentry from '@sentry/react'` can be passed as is.
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export interface ErrorMonitoringClient {
|
|
60
|
+
captureException(error: unknown, context?: ErrorMonitoringContext): unknown;
|
|
61
|
+
captureMessage(message: string, context?: ErrorMonitoringContext): unknown;
|
|
62
|
+
addBreadcrumb?(breadcrumb: ErrorMonitoringBreadcrumb & {
|
|
63
|
+
level?: ErrorMonitoringLevel;
|
|
64
|
+
}): unknown;
|
|
65
|
+
init?(options: ErrorMonitoringInitOptions): unknown;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Picks the monitoring environment from the page's location, or returns `undefined` to leave
|
|
69
|
+
* monitoring off.
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export type ErrorMonitoringEnvironmentResolver = (location: Location) => string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Options for {@link setupErrorMonitoring}.
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export interface ErrorMonitoringOptions {
|
|
78
|
+
/** The DSN events are sent to. Without one, monitoring stays off. */
|
|
79
|
+
dsn: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* The environment events are tagged with, or a function that picks it from the page's location.
|
|
82
|
+
* Defaults to the page's hostname, and leaves monitoring off on local hosts: `localhost`,
|
|
83
|
+
* `*.localhost`, `*.local`, `0.0.0.0`, `host.docker.internal`, and loopback, private, link-local
|
|
84
|
+
* and shared (`100.64.0.0/10`, as Tailscale uses) IP addresses, IPv4-mapped IPv6 included.
|
|
85
|
+
*/
|
|
86
|
+
environment?: string | ErrorMonitoringEnvironmentResolver;
|
|
87
|
+
/** Extra options merged into what the client's `init` receives, e.g. Sentry's `dataCollection`. */
|
|
88
|
+
initOptions?: ErrorMonitoringExtraInitOptions;
|
|
89
|
+
/** Initialises the client in place of calling `client.init`. */
|
|
90
|
+
init?: (options: ErrorMonitoringInitOptions) => unknown;
|
|
91
|
+
/** Records non-error foundation logs as breadcrumbs. Defaults to `true`. */
|
|
92
|
+
breadcrumbs?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Creates a global log reporter that sends foundation logger output to a monitoring client.
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
* No logged data is sent: a report carries only the logger name, the level, the log's message (its
|
|
99
|
+
* first argument, when that is a string) and, for errors, the exception. Objects and any further
|
|
100
|
+
* arguments are left out, so credentials, personal or business data passed to a logger never
|
|
101
|
+
* reach the monitoring service. `error` and `fatal` logs become events: an exception when an
|
|
102
|
+
* `Error` was logged, with the message as `extra.message`, otherwise a message event. A logged
|
|
103
|
+
* `Error` with its own fields or a cause is sent as a copy that keeps only its name, message, stack
|
|
104
|
+
* and `Error` cause. Other logs become breadcrumbs unless `breadcrumbs` is `false`. A failing client
|
|
105
|
+
* never breaks logging.
|
|
106
|
+
*
|
|
107
|
+
* This covers only what the reporter sends. SDKs that record console calls, such as the Sentry
|
|
108
|
+
* browser SDKs by default, also record foundation logger output as console breadcrumbs with the
|
|
109
|
+
* logged arguments as data. When wiring a client by hand, drop those in the SDK's
|
|
110
|
+
* `beforeBreadcrumb` with {@link isFoundationLoggerConsoleBreadcrumb}.
|
|
111
|
+
*
|
|
112
|
+
* {@link setupErrorMonitoring} does both for you; use this directly to wire a client by hand.
|
|
113
|
+
*
|
|
114
|
+
* @param client - The monitoring client.
|
|
115
|
+
* @param options - Set `breadcrumbs: false` to skip breadcrumbs.
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare const createErrorMonitoringReporter: (client: ErrorMonitoringClient, { breadcrumbs }?: Pick<ErrorMonitoringOptions, "breadcrumbs">) => ConsolaReporter;
|
|
119
|
+
/**
|
|
120
|
+
* True for a console breadcrumb written by a foundation logger.
|
|
121
|
+
*
|
|
122
|
+
* @remarks
|
|
123
|
+
* consola's browser output starts with a `%c` badge (after a timestamp, when timestamps are on)
|
|
124
|
+
* styled as a pill, and SDKs that record console calls join the arguments with `String()`, so these
|
|
125
|
+
* breadcrumbs arrive as CSS and `[object Object]`, and they carry the logged arguments as data. The
|
|
126
|
+
* reporter from {@link createErrorMonitoringReporter} records the same logs' messages without the
|
|
127
|
+
* data. Other `%c`-styled console output doesn't match.
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
export declare const isFoundationLoggerConsoleBreadcrumb: (breadcrumb: ErrorMonitoringBreadcrumb) => boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Sets up error monitoring for a Genesis app in one call.
|
|
133
|
+
*
|
|
134
|
+
* @remarks
|
|
135
|
+
* Without a DSN, or when no environment applies (by default on local hosts such as `localhost` or
|
|
136
|
+
* a private IP address), it does nothing and resolves `false`. The environment defaults to the
|
|
137
|
+
* page's hostname, so one image promoted across environments reports each under its own name; pass
|
|
138
|
+
* a function to map hostnames to names such as `uat`. Otherwise it:
|
|
139
|
+
*
|
|
140
|
+
* - initialises the client (`client.init`, or `options.init`) with the DSN, environment, a
|
|
141
|
+
* `beforeBreadcrumb` that drops the SDK's console breadcrumbs for foundation logger output (they
|
|
142
|
+
* carry the logged arguments), and any `initOptions`;
|
|
143
|
+
* - registers a global log reporter ({@link createErrorMonitoringReporter}), so errors logged by
|
|
144
|
+
* every foundation logger, including those Genesis packages create at import time, are reported,
|
|
145
|
+
* and other logs become breadcrumbs. Only log messages and exceptions are sent, never logged data.
|
|
146
|
+
*
|
|
147
|
+
* Logs written while an asynchronous `init` runs (the last 100) are reported once it finishes. If
|
|
148
|
+
* `init` throws or rejects, for example when a lazily loaded SDK fails to download, it warns on the
|
|
149
|
+
* console and resolves `false` rather than rejecting.
|
|
150
|
+
*
|
|
151
|
+
* Errors caught by the foundation-react-utils `AppErrorBoundary` and `TileErrorBoundary` are logged
|
|
152
|
+
* with their reference ID and component stack in the message, so they are reported too without an
|
|
153
|
+
* `onError`.
|
|
154
|
+
* Pair them with `onCaughtError` on the React root.
|
|
155
|
+
*
|
|
156
|
+
* Calling it again replaces the previous reporter, or removes it if the new call has no DSN or
|
|
157
|
+
* environment. When calls overlap, only the last one takes effect, and the earlier ones resolve
|
|
158
|
+
* `false`.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```ts
|
|
162
|
+
* import * as Sentry from '@sentry/react';
|
|
163
|
+
* import { setupErrorMonitoring } from '@genesislcap/foundation-utils';
|
|
164
|
+
*
|
|
165
|
+
* setupErrorMonitoring(Sentry, {
|
|
166
|
+
* dsn: 'https://<key>@<org>.ingest.sentry.io/<project>',
|
|
167
|
+
* environment: ({ hostname }) => ({ 'app-uat.example.com': 'uat', 'app.example.com': 'prod' })[hostname],
|
|
168
|
+
* });
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* @param client - The monitoring SDK (for example the Sentry namespace) or an adapter for one.
|
|
172
|
+
* @param options - The DSN, the environment, and extra init options.
|
|
173
|
+
* @returns Whether this call enabled monitoring.
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export declare function setupErrorMonitoring(client: ErrorMonitoringClient, options: ErrorMonitoringOptions): Promise<boolean>;
|
|
177
|
+
//# sourceMappingURL=error-monitoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-monitoring.d.ts","sourceRoot":"","sources":["../../../src/error-monitoring/error-monitoring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,+GAA+G;IAC/G,gBAAgB,CAAC,EAAE,CAAC,CAAC,SAAS,yBAAyB,EACrD,UAAU,EAAE,CAAC,EACb,IAAI,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AACH,eAAO,MAAM,6BAA6B,GACxC,QAAQ,qBAAqB,EAC7B,kBAAwB,IAAI,CAAC,sBAAsB,EAAE,aAAa,CAAM,KACvE,eA2BD,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mCAAmC,GAC9C,YAAY,yBAAyB,KACpC,OAYF,CAAC;AAkBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC,CAoDlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/error-monitoring/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,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