@microsoft/applicationinsights-properties-js 3.3.0-nightly3.2406-07 → 3.3.0-nightly3.2406-09
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/{ai.props.3.3.0-nightly3.2406-07.cjs.js → ai.props.3.3.0-nightly3.2406-09.cjs.js} +50 -43
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.cjs.js.map +1 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.cjs.min.js +6 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.cjs.min.js.map +1 -0
- package/browser/es5/{ai.props.3.3.0-nightly3.2406-07.gbl.js → ai.props.3.3.0-nightly3.2406-09.gbl.js} +52 -45
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.gbl.js.map +1 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.gbl.min.js +6 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.gbl.min.js.map +1 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.integrity.json +66 -0
- package/browser/es5/{ai.props.3.3.0-nightly3.2406-07.js → ai.props.3.3.0-nightly3.2406-09.js} +52 -45
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.js.map +1 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.min.js +6 -0
- package/browser/es5/ai.props.3.3.0-nightly3.2406-09.min.js.map +1 -0
- package/browser/es5/ai.props.3.cjs.js +49 -42
- package/browser/es5/ai.props.3.cjs.js.map +1 -1
- package/browser/es5/ai.props.3.cjs.min.js +2 -2
- package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.props.3.gbl.js +51 -44
- package/browser/es5/ai.props.3.gbl.js.map +1 -1
- package/browser/es5/ai.props.3.gbl.min.js +2 -2
- package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.props.3.integrity.json +25 -25
- package/browser/es5/ai.props.3.js +51 -44
- package/browser/es5/ai.props.3.js.map +1 -1
- package/browser/es5/ai.props.3.min.js +2 -2
- package/browser/es5/ai.props.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-properties-js.js +49 -42
- package/dist/es5/applicationinsights-properties-js.js.map +1 -1
- package/dist/es5/applicationinsights-properties-js.min.js +2 -2
- package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
- package/dist-es5/Context/Application.js +1 -1
- package/dist-es5/Context/Device.js +1 -1
- package/dist-es5/Context/Internal.js +2 -2
- package/dist-es5/Context/Internal.js.map +1 -1
- package/dist-es5/Context/Location.js +1 -1
- package/dist-es5/Context/Session.js +1 -1
- package/dist-es5/Context/TelemetryTrace.js +1 -1
- package/dist-es5/Context/User.js +1 -1
- package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
- package/dist-es5/PropertiesPlugin.js +1 -1
- package/dist-es5/TelemetryContext.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-properties-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-properties-js.d.ts +1 -1
- package/types/applicationinsights-properties-js.namespaced.d.ts +52 -5
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.cjs.js.map +0 -1
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.cjs.min.js +0 -6
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.cjs.min.js.map +0 -1
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.gbl.js.map +0 -1
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.gbl.min.js +0 -6
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.gbl.min.js.map +0 -1
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.integrity.json +0 -66
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.js.map +0 -1
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.min.js +0 -6
- package/browser/es5/ai.props.3.3.0-nightly3.2406-07.min.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.3.0-nightly3.2406-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.3.0-nightly3.2406-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
import { onConfigChange } from "@microsoft/applicationinsights-core-js";
|
|
8
|
-
var Version = '3.3.0-nightly3.2406-
|
|
8
|
+
var Version = '3.3.0-nightly3.2406-09';
|
|
9
9
|
var Internal = /** @class */ (function () {
|
|
10
10
|
/**
|
|
11
11
|
* Constructs a new instance of the internal telemetry data class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.3.0-nightly3.2406-
|
|
1
|
+
{"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.3.0-nightly3.2406-09';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config, unloadHookContainer) {\r\n var _this = this;\r\n var unloadHook = onConfigChange((config), function () {\r\n var prefix = config.sdkExtension;\r\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n//# sourceMappingURL=Internal.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-es5/Context/User.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-properties-js",
|
|
3
|
-
"version": "3.3.0-nightly3.2406-
|
|
3
|
+
"version": "3.3.0-nightly3.2406-09",
|
|
4
4
|
"description": "Microsoft Application Insights properties (Part A) plugin",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
60
60
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
61
|
-
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-
|
|
62
|
-
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-
|
|
61
|
+
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-09",
|
|
62
|
+
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-09",
|
|
63
63
|
"@nevware21/ts-utils": ">= 0.11.1 < 2.x"
|
|
64
64
|
},
|
|
65
65
|
"license": "MIT",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights properties plugin, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights properties plugin, 3.3.0-nightly3.2406-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -110,6 +110,23 @@ declare namespace ApplicationInsights {
|
|
|
110
110
|
|
|
111
111
|
type DistributedTracingModes = number | eDistributedTracingModes;
|
|
112
112
|
|
|
113
|
+
const enum eActiveStatus {
|
|
114
|
+
NONE = 0,
|
|
115
|
+
/**
|
|
116
|
+
* inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
|
|
117
|
+
*/
|
|
118
|
+
INACTIVE = 1,
|
|
119
|
+
/**
|
|
120
|
+
* active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
|
|
121
|
+
*/
|
|
122
|
+
ACTIVE = 2,
|
|
123
|
+
/**
|
|
124
|
+
* Waiting for promises to be resolved
|
|
125
|
+
* NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
|
|
126
|
+
*/
|
|
127
|
+
PENDING = 3
|
|
128
|
+
}
|
|
129
|
+
|
|
113
130
|
const enum eDistributedTracingModes {
|
|
114
131
|
/**
|
|
115
132
|
* (Default) Send Application Insights correlation headers
|
|
@@ -214,7 +231,8 @@ declare namespace ApplicationInsights {
|
|
|
214
231
|
DynamicConfigException = 108,
|
|
215
232
|
DefaultThrottleMsgKey = 109,
|
|
216
233
|
CdnDeprecation = 110,
|
|
217
|
-
SdkLdrUpdate = 111
|
|
234
|
+
SdkLdrUpdate = 111,
|
|
235
|
+
InitPromiseException = 112
|
|
218
236
|
}
|
|
219
237
|
|
|
220
238
|
const enum eLoggingSeverity {
|
|
@@ -414,6 +432,21 @@ declare namespace ApplicationInsights {
|
|
|
414
432
|
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
415
433
|
*/
|
|
416
434
|
getWParam: () => number;
|
|
435
|
+
/**
|
|
436
|
+
* Watches and tracks status of initialization process
|
|
437
|
+
* @returns ActiveStatus
|
|
438
|
+
* @since 3.3.0
|
|
439
|
+
* If returned status is active, it means initialization process is completed.
|
|
440
|
+
* If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
|
|
441
|
+
* If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
|
|
442
|
+
*/
|
|
443
|
+
activeStatus?: () => eActiveStatus | number;
|
|
444
|
+
/**
|
|
445
|
+
* Set Active Status to pending, which will block the incoming changes until internal promises are resolved
|
|
446
|
+
* @internal Internal use
|
|
447
|
+
* @since 3.3.0
|
|
448
|
+
*/
|
|
449
|
+
_setPendingStatus?: () => void;
|
|
417
450
|
}
|
|
418
451
|
|
|
419
452
|
interface IApplication {
|
|
@@ -936,11 +969,11 @@ declare namespace ApplicationInsights {
|
|
|
936
969
|
/**
|
|
937
970
|
* Instrumentation key of resource. Either this or connectionString must be specified.
|
|
938
971
|
*/
|
|
939
|
-
instrumentationKey?: string
|
|
972
|
+
instrumentationKey?: string | IPromise<string>;
|
|
940
973
|
/**
|
|
941
974
|
* Connection string of resource. Either this or instrumentationKey must be specified.
|
|
942
975
|
*/
|
|
943
|
-
connectionString?: string
|
|
976
|
+
connectionString?: string | IPromise<string>;
|
|
944
977
|
/**
|
|
945
978
|
* Set the timer interval (in ms) for internal logging queue, this is the
|
|
946
979
|
* amount of time to wait after logger.queue messages are detected to be sent.
|
|
@@ -984,7 +1017,7 @@ declare namespace ApplicationInsights {
|
|
|
984
1017
|
/**
|
|
985
1018
|
* Endpoint where telemetry data is sent
|
|
986
1019
|
*/
|
|
987
|
-
endpointUrl?: string
|
|
1020
|
+
endpointUrl?: string | IPromise<string>;
|
|
988
1021
|
/**
|
|
989
1022
|
* Extension configs loaded in SDK
|
|
990
1023
|
*/
|
|
@@ -1086,6 +1119,20 @@ declare namespace ApplicationInsights {
|
|
|
1086
1119
|
* @defaultValue undefined
|
|
1087
1120
|
*/
|
|
1088
1121
|
featureOptIn?: IFeatureOptIn;
|
|
1122
|
+
/**
|
|
1123
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1124
|
+
* this config is to manually set timeout for those promises.
|
|
1125
|
+
* Default: 50000ms
|
|
1126
|
+
* @since 3.3.0
|
|
1127
|
+
*/
|
|
1128
|
+
initTimeOut?: number;
|
|
1129
|
+
/**
|
|
1130
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1131
|
+
* this config is to manually set in memory proxy track calls count limit before promises finished.
|
|
1132
|
+
* Default: 100
|
|
1133
|
+
* @since 3.3.0
|
|
1134
|
+
*/
|
|
1135
|
+
initInMemoMaxSize?: number;
|
|
1089
1136
|
}
|
|
1090
1137
|
|
|
1091
1138
|
interface ICookieMgr {
|