@microsoft/applicationinsights-common 2.8.0-nightly.2204-04 → 2.8.0-nightly.2204-05
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 +268 -352
- 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 +15 -6
- package/dist/applicationinsights-common.api.md +9 -8
- package/dist/applicationinsights-common.d.ts +10 -9
- package/dist/applicationinsights-common.js +268 -352
- 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 +10 -9
- 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/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 +8 -8
- 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 +9 -9
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +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 +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 +2 -2
- package/src/StorageHelperFuncs.ts +7 -7
- package/src/Telemetry/Common/DataSanitizer.ts +10 -10
- package/src/Telemetry/PageViewPerformance.ts +1 -1
- package/types/Enums.d.ts +4 -4
- package/types/Telemetry/Common/DataSanitizer.d.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 2.8.0-nightly.2204-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 2.8.0-nightly.2204-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* ---------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
|
|
17
|
+
import { EnumValue } from '@microsoft/applicationinsights-core-js';
|
|
16
18
|
import { IChannelControls } from '@microsoft/applicationinsights-core-js';
|
|
17
19
|
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
18
20
|
import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
19
21
|
import { ICookieMgrConfig } from '@microsoft/applicationinsights-core-js';
|
|
20
22
|
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
21
23
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
22
|
-
import { _InternalMessageId } from '@microsoft/applicationinsights-core-js';
|
|
23
24
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
24
25
|
import { isBeaconsSupported as isBeaconApiSupported } from '@microsoft/applicationinsights-core-js';
|
|
25
26
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
@@ -155,7 +156,7 @@ export declare function dataSanitizeException(logger: IDiagnosticLogger, excepti
|
|
|
155
156
|
|
|
156
157
|
export declare function dataSanitizeId(logger: IDiagnosticLogger, id: string): string;
|
|
157
158
|
|
|
158
|
-
export declare function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId:
|
|
159
|
+
export declare function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId): any;
|
|
159
160
|
|
|
160
161
|
export declare function dataSanitizeKey(logger: IDiagnosticLogger, name: any): any;
|
|
161
162
|
|
|
@@ -227,11 +228,11 @@ export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio
|
|
|
227
228
|
*/
|
|
228
229
|
export declare const DisabledPropertyName: string;
|
|
229
230
|
|
|
230
|
-
export declare const DistributedTracingModes: {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
231
|
+
export declare const DistributedTracingModes: EnumValue< {
|
|
232
|
+
AI: number;
|
|
233
|
+
AI_AND_W3C: number;
|
|
234
|
+
W3C: number;
|
|
235
|
+
}>;
|
|
235
236
|
|
|
236
237
|
export declare type DistributedTracingModes = number | eDistributedTracingModes;
|
|
237
238
|
|
|
@@ -1144,7 +1145,7 @@ export declare interface IDataSanitizer {
|
|
|
1144
1145
|
sanitizeProperties: (logger: IDiagnosticLogger, properties: any) => any;
|
|
1145
1146
|
sanitizeMeasurements: (logger: IDiagnosticLogger, measurements: any) => any;
|
|
1146
1147
|
sanitizeId: (logger: IDiagnosticLogger, id: string) => string;
|
|
1147
|
-
sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId:
|
|
1148
|
+
sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId) => any;
|
|
1148
1149
|
padNumber: (num: number) => string;
|
|
1149
1150
|
/**
|
|
1150
1151
|
* helper method to trim strings (IE8 does not implement String.prototype.trim)
|
package/dist-esm/Constants.js
CHANGED
package/dist-esm/Enums.js
CHANGED
package/dist-esm/HelperFuncs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { ContextTagKeys } from "./Contracts/ContextTagKeys";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
import { dumpObj, getExceptionName, getGlobal, getGlobalInst, isNullOrUndefined, objForEachKey,
|
|
7
|
+
import { dumpObj, getExceptionName, getGlobal, getGlobalInst, isNullOrUndefined, objForEachKey, _throwInternal } from "@microsoft/applicationinsights-core-js";
|
|
8
8
|
import { StorageType } from "./Enums";
|
|
9
9
|
var _canUseLocalStorage = undefined;
|
|
10
10
|
var _canUseSessionStorage = undefined;
|
|
@@ -86,7 +86,7 @@ export function utlGetLocalStorage(logger, name) {
|
|
|
86
86
|
}
|
|
87
87
|
catch (e) {
|
|
88
88
|
_canUseLocalStorage = false;
|
|
89
|
-
_throwInternal(logger, 2 /* WARNING */,
|
|
89
|
+
_throwInternal(logger, 2 /* WARNING */, 1 /* BrowserCannotReadLocalStorage */, "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
return null;
|
|
@@ -100,7 +100,7 @@ export function utlSetLocalStorage(logger, name, data) {
|
|
|
100
100
|
}
|
|
101
101
|
catch (e) {
|
|
102
102
|
_canUseLocalStorage = false;
|
|
103
|
-
_throwInternal(logger, 2 /* WARNING */,
|
|
103
|
+
_throwInternal(logger, 2 /* WARNING */, 3 /* BrowserCannotWriteLocalStorage */, "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
return false;
|
|
@@ -114,7 +114,7 @@ export function utlRemoveStorage(logger, name) {
|
|
|
114
114
|
}
|
|
115
115
|
catch (e) {
|
|
116
116
|
_canUseLocalStorage = false;
|
|
117
|
-
_throwInternal(logger, 2 /* WARNING */,
|
|
117
|
+
_throwInternal(logger, 2 /* WARNING */, 5 /* BrowserFailedRemovalFromLocalStorage */, "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return false;
|
|
@@ -142,7 +142,7 @@ export function utlGetSessionStorage(logger, name) {
|
|
|
142
142
|
}
|
|
143
143
|
catch (e) {
|
|
144
144
|
_canUseSessionStorage = false;
|
|
145
|
-
_throwInternal(logger, 2 /* WARNING */,
|
|
145
|
+
_throwInternal(logger, 2 /* WARNING */, 2 /* BrowserCannotReadSessionStorage */, "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
return null;
|
|
@@ -156,7 +156,7 @@ export function utlSetSessionStorage(logger, name, data) {
|
|
|
156
156
|
}
|
|
157
157
|
catch (e) {
|
|
158
158
|
_canUseSessionStorage = false;
|
|
159
|
-
_throwInternal(logger, 2 /* WARNING */,
|
|
159
|
+
_throwInternal(logger, 2 /* WARNING */, 4 /* BrowserCannotWriteSessionStorage */, "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
return false;
|
|
@@ -170,7 +170,7 @@ export function utlRemoveSessionStorage(logger, name) {
|
|
|
170
170
|
}
|
|
171
171
|
catch (e) {
|
|
172
172
|
_canUseSessionStorage = false;
|
|
173
|
-
_throwInternal(logger, 2 /* WARNING */,
|
|
173
|
+
_throwInternal(logger, 2 /* WARNING */, 6 /* BrowserFailedRemovalFromSessionStorage */, "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
return false;
|