@microsoft/applicationinsights-analytics-js 3.3.12-nightly3.2602-18 → 3.4.0-beta
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/es5/applicationinsights-analytics-js.cjs.js +1328 -968
- package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.js +1330 -970
- package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-analytics-js.js +1330 -970
- package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.js +1328 -968
- package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
- package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +45 -48
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Interfaces/IAnalyticsConfig.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +175 -181
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +87 -98
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +86 -94
- package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Timing.js +19 -17
- package/dist-es5/JavaScriptSDK/Timing.js.map +1 -1
- package/dist-es5/__DynamicConstants.js +6 -6
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-analytics-js.js +1 -1
- package/package.json +71 -72
- package/types/applicationinsights-analytics-js.d.ts +42 -12
- package/types/applicationinsights-analytics-js.namespaced.d.ts +2151 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.
|
|
2
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.4.0-beta
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
export var _DYN_TO_STRING = "toString"; // Count: 4
|
|
15
15
|
export var _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled"; // Count: 3
|
|
16
16
|
export var _DYN__ADD_HOOK = "_addHook"; // Count: 6
|
|
17
|
-
export var _DYN_CORE = "core"; // Count:
|
|
18
|
-
export var _DYN_DATA_TYPE = "dataType"; // Count: 8
|
|
19
|
-
export var _DYN_ENVELOPE_TYPE = "envelopeType"; // Count: 7
|
|
17
|
+
export var _DYN_CORE = "core"; // Count: 13
|
|
20
18
|
export var _DYN_DIAG_LOG = "diagLog"; // Count: 13
|
|
21
19
|
export var _DYN_TRACK = "track"; // Count: 7
|
|
22
20
|
export var _DYN_TRACK_PAGE_VIEW = "trackPageView"; // Count: 4
|
|
@@ -28,7 +26,7 @@ export var _DYN_START_TIME = "startTime"; // Count: 6
|
|
|
28
26
|
export var _DYN_PROPERTIES = "properties"; // Count: 5
|
|
29
27
|
export var _DYN_DURATION = "duration"; // Count: 12
|
|
30
28
|
export var _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal"; // Count: 3
|
|
31
|
-
export var _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count:
|
|
29
|
+
export var _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count: 2
|
|
32
30
|
export var _DYN_HREF = "href"; // Count: 6
|
|
33
31
|
export var _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal"; // Count: 2
|
|
34
32
|
export var _DYN_ERROR = "error"; // Count: 5
|
|
@@ -42,17 +40,19 @@ export var _DYN_AUTO_TRACK_PAGE_VISI10 = "autoTrackPageVisitTime"; // Count: 2
|
|
|
42
40
|
export var _DYN_IS_BROWSER_LINK_TRAC11 = "isBrowserLinkTrackingEnabled"; // Count: 2
|
|
43
41
|
export var _DYN_LENGTH = "length"; // Count: 5
|
|
44
42
|
export var _DYN_ENABLE_AUTO_ROUTE_TR12 = "enableAutoRouteTracking"; // Count: 2
|
|
43
|
+
export var _DYN_GET_TRACE_CTX = "getTraceCtx"; // Count: 3
|
|
45
44
|
export var _DYN_ENABLE_UNHANDLED_PRO13 = "enableUnhandledPromiseRejectionTracking"; // Count: 2
|
|
46
45
|
export var _DYN_AUTO_UNHANDLED_PROMI14 = "autoUnhandledPromiseInstrumented"; // Count: 3
|
|
47
46
|
export var _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType"; // Count: 5
|
|
48
47
|
export var _DYN_IS_PERFORMANCE_TIMIN15 = "isPerformanceTimingSupported"; // Count: 2
|
|
49
48
|
export var _DYN_GET_PERFORMANCE_TIMI16 = "getPerformanceTiming"; // Count: 2
|
|
50
49
|
export var _DYN_NAVIGATION_START = "navigationStart"; // Count: 4
|
|
51
|
-
export var _DYN_SHOULD_COLLECT_DURAT17 = "shouldCollectDuration"; // Count:
|
|
50
|
+
export var _DYN_SHOULD_COLLECT_DURAT17 = "shouldCollectDuration"; // Count: 2
|
|
52
51
|
export var _DYN_IS_PERFORMANCE_TIMIN18 = "isPerformanceTimingDataReady"; // Count: 2
|
|
53
52
|
export var _DYN_RESPONSE_START = "responseStart"; // Count: 5
|
|
54
53
|
export var _DYN_REQUEST_START = "requestStart"; // Count: 3
|
|
55
54
|
export var _DYN_LOAD_EVENT_END = "loadEventEnd"; // Count: 4
|
|
56
55
|
export var _DYN_RESPONSE_END = "responseEnd"; // Count: 5
|
|
57
56
|
export var _DYN_CONNECT_END = "connectEnd"; // Count: 4
|
|
57
|
+
export var _DYN_PAGE_VISIT_TIME = "pageVisitTime"; // Count: 3
|
|
58
58
|
//# sourceMappingURL=__DynamicConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES5 which can result in a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_STRING = \"toString\"; // Count: 4\r\nexport var _DYN_IS_STORAGE_USE_DISAB0 = \"isStorageUseDisabled\"; // Count: 3\r\nexport var _DYN__ADD_HOOK = \"_addHook\"; // Count: 6\r\nexport var _DYN_CORE = \"core\"; // Count:
|
|
1
|
+
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES5 which can result in a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_STRING = \"toString\"; // Count: 4\r\nexport var _DYN_IS_STORAGE_USE_DISAB0 = \"isStorageUseDisabled\"; // Count: 3\r\nexport var _DYN__ADD_HOOK = \"_addHook\"; // Count: 6\r\nexport var _DYN_CORE = \"core\"; // Count: 13\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 13\r\nexport var _DYN_TRACK = \"track\"; // Count: 7\r\nexport var _DYN_TRACK_PAGE_VIEW = \"trackPageView\"; // Count: 4\r\nexport var _DYN_CONFIG = \"config\"; // Count: 12\r\nexport var _DYN_TRACK_PREVIOUS_PAGE_1 = \"trackPreviousPageVisit\"; // Count: 3\r\nexport var _DYN_SEND_PAGE_VIEW_INTER2 = \"sendPageViewInternal\"; // Count: 7\r\nexport var _DYN_REF_URI = \"refUri\"; // Count: 5\r\nexport var _DYN_START_TIME = \"startTime\"; // Count: 6\r\nexport var _DYN_PROPERTIES = \"properties\"; // Count: 5\r\nexport var _DYN_DURATION = \"duration\"; // Count: 12\r\nexport var _DYN_SEND_PAGE_VIEW_PERFO3 = \"sendPageViewPerformanceInternal\"; // Count: 3\r\nexport var _DYN_POPULATE_PAGE_VIEW_P4 = \"populatePageViewPerformanceEvent\"; // Count: 2\r\nexport var _DYN_HREF = \"href\"; // Count: 6\r\nexport var _DYN_SEND_EXCEPTION_INTER5 = \"sendExceptionInternal\"; // Count: 2\r\nexport var _DYN_ERROR = \"error\"; // Count: 5\r\nexport var _DYN_LINE_NUMBER = \"lineNumber\"; // Count: 4\r\nexport var _DYN_COLUMN_NUMBER = \"columnNumber\"; // Count: 5\r\nexport var _DYN__CREATE_AUTO_EXCEPTI6 = \"CreateAutoException\"; // Count: 3\r\nexport var _DYN_ADD_TELEMETRY_INITIA7 = \"addTelemetryInitializer\"; // Count: 4\r\nexport var _DYN_OVERRIDE_PAGE_VIEW_D8 = \"overridePageViewDuration\"; // Count: 2\r\nexport var _DYN_AUTO_EXCEPTION_INSTR9 = \"autoExceptionInstrumented\"; // Count: 3\r\nexport var _DYN_AUTO_TRACK_PAGE_VISI10 = \"autoTrackPageVisitTime\"; // Count: 2\r\nexport var _DYN_IS_BROWSER_LINK_TRAC11 = \"isBrowserLinkTrackingEnabled\"; // Count: 2\r\nexport var _DYN_LENGTH = \"length\"; // Count: 5\r\nexport var _DYN_ENABLE_AUTO_ROUTE_TR12 = \"enableAutoRouteTracking\"; // Count: 2\r\nexport var _DYN_GET_TRACE_CTX = \"getTraceCtx\"; // Count: 3\r\nexport var _DYN_ENABLE_UNHANDLED_PRO13 = \"enableUnhandledPromiseRejectionTracking\"; // Count: 2\r\nexport var _DYN_AUTO_UNHANDLED_PROMI14 = \"autoUnhandledPromiseInstrumented\"; // Count: 3\r\nexport var _DYN_GET_ENTRIES_BY_TYPE = \"getEntriesByType\"; // Count: 5\r\nexport var _DYN_IS_PERFORMANCE_TIMIN15 = \"isPerformanceTimingSupported\"; // Count: 2\r\nexport var _DYN_GET_PERFORMANCE_TIMI16 = \"getPerformanceTiming\"; // Count: 2\r\nexport var _DYN_NAVIGATION_START = \"navigationStart\"; // Count: 4\r\nexport var _DYN_SHOULD_COLLECT_DURAT17 = \"shouldCollectDuration\"; // Count: 2\r\nexport var _DYN_IS_PERFORMANCE_TIMIN18 = \"isPerformanceTimingDataReady\"; // Count: 2\r\nexport var _DYN_RESPONSE_START = \"responseStart\"; // Count: 5\r\nexport var _DYN_REQUEST_START = \"requestStart\"; // Count: 3\r\nexport var _DYN_LOAD_EVENT_END = \"loadEventEnd\"; // Count: 4\r\nexport var _DYN_RESPONSE_END = \"responseEnd\"; // Count: 5\r\nexport var _DYN_CONNECT_END = \"connectEnd\"; // Count: 4\r\nexport var _DYN_PAGE_VISIT_TIME = \"pageVisitTime\"; // Count: 3\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,72 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-analytics-js",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Microsoft Application Insights JavaScript SDK - Web Analytics",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "dist/es5/applicationinsights-analytics-js.js",
|
|
8
|
-
"module": "dist-es5/applicationinsights-analytics-js.js",
|
|
9
|
-
"types": "types/applicationinsights-analytics-js.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-analytics-js"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"clean": "git clean -xdf",
|
|
17
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
-
"build:esm": "grunt ai",
|
|
19
|
-
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
-
"rebuild": "npm run build",
|
|
21
|
-
"test": "grunt aitests",
|
|
22
|
-
"mintest": "grunt ai-mintests",
|
|
23
|
-
"lint": "tslint -p tsconfig.json",
|
|
24
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK - Web Analytics\"",
|
|
25
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
-
"ai-min": "grunt ai-min",
|
|
27
|
-
"ai-restore": "grunt ai-restore",
|
|
28
|
-
"npm-pack": "npm pack",
|
|
29
|
-
"api-docs": "typedoc"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
-
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
-
"@microsoft/applicationinsights-properties-js": "3.
|
|
36
|
-
"@microsoft/applicationinsights-channel-js": "3.
|
|
37
|
-
"@microsoft/applicationinsights-dependencies-js": "3.
|
|
38
|
-
"@microsoft/api-extractor": "^7.40.0",
|
|
39
|
-
"typescript": "^4.9.3",
|
|
40
|
-
"tslib": "^2.0.0",
|
|
41
|
-
"globby": "^11.0.0",
|
|
42
|
-
"magic-string": "^0.25.7",
|
|
43
|
-
"pako": "^2.0.3",
|
|
44
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
45
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
46
|
-
"@rollup/plugin-replace": "^5.0.2",
|
|
47
|
-
"rollup": "^3.20.0",
|
|
48
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
49
|
-
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
50
|
-
"grunt": "^1.6.1",
|
|
51
|
-
"grunt-cli": "^1.5.0",
|
|
52
|
-
"@nevware21/grunt-ts-plugin": "^0.5.1",
|
|
53
|
-
"@nevware21/grunt-eslint-ts": "^0.5.1",
|
|
54
|
-
"qunit": "^2.11.2",
|
|
55
|
-
"typedoc": "^0.26.6",
|
|
56
|
-
"sinon": "^7.3.1"
|
|
57
|
-
},
|
|
58
|
-
"peerDependencies": {
|
|
59
|
-
"tslib": ">= 1.0.0"
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
63
|
-
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
64
|
-
"@microsoft/applicationinsights-core-js": "3.
|
|
65
|
-
"@
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-analytics-js",
|
|
3
|
+
"version": "3.4.0-beta",
|
|
4
|
+
"description": "Microsoft Application Insights JavaScript SDK - Web Analytics",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "dist/es5/applicationinsights-analytics-js.js",
|
|
8
|
+
"module": "dist-es5/applicationinsights-analytics-js.js",
|
|
9
|
+
"types": "types/applicationinsights-analytics-js.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-analytics-js"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clean": "git clean -xdf",
|
|
17
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
+
"build:esm": "grunt ai",
|
|
19
|
+
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
+
"rebuild": "npm run build",
|
|
21
|
+
"test": "grunt aitests",
|
|
22
|
+
"mintest": "grunt ai-mintests",
|
|
23
|
+
"lint": "tslint -p tsconfig.json",
|
|
24
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK - Web Analytics\"",
|
|
25
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
+
"ai-min": "grunt ai-min",
|
|
27
|
+
"ai-restore": "grunt ai-restore",
|
|
28
|
+
"npm-pack": "npm pack",
|
|
29
|
+
"api-docs": "typedoc"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
+
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
+
"@microsoft/applicationinsights-properties-js": "3.4.0-beta",
|
|
36
|
+
"@microsoft/applicationinsights-channel-js": "3.4.0-beta",
|
|
37
|
+
"@microsoft/applicationinsights-dependencies-js": "3.4.0-beta",
|
|
38
|
+
"@microsoft/api-extractor": "^7.40.0",
|
|
39
|
+
"typescript": "^4.9.3",
|
|
40
|
+
"tslib": "^2.0.0",
|
|
41
|
+
"globby": "^11.0.0",
|
|
42
|
+
"magic-string": "^0.25.7",
|
|
43
|
+
"pako": "^2.0.3",
|
|
44
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
46
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
47
|
+
"rollup": "^3.20.0",
|
|
48
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
49
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
50
|
+
"grunt": "^1.6.1",
|
|
51
|
+
"grunt-cli": "^1.5.0",
|
|
52
|
+
"@nevware21/grunt-ts-plugin": "^0.5.1",
|
|
53
|
+
"@nevware21/grunt-eslint-ts": "^0.5.1",
|
|
54
|
+
"qunit": "^2.11.2",
|
|
55
|
+
"typedoc": "^0.26.6",
|
|
56
|
+
"sinon": "^7.3.1"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"tslib": ">= 1.0.0"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
63
|
+
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
64
|
+
"@microsoft/applicationinsights-core-js": "3.4.0-beta",
|
|
65
|
+
"@nevware21/ts-utils": ">= 0.12.6 < 2.x"
|
|
66
|
+
},
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"tag": "beta3"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.4.0-beta
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
|
|
16
|
-
import { IAppInsights } from '@microsoft/applicationinsights-
|
|
16
|
+
import { IAppInsights } from '@microsoft/applicationinsights-core-js';
|
|
17
17
|
import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
|
|
18
|
-
import { IAutoExceptionTelemetry } from '@microsoft/applicationinsights-
|
|
19
|
-
import { IConfig } from '@microsoft/applicationinsights-
|
|
18
|
+
import { IAutoExceptionTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
19
|
+
import { IConfig } from '@microsoft/applicationinsights-core-js';
|
|
20
20
|
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
21
21
|
import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
22
22
|
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
23
|
-
import { IEventTelemetry } from '@microsoft/applicationinsights-
|
|
23
|
+
import { IEventTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
24
24
|
import { IExceptionConfig } from '@microsoft/applicationinsights-core-js';
|
|
25
|
-
import { IExceptionTelemetry } from '@microsoft/applicationinsights-
|
|
26
|
-
import { IMetricTelemetry } from '@microsoft/applicationinsights-
|
|
27
|
-
import { IPageViewPerformanceTelemetry } from '@microsoft/applicationinsights-
|
|
28
|
-
import { IPageViewPerformanceTelemetryInternal } from '@microsoft/applicationinsights-
|
|
29
|
-
import { IPageViewTelemetry } from '@microsoft/applicationinsights-
|
|
30
|
-
import { IPageViewTelemetryInternal } from '@microsoft/applicationinsights-
|
|
25
|
+
import { IExceptionTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
26
|
+
import { IMetricTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
27
|
+
import { IPageViewPerformanceTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
28
|
+
import { IPageViewPerformanceTelemetryInternal } from '@microsoft/applicationinsights-core-js';
|
|
29
|
+
import { IPageViewTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
30
|
+
import { IPageViewTelemetryInternal } from '@microsoft/applicationinsights-core-js';
|
|
31
31
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
32
32
|
import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
|
|
33
33
|
import { ITelemetryInitializerHandler } from '@microsoft/applicationinsights-core-js';
|
|
34
34
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
35
35
|
import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
|
|
36
|
-
import { ITraceTelemetry } from '@microsoft/applicationinsights-
|
|
36
|
+
import { ITraceTelemetry } from '@microsoft/applicationinsights-core-js';
|
|
37
37
|
|
|
38
38
|
declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
39
39
|
static Version: string;
|
|
@@ -167,6 +167,28 @@ declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsight
|
|
|
167
167
|
export { AnalyticsPlugin }
|
|
168
168
|
export { AnalyticsPlugin as ApplicationInsights }
|
|
169
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Enum values for configuring trace context strategy for SPA route changes.
|
|
172
|
+
* Controls how trace contexts are managed when navigating between pages in a Single Page Application.
|
|
173
|
+
* @since 3.4.0
|
|
174
|
+
*/
|
|
175
|
+
declare const enum eRouteTraceStrategy {
|
|
176
|
+
/**
|
|
177
|
+
* Server strategy: Each page view gets a new, independent trace context.
|
|
178
|
+
* No parent-child relationships are created between page views.
|
|
179
|
+
* Each page will use the original server-provided trace context (if available) as its parent,
|
|
180
|
+
* as defined by the {@link IConfiguration.traceHdrMode} configuration for distributed tracing headers.
|
|
181
|
+
* This is the traditional behavior where each page view is treated as a separate operation.
|
|
182
|
+
*/
|
|
183
|
+
Server = 0,
|
|
184
|
+
/**
|
|
185
|
+
* Page strategy: Page views are chained together with parent-child relationships.
|
|
186
|
+
* Each new page view inherits the trace context from the previous page view,
|
|
187
|
+
* creating a connected chain of related operations for better correlation.
|
|
188
|
+
*/
|
|
189
|
+
Page = 1
|
|
190
|
+
}
|
|
191
|
+
|
|
170
192
|
/**
|
|
171
193
|
* Configuration interface specifically for AnalyticsPlugin
|
|
172
194
|
* This interface defines only the configuration properties that the Analytics plugin uses.
|
|
@@ -263,6 +285,14 @@ export declare interface IAnalyticsConfig {
|
|
|
263
285
|
* @default { inclScripts: false, expLog: undefined, maxLogs: 50 }
|
|
264
286
|
*/
|
|
265
287
|
expCfg?: IExceptionConfig;
|
|
288
|
+
/**
|
|
289
|
+
* Controls the trace context strategy for SPA route changes.
|
|
290
|
+
* Determines how trace contexts are managed and correlated across virtual page views
|
|
291
|
+
* in Single Page Applications, affecting telemetry correlation and operation tracking.
|
|
292
|
+
* @default eRouteTraceStrategy.Server
|
|
293
|
+
* @since 3.4.0
|
|
294
|
+
*/
|
|
295
|
+
routeTraceStrategy?: eRouteTraceStrategy;
|
|
266
296
|
}
|
|
267
297
|
|
|
268
298
|
/**
|