@microsoft/applicationinsights-common 3.0.3-nightly3.2306-01 → 3.0.3-nightly3.2307-24
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/es5/applicationinsights-common.cjs.js +162 -104
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +164 -106
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +164 -106
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +162 -104
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +2 -2
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/ConnectionStringParser.js +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ISessionManager.js +8 -0
- package/dist-es5/Interfaces/Context/ISessionManager.js.map +1 -0
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +9 -4
- package/dist-es5/StorageHelperFuncs.js.map +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +1 -1
- package/dist-es5/ThrottleMgr.js +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-common.js +2 -2
- package/dist-es5/applicationinsights-common.js.map +1 -1
- package/package.json +5 -4
- package/types/applicationinsights-common.d.ts +29 -24
- package/types/applicationinsights-common.namespaced.d.ts +40 -35
package/dist-es5/ThrottleMgr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 3.0.3-nightly3.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.0.3-nightly3.2307-24
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { _throwInternal, arrForEach, arrIndexOf, createDynamicConfig, createUnloadHookContainer, isNotNullOrUndefined, isNullOrUndefined, onConfigChange, randomValue, safeGetLogger, strTrim } from "@microsoft/applicationinsights-core-js";
|
package/dist-es5/Util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 3.0.3-nightly3.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.0.3-nightly3.2307-24
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -28,7 +28,7 @@ export { DistributedTracingModes } from "./Enums";
|
|
|
28
28
|
export { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from "./HelperFuncs";
|
|
29
29
|
export { isBeaconsSupported as isBeaconApiSupported, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "@microsoft/applicationinsights-core-js";
|
|
30
30
|
export { createDomEvent } from "./DomHelperFuncs";
|
|
31
|
-
export { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage } from "./StorageHelperFuncs";
|
|
31
|
+
export { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage, utlSetStoragePrefix } from "./StorageHelperFuncs";
|
|
32
32
|
export { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from "./UrlHelperFuncs";
|
|
33
33
|
export var PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
34
34
|
export var BreezeChannelIdentifier = "AppInsightsChannelPlugin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationinsights-common.js.map","sources":["applicationinsights-common.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the\r\nexport { correlationIdSetPrefix, correlationIdGetPrefix, correlationIdCanIncludeCorrelationHeader, correlationIdGetCorrelationContext, correlationIdGetCorrelationContextValue, dateTimeUtilsNow, dateTimeUtilsDuration, isInternalApplicationInsightsEndpoint, createDistributedTraceContextFromTrace } from \"./Util\";\r\nexport { ThrottleMgr } from \"./ThrottleMgr\";\r\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\r\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\r\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from \"./Constants\";\r\nexport { Envelope } from \"./Telemetry/Common/Envelope\";\r\nexport { Event } from \"./Telemetry/Event\";\r\nexport { Exception } from \"./Telemetry/Exception\";\r\nexport { Metric } from \"./Telemetry/Metric\";\r\nexport { PageView } from \"./Telemetry/PageView\";\r\nexport { RemoteDependencyData } from \"./Telemetry/RemoteDependencyData\";\r\nexport { Trace } from \"./Telemetry/Trace\";\r\nexport { PageViewPerformance } from \"./Telemetry/PageViewPerformance\";\r\nexport { Data } from \"./Telemetry/Common/Data\";\r\nexport { SeverityLevel } from \"./Interfaces/Contracts/SeverityLevel\";\r\nexport { ConfigurationManager } from \"./Interfaces/IConfig\";\r\nexport { ContextTagKeys } from \"./Interfaces/Contracts/ContextTagKeys\";\r\nexport { dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from \"./Telemetry/Common/DataSanitizer\";\r\nexport { TelemetryItemCreator, createTelemetryItem } from \"./TelemetryItemCreator\";\r\nexport { CtxTagKeys, Extensions } from \"./Interfaces/PartAExtensions\";\r\nexport { DistributedTracingModes } from \"./Enums\";\r\nexport { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from \"./HelperFuncs\";\r\nexport { isBeaconsSupported as isBeaconApiSupported, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\r\nexport { createDomEvent } from \"./DomHelperFuncs\";\r\nexport { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage } from \"./StorageHelperFuncs\";\r\nexport { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from \"./UrlHelperFuncs\";\r\nexport var PropertiesPluginIdentifier = \"AppInsightsPropertiesPlugin\";\r\nexport var BreezeChannelIdentifier = \"AppInsightsChannelPlugin\";\r\nexport var AnalyticsPluginIdentifier = \"ApplicationInsightsAnalytics\";\r\n//# sourceMappingURL=applicationinsights-common.js.map"],"names":[],"mappings":";;;;AAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"applicationinsights-common.js.map","sources":["applicationinsights-common.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the\r\nexport { correlationIdSetPrefix, correlationIdGetPrefix, correlationIdCanIncludeCorrelationHeader, correlationIdGetCorrelationContext, correlationIdGetCorrelationContextValue, dateTimeUtilsNow, dateTimeUtilsDuration, isInternalApplicationInsightsEndpoint, createDistributedTraceContextFromTrace } from \"./Util\";\r\nexport { ThrottleMgr } from \"./ThrottleMgr\";\r\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\r\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\r\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from \"./Constants\";\r\nexport { Envelope } from \"./Telemetry/Common/Envelope\";\r\nexport { Event } from \"./Telemetry/Event\";\r\nexport { Exception } from \"./Telemetry/Exception\";\r\nexport { Metric } from \"./Telemetry/Metric\";\r\nexport { PageView } from \"./Telemetry/PageView\";\r\nexport { RemoteDependencyData } from \"./Telemetry/RemoteDependencyData\";\r\nexport { Trace } from \"./Telemetry/Trace\";\r\nexport { PageViewPerformance } from \"./Telemetry/PageViewPerformance\";\r\nexport { Data } from \"./Telemetry/Common/Data\";\r\nexport { SeverityLevel } from \"./Interfaces/Contracts/SeverityLevel\";\r\nexport { ConfigurationManager } from \"./Interfaces/IConfig\";\r\nexport { ContextTagKeys } from \"./Interfaces/Contracts/ContextTagKeys\";\r\nexport { dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from \"./Telemetry/Common/DataSanitizer\";\r\nexport { TelemetryItemCreator, createTelemetryItem } from \"./TelemetryItemCreator\";\r\nexport { CtxTagKeys, Extensions } from \"./Interfaces/PartAExtensions\";\r\nexport { DistributedTracingModes } from \"./Enums\";\r\nexport { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from \"./HelperFuncs\";\r\nexport { isBeaconsSupported as isBeaconApiSupported, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\r\nexport { createDomEvent } from \"./DomHelperFuncs\";\r\nexport { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage, utlSetStoragePrefix } from \"./StorageHelperFuncs\";\r\nexport { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from \"./UrlHelperFuncs\";\r\nexport var PropertiesPluginIdentifier = \"AppInsightsPropertiesPlugin\";\r\nexport var BreezeChannelIdentifier = \"AppInsightsChannelPlugin\";\r\nexport var AnalyticsPluginIdentifier = \"ApplicationInsightsAnalytics\";\r\n//# sourceMappingURL=applicationinsights-common.js.map"],"names":[],"mappings":";;;;AAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "3.0.3-nightly3.
|
|
3
|
+
"version": "3.0.3-nightly3.2307-24",
|
|
4
4
|
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
+
"clean": "git clean -xdf",
|
|
16
17
|
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
18
|
"build:esm": "grunt common",
|
|
18
19
|
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"@microsoft/ai-test-framework": "0.0.1",
|
|
31
32
|
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
32
33
|
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
33
|
-
"@microsoft/api-extractor": "^7.18.
|
|
34
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
34
35
|
"grunt": "^1.5.3",
|
|
35
36
|
"grunt-cli": "^1.4.3",
|
|
36
37
|
"grunt-contrib-qunit": "^6.2.1",
|
|
@@ -52,9 +53,9 @@
|
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
55
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
55
|
-
"@microsoft/applicationinsights-core-js": "3.0.3-nightly3.
|
|
56
|
+
"@microsoft/applicationinsights-core-js": "3.0.3-nightly3.2307-24",
|
|
56
57
|
"@microsoft/dynamicproto-js": "^2.0.2",
|
|
57
|
-
"@nevware21/ts-utils": ">= 0.9.
|
|
58
|
+
"@nevware21/ts-utils": ">= 0.9.6 < 2.x"
|
|
58
59
|
},
|
|
59
60
|
"license": "MIT",
|
|
60
61
|
"publishConfig": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.0.3-nightly3.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.0.3-nightly3.2307-24
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -132,7 +132,6 @@ export declare function createTelemetryItem<T>(item: T, baseType: string, envelo
|
|
|
132
132
|
}): ITelemetryItem;
|
|
133
133
|
|
|
134
134
|
export { createTraceParent }
|
|
135
|
-
|
|
136
135
|
export declare let CtxTagKeys: ContextTagKeys;
|
|
137
136
|
|
|
138
137
|
export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
|
|
@@ -471,7 +470,6 @@ export declare const enum FieldType {
|
|
|
471
470
|
}
|
|
472
471
|
|
|
473
472
|
export { findW3cTraceParent }
|
|
474
|
-
|
|
475
473
|
/**
|
|
476
474
|
* Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
|
|
477
475
|
* @param errorObj - The supplied errorObj
|
|
@@ -479,7 +477,6 @@ export { findW3cTraceParent }
|
|
|
479
477
|
declare function _formatErrorCode(errorObj: any): any;
|
|
480
478
|
|
|
481
479
|
export { formatTraceParent }
|
|
482
|
-
|
|
483
480
|
export declare function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
|
|
484
481
|
|
|
485
482
|
export declare const HttpMethod = "http.method";
|
|
@@ -708,19 +705,6 @@ export declare interface IConfig {
|
|
|
708
705
|
* Default value of {@link #disableFlushOnBeforeUnload}. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
709
706
|
*/
|
|
710
707
|
disableFlushOnUnload?: boolean;
|
|
711
|
-
/**
|
|
712
|
-
* [Optional] An array of the page unload events that you would like to be ignored, special note there must be at least one valid unload
|
|
713
|
-
* event hooked, if you list all or the runtime environment only supports a listed "disabled" event it will still be hooked if required by the SDK.
|
|
714
|
-
* (Some page unload functionality may be disabled via disableFlushOnBeforeUnload or disableFlushOnUnload config entries)
|
|
715
|
-
* Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
|
|
716
|
-
*/
|
|
717
|
-
disablePageUnloadEvents?: string[];
|
|
718
|
-
/**
|
|
719
|
-
* [Optional] An array of page show events that you would like to be ignored, special note there must be at lease one valid show event
|
|
720
|
-
* hooked, if you list all or the runtime environment only supports a listed (disabled) event it will STILL be hooked if required by the SDK.
|
|
721
|
-
* Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
|
|
722
|
-
*/
|
|
723
|
-
disablePageShowEvents?: string[];
|
|
724
708
|
/**
|
|
725
709
|
* If true, the buffer with all unsent telemetry is stored in session storage. The buffer is restored on page load. Default is true.
|
|
726
710
|
* @defaultValue true
|
|
@@ -1821,7 +1805,6 @@ export declare interface ISample {
|
|
|
1821
1805
|
}
|
|
1822
1806
|
|
|
1823
1807
|
export { isBeaconApiSupported }
|
|
1824
|
-
|
|
1825
1808
|
export declare function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
|
|
1826
1809
|
|
|
1827
1810
|
export declare interface ISerializable {
|
|
@@ -1851,10 +1834,31 @@ export declare interface ISession {
|
|
|
1851
1834
|
renewalDate?: number;
|
|
1852
1835
|
}
|
|
1853
1836
|
|
|
1837
|
+
/**
|
|
1838
|
+
* An interface that identifies the automatic session manager
|
|
1839
|
+
* @since 3.0.3
|
|
1840
|
+
*/
|
|
1841
|
+
export declare interface ISessionManager {
|
|
1842
|
+
/**
|
|
1843
|
+
* The automatic Session which has been initialized from the automatic SDK cookies and storage
|
|
1844
|
+
*/
|
|
1845
|
+
automaticSession: ISession;
|
|
1846
|
+
/**
|
|
1847
|
+
* Update the automatic session cookie if required
|
|
1848
|
+
* @returns
|
|
1849
|
+
*/
|
|
1850
|
+
update: () => void;
|
|
1851
|
+
/**
|
|
1852
|
+
* Record the current state of the automatic session and store it in our cookie string format
|
|
1853
|
+
* into the browser's local storage. This is used to restore the session data when the cookie
|
|
1854
|
+
* expires.
|
|
1855
|
+
*/
|
|
1856
|
+
backup: () => void;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1854
1859
|
export declare function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
|
|
1855
1860
|
|
|
1856
1861
|
export { isSampledFlag }
|
|
1857
|
-
|
|
1858
1862
|
declare interface IStackDetails {
|
|
1859
1863
|
src: string;
|
|
1860
1864
|
obj: string[];
|
|
@@ -1904,11 +1908,8 @@ export declare interface IStorageBuffer {
|
|
|
1904
1908
|
}
|
|
1905
1909
|
|
|
1906
1910
|
export { isValidSpanId }
|
|
1907
|
-
|
|
1908
1911
|
export { isValidTraceId }
|
|
1909
|
-
|
|
1910
1912
|
export { isValidTraceParent }
|
|
1911
|
-
|
|
1912
1913
|
export declare interface ITelemetryContext {
|
|
1913
1914
|
/**
|
|
1914
1915
|
* The object describing a component tracked by this object.
|
|
@@ -1938,6 +1939,10 @@ export declare interface ITelemetryContext {
|
|
|
1938
1939
|
* The object describing a session tracked by this object.
|
|
1939
1940
|
*/
|
|
1940
1941
|
readonly session: ISession;
|
|
1942
|
+
/**
|
|
1943
|
+
* The session manager that manages the automatic session from the cookies
|
|
1944
|
+
*/
|
|
1945
|
+
readonly sessionManager: ISessionManager;
|
|
1941
1946
|
/**
|
|
1942
1947
|
* The object describing os details tracked by this object.
|
|
1943
1948
|
*/
|
|
@@ -2096,7 +2101,6 @@ export declare interface IThrottleResult {
|
|
|
2096
2101
|
}
|
|
2097
2102
|
|
|
2098
2103
|
export { ITraceParent }
|
|
2099
|
-
|
|
2100
2104
|
export declare interface ITraceState {
|
|
2101
2105
|
}
|
|
2102
2106
|
|
|
@@ -2357,7 +2361,6 @@ export declare class PageViewPerformance implements IPageViewPerfData, ISerializ
|
|
|
2357
2361
|
export declare function parseConnectionString(connectionString?: string): ConnectionString;
|
|
2358
2362
|
|
|
2359
2363
|
export { parseTraceParent }
|
|
2360
|
-
|
|
2361
2364
|
export declare const ProcessLegacy = "ProcessLegacy";
|
|
2362
2365
|
|
|
2363
2366
|
export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
@@ -2579,4 +2582,6 @@ export declare function utlSetLocalStorage(logger: IDiagnosticLogger, name: stri
|
|
|
2579
2582
|
|
|
2580
2583
|
export declare function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
2581
2584
|
|
|
2585
|
+
export declare function utlSetStoragePrefix(storagePrefix: string): void;
|
|
2586
|
+
|
|
2582
2587
|
export { }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.0.3-nightly3.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.0.3-nightly3.2307-24
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -126,8 +126,7 @@ declare namespace ApplicationInsights {
|
|
|
126
126
|
[key: string]: any;
|
|
127
127
|
}): ITelemetryItem;
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
|
|
131
130
|
let CtxTagKeys: ContextTagKeys;
|
|
132
131
|
|
|
133
132
|
class Data<TDomain> implements AIData<TDomain>, ISerializable {
|
|
@@ -388,7 +387,7 @@ declare namespace ApplicationInsights {
|
|
|
388
387
|
*/
|
|
389
388
|
constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
|
|
390
389
|
}
|
|
391
|
-
|
|
390
|
+
const Event: typeof Event_2;
|
|
392
391
|
|
|
393
392
|
class Exception implements IExceptionData, ISerializable {
|
|
394
393
|
static envelopeType: string;
|
|
@@ -465,16 +464,14 @@ declare namespace ApplicationInsights {
|
|
|
465
464
|
Hidden = 4
|
|
466
465
|
}
|
|
467
466
|
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
|
|
470
468
|
/**
|
|
471
469
|
* Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
|
|
472
470
|
* @param errorObj - The supplied errorObj
|
|
473
471
|
*/
|
|
474
472
|
function _formatErrorCode(errorObj: any): any;
|
|
475
473
|
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
|
|
478
475
|
function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
|
|
479
476
|
|
|
480
477
|
const HttpMethod = "http.method";
|
|
@@ -703,19 +700,6 @@ declare namespace ApplicationInsights {
|
|
|
703
700
|
* Default value of {@link #disableFlushOnBeforeUnload}. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
704
701
|
*/
|
|
705
702
|
disableFlushOnUnload?: boolean;
|
|
706
|
-
/**
|
|
707
|
-
* [Optional] An array of the page unload events that you would like to be ignored, special note there must be at least one valid unload
|
|
708
|
-
* event hooked, if you list all or the runtime environment only supports a listed "disabled" event it will still be hooked if required by the SDK.
|
|
709
|
-
* (Some page unload functionality may be disabled via disableFlushOnBeforeUnload or disableFlushOnUnload config entries)
|
|
710
|
-
* Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
|
|
711
|
-
*/
|
|
712
|
-
disablePageUnloadEvents?: string[];
|
|
713
|
-
/**
|
|
714
|
-
* [Optional] An array of page show events that you would like to be ignored, special note there must be at lease one valid show event
|
|
715
|
-
* hooked, if you list all or the runtime environment only supports a listed (disabled) event it will STILL be hooked if required by the SDK.
|
|
716
|
-
* Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
|
|
717
|
-
*/
|
|
718
|
-
disablePageShowEvents?: string[];
|
|
719
703
|
/**
|
|
720
704
|
* If true, the buffer with all unsent telemetry is stored in session storage. The buffer is restored on page load. Default is true.
|
|
721
705
|
* @defaultValue true
|
|
@@ -1815,8 +1799,7 @@ declare namespace ApplicationInsights {
|
|
|
1815
1799
|
isSampledIn(envelope: ITelemetryItem): boolean;
|
|
1816
1800
|
}
|
|
1817
1801
|
|
|
1818
|
-
|
|
1819
|
-
|
|
1802
|
+
|
|
1820
1803
|
function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
|
|
1821
1804
|
|
|
1822
1805
|
interface ISerializable {
|
|
@@ -1846,10 +1829,31 @@ declare namespace ApplicationInsights {
|
|
|
1846
1829
|
renewalDate?: number;
|
|
1847
1830
|
}
|
|
1848
1831
|
|
|
1849
|
-
|
|
1832
|
+
/**
|
|
1833
|
+
* An interface that identifies the automatic session manager
|
|
1834
|
+
* @since 3.0.3
|
|
1835
|
+
*/
|
|
1836
|
+
interface ISessionManager {
|
|
1837
|
+
/**
|
|
1838
|
+
* The automatic Session which has been initialized from the automatic SDK cookies and storage
|
|
1839
|
+
*/
|
|
1840
|
+
automaticSession: ISession;
|
|
1841
|
+
/**
|
|
1842
|
+
* Update the automatic session cookie if required
|
|
1843
|
+
* @returns
|
|
1844
|
+
*/
|
|
1845
|
+
update: () => void;
|
|
1846
|
+
/**
|
|
1847
|
+
* Record the current state of the automatic session and store it in our cookie string format
|
|
1848
|
+
* into the browser's local storage. This is used to restore the session data when the cookie
|
|
1849
|
+
* expires.
|
|
1850
|
+
*/
|
|
1851
|
+
backup: () => void;
|
|
1852
|
+
}
|
|
1850
1853
|
|
|
1851
|
-
|
|
1854
|
+
function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
|
|
1852
1855
|
|
|
1856
|
+
|
|
1853
1857
|
interface IStackDetails {
|
|
1854
1858
|
src: string;
|
|
1855
1859
|
obj: string[];
|
|
@@ -1898,12 +1902,9 @@ declare namespace ApplicationInsights {
|
|
|
1898
1902
|
setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
1899
1903
|
}
|
|
1900
1904
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
export { isValidTraceParent }
|
|
1906
|
-
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
|
|
1907
1908
|
interface ITelemetryContext {
|
|
1908
1909
|
/**
|
|
1909
1910
|
* The object describing a component tracked by this object.
|
|
@@ -1933,6 +1934,10 @@ declare namespace ApplicationInsights {
|
|
|
1933
1934
|
* The object describing a session tracked by this object.
|
|
1934
1935
|
*/
|
|
1935
1936
|
readonly session: ISession;
|
|
1937
|
+
/**
|
|
1938
|
+
* The session manager that manages the automatic session from the cookies
|
|
1939
|
+
*/
|
|
1940
|
+
readonly sessionManager: ISessionManager;
|
|
1936
1941
|
/**
|
|
1937
1942
|
* The object describing os details tracked by this object.
|
|
1938
1943
|
*/
|
|
@@ -2090,8 +2095,7 @@ declare namespace ApplicationInsights {
|
|
|
2090
2095
|
throttleNum: number;
|
|
2091
2096
|
}
|
|
2092
2097
|
|
|
2093
|
-
|
|
2094
|
-
|
|
2098
|
+
|
|
2095
2099
|
interface ITraceState {
|
|
2096
2100
|
}
|
|
2097
2101
|
|
|
@@ -2351,8 +2355,7 @@ declare namespace ApplicationInsights {
|
|
|
2351
2355
|
|
|
2352
2356
|
function parseConnectionString(connectionString?: string): ConnectionString;
|
|
2353
2357
|
|
|
2354
|
-
|
|
2355
|
-
|
|
2358
|
+
|
|
2356
2359
|
const ProcessLegacy = "ProcessLegacy";
|
|
2357
2360
|
|
|
2358
2361
|
const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
@@ -2574,5 +2577,7 @@ declare namespace ApplicationInsights {
|
|
|
2574
2577
|
|
|
2575
2578
|
function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
2576
2579
|
|
|
2580
|
+
function utlSetStoragePrefix(storagePrefix: string): void;
|
|
2581
|
+
|
|
2577
2582
|
|
|
2578
2583
|
}
|