@microsoft/applicationinsights-analytics-js 3.0.0-beta.2302-01 → 3.0.0-beta.2302-03
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 +63 -18
- 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.d.ts +1 -1
- package/dist/applicationinsights-analytics-js.js +63 -18
- 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 +13 -4
- 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 +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Timing.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/__DynamicConstants.js +4 -4
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +8 -8
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +41 -31
- package/src/JavaScriptSDK/Telemetry/PageViewManager.ts +14 -14
- package/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts +11 -11
- package/src/JavaScriptSDK/Telemetry/PageVisitTimeManager.ts +12 -12
- package/src/__DynamicConstants.ts +51 -51
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
-
import { IPageViewPerformanceTelemetryInternal, dateTimeUtilsDuration, msToTimeSpan } from "@microsoft/applicationinsights-common";
|
|
6
|
-
import {
|
|
7
|
-
IAppInsightsCore, IDiagnosticLogger, _eInternalMessageId, _throwInternal, eLoggingSeverity, getNavigator, getPerformance, safeGetLogger
|
|
8
|
-
} from "@microsoft/applicationinsights-core-js";
|
|
9
|
-
import { strIndexOf } from "@nevware21/ts-utils";
|
|
10
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
+
import { IPageViewPerformanceTelemetryInternal, dateTimeUtilsDuration, msToTimeSpan } from "@microsoft/applicationinsights-common";
|
|
6
|
+
import {
|
|
7
|
+
IAppInsightsCore, IDiagnosticLogger, _eInternalMessageId, _throwInternal, eLoggingSeverity, getNavigator, getPerformance, safeGetLogger
|
|
8
|
+
} from "@microsoft/applicationinsights-core-js";
|
|
9
|
+
import { strIndexOf } from "@nevware21/ts-utils";
|
|
10
|
+
|
|
11
11
|
const MAX_DURATION_ALLOWED = 3600000; // 1h
|
|
12
12
|
const botAgentNames = ["googlebot", "adsbot-google", "apis-google", "mediapartners-google"];
|
|
13
13
|
|
|
@@ -218,4 +218,4 @@ export class PageViewPerformanceManager {
|
|
|
218
218
|
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
|
|
219
219
|
return true;
|
|
220
220
|
}
|
|
221
|
-
}
|
|
221
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
-
import {
|
|
6
|
-
utlCanUseSessionStorage, utlGetSessionStorage, utlRemoveSessionStorage, utlSetSessionStorage
|
|
7
|
-
} from "@microsoft/applicationinsights-common";
|
|
8
|
-
import {
|
|
9
|
-
IDiagnosticLogger, _warnToConsole, dateNow, dumpObj, getJSON, hasJSON, objDefineAccessors, throwError
|
|
10
|
-
} from "@microsoft/applicationinsights-core-js";
|
|
11
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
+
import {
|
|
6
|
+
utlCanUseSessionStorage, utlGetSessionStorage, utlRemoveSessionStorage, utlSetSessionStorage
|
|
7
|
+
} from "@microsoft/applicationinsights-common";
|
|
8
|
+
import {
|
|
9
|
+
IDiagnosticLogger, _warnToConsole, dateNow, dumpObj, getJSON, hasJSON, objDefineAccessors, throwError
|
|
10
|
+
} from "@microsoft/applicationinsights-core-js";
|
|
11
|
+
|
|
12
12
|
/**
|
|
13
13
|
* Used to track page visit durations
|
|
14
14
|
*/
|
|
@@ -139,4 +139,4 @@ export class PageVisitData {
|
|
|
139
139
|
this.pageName = pageName;
|
|
140
140
|
this.pageUrl = pageUrl;
|
|
141
141
|
}
|
|
142
|
-
}
|
|
142
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
// @skip-file-minify
|
|
4
|
-
|
|
5
|
-
// ##############################################################
|
|
6
|
-
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
7
|
-
// ##############################################################
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
// Note: DON'T Export these const from the package as we are still targeting
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
export const _DYN_TO_STRING = "toString"; // Count: 4
|
|
14
|
-
export const _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled"; // Count: 2
|
|
15
|
-
export const _DYN__ADD_HOOK = "_addHook"; // Count: 6
|
|
16
|
-
export const _DYN_CORE = "core"; // Count: 7
|
|
17
|
-
export const _DYN_DATA_TYPE = "dataType"; // Count: 8
|
|
18
|
-
export const _DYN_ENVELOPE_TYPE = "envelopeType"; // Count: 7
|
|
19
|
-
export const _DYN_DIAG_LOG = "diagLog"; // Count: 13
|
|
20
|
-
export const _DYN_TRACK = "track"; // Count: 7
|
|
21
|
-
export const _DYN_TRACK_PAGE_VIEW = "trackPageView"; // Count: 4
|
|
22
|
-
export const _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit"; // Count: 3
|
|
23
|
-
export const _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal"; // Count: 7
|
|
24
|
-
export const _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal"; // Count: 3
|
|
25
|
-
export const _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count: 3
|
|
26
|
-
export const _DYN_HREF = "href"; // Count: 6
|
|
27
|
-
export const _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal"; // Count: 2
|
|
28
|
-
export const _DYN_EXCEPTION = "exception"; // Count: 3
|
|
29
|
-
export const _DYN_ERROR = "error"; // Count: 5
|
|
30
|
-
export const _DYN__ONERROR = "_onerror"; // Count: 3
|
|
31
|
-
export const _DYN_ERROR_SRC = "errorSrc"; // Count: 3
|
|
32
|
-
export const _DYN_LINE_NUMBER = "lineNumber"; // Count: 5
|
|
33
|
-
export const _DYN_COLUMN_NUMBER = "columnNumber"; // Count: 5
|
|
34
|
-
export const _DYN_MESSAGE = "message"; // Count: 4
|
|
35
|
-
export const _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException"; // Count: 3
|
|
36
|
-
export const _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer"; // Count: 4
|
|
37
|
-
export const _DYN_DURATION = "duration"; // Count: 10
|
|
38
|
-
export const _DYN_LENGTH = "length"; // Count: 5
|
|
39
|
-
export const _DYN_AUTO_UNHANDLED_PROMI8 = "autoUnhandledPromiseInstrumented"; // Count: 3
|
|
40
|
-
export const _DYN_IS_PERFORMANCE_TIMIN9 = "isPerformanceTimingSupported"; // Count: 2
|
|
41
|
-
export const _DYN_GET_PERFORMANCE_TIMI10 = "getPerformanceTiming"; // Count: 2
|
|
42
|
-
export const _DYN_NAVIGATION_START = "navigationStart"; // Count: 4
|
|
43
|
-
export const _DYN_SHOULD_COLLECT_DURAT11 = "shouldCollectDuration"; // Count: 3
|
|
44
|
-
export const _DYN_IS_PERFORMANCE_TIMIN12 = "isPerformanceTimingDataReady"; // Count: 2
|
|
45
|
-
export const _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType"; // Count: 3
|
|
46
|
-
export const _DYN_RESPONSE_START = "responseStart"; // Count: 5
|
|
47
|
-
export const _DYN_REQUEST_START = "requestStart"; // Count: 3
|
|
48
|
-
export const _DYN_LOAD_EVENT_END = "loadEventEnd"; // Count: 4
|
|
49
|
-
export const _DYN_RESPONSE_END = "responseEnd"; // Count: 5
|
|
50
|
-
export const _DYN_CONNECT_END = "connectEnd"; // Count: 4
|
|
51
|
-
export const _DYN_PAGE_VISIT_START_TIM13 = "pageVisitStartTime"; // Count: 2
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// @skip-file-minify
|
|
4
|
+
|
|
5
|
+
// ##############################################################
|
|
6
|
+
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
7
|
+
// ##############################################################
|
|
8
|
+
|
|
9
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
+
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
11
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
|
+
|
|
13
|
+
export const _DYN_TO_STRING = "toString"; // Count: 4
|
|
14
|
+
export const _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled"; // Count: 2
|
|
15
|
+
export const _DYN__ADD_HOOK = "_addHook"; // Count: 6
|
|
16
|
+
export const _DYN_CORE = "core"; // Count: 7
|
|
17
|
+
export const _DYN_DATA_TYPE = "dataType"; // Count: 8
|
|
18
|
+
export const _DYN_ENVELOPE_TYPE = "envelopeType"; // Count: 7
|
|
19
|
+
export const _DYN_DIAG_LOG = "diagLog"; // Count: 13
|
|
20
|
+
export const _DYN_TRACK = "track"; // Count: 7
|
|
21
|
+
export const _DYN_TRACK_PAGE_VIEW = "trackPageView"; // Count: 4
|
|
22
|
+
export const _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit"; // Count: 3
|
|
23
|
+
export const _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal"; // Count: 7
|
|
24
|
+
export const _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal"; // Count: 3
|
|
25
|
+
export const _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count: 3
|
|
26
|
+
export const _DYN_HREF = "href"; // Count: 6
|
|
27
|
+
export const _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal"; // Count: 2
|
|
28
|
+
export const _DYN_EXCEPTION = "exception"; // Count: 3
|
|
29
|
+
export const _DYN_ERROR = "error"; // Count: 5
|
|
30
|
+
export const _DYN__ONERROR = "_onerror"; // Count: 3
|
|
31
|
+
export const _DYN_ERROR_SRC = "errorSrc"; // Count: 3
|
|
32
|
+
export const _DYN_LINE_NUMBER = "lineNumber"; // Count: 5
|
|
33
|
+
export const _DYN_COLUMN_NUMBER = "columnNumber"; // Count: 5
|
|
34
|
+
export const _DYN_MESSAGE = "message"; // Count: 4
|
|
35
|
+
export const _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException"; // Count: 3
|
|
36
|
+
export const _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer"; // Count: 4
|
|
37
|
+
export const _DYN_DURATION = "duration"; // Count: 10
|
|
38
|
+
export const _DYN_LENGTH = "length"; // Count: 5
|
|
39
|
+
export const _DYN_AUTO_UNHANDLED_PROMI8 = "autoUnhandledPromiseInstrumented"; // Count: 3
|
|
40
|
+
export const _DYN_IS_PERFORMANCE_TIMIN9 = "isPerformanceTimingSupported"; // Count: 2
|
|
41
|
+
export const _DYN_GET_PERFORMANCE_TIMI10 = "getPerformanceTiming"; // Count: 2
|
|
42
|
+
export const _DYN_NAVIGATION_START = "navigationStart"; // Count: 4
|
|
43
|
+
export const _DYN_SHOULD_COLLECT_DURAT11 = "shouldCollectDuration"; // Count: 3
|
|
44
|
+
export const _DYN_IS_PERFORMANCE_TIMIN12 = "isPerformanceTimingDataReady"; // Count: 2
|
|
45
|
+
export const _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType"; // Count: 3
|
|
46
|
+
export const _DYN_RESPONSE_START = "responseStart"; // Count: 5
|
|
47
|
+
export const _DYN_REQUEST_START = "requestStart"; // Count: 3
|
|
48
|
+
export const _DYN_LOAD_EVENT_END = "loadEventEnd"; // Count: 4
|
|
49
|
+
export const _DYN_RESPONSE_END = "responseEnd"; // Count: 5
|
|
50
|
+
export const _DYN_CONNECT_END = "connectEnd"; // Count: 4
|
|
51
|
+
export const _DYN_PAGE_VISIT_START_TIM13 = "pageVisitStartTime"; // Count: 2
|