@microsoft/applicationinsights-analytics-js 2.8.14-nightly.2305-10 → 2.8.14
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/README.md +2 -1
- package/browser/applicationinsights-analytics-js.integrity.json +9 -9
- package/browser/applicationinsights-analytics-js.js +6 -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 +6 -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 +4 -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 +2 -3
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +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 +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +64 -67
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +2 -2
- package/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
package/package.json
CHANGED
|
@@ -1,67 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-analytics-js",
|
|
3
|
-
"version": "2.8.14
|
|
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/applicationinsights-analytics-js.js",
|
|
8
|
-
"module": "dist-esm/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/master/extensions/applicationinsights-analytics-js"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
|
-
"build:esm": "grunt ai",
|
|
18
|
-
"build:browser": "rollup -c",
|
|
19
|
-
"rebuild": "npm run build",
|
|
20
|
-
"test": "grunt aitests",
|
|
21
|
-
"mintest": "grunt ai-mintests",
|
|
22
|
-
"lint": "tslint -p tsconfig.json",
|
|
23
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK - Web Analytics\"",
|
|
24
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
25
|
-
"ai-min": "grunt ai-min",
|
|
26
|
-
"ai-restore": "grunt ai-restore",
|
|
27
|
-
"npm-pack": "npm pack"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
31
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
32
|
-
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
33
|
-
"@microsoft/applicationinsights-properties-js": "2.8.14
|
|
34
|
-
"@microsoft/applicationinsights-channel-js": "2.8.14
|
|
35
|
-
"@microsoft/api-extractor": "^7.18.1",
|
|
36
|
-
"typescript": "^4.9.3",
|
|
37
|
-
"tslib": "^2.0.0",
|
|
38
|
-
"globby": "^11.0.0",
|
|
39
|
-
"magic-string": "^0.25.7",
|
|
40
|
-
"pako": "^2.0.3",
|
|
41
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
42
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
43
|
-
"@rollup/plugin-replace": "^2.3.3",
|
|
44
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
45
|
-
"rollup": "^2.32.0",
|
|
46
|
-
"grunt": "^1.5.3",
|
|
47
|
-
"grunt-cli": "^1.4.3",
|
|
48
|
-
"grunt-contrib-qunit": "^6.2.1",
|
|
49
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
50
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
51
|
-
"qunit": "^2.11.2",
|
|
52
|
-
"sinon": "^7.3.1"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"tslib": "*"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"@microsoft/dynamicproto-js": "^1.1.9",
|
|
59
|
-
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
60
|
-
"@microsoft/applicationinsights-core-js": "2.8.14
|
|
61
|
-
"@microsoft/applicationinsights-common": "2.8.14
|
|
62
|
-
},
|
|
63
|
-
"license": "MIT"
|
|
64
|
-
|
|
65
|
-
"tag": "nightly"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-analytics-js",
|
|
3
|
+
"version": "2.8.14",
|
|
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/applicationinsights-analytics-js.js",
|
|
8
|
+
"module": "dist-esm/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/master/extensions/applicationinsights-analytics-js"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
|
+
"build:esm": "grunt ai",
|
|
18
|
+
"build:browser": "rollup -c",
|
|
19
|
+
"rebuild": "npm run build",
|
|
20
|
+
"test": "grunt aitests",
|
|
21
|
+
"mintest": "grunt ai-mintests",
|
|
22
|
+
"lint": "tslint -p tsconfig.json",
|
|
23
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK - Web Analytics\"",
|
|
24
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
25
|
+
"ai-min": "grunt ai-min",
|
|
26
|
+
"ai-restore": "grunt ai-restore",
|
|
27
|
+
"npm-pack": "npm pack"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
31
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
32
|
+
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
33
|
+
"@microsoft/applicationinsights-properties-js": "2.8.14",
|
|
34
|
+
"@microsoft/applicationinsights-channel-js": "2.8.14",
|
|
35
|
+
"@microsoft/api-extractor": "^7.18.1",
|
|
36
|
+
"typescript": "^4.9.3",
|
|
37
|
+
"tslib": "^2.0.0",
|
|
38
|
+
"globby": "^11.0.0",
|
|
39
|
+
"magic-string": "^0.25.7",
|
|
40
|
+
"pako": "^2.0.3",
|
|
41
|
+
"@rollup/plugin-commonjs": "^18.0.0",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
43
|
+
"@rollup/plugin-replace": "^2.3.3",
|
|
44
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
45
|
+
"rollup": "^2.32.0",
|
|
46
|
+
"grunt": "^1.5.3",
|
|
47
|
+
"grunt-cli": "^1.4.3",
|
|
48
|
+
"grunt-contrib-qunit": "^6.2.1",
|
|
49
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
50
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
51
|
+
"qunit": "^2.11.2",
|
|
52
|
+
"sinon": "^7.3.1"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"tslib": "*"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@microsoft/dynamicproto-js": "^1.1.9",
|
|
59
|
+
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
60
|
+
"@microsoft/applicationinsights-core-js": "2.8.14",
|
|
61
|
+
"@microsoft/applicationinsights-common": "2.8.14"
|
|
62
|
+
},
|
|
63
|
+
"license": "MIT"
|
|
64
|
+
}
|
|
@@ -557,7 +557,7 @@ export class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights
|
|
|
557
557
|
_updateStorageUsage(extConfig);
|
|
558
558
|
|
|
559
559
|
_pageViewPerformanceManager = new PageViewPerformanceManager(_self.core);
|
|
560
|
-
_pageViewManager = new PageViewManager(
|
|
560
|
+
_pageViewManager = new PageViewManager(_self, extConfig.overridePageViewDuration, _self.core, _pageViewPerformanceManager);
|
|
561
561
|
_pageVisitTimeManager = new PageVisitTimeManager(_self.diagLog(), (pageName, pageUrl, pageVisitTime) => trackPageVisitTime(pageName, pageUrl, pageVisitTime))
|
|
562
562
|
|
|
563
563
|
_updateBrowserLinkTracking(extConfig, config);
|
|
@@ -800,7 +800,7 @@ export class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights
|
|
|
800
800
|
setTimeout(((uri: string) => {
|
|
801
801
|
// todo: override start time so that it is not affected by autoRoutePVDelay
|
|
802
802
|
_self.trackPageView({ refUri: uri, properties: { duration: 0 } }); // SPA route change loading durations are undefined, so send 0
|
|
803
|
-
}).bind(
|
|
803
|
+
}).bind(_self, _prevUri), _self.autoRoutePVDelay);
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
|
|
@@ -148,7 +148,7 @@ export class PageViewPerformanceManager {
|
|
|
148
148
|
"error calculating page view performance.",
|
|
149
149
|
{ total, network, request, response, dom });
|
|
150
150
|
|
|
151
|
-
} else if (!
|
|
151
|
+
} else if (!_self.shouldCollectDuration(total, network, request, response, dom)) {
|
|
152
152
|
_throwInternal(_logger,
|
|
153
153
|
eLoggingSeverity.WARNING,
|
|
154
154
|
_eInternalMessageId.InvalidDurationValue,
|