@microsoft/applicationinsights-common 2.8.12-nightly.2304-31 → 2.8.12
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 +2 -2
- 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 +186 -0
- package/dist/applicationinsights-common.api.md +7 -0
- package/dist/applicationinsights-common.d.ts +22 -1
- package/dist/applicationinsights-common.js +2 -2
- 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 +22 -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 +6 -0
- package/dist-esm/Interfaces/IStorageBuffer.js.map +1 -0
- 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 +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 +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 +1 -1
- package/dist-esm/applicationinsights-common.js +1 -1
- package/package.json +59 -62
- package/src/Interfaces/IConfig.ts +6 -0
- package/src/Interfaces/IStorageBuffer.ts +19 -0
- package/src/applicationinsights-common.ts +1 -0
- package/types/Interfaces/IConfig.d.ts +5 -0
- package/types/Interfaces/IStorageBuffer.d.ts +17 -0
- package/types/applicationinsights-common.d.ts +1 -0
package/dist-esm/ThrottleMgr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.12
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { _throwInternal, arrForEach, arrIndexOf, isNotNullOrUndefined, isNullOrUndefined, randomValue, safeGetLogger, strTrim } from "@microsoft/applicationinsights-core-js";
|
package/dist-esm/Util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,62 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "2.8.12
|
|
4
|
-
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "./dist/applicationinsights-common.js",
|
|
8
|
-
"module": "./dist-esm/applicationinsights-common.js",
|
|
9
|
-
"types": "./types/applicationinsights-common.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/shared/AppInsightsCommon"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
|
-
"build:esm": "grunt common",
|
|
18
|
-
"build:browser": "rollup -c",
|
|
19
|
-
"rebuild": "npm run build",
|
|
20
|
-
"test": "grunt commontest",
|
|
21
|
-
"mintest": "grunt common-mintest",
|
|
22
|
-
"lint": "tslint -p tsconfig.json",
|
|
23
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
24
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
25
|
-
"ai-min": "grunt common-min",
|
|
26
|
-
"ai-restore": "grunt common-restore",
|
|
27
|
-
"npm-pack": "npm pack"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
31
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
32
|
-
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
33
|
-
"@microsoft/api-extractor": "^7.18.1",
|
|
34
|
-
"grunt": "^1.5.3",
|
|
35
|
-
"grunt-cli": "^1.4.3",
|
|
36
|
-
"grunt-contrib-qunit": "^6.2.1",
|
|
37
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
38
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
39
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
40
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
41
|
-
"@rollup/plugin-replace": "^2.3.3",
|
|
42
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
43
|
-
"rollup": "^2.32.0",
|
|
44
|
-
"typescript": "^4.9.3",
|
|
45
|
-
"tslib": "^2.0.0",
|
|
46
|
-
"globby": "^11.0.0",
|
|
47
|
-
"magic-string": "^0.25.7",
|
|
48
|
-
"sinon": "^7.3.1"
|
|
49
|
-
},
|
|
50
|
-
"peerDependencies": {
|
|
51
|
-
"tslib": "*"
|
|
52
|
-
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
55
|
-
"@microsoft/applicationinsights-core-js": "2.8.12
|
|
56
|
-
"@microsoft/dynamicproto-js": "^1.1.9"
|
|
57
|
-
},
|
|
58
|
-
"license": "MIT"
|
|
59
|
-
|
|
60
|
-
"tag": "nightly"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-common",
|
|
3
|
+
"version": "2.8.12",
|
|
4
|
+
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "./dist/applicationinsights-common.js",
|
|
8
|
+
"module": "./dist-esm/applicationinsights-common.js",
|
|
9
|
+
"types": "./types/applicationinsights-common.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/shared/AppInsightsCommon"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
17
|
+
"build:esm": "grunt common",
|
|
18
|
+
"build:browser": "rollup -c",
|
|
19
|
+
"rebuild": "npm run build",
|
|
20
|
+
"test": "grunt commontest",
|
|
21
|
+
"mintest": "grunt common-mintest",
|
|
22
|
+
"lint": "tslint -p tsconfig.json",
|
|
23
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
24
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
25
|
+
"ai-min": "grunt common-min",
|
|
26
|
+
"ai-restore": "grunt common-restore",
|
|
27
|
+
"npm-pack": "npm pack"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
31
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
32
|
+
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
33
|
+
"@microsoft/api-extractor": "^7.18.1",
|
|
34
|
+
"grunt": "^1.5.3",
|
|
35
|
+
"grunt-cli": "^1.4.3",
|
|
36
|
+
"grunt-contrib-qunit": "^6.2.1",
|
|
37
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
38
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
39
|
+
"@rollup/plugin-commonjs": "^18.0.0",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
41
|
+
"@rollup/plugin-replace": "^2.3.3",
|
|
42
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
43
|
+
"rollup": "^2.32.0",
|
|
44
|
+
"typescript": "^4.9.3",
|
|
45
|
+
"tslib": "^2.0.0",
|
|
46
|
+
"globby": "^11.0.0",
|
|
47
|
+
"magic-string": "^0.25.7",
|
|
48
|
+
"sinon": "^7.3.1"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"tslib": "*"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
55
|
+
"@microsoft/applicationinsights-core-js": "2.8.12",
|
|
56
|
+
"@microsoft/dynamicproto-js": "^1.1.9"
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT"
|
|
59
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { IConfiguration, ICustomProperties, isNullOrUndefined } from "@microsoft/applicationinsights-core-js";
|
|
4
4
|
import { DistributedTracingModes } from "../Enums";
|
|
5
5
|
import { IRequestContext } from "./IRequestContext";
|
|
6
|
+
import { IStorageBuffer } from "./IStorageBuffer";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Configuration settings for how telemetry is sent
|
|
@@ -170,6 +171,11 @@ export interface IConfig {
|
|
|
170
171
|
*/
|
|
171
172
|
enableSessionStorageBuffer?: boolean;
|
|
172
173
|
|
|
174
|
+
/**
|
|
175
|
+
* If specified, overrides the storage & retrieval mechanism that is used to manage unsent telemetry.
|
|
176
|
+
*/
|
|
177
|
+
bufferOverride?: IStorageBuffer;
|
|
178
|
+
|
|
173
179
|
/**
|
|
174
180
|
* @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
|
|
175
181
|
* If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Identifies a simple interface to allow you to override the storage mechanism used
|
|
5
|
+
* to track unsent and unacknowledged events. When provided it must provide both
|
|
6
|
+
* the get and set item functions.
|
|
7
|
+
* @since 2.8.12
|
|
8
|
+
*/
|
|
9
|
+
export interface IStorageBuffer {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the stored value for a given key
|
|
12
|
+
*/
|
|
13
|
+
getItem(logger: IDiagnosticLogger, name: string): string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Sets the stored value for a given key
|
|
17
|
+
*/
|
|
18
|
+
setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
19
|
+
}
|
|
@@ -34,6 +34,7 @@ export { PageViewPerformance } from "./Telemetry/PageViewPerformance";
|
|
|
34
34
|
export { Data } from "./Telemetry/Common/Data";
|
|
35
35
|
export { eSeverityLevel, SeverityLevel } from "./Interfaces/Contracts/SeverityLevel";
|
|
36
36
|
export { IConfig, ConfigurationManager } from "./Interfaces/IConfig";
|
|
37
|
+
export { IStorageBuffer } from "./Interfaces/IStorageBuffer";
|
|
37
38
|
export { IChannelControlsAI } from "./Interfaces/IChannelControlsAI";
|
|
38
39
|
export { IContextTagKeys, ContextTagKeys } from "./Interfaces/Contracts/ContextTagKeys";
|
|
39
40
|
export {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IConfiguration, ICustomProperties } from "@microsoft/applicationinsights-core-js";
|
|
2
2
|
import { DistributedTracingModes } from "../Enums";
|
|
3
3
|
import { IRequestContext } from "./IRequestContext";
|
|
4
|
+
import { IStorageBuffer } from "./IStorageBuffer";
|
|
4
5
|
/**
|
|
5
6
|
* Configuration settings for how telemetry is sent
|
|
6
7
|
* @export
|
|
@@ -139,6 +140,10 @@ export interface IConfig {
|
|
|
139
140
|
* @defaultValue true
|
|
140
141
|
*/
|
|
141
142
|
enableSessionStorageBuffer?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* If specified, overrides the storage & retrieval mechanism that is used to manage unsent telemetry.
|
|
145
|
+
*/
|
|
146
|
+
bufferOverride?: IStorageBuffer;
|
|
142
147
|
/**
|
|
143
148
|
* @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
|
|
144
149
|
* If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
/**
|
|
3
|
+
* Identifies a simple interface to allow you to override the storage mechanism used
|
|
4
|
+
* to track unsent and unacknowledged events. When provided it must provide both
|
|
5
|
+
* the get and set item functions.
|
|
6
|
+
* @since 2.8.12
|
|
7
|
+
*/
|
|
8
|
+
export interface IStorageBuffer {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the stored value for a given key
|
|
11
|
+
*/
|
|
12
|
+
getItem(logger: IDiagnosticLogger, name: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the stored value for a given key
|
|
15
|
+
*/
|
|
16
|
+
setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
17
|
+
}
|
|
@@ -27,6 +27,7 @@ export { PageViewPerformance } from "./Telemetry/PageViewPerformance";
|
|
|
27
27
|
export { Data } from "./Telemetry/Common/Data";
|
|
28
28
|
export { eSeverityLevel, SeverityLevel } from "./Interfaces/Contracts/SeverityLevel";
|
|
29
29
|
export { IConfig, ConfigurationManager } from "./Interfaces/IConfig";
|
|
30
|
+
export { IStorageBuffer } from "./Interfaces/IStorageBuffer";
|
|
30
31
|
export { IChannelControlsAI } from "./Interfaces/IChannelControlsAI";
|
|
31
32
|
export { IContextTagKeys, ContextTagKeys } from "./Interfaces/Contracts/ContextTagKeys";
|
|
32
33
|
export { DataSanitizerValues, IDataSanitizer, DataSanitizer, dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from "./Telemetry/Common/DataSanitizer";
|