@microsoft/applicationinsights-dependencies-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/applicationinsights-dependencies-js.cjs.js +50 -60
- package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.gbl.js +52 -62
- package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-dependencies-js.js +52 -62
- package/browser/es5/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-dependencies-js.js +50 -60
- package/dist/es5/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/es5/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist-es5/DependencyInitializer.js +1 -1
- package/dist-es5/DependencyListener.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/__DynamicConstants.js +2 -2
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/ajax.js +3 -9
- package/dist-es5/ajax.js.map +1 -1
- package/dist-es5/ajaxRecord.js +1 -1
- package/dist-es5/ajaxUtils.js +1 -1
- package/dist-es5/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-dependencies-js.d.ts +1 -1
- package/types/applicationinsights-dependencies-js.namespaced.d.ts +52 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights XHR dependencies 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
|
|
@@ -227,6 +227,23 @@ declare namespace ApplicationInsights {
|
|
|
227
227
|
|
|
228
228
|
const _DYN_INCLUDE_CORRELATION_2 = "includeCorrelationHeaders";
|
|
229
229
|
|
|
230
|
+
const enum eActiveStatus {
|
|
231
|
+
NONE = 0,
|
|
232
|
+
/**
|
|
233
|
+
* inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
|
|
234
|
+
*/
|
|
235
|
+
INACTIVE = 1,
|
|
236
|
+
/**
|
|
237
|
+
* active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
|
|
238
|
+
*/
|
|
239
|
+
ACTIVE = 2,
|
|
240
|
+
/**
|
|
241
|
+
* Waiting for promises to be resolved
|
|
242
|
+
* NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
|
|
243
|
+
*/
|
|
244
|
+
PENDING = 3
|
|
245
|
+
}
|
|
246
|
+
|
|
230
247
|
const enum eDistributedTracingModes {
|
|
231
248
|
/**
|
|
232
249
|
* (Default) Send Application Insights correlation headers
|
|
@@ -331,7 +348,8 @@ declare namespace ApplicationInsights {
|
|
|
331
348
|
DynamicConfigException = 108,
|
|
332
349
|
DefaultThrottleMsgKey = 109,
|
|
333
350
|
CdnDeprecation = 110,
|
|
334
|
-
SdkLdrUpdate = 111
|
|
351
|
+
SdkLdrUpdate = 111,
|
|
352
|
+
InitPromiseException = 112
|
|
335
353
|
}
|
|
336
354
|
|
|
337
355
|
const enum eLoggingSeverity {
|
|
@@ -540,6 +558,21 @@ declare namespace ApplicationInsights {
|
|
|
540
558
|
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
541
559
|
*/
|
|
542
560
|
getWParam: () => number;
|
|
561
|
+
/**
|
|
562
|
+
* Watches and tracks status of initialization process
|
|
563
|
+
* @returns ActiveStatus
|
|
564
|
+
* @since 3.3.0
|
|
565
|
+
* If returned status is active, it means initialization process is completed.
|
|
566
|
+
* If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
|
|
567
|
+
* If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
|
|
568
|
+
*/
|
|
569
|
+
activeStatus?: () => eActiveStatus | number;
|
|
570
|
+
/**
|
|
571
|
+
* Set Active Status to pending, which will block the incoming changes until internal promises are resolved
|
|
572
|
+
* @internal Internal use
|
|
573
|
+
* @since 3.3.0
|
|
574
|
+
*/
|
|
575
|
+
_setPendingStatus?: () => void;
|
|
543
576
|
}
|
|
544
577
|
|
|
545
578
|
interface IBaseProcessingContext {
|
|
@@ -1051,11 +1084,11 @@ declare namespace ApplicationInsights {
|
|
|
1051
1084
|
/**
|
|
1052
1085
|
* Instrumentation key of resource. Either this or connectionString must be specified.
|
|
1053
1086
|
*/
|
|
1054
|
-
instrumentationKey?: string
|
|
1087
|
+
instrumentationKey?: string | IPromise<string>;
|
|
1055
1088
|
/**
|
|
1056
1089
|
* Connection string of resource. Either this or instrumentationKey must be specified.
|
|
1057
1090
|
*/
|
|
1058
|
-
connectionString?: string
|
|
1091
|
+
connectionString?: string | IPromise<string>;
|
|
1059
1092
|
/**
|
|
1060
1093
|
* Set the timer interval (in ms) for internal logging queue, this is the
|
|
1061
1094
|
* amount of time to wait after logger.queue messages are detected to be sent.
|
|
@@ -1099,7 +1132,7 @@ declare namespace ApplicationInsights {
|
|
|
1099
1132
|
/**
|
|
1100
1133
|
* Endpoint where telemetry data is sent
|
|
1101
1134
|
*/
|
|
1102
|
-
endpointUrl?: string
|
|
1135
|
+
endpointUrl?: string | IPromise<string>;
|
|
1103
1136
|
/**
|
|
1104
1137
|
* Extension configs loaded in SDK
|
|
1105
1138
|
*/
|
|
@@ -1201,6 +1234,20 @@ declare namespace ApplicationInsights {
|
|
|
1201
1234
|
* @defaultValue undefined
|
|
1202
1235
|
*/
|
|
1203
1236
|
featureOptIn?: IFeatureOptIn;
|
|
1237
|
+
/**
|
|
1238
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1239
|
+
* this config is to manually set timeout for those promises.
|
|
1240
|
+
* Default: 50000ms
|
|
1241
|
+
* @since 3.3.0
|
|
1242
|
+
*/
|
|
1243
|
+
initTimeOut?: number;
|
|
1244
|
+
/**
|
|
1245
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1246
|
+
* this config is to manually set in memory proxy track calls count limit before promises finished.
|
|
1247
|
+
* Default: 100
|
|
1248
|
+
* @since 3.3.0
|
|
1249
|
+
*/
|
|
1250
|
+
initInMemoMaxSize?: number;
|
|
1204
1251
|
}
|
|
1205
1252
|
|
|
1206
1253
|
interface ICookieMgr {
|