@dynatrace/rum-javascript-sdk 1.329.2
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/LICENSE +174 -0
- package/README.md +402 -0
- package/dist/api/constants.d.ts +1 -0
- package/dist/api/constants.js +2 -0
- package/dist/api/dynatrace-error.d.ts +3 -0
- package/dist/api/dynatrace-error.js +7 -0
- package/dist/api/global-adapter.d.ts +1 -0
- package/dist/api/global-adapter.js +4 -0
- package/dist/api/index.d.ts +65 -0
- package/dist/api/index.js +110 -0
- package/dist/api/logging.d.ts +2 -0
- package/dist/api/logging.js +8 -0
- package/dist/api/promises/index.d.ts +85 -0
- package/dist/api/promises/index.js +104 -0
- package/dist/api/promises/user-actions.d.ts +35 -0
- package/dist/api/promises/user-actions.js +48 -0
- package/dist/api/promises/wait-for-agent.d.ts +2 -0
- package/dist/api/promises/wait-for-agent.js +77 -0
- package/dist/api/promises/wait-for-send-exception-event.d.ts +9 -0
- package/dist/api/promises/wait-for-send-exception-event.js +18 -0
- package/dist/api/promises/wait-for-user-actions.d.ts +9 -0
- package/dist/api/promises/wait-for-user-actions.js +18 -0
- package/dist/api/type-guards/is-valid-agent.d.ts +2 -0
- package/dist/api/type-guards/is-valid-agent.js +4 -0
- package/dist/api/user-actions.d.ts +62 -0
- package/dist/api/user-actions.js +99 -0
- package/dist/testing/install.d.ts +15 -0
- package/dist/testing/install.js +19 -0
- package/dist/testing/test.d.ts +111 -0
- package/dist/testing/test.js +229 -0
- package/dist/types/api/dynatrace-api-types.d.ts +319 -0
- package/dist/types/api/dynatrace-api-types.js +7 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/index.js +2 -0
- package/dist/types/index-typedoc.d.ts +31 -0
- package/dist/types/index-typedoc.js +32 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.js +5 -0
- package/dist/types/internal/beacon-query.d.ts +29 -0
- package/dist/types/internal/beacon-query.js +32 -0
- package/dist/types/internal/data-dt-config-scope.d.ts +10 -0
- package/dist/types/internal/data-dt-config-scope.js +12 -0
- package/dist/types/internal/feature-hashes.d.ts +19 -0
- package/dist/types/internal/feature-hashes.js +22 -0
- package/dist/types/internal/index.d.ts +3 -0
- package/dist/types/internal/index.js +4 -0
- package/dist/types/rum-events/event-context/event-context.d.ts +364 -0
- package/dist/types/rum-events/event-context/event-context.js +106 -0
- package/dist/types/rum-events/event-context/index.d.ts +1 -0
- package/dist/types/rum-events/event-context/index.js +2 -0
- package/dist/types/rum-events/event-updates.d.ts +4 -0
- package/dist/types/rum-events/event-updates.js +2 -0
- package/dist/types/rum-events/index.d.ts +19 -0
- package/dist/types/rum-events/index.js +20 -0
- package/dist/types/rum-events/json-event.d.ts +84 -0
- package/dist/types/rum-events/json-event.js +2 -0
- package/dist/types/rum-events/rum-biz-event.d.ts +10 -0
- package/dist/types/rum-events/rum-biz-event.js +15 -0
- package/dist/types/rum-events/rum-event.d.ts +13 -0
- package/dist/types/rum-events/rum-event.js +3 -0
- package/dist/types/rum-events/rum-internal-selfmonitoring-event.d.ts +114 -0
- package/dist/types/rum-events/rum-internal-selfmonitoring-event.js +99 -0
- package/dist/types/rum-events/rum-long-task-event.d.ts +18 -0
- package/dist/types/rum-events/rum-long-task-event.js +10 -0
- package/dist/types/rum-events/rum-page-summary-event.d.ts +370 -0
- package/dist/types/rum-events/rum-page-summary-event.js +184 -0
- package/dist/types/rum-events/rum-selfmonitoring-event.d.ts +39 -0
- package/dist/types/rum-events/rum-selfmonitoring-event.js +32 -0
- package/dist/types/rum-events/rum-session-properties-event.d.ts +9 -0
- package/dist/types/rum-events/rum-session-properties-event.js +3 -0
- package/dist/types/rum-events/rum-standalone-csp-rule-violation-event.d.ts +16 -0
- package/dist/types/rum-events/rum-standalone-csp-rule-violation-event.js +3 -0
- package/dist/types/rum-events/rum-standalone-exception-event.d.ts +16 -0
- package/dist/types/rum-events/rum-standalone-exception-event.js +2 -0
- package/dist/types/rum-events/rum-standalone-navigation-event.d.ts +23 -0
- package/dist/types/rum-events/rum-standalone-navigation-event.js +6 -0
- package/dist/types/rum-events/rum-user-action-event.d.ts +187 -0
- package/dist/types/rum-events/rum-user-action-event.js +78 -0
- package/dist/types/rum-events/rum-user-interaction-event.d.ts +302 -0
- package/dist/types/rum-events/rum-user-interaction-event.js +131 -0
- package/dist/types/rum-events/rum-visibility-change-event.d.ts +15 -0
- package/dist/types/rum-events/rum-visibility-change-event.js +6 -0
- package/dist/types/rum-events/rum-web-request-event.d.ts +269 -0
- package/dist/types/rum-events/rum-web-request-event.js +143 -0
- package/dist/types/rum-events/schema-versions.d.ts +4 -0
- package/dist/types/rum-events/schema-versions.js +5 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/csp-fields.d.ts +38 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/csp-fields.js +23 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/exception-fields.d.ts +26 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/exception-fields.js +19 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-error-fields.d.ts +66 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-error-fields.js +66 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-event-fields.d.ts +142 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-event-fields.js +98 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/http-namespace.d.ts +16 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/http-namespace.js +11 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/index.d.ts +9 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/index.js +10 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/navigation-fields.d.ts +48 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/navigation-fields.js +47 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/page-source-fields.d.ts +9 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/page-source-fields.js +5 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/request-fields.d.ts +14 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/request-fields.js +10 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/view-source-fields.d.ts +14 -0
- package/dist/types/rum-events/shared-namespaces-and-fields/view-source-fields.js +9 -0
- package/dist/types/user-actions/index.d.ts +3 -0
- package/dist/types/user-actions/index.js +4 -0
- package/dist/types/user-actions/user-action-end-event.d.ts +28 -0
- package/dist/types/user-actions/user-action-end-event.js +2 -0
- package/dist/types/user-actions/user-action-start-options.d.ts +23 -0
- package/dist/types/user-actions/user-action-start-options.js +2 -0
- package/dist/types/user-actions/user-action-tracker.d.ts +72 -0
- package/dist/types/user-actions/user-action-tracker.js +2 -0
- package/package.json +115 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options to create a user action with.
|
|
3
|
+
*
|
|
4
|
+
* @category User Actions
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
export interface UserActionStartOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Automatically closes the user action upon timeout, page hide or when new user action is detected.
|
|
10
|
+
*
|
|
11
|
+
* default: true
|
|
12
|
+
*/
|
|
13
|
+
autoClose?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The unix timestamp indicating when the user action should start. Future timestamps are not supported - use current
|
|
16
|
+
* or past timestamps.
|
|
17
|
+
*/
|
|
18
|
+
startTime?: number;
|
|
19
|
+
/**
|
|
20
|
+
* A human-readable name to identify the user action.
|
|
21
|
+
*/
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1hY3Rpb24tc3RhcnQtb3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NvdXJjZS90eXBlcy91c2VyLWFjdGlvbnMvdXNlci1hY3Rpb24tc3RhcnQtb3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBPcHRpb25zIHRvIGNyZWF0ZSBhIHVzZXIgYWN0aW9uIHdpdGguXG4gKlxuICogQGNhdGVnb3J5IFVzZXIgQWN0aW9uc1xuICogQGV4cGVyaW1lbnRhbFxuICovXG5leHBvcnQgaW50ZXJmYWNlIFVzZXJBY3Rpb25TdGFydE9wdGlvbnMge1xuICAgIC8qKlxuICAgICAqIEF1dG9tYXRpY2FsbHkgY2xvc2VzIHRoZSB1c2VyIGFjdGlvbiB1cG9uIHRpbWVvdXQsIHBhZ2UgaGlkZSBvciB3aGVuIG5ldyB1c2VyIGFjdGlvbiBpcyBkZXRlY3RlZC5cbiAgICAgKlxuICAgICAqIGRlZmF1bHQ6IHRydWVcbiAgICAgKi9cbiAgICBhdXRvQ2xvc2U/OiBib29sZWFuO1xuXG4gICAgLyoqXG4gICAgICogVGhlIHVuaXggdGltZXN0YW1wIGluZGljYXRpbmcgd2hlbiB0aGUgdXNlciBhY3Rpb24gc2hvdWxkIHN0YXJ0LiBGdXR1cmUgdGltZXN0YW1wcyBhcmUgbm90IHN1cHBvcnRlZCAtIHVzZSBjdXJyZW50XG4gICAgICogb3IgcGFzdCB0aW1lc3RhbXBzLlxuICAgICAqL1xuICAgIHN0YXJ0VGltZT86IG51bWJlcjtcblxuICAgIC8qKlxuICAgICAqIEEgaHVtYW4tcmVhZGFibGUgbmFtZSB0byBpZGVudGlmeSB0aGUgdXNlciBhY3Rpb24uXG4gICAgICovXG4gICAgbmFtZT86IHN0cmluZztcbn1cbiJdfQ==
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { Unsubscriber } from "../api/dynatrace-api-types.js";
|
|
2
|
+
import type { UserActionEndEvent } from "./user-action-end-event.js";
|
|
3
|
+
/**
|
|
4
|
+
* An object to work with user actions.
|
|
5
|
+
*
|
|
6
|
+
* @category User Actions
|
|
7
|
+
* @experimental
|
|
8
|
+
*/
|
|
9
|
+
export interface UserActionTracker {
|
|
10
|
+
/**
|
|
11
|
+
* Completes this user action and sends a user action event for it.
|
|
12
|
+
*/
|
|
13
|
+
finish(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Subscribes to this user action to be notified when it would automatically complete.
|
|
16
|
+
*
|
|
17
|
+
* @param subscriber The listener to be called.
|
|
18
|
+
*/
|
|
19
|
+
subscribe(subscriber: (event: UserActionEndEvent) => void): Unsubscriber;
|
|
20
|
+
/**
|
|
21
|
+
* Allows to configure this user action to stop automatically.
|
|
22
|
+
*
|
|
23
|
+
* @param stopAutomatically If set to false, the user action has to be stopped with a call to {@link finish}.
|
|
24
|
+
*/
|
|
25
|
+
set autoClose(stopAutomatically: boolean);
|
|
26
|
+
/**
|
|
27
|
+
* @returns True if this user action stops automatically. If false, the user action has to be stopped with a call to {@link finish}.
|
|
28
|
+
*/
|
|
29
|
+
get autoClose(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the current state of the user action, which can be either "active" or "complete".
|
|
32
|
+
*
|
|
33
|
+
* @returns The current state of the user action.
|
|
34
|
+
*/
|
|
35
|
+
get state(): "active" | "complete";
|
|
36
|
+
/**
|
|
37
|
+
* Sets the event properties for the user action.
|
|
38
|
+
*
|
|
39
|
+
* @param properties The properties to set for the event.
|
|
40
|
+
*/
|
|
41
|
+
set event_properties(properties: Record<`event_properties.${string}`, string | number | boolean> | undefined);
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves the event properties for the user action.
|
|
44
|
+
*
|
|
45
|
+
* @returns The event properties for the user action.
|
|
46
|
+
*/
|
|
47
|
+
get event_properties(): Record<`event_properties.${string}`, string | number | boolean> | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves the start time of the user action.
|
|
50
|
+
*
|
|
51
|
+
* @returns The start time of the user action.
|
|
52
|
+
*/
|
|
53
|
+
get startTime(): number;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the start time of the user action.
|
|
56
|
+
*
|
|
57
|
+
* @param value The start time to set for the user action. Must not be in the future.
|
|
58
|
+
*/
|
|
59
|
+
set startTime(value: number);
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves the name of the user action.
|
|
62
|
+
*
|
|
63
|
+
* @returns The name of the user action.
|
|
64
|
+
*/
|
|
65
|
+
get name(): string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the name of the user action.
|
|
68
|
+
*
|
|
69
|
+
* @param value The name to set for the user action.
|
|
70
|
+
*/
|
|
71
|
+
set name(value: string | undefined);
|
|
72
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1hY3Rpb24tdHJhY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NvdXJjZS90eXBlcy91c2VyLWFjdGlvbnMvdXNlci1hY3Rpb24tdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBVbnN1YnNjcmliZXIgfSBmcm9tIFwiLi4vYXBpL2R5bmF0cmFjZS1hcGktdHlwZXMuanNcIjtcbmltcG9ydCB0eXBlIHsgVXNlckFjdGlvbkVuZEV2ZW50IH0gZnJvbSBcIi4vdXNlci1hY3Rpb24tZW5kLWV2ZW50LmpzXCI7XG5cbi8qKlxuICogQW4gb2JqZWN0IHRvIHdvcmsgd2l0aCB1c2VyIGFjdGlvbnMuXG4gKlxuICogQGNhdGVnb3J5IFVzZXIgQWN0aW9uc1xuICogQGV4cGVyaW1lbnRhbFxuICovXG5leHBvcnQgaW50ZXJmYWNlIFVzZXJBY3Rpb25UcmFja2VyIHtcbiAgICAvKipcbiAgICAgKiBDb21wbGV0ZXMgdGhpcyB1c2Vy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9mIHRoZSB1c2VyIGFjdGlvbi5cbiAgICAgKi9cbiAgICBnZXQgc3RhcnRUaW1lKCk6IG51bWJlcjtcblxuICAgIC8qKlxuICAgICAqIFNldHMgdGhlIHN0YXJ0IHRpbWUgb2YgdGhlIHVzZXIgYWN0aW9uLlxuICAgICAqXG4gICAgICogQHBhcmFtIHZhbHVlIFRoZSBzdGFydCB0aW1lIHRvIHNldCBmb3IgdGhlIHVzZXIgYWN0aW9uLiBNdXN0IG5vdCBiZSBpbiB0aGUgZnV0dXJlLlxuICAgICAqL1xuICAgIHNldCBzdGFydFRpbWUodmFsdWU6IG51bWJlcik7XG5cbiAgICAvKipcbiAgICAgKiBSZXRyaWV2ZXMgdGhlIG5hbWUgb2YgdGhlIHVzZXIgYWN0aW9uLlxuICAgICAqXG4gICAgICogQHJldHVybnMgVGhlIG5hbWUgb2YgdGhlIHVzZXIgYWN0aW9uLlxuICAgICAqL1xuICAgIGdldCBuYW1lKCk6IHN0cmluZyB8IHVuZGVmaW5lZDtcblxuICAgIC8qKlxuICAgICAqIFNldHMgdGhlIG5hbWUgb2YgdGhlIHVzZXIgYWN0aW9uLlxuICAgICAqXG4gICAgICogQHBhcmFtIHZhbHVlIFRoZSBuYW1lIHRvIHNldCBmb3IgdGhlIHVzZXIgYWN0aW9uLlxuICAgICAqL1xuICAgIHNldCBuYW1lKHZhbHVlOiBzdHJpbmcgfCB1bmRlZmluZWQpO1xufVxuIl19
|
package/package.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynatrace/rum-javascript-sdk",
|
|
3
|
+
"version": "1.329.2",
|
|
4
|
+
"description": "JavaScript API for Real User Monitoring (RUM)",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/api/**/*.js",
|
|
10
|
+
"dist/api/**/*.d.ts",
|
|
11
|
+
"dist/types/**/*.js",
|
|
12
|
+
"dist/types/**/*.d.ts",
|
|
13
|
+
"dist/testing/**/*.js",
|
|
14
|
+
"dist/testing/**/*.d.ts"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
"./api": {
|
|
18
|
+
"types": "./dist/api/index.d.ts",
|
|
19
|
+
"import": "./dist/api/index.js",
|
|
20
|
+
"default": "./dist/api/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./api/user-actions": {
|
|
23
|
+
"types": "./dist/api/user-actions.d.ts",
|
|
24
|
+
"import": "./dist/api/user-actions.js",
|
|
25
|
+
"default": "./dist/api/user-actions.js"
|
|
26
|
+
},
|
|
27
|
+
"./api/promises/user-actions": {
|
|
28
|
+
"types": "./dist/api/promises/user-actions.d.ts",
|
|
29
|
+
"import": "./dist/api/promises/user-actions.js",
|
|
30
|
+
"default": "./dist/api/promises/user-actions.js"
|
|
31
|
+
},
|
|
32
|
+
"./api/promises": {
|
|
33
|
+
"types": "./dist/api/promises/index.d.ts",
|
|
34
|
+
"import": "./dist/api/promises/index.js",
|
|
35
|
+
"default": "./dist/api/promises/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./internal": {
|
|
38
|
+
"types": "./dist/types/internal/index.d.ts",
|
|
39
|
+
"import": "./dist/types/internal/index.js",
|
|
40
|
+
"default": "./dist/types/internal/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./test": {
|
|
43
|
+
"types": "./dist/testing/test.d.ts",
|
|
44
|
+
"import": "./dist/testing/test.js",
|
|
45
|
+
"default": "./dist/testing/test.js"
|
|
46
|
+
},
|
|
47
|
+
"./types": {
|
|
48
|
+
"types": "./dist/types/index.d.ts",
|
|
49
|
+
"import": "./dist/types/index.js",
|
|
50
|
+
"default": "./dist/types/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./types/user-actions": {
|
|
53
|
+
"types": "./dist/types/user-actions/index.d.ts",
|
|
54
|
+
"import": "./dist/types/user-actions/index.js",
|
|
55
|
+
"default": "./dist/types/user-actions/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./types/api": {
|
|
58
|
+
"types": "./dist/types/api/index.d.ts",
|
|
59
|
+
"import": "./dist/types/api/index.js",
|
|
60
|
+
"default": "./dist/types/api/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./types/rum-events": {
|
|
63
|
+
"types": "./dist/types/rum-events/index.d.ts",
|
|
64
|
+
"import": "./dist/types/rum-events/index.js",
|
|
65
|
+
"default": "./dist/types/rum-events/index.js"
|
|
66
|
+
},
|
|
67
|
+
"./types/rum-events/event-context": {
|
|
68
|
+
"types": "./dist/types/rum-events/event-context/index.d.ts",
|
|
69
|
+
"import": "./dist/types/rum-events/event-context/index.js",
|
|
70
|
+
"default": "./dist/types/rum-events/event-context/index.js"
|
|
71
|
+
},
|
|
72
|
+
"./types/rum-events/shared-namespaces-and-fields": {
|
|
73
|
+
"types": "./dist/types/rum-events/shared-namespaces-and-fields/index.d.ts",
|
|
74
|
+
"import": "./dist/types/rum-events/shared-namespaces-and-fields/index.js",
|
|
75
|
+
"default": "./dist/types/rum-events/shared-namespaces-and-fields/index.js"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build:lib": "tsc -b tsconfig.build.json",
|
|
80
|
+
"test": "vitest --run --no-color --coverage",
|
|
81
|
+
"lint": "eslint \"source/**/*.ts\" \"./*.{ts,js,mjs}\"",
|
|
82
|
+
"lint:fix": "eslint \"source/**/*.ts\" \"./*.{ts,js,mjs}\" --fix && echo No Lint-Problems found",
|
|
83
|
+
"//": "Note: these 2 scripts below are only for local builds. The CI build in build.groovy needs to be updated as well if there are any changes",
|
|
84
|
+
"doc:api-gen3-internal": "typedoc --treatWarningsAsErrors --options ./typedoc-gen3-internal.api.json --tsconfig ./tsconfig-gen3.apidoc.json --plugin typedoc-plugin-mdn-links",
|
|
85
|
+
"doc:api-gen3-public": "typedoc --treatWarningsAsErrors --options ./typedoc-gen3-public.api.json --tsconfig ./tsconfig-gen3.apidoc.json --plugin typedoc-plugin-mdn-links",
|
|
86
|
+
"find-deadcode": "knip"
|
|
87
|
+
},
|
|
88
|
+
"keywords": [
|
|
89
|
+
"dynatrace",
|
|
90
|
+
"rum",
|
|
91
|
+
"real-user-monitoring",
|
|
92
|
+
"javascript",
|
|
93
|
+
"api"
|
|
94
|
+
],
|
|
95
|
+
"dependencies": {
|
|
96
|
+
"snappyjs": "0.7.0"
|
|
97
|
+
},
|
|
98
|
+
"peerDependencies": {
|
|
99
|
+
"@playwright/test": "^1.52.0"
|
|
100
|
+
},
|
|
101
|
+
"author": "Dynatrace",
|
|
102
|
+
"license": "ISC",
|
|
103
|
+
"devDependencies": {
|
|
104
|
+
"@types/node": "catalog:",
|
|
105
|
+
"@vitest/coverage-v8": "catalog:",
|
|
106
|
+
"@vitest/ui": "catalog:",
|
|
107
|
+
"eslint": "catalog:",
|
|
108
|
+
"jsdom": "catalog:",
|
|
109
|
+
"knip": "catalog:",
|
|
110
|
+
"typedoc": "catalog:",
|
|
111
|
+
"typedoc-plugin-mdn-links": "catalog:",
|
|
112
|
+
"typescript": "catalog:",
|
|
113
|
+
"vitest": "catalog:"
|
|
114
|
+
}
|
|
115
|
+
}
|