@microsoft/applicationinsights-common 3.0.0-beta.2208-03 → 3.0.0-beta.2208-16
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 +7 -0
- package/browser/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +698 -1422
- 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 +1785 -3953
- package/dist/applicationinsights-common.api.md +13 -137
- package/dist/applicationinsights-common.d.ts +23 -278
- package/dist/applicationinsights-common.js +698 -1422
- 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 +23 -278
- 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 +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 +6 -32
- 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 +79 -133
- package/dist-esm/Util.js.map +1 -1
- package/dist-esm/__DynamicConstants.js +4 -8
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-common.js +3 -3
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +5 -4
- package/src/Telemetry/Common/DataSanitizer.ts +5 -95
- package/src/Util.ts +79 -395
- package/src/__DynamicConstants.ts +3 -7
- package/src/applicationinsights-common.ts +3 -4
- package/tsconfig.json +1 -1
- package/types/Telemetry/Common/DataSanitizer.d.ts +0 -50
- package/types/Util.d.ts +19 -212
- package/types/__DynamicConstants.d.ts +0 -4
- package/types/applicationinsights-common.d.ts +2 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.0.0-beta.2208-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -82,7 +82,28 @@ export declare class ContextTagKeys extends ContextTagKeys_base {
|
|
|
82
82
|
|
|
83
83
|
declare const ContextTagKeys_base: new () => IContextTagKeys;
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers.
|
|
87
|
+
* Headers are always included if the current domain matches the request domain. If they do not match (CORS),
|
|
88
|
+
* they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included.
|
|
89
|
+
* Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must
|
|
90
|
+
* manually supply domains to include correlation headers on. Else, no headers will be included at all.
|
|
91
|
+
*/
|
|
92
|
+
export declare function correlationIdCanIncludeCorrelationHeader(config: ICorrelationConfig, requestUrl: string, currentHost?: string): boolean;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Combines target appId and target role name from response header.
|
|
96
|
+
*/
|
|
97
|
+
export declare function correlationIdGetCorrelationContext(responseHeader: string): string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Gets key from correlation response header
|
|
101
|
+
*/
|
|
102
|
+
export declare function correlationIdGetCorrelationContextValue(responseHeader: string, key: string): string;
|
|
103
|
+
|
|
104
|
+
export declare function correlationIdGetPrefix(): string;
|
|
105
|
+
|
|
106
|
+
export declare function correlationIdSetPrefix(prefix: string): void;
|
|
86
107
|
|
|
87
108
|
/**
|
|
88
109
|
* Creates a IDistributedTraceContext from an optional telemetryTrace
|
|
@@ -202,11 +223,6 @@ export declare function dataSanitizeMessage(logger: IDiagnosticLogger, message:
|
|
|
202
223
|
|
|
203
224
|
export declare function dataSanitizeProperties(logger: IDiagnosticLogger, properties: any): any;
|
|
204
225
|
|
|
205
|
-
/**
|
|
206
|
-
* Provides the DataSanitizer functions within the previous namespace.
|
|
207
|
-
*/
|
|
208
|
-
export declare const DataSanitizer: IDataSanitizer;
|
|
209
|
-
|
|
210
226
|
export declare const enum DataSanitizerValues {
|
|
211
227
|
/**
|
|
212
228
|
* Max length allowed for custom names.
|
|
@@ -242,11 +258,6 @@ export declare function dataSanitizeString(logger: IDiagnosticLogger, value: any
|
|
|
242
258
|
|
|
243
259
|
export declare function dataSanitizeUrl(logger: IDiagnosticLogger, url: any): any;
|
|
244
260
|
|
|
245
|
-
/**
|
|
246
|
-
* A utility class that helps getting time related parameters
|
|
247
|
-
*/
|
|
248
|
-
export declare const DateTimeUtils: IDateTimeUtils;
|
|
249
|
-
|
|
250
261
|
export declare function dateTimeUtilsDuration(start: number, end: number): number;
|
|
251
262
|
|
|
252
263
|
export declare function dateTimeUtilsNow(): number;
|
|
@@ -270,14 +281,6 @@ export declare type DistributedTracingModes = number | eDistributedTracingModes;
|
|
|
270
281
|
|
|
271
282
|
export declare function dsPadNumber(num: number): string;
|
|
272
283
|
|
|
273
|
-
declare const _DYN_SANITIZE_EXCEPTION = "sanitizeException";
|
|
274
|
-
|
|
275
|
-
declare const _DYN_SANITIZE_KEY_AND_ADD2 = "sanitizeKeyAndAddUniqueness";
|
|
276
|
-
|
|
277
|
-
declare const _DYN_SANITIZE_MEASUREMENT3 = "sanitizeMeasurements";
|
|
278
|
-
|
|
279
|
-
declare const _DYN_SANITIZE_PROPERTIES = "sanitizeProperties";
|
|
280
|
-
|
|
281
284
|
export declare const enum eDistributedTracingModes {
|
|
282
285
|
/**
|
|
283
286
|
* (Default) Send Application Insights correlation headers
|
|
@@ -1119,26 +1122,6 @@ export declare interface ICorrelationConfig {
|
|
|
1119
1122
|
addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
|
|
1120
1123
|
}
|
|
1121
1124
|
|
|
1122
|
-
export declare interface ICorrelationIdHelper {
|
|
1123
|
-
correlationIdPrefix: string;
|
|
1124
|
-
/**
|
|
1125
|
-
* Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers.
|
|
1126
|
-
* Headers are always included if the current domain matches the request domain. If they do not match (CORS),
|
|
1127
|
-
* they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included.
|
|
1128
|
-
* Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must
|
|
1129
|
-
* manually supply domains to include correlation headers on. Else, no headers will be included at all.
|
|
1130
|
-
*/
|
|
1131
|
-
canIncludeCorrelationHeader(config: ICorrelationConfig, requestUrl: string, currentHost?: string): boolean;
|
|
1132
|
-
/**
|
|
1133
|
-
* Combines target appId and target role name from response header.
|
|
1134
|
-
*/
|
|
1135
|
-
getCorrelationContext(responseHeader: string): string | undefined;
|
|
1136
|
-
/**
|
|
1137
|
-
* Gets key from correlation response header
|
|
1138
|
-
*/
|
|
1139
|
-
getCorrelationContextValue(responseHeader: string, key: string): string | undefined;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
1125
|
/**
|
|
1143
1126
|
* Metric data single measurement.
|
|
1144
1127
|
*/
|
|
@@ -1173,63 +1156,6 @@ declare interface IDataPoint {
|
|
|
1173
1156
|
stdDev: number;
|
|
1174
1157
|
}
|
|
1175
1158
|
|
|
1176
|
-
export declare interface IDataSanitizer {
|
|
1177
|
-
/**
|
|
1178
|
-
* Max length allowed for custom names.
|
|
1179
|
-
*/
|
|
1180
|
-
MAX_NAME_LENGTH: number;
|
|
1181
|
-
/**
|
|
1182
|
-
* Max length allowed for Id field in page views.
|
|
1183
|
-
*/
|
|
1184
|
-
MAX_ID_LENGTH: number;
|
|
1185
|
-
/**
|
|
1186
|
-
* Max length allowed for custom values.
|
|
1187
|
-
*/
|
|
1188
|
-
MAX_PROPERTY_LENGTH: number;
|
|
1189
|
-
/**
|
|
1190
|
-
* Max length allowed for names
|
|
1191
|
-
*/
|
|
1192
|
-
MAX_STRING_LENGTH: number;
|
|
1193
|
-
/**
|
|
1194
|
-
* Max length allowed for url.
|
|
1195
|
-
*/
|
|
1196
|
-
MAX_URL_LENGTH: number;
|
|
1197
|
-
/**
|
|
1198
|
-
* Max length allowed for messages.
|
|
1199
|
-
*/
|
|
1200
|
-
MAX_MESSAGE_LENGTH: number;
|
|
1201
|
-
/**
|
|
1202
|
-
* Max length allowed for exceptions.
|
|
1203
|
-
*/
|
|
1204
|
-
MAX_EXCEPTION_LENGTH: number;
|
|
1205
|
-
[_DYN_SANITIZE_KEY_AND_ADD2]: (logger: IDiagnosticLogger, key: any, map: any) => string;
|
|
1206
|
-
sanitizeKey: (logger: IDiagnosticLogger, name: any) => string;
|
|
1207
|
-
sanitizeString: (logger: IDiagnosticLogger, value: any, maxLength?: number) => string;
|
|
1208
|
-
sanitizeUrl: (logger: IDiagnosticLogger, url: any) => string;
|
|
1209
|
-
sanitizeMessage: (logger: IDiagnosticLogger, message: any) => string;
|
|
1210
|
-
[_DYN_SANITIZE_EXCEPTION]: (logger: IDiagnosticLogger, exception: any) => string;
|
|
1211
|
-
[_DYN_SANITIZE_PROPERTIES]: (logger: IDiagnosticLogger, properties: any) => any;
|
|
1212
|
-
[_DYN_SANITIZE_MEASUREMENT3]: (logger: IDiagnosticLogger, measurements: any) => any;
|
|
1213
|
-
sanitizeId: (logger: IDiagnosticLogger, id: string) => string;
|
|
1214
|
-
sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId) => any;
|
|
1215
|
-
padNumber: (num: number) => string;
|
|
1216
|
-
/**
|
|
1217
|
-
* helper method to trim strings (IE8 does not implement String.prototype.trim)
|
|
1218
|
-
*/
|
|
1219
|
-
trim: (str: any) => string;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
export declare interface IDateTimeUtils {
|
|
1223
|
-
/**
|
|
1224
|
-
* Get the number of milliseconds since 1970/01/01 in local timezone
|
|
1225
|
-
*/
|
|
1226
|
-
Now: () => number;
|
|
1227
|
-
/**
|
|
1228
|
-
* Gets duration between two timestamps
|
|
1229
|
-
*/
|
|
1230
|
-
GetDuration: (start: number, end: number) => number;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
1159
|
/**
|
|
1234
1160
|
* DependencyTelemetry telemetry interface
|
|
1235
1161
|
*/
|
|
@@ -2047,18 +1973,6 @@ export declare interface ITraceTelemetry extends IPartC {
|
|
|
2047
1973
|
iKey?: string;
|
|
2048
1974
|
}
|
|
2049
1975
|
|
|
2050
|
-
export declare interface IUrlHelper {
|
|
2051
|
-
parseUrl: (url: string) => HTMLAnchorElement;
|
|
2052
|
-
getAbsoluteUrl: (url: string) => string;
|
|
2053
|
-
getPathName: (url: string) => string;
|
|
2054
|
-
getCompleteUrl: (method: string, absoluteUrl: string) => string;
|
|
2055
|
-
parseHost: (url: string, inclPort?: boolean) => string;
|
|
2056
|
-
/**
|
|
2057
|
-
* Get the full host from the url, optionally including the port
|
|
2058
|
-
*/
|
|
2059
|
-
parseFullHost: (url: string, inclPort?: boolean) => string;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
1976
|
export declare interface IUser {
|
|
2063
1977
|
/**
|
|
2064
1978
|
* The telemetry configuration.
|
|
@@ -2100,171 +2014,6 @@ export declare interface IUserContext extends IUser {
|
|
|
2100
2014
|
update(userId?: string): void;
|
|
2101
2015
|
}
|
|
2102
2016
|
|
|
2103
|
-
export declare interface IUtil {
|
|
2104
|
-
NotSpecified: string;
|
|
2105
|
-
createDomEvent: (eventName: string) => Event;
|
|
2106
|
-
disableStorage: () => void;
|
|
2107
|
-
/**
|
|
2108
|
-
* Checks if endpoint URL is application insights internal injestion service URL.
|
|
2109
|
-
*
|
|
2110
|
-
* @param endpointUrl Endpoint URL to check.
|
|
2111
|
-
* @returns {boolean} True if if endpoint URL is application insights internal injestion service URL.
|
|
2112
|
-
*/
|
|
2113
|
-
isInternalApplicationInsightsEndpoint: (endpointUrl: string) => boolean;
|
|
2114
|
-
/**
|
|
2115
|
-
* Check if the browser supports local storage.
|
|
2116
|
-
*
|
|
2117
|
-
* @returns {boolean} True if local storage is supported.
|
|
2118
|
-
*/
|
|
2119
|
-
canUseLocalStorage: () => boolean;
|
|
2120
|
-
/**
|
|
2121
|
-
* Get an object from the browser's local storage
|
|
2122
|
-
*
|
|
2123
|
-
* @param {string} name - the name of the object to get from storage
|
|
2124
|
-
* @returns {string} The contents of the storage object with the given name. Null if storage is not supported.
|
|
2125
|
-
*/
|
|
2126
|
-
getStorage: (logger: IDiagnosticLogger, name: string) => string;
|
|
2127
|
-
/**
|
|
2128
|
-
* Set the contents of an object in the browser's local storage
|
|
2129
|
-
*
|
|
2130
|
-
* @param {string} name - the name of the object to set in storage
|
|
2131
|
-
* @param {string} data - the contents of the object to set in storage
|
|
2132
|
-
* @returns {boolean} True if the storage object could be written.
|
|
2133
|
-
*/
|
|
2134
|
-
setStorage: (logger: IDiagnosticLogger, name: string, data: string) => boolean;
|
|
2135
|
-
/**
|
|
2136
|
-
* Remove an object from the browser's local storage
|
|
2137
|
-
*
|
|
2138
|
-
* @param {string} name - the name of the object to remove from storage
|
|
2139
|
-
* @returns {boolean} True if the storage object could be removed.
|
|
2140
|
-
*/
|
|
2141
|
-
removeStorage: (logger: IDiagnosticLogger, name: string) => boolean;
|
|
2142
|
-
/**
|
|
2143
|
-
* Check if the browser supports session storage.
|
|
2144
|
-
*
|
|
2145
|
-
* @returns {boolean} True if session storage is supported.
|
|
2146
|
-
*/
|
|
2147
|
-
canUseSessionStorage: () => boolean;
|
|
2148
|
-
/**
|
|
2149
|
-
* Gets the list of session storage keys
|
|
2150
|
-
*
|
|
2151
|
-
* @returns {string[]} List of session storage keys
|
|
2152
|
-
*/
|
|
2153
|
-
getSessionStorageKeys: () => string[];
|
|
2154
|
-
/**
|
|
2155
|
-
* Get an object from the browser's session storage
|
|
2156
|
-
*
|
|
2157
|
-
* @param {string} name - the name of the object to get from storage
|
|
2158
|
-
* @returns {string} The contents of the storage object with the given name. Null if storage is not supported.
|
|
2159
|
-
*/
|
|
2160
|
-
getSessionStorage: (logger: IDiagnosticLogger, name: string) => string;
|
|
2161
|
-
/**
|
|
2162
|
-
* Set the contents of an object in the browser's session storage
|
|
2163
|
-
*
|
|
2164
|
-
* @param {string} name - the name of the object to set in storage
|
|
2165
|
-
* @param {string} data - the contents of the object to set in storage
|
|
2166
|
-
* @returns {boolean} True if the storage object could be written.
|
|
2167
|
-
*/
|
|
2168
|
-
setSessionStorage: (logger: IDiagnosticLogger, name: string, data: string) => boolean;
|
|
2169
|
-
/**
|
|
2170
|
-
* Remove an object from the browser's session storage
|
|
2171
|
-
*
|
|
2172
|
-
* @param {string} name - the name of the object to remove from storage
|
|
2173
|
-
* @returns {boolean} True if the storage object could be removed.
|
|
2174
|
-
*/
|
|
2175
|
-
removeSessionStorage: (logger: IDiagnosticLogger, name: string) => boolean;
|
|
2176
|
-
/**
|
|
2177
|
-
* @deprecated - Use the core.getCookieMgr().disable()
|
|
2178
|
-
* Force the SDK not to store and read any data from cookies.
|
|
2179
|
-
*/
|
|
2180
|
-
disableCookies: () => void;
|
|
2181
|
-
/**
|
|
2182
|
-
* @deprecated - Use the core.getCookieMgr().isEnabled()
|
|
2183
|
-
* Helper method to tell if document.cookie object is available and whether it can be used.
|
|
2184
|
-
*/
|
|
2185
|
-
canUseCookies: (logger: IDiagnosticLogger) => any;
|
|
2186
|
-
disallowsSameSiteNone: (userAgent: string) => boolean;
|
|
2187
|
-
/**
|
|
2188
|
-
* @deprecated - Use the core.getCookieMgr().set()
|
|
2189
|
-
* helper method to set userId and sessionId cookie
|
|
2190
|
-
*/
|
|
2191
|
-
setCookie: (logger: IDiagnosticLogger, name: string, value: string, domain?: string) => void;
|
|
2192
|
-
stringToBoolOrDefault: (str: any, defaultValue?: boolean) => boolean;
|
|
2193
|
-
/**
|
|
2194
|
-
* @deprecated - Use the core.getCookieMgr().get()
|
|
2195
|
-
* helper method to access userId and sessionId cookie
|
|
2196
|
-
*/
|
|
2197
|
-
getCookie: (logger: IDiagnosticLogger, name: string) => string;
|
|
2198
|
-
/**
|
|
2199
|
-
* @deprecated - Use the core.getCookieMgr().del()
|
|
2200
|
-
* Deletes a cookie by setting it's expiration time in the past.
|
|
2201
|
-
* @param name - The name of the cookie to delete.
|
|
2202
|
-
*/
|
|
2203
|
-
deleteCookie: (logger: IDiagnosticLogger, name: string) => void;
|
|
2204
|
-
/**
|
|
2205
|
-
* helper method to trim strings (IE8 does not implement String.prototype.trim)
|
|
2206
|
-
*/
|
|
2207
|
-
trim: (str: any) => string;
|
|
2208
|
-
/**
|
|
2209
|
-
* generate random id string
|
|
2210
|
-
*/
|
|
2211
|
-
newId: () => string;
|
|
2212
|
-
/**
|
|
2213
|
-
* generate a random 32bit number (-0x80000000..0x7FFFFFFF).
|
|
2214
|
-
*/
|
|
2215
|
-
random32: () => number;
|
|
2216
|
-
/**
|
|
2217
|
-
* generate W3C trace id
|
|
2218
|
-
*/
|
|
2219
|
-
generateW3CId: () => string;
|
|
2220
|
-
/**
|
|
2221
|
-
* Check if an object is of type Array
|
|
2222
|
-
*/
|
|
2223
|
-
isArray: (obj: any) => boolean;
|
|
2224
|
-
/**
|
|
2225
|
-
* Check if an object is of type Error
|
|
2226
|
-
*/
|
|
2227
|
-
isError: (obj: any) => obj is Error;
|
|
2228
|
-
/**
|
|
2229
|
-
* Check if an object is of type Date
|
|
2230
|
-
*/
|
|
2231
|
-
isDate: (obj: any) => obj is Date;
|
|
2232
|
-
toISOStringForIE8: (date: Date) => string;
|
|
2233
|
-
/**
|
|
2234
|
-
* Gets IE version returning the document emulation mode if we are running on IE, or null otherwise
|
|
2235
|
-
*/
|
|
2236
|
-
getIEVersion: (userAgentStr?: string) => number;
|
|
2237
|
-
/**
|
|
2238
|
-
* Convert ms to c# time span format
|
|
2239
|
-
*/
|
|
2240
|
-
msToTimeSpan: (totalms: number) => string;
|
|
2241
|
-
/**
|
|
2242
|
-
* Checks if error has no meaningful data inside. Ususally such errors are received by window.onerror when error
|
|
2243
|
-
* happens in a script from other domain (cross origin, CORS).
|
|
2244
|
-
*/
|
|
2245
|
-
isCrossOriginError: (message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error) => boolean;
|
|
2246
|
-
/**
|
|
2247
|
-
* Returns string representation of an object suitable for diagnostics logging.
|
|
2248
|
-
*/
|
|
2249
|
-
dump: (object: any) => string;
|
|
2250
|
-
/**
|
|
2251
|
-
* Returns the name of object if it's an Error. Otherwise, returns empty string.
|
|
2252
|
-
*/
|
|
2253
|
-
getExceptionName: (object: any) => string;
|
|
2254
|
-
/**
|
|
2255
|
-
* Adds an event handler for the specified event to the window
|
|
2256
|
-
* @param eventName {string} - The name of the event
|
|
2257
|
-
* @param callback {any} - The callback function that needs to be executed for the given event
|
|
2258
|
-
* @return {boolean} - true if the handler was successfully added
|
|
2259
|
-
*/
|
|
2260
|
-
addEventHandler: (obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture: boolean) => boolean;
|
|
2261
|
-
/**
|
|
2262
|
-
* Tells if a browser supports a Beacon API
|
|
2263
|
-
*/
|
|
2264
|
-
IsBeaconApiSupported: () => boolean;
|
|
2265
|
-
getExtension: (extensions: IPlugin[], identifier: string) => IPlugin | null;
|
|
2266
|
-
}
|
|
2267
|
-
|
|
2268
2017
|
export declare interface IWeb {
|
|
2269
2018
|
/**
|
|
2270
2019
|
* Browser name, set at ingestion
|
|
@@ -2631,16 +2380,12 @@ export declare function urlGetCompleteUrl(method: string, absoluteUrl: string):
|
|
|
2631
2380
|
|
|
2632
2381
|
export declare function urlGetPathName(url: string): string;
|
|
2633
2382
|
|
|
2634
|
-
export declare const UrlHelper: IUrlHelper;
|
|
2635
|
-
|
|
2636
2383
|
export declare function urlParseFullHost(url: string, inclPort?: boolean): string;
|
|
2637
2384
|
|
|
2638
2385
|
export declare function urlParseHost(url: string, inclPort?: boolean): string;
|
|
2639
2386
|
|
|
2640
2387
|
export declare function urlParseUrl(url: string): HTMLAnchorElement;
|
|
2641
2388
|
|
|
2642
|
-
export declare const Util: IUtil;
|
|
2643
|
-
|
|
2644
2389
|
/**
|
|
2645
2390
|
* Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override
|
|
2646
2391
|
* any previous disable calls.
|
package/dist-esm/Constants.js
CHANGED
package/dist-esm/Enums.js
CHANGED
package/dist-esm/HelperFuncs.js
CHANGED