@microsoft/applicationinsights-analytics-js 2.8.0-beta.2203-09 → 2.8.0-beta.2203-12
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/browser/applicationinsights-analytics-js.integrity.json +9 -9
- package/browser/applicationinsights-analytics-js.js +13 -7
- package/browser/applicationinsights-analytics-js.js.map +1 -1
- package/browser/applicationinsights-analytics-js.min.js +2 -2
- package/browser/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.api.json +1 -1
- package/dist/applicationinsights-analytics-js.d.ts +1 -1
- package/dist/applicationinsights-analytics-js.js +13 -7
- package/dist/applicationinsights-analytics-js.js.map +1 -1
- package/dist/applicationinsights-analytics-js.min.js +2 -2
- package/dist/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.rollup.d.ts +1 -1
- package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js +7 -7
- package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +10 -10
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +5 -5
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Timing.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +6 -6
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +5 -6
- package/src/JavaScriptSDK/Telemetry/PageViewManager.ts +4 -4
- package/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts +6 -6
- package/src/JavaScriptSDK/Telemetry/PageVisitTimeManager.ts +1 -1
- package/types/JavaScriptSDK/AnalyticsPlugin.d.ts +5 -5
- package/types/JavaScriptSDK/Telemetry/PageViewPerformanceManager.d.ts +9 -9
- package/types/JavaScriptSDK/Telemetry/PageVisitTimeManager.d.ts +4 -4
- package/types/tsdoc-metadata.json +1 -1
|
@@ -125,15 +125,15 @@ export class PageViewPerformanceManager {
|
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
129
|
* Returns true is window PerformanceNavigationTiming API is supported, false otherwise.
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
public isPerformanceNavigationTimingSupported() {
|
|
132
132
|
let perf = getPerformance();
|
|
133
133
|
return perf && perf.getEntriesByType && perf.getEntriesByType("navigation").length > 0;
|
|
134
|
-
}
|
|
134
|
+
}
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
/**
|
|
137
137
|
* Returns true is window performance timing API is supported, false otherwise.
|
|
138
138
|
*/
|
|
139
139
|
public isPerformanceTimingSupported() {
|
|
@@ -141,7 +141,7 @@ export class PageViewPerformanceManager {
|
|
|
141
141
|
return perf && perf.timing;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
145
|
* As page loads different parts of performance timing numbers get set. When all of them are set we can report it.
|
|
146
146
|
* Returns true if ready, false otherwise.
|
|
147
147
|
*/
|
|
@@ -160,7 +160,7 @@ export class PageViewPerformanceManager {
|
|
|
160
160
|
&& timing.domLoading > 0;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
/**
|
|
164
164
|
* This method tells if given durations should be excluded from collection.
|
|
165
165
|
*/
|
|
166
166
|
public shouldCollectDuration(...durations: number[]): boolean {
|
|
@@ -23,7 +23,7 @@ export class PageVisitTimeManager {
|
|
|
23
23
|
this._logger = logger;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
27
|
* Tracks the previous page visit time telemetry (if exists) and starts timing of new page visit time
|
|
28
28
|
* @param currentPageName Name of page to begin timing for visit duration
|
|
29
29
|
* @param currentPageUrl Url of page to begin timing for visit duration
|
|
@@ -111,11 +111,11 @@ export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IApp
|
|
|
111
111
|
[key: string]: number;
|
|
112
112
|
}): void;
|
|
113
113
|
/**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
* @ignore INTERNAL ONLY
|
|
115
|
+
* @param exception
|
|
116
|
+
* @param properties
|
|
117
|
+
* @param systemProperties
|
|
118
|
+
*/
|
|
119
119
|
sendExceptionInternal(exception: IExceptionTelemetry, customProperties?: {
|
|
120
120
|
[key: string]: any;
|
|
121
121
|
}, systemProperties?: {
|
|
@@ -11,20 +11,20 @@ export declare class PageViewPerformanceManager {
|
|
|
11
11
|
getPerformanceTiming(): PerformanceTiming | null;
|
|
12
12
|
getPerformanceNavigationTiming(): PerformanceNavigationTiming | null;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* Returns true is window PerformanceNavigationTiming API is supported, false otherwise.
|
|
15
|
+
*/
|
|
16
16
|
isPerformanceNavigationTimingSupported(): boolean;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
* Returns true is window performance timing API is supported, false otherwise.
|
|
19
|
+
*/
|
|
20
20
|
isPerformanceTimingSupported(): PerformanceTiming;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
* As page loads different parts of performance timing numbers get set. When all of them are set we can report it.
|
|
23
|
+
* Returns true if ready, false otherwise.
|
|
24
|
+
*/
|
|
25
25
|
isPerformanceTimingDataReady(): boolean;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
* This method tells if given durations should be excluded from collection.
|
|
28
|
+
*/
|
|
29
29
|
shouldCollectDuration(...durations: number[]): boolean;
|
|
30
30
|
}
|
|
@@ -13,10 +13,10 @@ export declare class PageVisitTimeManager {
|
|
|
13
13
|
*/
|
|
14
14
|
constructor(logger: IDiagnosticLogger, pageVisitTimeTrackingHandler: (pageName: string, pageUrl: string, pageVisitTime: number) => void);
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
* Tracks the previous page visit time telemetry (if exists) and starts timing of new page visit time
|
|
17
|
+
* @param currentPageName Name of page to begin timing for visit duration
|
|
18
|
+
* @param currentPageUrl Url of page to begin timing for visit duration
|
|
19
|
+
*/
|
|
20
20
|
trackPreviousPageVisit(currentPageName: string, currentPageUrl: string): void;
|
|
21
21
|
/**
|
|
22
22
|
* Stops timing of current page (if exists) and starts timing for duration of visit to pageName
|