@microsoft/applicationinsights-common 2.7.3-nightly.2112-07 → 2.7.3
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-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +44 -32
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.api.json +1 -1
- package/dist/applicationinsights-common.d.ts +1 -1
- package/dist/applicationinsights-common.js +44 -32
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +1 -1
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +1 -1
- package/dist-esm/HelperFuncs.js +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Base.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Data.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Domain.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/EventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +1 -1
- package/dist-esm/StorageHelperFuncs.js +1 -1
- package/dist-esm/Telemetry/Common/Base.js +1 -1
- package/dist-esm/Telemetry/Common/Data.js +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +1 -1
- package/dist-esm/Telemetry/Event.js +1 -1
- package/dist-esm/Telemetry/Exception.js +2 -2
- package/dist-esm/Telemetry/Exception.js.map +1 -1
- package/dist-esm/Telemetry/Metric.js +1 -1
- package/dist-esm/Telemetry/PageView.js +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-esm/Telemetry/Trace.js +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/applicationinsights-common.js +1 -1
- package/package.json +54 -57
- package/src/Telemetry/Common/DataSanitizer.ts +1 -1
- package/src/Telemetry/Exception.ts +2 -2
- package/src/Telemetry/PageViewPerformance.ts +2 -2
- package/src/Util.ts +1 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-common",
|
|
3
|
-
"version": "2.7.3
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"ext": {
|
|
5
5
|
"@js": {
|
|
6
6
|
"file": "applicationinsights-common.js",
|
|
7
7
|
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-
|
|
8
|
+
"integrity": "sha256-U5HvlPBhIATYWZb+1cOUbLhhqenaLyJLcStE6+6fOwk= sha384-gosB/uZehpYn/AR/6iuX5yRKQ1uY3O9P2AdPqEeyw36GnT1mRFlj9SZ2UeNK12V8 sha512-lWpjiyGF9wC5cICxAn/OUu1xQf6aQKBtZUX5yJCXpOJUzbIXhplafqwENLwX2kD5z1HLzrrU7f8fiesa7Nsihw==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "U5HvlPBhIATYWZb+1cOUbLhhqenaLyJLcStE6+6fOwk=",
|
|
11
|
+
"sha384": "gosB/uZehpYn/AR/6iuX5yRKQ1uY3O9P2AdPqEeyw36GnT1mRFlj9SZ2UeNK12V8",
|
|
12
|
+
"sha512": "lWpjiyGF9wC5cICxAn/OUu1xQf6aQKBtZUX5yJCXpOJUzbIXhplafqwENLwX2kD5z1HLzrrU7f8fiesa7Nsihw=="
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"@min.js": {
|
|
16
16
|
"file": "applicationinsights-common.min.js",
|
|
17
17
|
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-
|
|
18
|
+
"integrity": "sha256-cZnCzWlAVfP8J6CGramAgPgQtfzky8B2Wl3oE/8QMis= sha384-kNybhMcJ1dV/KjQM+6ou6OZubisNDmitHuBZbXo0wpCn0gOVGBAo77IXq/ErPlMY sha512-swFNfMSBopmSSDognxdqaG7G/4QfQ/XkUx7V33XxQC17E8Klw9nvl4iCDxGV28e5exSIewR5jDRTdA3vT9v2KA==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "cZnCzWlAVfP8J6CGramAgPgQtfzky8B2Wl3oE/8QMis=",
|
|
21
|
+
"sha384": "kNybhMcJ1dV/KjQM+6ou6OZubisNDmitHuBZbXo0wpCn0gOVGBAo77IXq/ErPlMY",
|
|
22
|
+
"sha512": "swFNfMSBopmSSDognxdqaG7G/4QfQ/XkUx7V33XxQC17E8Klw9nvl4iCDxGV28e5exSIewR5jDRTdA3vT9v2KA=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.7.3
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.7.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -20,20 +20,24 @@
|
|
|
20
20
|
var ObjDefineProperty = ObjClass["defineProperty"];
|
|
21
21
|
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
var _cachedGlobal = null;
|
|
24
|
+
function getGlobal(useCached) {
|
|
25
|
+
if (useCached === void 0) { useCached = true; }
|
|
26
|
+
if (!_cachedGlobal || !useCached) {
|
|
27
|
+
if (typeof globalThis !== strShimUndefined && globalThis) {
|
|
28
|
+
_cachedGlobal = globalThis;
|
|
29
|
+
}
|
|
30
|
+
if (typeof self !== strShimUndefined && self) {
|
|
31
|
+
_cachedGlobal = self;
|
|
32
|
+
}
|
|
33
|
+
if (typeof window !== strShimUndefined && window) {
|
|
34
|
+
_cachedGlobal = window;
|
|
35
|
+
}
|
|
36
|
+
if (typeof global !== strShimUndefined && global) {
|
|
37
|
+
_cachedGlobal = global;
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
|
-
return
|
|
40
|
+
return _cachedGlobal;
|
|
37
41
|
}
|
|
38
42
|
function throwTypeError(message) {
|
|
39
43
|
throw new TypeError(message);
|
|
@@ -183,6 +187,7 @@
|
|
|
183
187
|
var strOnPrefix = "on";
|
|
184
188
|
var strAttachEvent = "attachEvent";
|
|
185
189
|
var strAddEventHelper = "addEventListener";
|
|
190
|
+
var strToISOString = "toISOString";
|
|
186
191
|
var _objDefineProperty = ObjDefineProperty;
|
|
187
192
|
function objToString(obj) {
|
|
188
193
|
return ObjProto.toString.call(obj);
|
|
@@ -281,22 +286,27 @@
|
|
|
281
286
|
return typeof value === "boolean";
|
|
282
287
|
}
|
|
283
288
|
function toISOString(date) {
|
|
284
|
-
if (
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
289
|
+
if (date) {
|
|
290
|
+
if (date[strToISOString]) {
|
|
291
|
+
return date[strToISOString]();
|
|
292
|
+
}
|
|
293
|
+
if (isDate(date)) {
|
|
294
|
+
var pad = function (num) {
|
|
295
|
+
var r = String(num);
|
|
296
|
+
if (r.length === 1) {
|
|
297
|
+
r = "0" + r;
|
|
298
|
+
}
|
|
299
|
+
return r;
|
|
300
|
+
};
|
|
301
|
+
return date.getUTCFullYear()
|
|
302
|
+
+ "-" + pad(date.getUTCMonth() + 1)
|
|
303
|
+
+ "-" + pad(date.getUTCDate())
|
|
304
|
+
+ "T" + pad(date.getUTCHours())
|
|
305
|
+
+ ":" + pad(date.getUTCMinutes())
|
|
306
|
+
+ ":" + pad(date.getUTCSeconds())
|
|
307
|
+
+ "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
|
|
308
|
+
+ "Z";
|
|
309
|
+
}
|
|
300
310
|
}
|
|
301
311
|
}
|
|
302
312
|
function arrForEach(arr, callbackfn, thisArg) {
|
|
@@ -464,6 +474,7 @@
|
|
|
464
474
|
|
|
465
475
|
var strWindow = "window";
|
|
466
476
|
var strDocument = "document";
|
|
477
|
+
var strDocumentMode = "documentMode";
|
|
467
478
|
var strNavigator = "navigator";
|
|
468
479
|
var strLocation = "location";
|
|
469
480
|
var strPerformance = "performance";
|
|
@@ -560,7 +571,8 @@
|
|
|
560
571
|
}
|
|
561
572
|
var ua = (userAgentStr || "").toLowerCase();
|
|
562
573
|
if (strContains(ua, strMsie)) {
|
|
563
|
-
|
|
574
|
+
var doc = getDocument() || {};
|
|
575
|
+
return Math.max(parseInt(ua.split(strMsie)[1]), (doc[strDocumentMode] || 0));
|
|
564
576
|
}
|
|
565
577
|
else if (strContains(ua, strTrident)) {
|
|
566
578
|
var tridentVer = parseInt(ua.split(strTrident)[1]);
|
|
@@ -2061,7 +2073,7 @@
|
|
|
2061
2073
|
return exceptionData;
|
|
2062
2074
|
};
|
|
2063
2075
|
Exception.prototype.toInterface = function () {
|
|
2064
|
-
var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel
|
|
2076
|
+
var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel, problemGroup = _a.problemGroup, id = _a.id, isManual = _a.isManual;
|
|
2065
2077
|
var exceptionDetailsInterface = exceptions instanceof Array
|
|
2066
2078
|
&& arrMap(exceptions, function (exception) { return exception.toInterface(); })
|
|
2067
2079
|
|| undefined;
|