@microsoft/applicationinsights-common 2.8.15-nightly.2307-26 → 2.8.15-nightly.2308-01
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 +16 -7
- 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 +45 -0
- package/dist/applicationinsights-common.api.md +3 -0
- package/dist/applicationinsights-common.d.ts +3 -1
- package/dist/applicationinsights-common.js +16 -7
- 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 +3 -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/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
- package/dist-esm/Interfaces/Contracts/IData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/SeverityLevel.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/IStorageBuffer.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/IThrottleMgr.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 +9 -4
- package/dist-esm/StorageHelperFuncs.js.map +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 +5 -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/ThrottleMgr.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/__DynamicConstants.js +2 -2
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-common.js +2 -2
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +2 -2
- package/src/StorageHelperFuncs.ts +9 -3
- package/src/Telemetry/Exception.ts +4 -1
- package/src/__DynamicConstants.ts +1 -1
- package/src/applicationinsights-common.ts +1 -1
- package/types/StorageHelperFuncs.d.ts +1 -0
- package/types/__DynamicConstants.d.ts +1 -1
- package/types/applicationinsights-common.d.ts +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-common",
|
|
3
|
-
"version": "2.8.15-nightly.
|
|
3
|
+
"version": "2.8.15-nightly.2308-01",
|
|
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-HxOHnO83qiM72D2N+qMIMgNQ01sLDR+VhDx+j1ILcEc= sha384-nty83SKXvlr/4O3XdJScnrw3FwBnAGkO4yq5prvncw6PXectTLpc9pLfxN+s3FiT sha512-4swUNQEdsIjk1fWxfcH2Y4hkW4ED7XLNNdtWergHUDFNrQcHtm2E+VtXbXkOc2+jMav6GD/dRcpKMojfxBkt8Q==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "HxOHnO83qiM72D2N+qMIMgNQ01sLDR+VhDx+j1ILcEc=",
|
|
11
|
+
"sha384": "nty83SKXvlr/4O3XdJScnrw3FwBnAGkO4yq5prvncw6PXectTLpc9pLfxN+s3FiT",
|
|
12
|
+
"sha512": "4swUNQEdsIjk1fWxfcH2Y4hkW4ED7XLNNdtWergHUDFNrQcHtm2E+VtXbXkOc2+jMav6GD/dRcpKMojfxBkt8Q=="
|
|
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-C2rHRtAAjptj5jPNeuX4Rl82AcngDvGvyyM1YsZCwmw= sha384-0HO2W7Q51LIlCiWp5ylOc++tYY8b4KHBgo/ILwJS7AFRrGxQfN2jPdLFhwUV+Z+w sha512-L1LfYpZj9WKUr15+Yt4eR8j7OoWxj+LsKxYDSc48uKiZvhYMvG9KCLfRRV4fa1gEBOwFh6471U63Ftuys9KB/Q==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "C2rHRtAAjptj5jPNeuX4Rl82AcngDvGvyyM1YsZCwmw=",
|
|
21
|
+
"sha384": "0HO2W7Q51LIlCiWp5ylOc++tYY8b4KHBgo/ILwJS7AFRrGxQfN2jPdLFhwUV+Z+w",
|
|
22
|
+
"sha512": "L1LfYpZj9WKUr15+Yt4eR8j7OoWxj+LsKxYDSc48uKiZvhYMvG9KCLfRRV4fa1gEBOwFh6471U63Ftuys9KB/Q=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.15-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.15-nightly.2308-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -1203,7 +1203,7 @@ function newId(maxLength) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
var _objDefineProperty = ObjDefineProperty;
|
|
1206
|
-
var version = "2.8.15-nightly.
|
|
1206
|
+
var version = "2.8.15-nightly.2308-01";
|
|
1207
1207
|
var instanceName = "." + newId(6);
|
|
1208
1208
|
var _dataUid = 0;
|
|
1209
1209
|
function _createAccessor(target, prop, value) {
|
|
@@ -1901,10 +1901,10 @@ var _DYN_PROBLEM_GROUP = "problemGroup";
|
|
|
1901
1901
|
var _DYN_IS_MANUAL = "isManual";
|
|
1902
1902
|
var _DYN__CREATE_FROM_INTERFA1 = "CreateFromInterface";
|
|
1903
1903
|
var _DYN_ASSEMBLY = "assembly";
|
|
1904
|
+
var _DYN_FILE_NAME = "fileName";
|
|
1904
1905
|
var _DYN_HAS_FULL_STACK = "hasFullStack";
|
|
1905
1906
|
var _DYN_LEVEL = "level";
|
|
1906
1907
|
var _DYN_METHOD = "method";
|
|
1907
|
-
var _DYN_FILE_NAME = "fileName";
|
|
1908
1908
|
var _DYN_LINE = "line";
|
|
1909
1909
|
var _DYN_DURATION = "duration";
|
|
1910
1910
|
var _DYN_RECEIVED_RESPONSE = "receivedResponse";
|
|
@@ -1976,6 +1976,7 @@ var DistributedTracingModes = createEnumStyle({
|
|
|
1976
1976
|
|
|
1977
1977
|
var _canUseLocalStorage = undefined;
|
|
1978
1978
|
var _canUseSessionStorage = undefined;
|
|
1979
|
+
var _storagePrefix = "";
|
|
1979
1980
|
function _getLocalStorageObject() {
|
|
1980
1981
|
if (utlCanUseLocalStorage()) {
|
|
1981
1982
|
return _getVerifiedStorageObject(StorageType.LocalStorage);
|
|
@@ -1989,9 +1990,10 @@ function _getVerifiedStorageObject(storageType) {
|
|
|
1989
1990
|
}
|
|
1990
1991
|
var uid = (new Date)[_DYN_TO_STRING ]();
|
|
1991
1992
|
var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
storage
|
|
1993
|
+
var name_1 = _storagePrefix + uid;
|
|
1994
|
+
storage.setItem(name_1, uid);
|
|
1995
|
+
var fail = storage.getItem(name_1) !== uid;
|
|
1996
|
+
storage[_DYN_REMOVE_ITEM ](name_1);
|
|
1995
1997
|
if (!fail) {
|
|
1996
1998
|
return storage;
|
|
1997
1999
|
}
|
|
@@ -2010,6 +2012,9 @@ function utlDisableStorage() {
|
|
|
2010
2012
|
_canUseLocalStorage = false;
|
|
2011
2013
|
_canUseSessionStorage = false;
|
|
2012
2014
|
}
|
|
2015
|
+
function utlSetStoragePrefix(storagePrefix) {
|
|
2016
|
+
_storagePrefix = storagePrefix || "";
|
|
2017
|
+
}
|
|
2013
2018
|
function utlEnableStorage() {
|
|
2014
2019
|
_canUseLocalStorage = utlCanUseLocalStorage(true);
|
|
2015
2020
|
_canUseSessionStorage = utlCanUseSessionStorage(true);
|
|
@@ -3207,7 +3212,10 @@ var _ExceptionDetails = /** @class */ (function () {
|
|
|
3207
3212
|
var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);
|
|
3208
3213
|
_self[_DYN_PARSED_STACK ] = _parseStack(stack);
|
|
3209
3214
|
if (isArray(_self[_DYN_PARSED_STACK ])) {
|
|
3210
|
-
arrMap(_self[_DYN_PARSED_STACK ], function (frame) {
|
|
3215
|
+
arrMap(_self[_DYN_PARSED_STACK ], function (frame) {
|
|
3216
|
+
frame[_DYN_ASSEMBLY ] = dataSanitizeString(logger, frame[_DYN_ASSEMBLY ]);
|
|
3217
|
+
frame[_DYN_FILE_NAME ] = dataSanitizeString(logger, frame[_DYN_FILE_NAME ]);
|
|
3218
|
+
});
|
|
3211
3219
|
}
|
|
3212
3220
|
_self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
|
|
3213
3221
|
_self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack[_DYN_LENGTH ] > 0;
|
|
@@ -3734,6 +3742,7 @@ exports.utlRemoveSessionStorage = utlRemoveSessionStorage;
|
|
|
3734
3742
|
exports.utlRemoveStorage = utlRemoveStorage;
|
|
3735
3743
|
exports.utlSetLocalStorage = utlSetLocalStorage;
|
|
3736
3744
|
exports.utlSetSessionStorage = utlSetSessionStorage;
|
|
3745
|
+
exports.utlSetStoragePrefix = utlSetStoragePrefix;
|
|
3737
3746
|
|
|
3738
3747
|
}));
|
|
3739
3748
|
//# sourceMappingURL=applicationinsights-common.js.map
|