@microsoft/applicationinsights-cfgsync-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.cfgsync.3.3.0-nightly3.2406-07.cjs.js → ai.cfgsync.3.3.0-nightly3.2406-09.cjs.js} +48 -41
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.cjs.js.map +1 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.cjs.min.js +6 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.cjs.min.js.map +1 -0
- package/browser/es5/{ai.cfgsync.3.3.0-nightly3.2406-07.gbl.js → ai.cfgsync.3.3.0-nightly3.2406-09.gbl.js} +50 -43
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.gbl.js.map +1 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.gbl.min.js +6 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.gbl.min.js.map +1 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.integrity.json +66 -0
- package/browser/es5/{ai.cfgsync.3.3.0-nightly3.2406-07.js → ai.cfgsync.3.3.0-nightly3.2406-09.js} +50 -43
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.js.map +1 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.min.js +6 -0
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-09.min.js.map +1 -0
- package/browser/es5/ai.cfgsync.3.cjs.js +47 -40
- package/browser/es5/ai.cfgsync.3.cjs.js.map +1 -1
- package/browser/es5/ai.cfgsync.3.cjs.min.js +2 -2
- package/browser/es5/ai.cfgsync.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.cfgsync.3.gbl.js +49 -42
- package/browser/es5/ai.cfgsync.3.gbl.js.map +1 -1
- package/browser/es5/ai.cfgsync.3.gbl.min.js +2 -2
- package/browser/es5/ai.cfgsync.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.cfgsync.3.integrity.json +25 -25
- package/browser/es5/ai.cfgsync.3.js +49 -42
- package/browser/es5/ai.cfgsync.3.js.map +1 -1
- package/browser/es5/ai.cfgsync.3.min.js +2 -2
- package/browser/es5/ai.cfgsync.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-cfgsync-js.js +47 -40
- package/dist/es5/applicationinsights-cfgsync-js.js.map +1 -1
- package/dist/es5/applicationinsights-cfgsync-js.min.js +2 -2
- package/dist/es5/applicationinsights-cfgsync-js.min.js.map +1 -1
- package/dist-es5/CfgSyncHelperFuncs.js +1 -1
- package/dist-es5/CfgSyncPlugin.js +1 -1
- package/dist-es5/Interfaces/ICfgSyncCdnConfig.js +1 -1
- package/dist-es5/Interfaces/ICfgSyncConfig.js +1 -1
- package/dist-es5/Interfaces/ICfgSyncPlugin.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-cfgsync-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-cfgsync-js.d.ts +1 -1
- package/types/applicationinsights-cfgsync-js.namespaced.d.ts +52 -5
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.cjs.js.map +0 -1
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.cjs.min.js +0 -6
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.cjs.min.js.map +0 -1
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.gbl.js.map +0 -1
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.gbl.min.js +0 -6
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.gbl.min.js.map +0 -1
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.integrity.json +0 -66
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.js.map +0 -1
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.min.js +0 -6
- package/browser/es5/ai.cfgsync.3.3.0-nightly3.2406-07.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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
|
import { isNullOrUndefined, isObject, objExtend, objForEachKey, setValueByKey } from "@nevware21/ts-utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
import { CfgSyncPlugin } from "./CfgSyncPlugin";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-cfgsync-js",
|
|
3
|
-
"version": "3.3.0-nightly3.2406-
|
|
3
|
+
"version": "3.3.0-nightly3.2406-09",
|
|
4
4
|
"description": "Microsoft Application Insights CfgSync Plugin",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
59
59
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
60
|
-
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-
|
|
61
|
-
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-
|
|
60
|
+
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-09",
|
|
61
|
+
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-09",
|
|
62
62
|
"@nevware21/ts-utils": ">= 0.11.1 < 2.x",
|
|
63
63
|
"@nevware21/ts-async": ">= 0.5.1 < 2.x"
|
|
64
64
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights idsync plugin, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights idsync 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
|
|
@@ -148,6 +148,23 @@ declare namespace ApplicationInsights {
|
|
|
148
148
|
|
|
149
149
|
type DistributedTracingModes = number | eDistributedTracingModes;
|
|
150
150
|
|
|
151
|
+
const enum eActiveStatus {
|
|
152
|
+
NONE = 0,
|
|
153
|
+
/**
|
|
154
|
+
* inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
|
|
155
|
+
*/
|
|
156
|
+
INACTIVE = 1,
|
|
157
|
+
/**
|
|
158
|
+
* active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
|
|
159
|
+
*/
|
|
160
|
+
ACTIVE = 2,
|
|
161
|
+
/**
|
|
162
|
+
* Waiting for promises to be resolved
|
|
163
|
+
* NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
|
|
164
|
+
*/
|
|
165
|
+
PENDING = 3
|
|
166
|
+
}
|
|
167
|
+
|
|
151
168
|
const enum eDistributedTracingModes {
|
|
152
169
|
/**
|
|
153
170
|
* (Default) Send Application Insights correlation headers
|
|
@@ -252,7 +269,8 @@ declare namespace ApplicationInsights {
|
|
|
252
269
|
DynamicConfigException = 108,
|
|
253
270
|
DefaultThrottleMsgKey = 109,
|
|
254
271
|
CdnDeprecation = 110,
|
|
255
|
-
SdkLdrUpdate = 111
|
|
272
|
+
SdkLdrUpdate = 111,
|
|
273
|
+
InitPromiseException = 112
|
|
256
274
|
}
|
|
257
275
|
|
|
258
276
|
const enum eLoggingSeverity {
|
|
@@ -452,6 +470,21 @@ declare namespace ApplicationInsights {
|
|
|
452
470
|
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
453
471
|
*/
|
|
454
472
|
getWParam: () => number;
|
|
473
|
+
/**
|
|
474
|
+
* Watches and tracks status of initialization process
|
|
475
|
+
* @returns ActiveStatus
|
|
476
|
+
* @since 3.3.0
|
|
477
|
+
* If returned status is active, it means initialization process is completed.
|
|
478
|
+
* If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
|
|
479
|
+
* If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
|
|
480
|
+
*/
|
|
481
|
+
activeStatus?: () => eActiveStatus | number;
|
|
482
|
+
/**
|
|
483
|
+
* Set Active Status to pending, which will block the incoming changes until internal promises are resolved
|
|
484
|
+
* @internal Internal use
|
|
485
|
+
* @since 3.3.0
|
|
486
|
+
*/
|
|
487
|
+
_setPendingStatus?: () => void;
|
|
455
488
|
}
|
|
456
489
|
|
|
457
490
|
interface IBaseProcessingContext {
|
|
@@ -1073,11 +1106,11 @@ declare namespace ApplicationInsights {
|
|
|
1073
1106
|
/**
|
|
1074
1107
|
* Instrumentation key of resource. Either this or connectionString must be specified.
|
|
1075
1108
|
*/
|
|
1076
|
-
instrumentationKey?: string
|
|
1109
|
+
instrumentationKey?: string | IPromise<string>;
|
|
1077
1110
|
/**
|
|
1078
1111
|
* Connection string of resource. Either this or instrumentationKey must be specified.
|
|
1079
1112
|
*/
|
|
1080
|
-
connectionString?: string
|
|
1113
|
+
connectionString?: string | IPromise<string>;
|
|
1081
1114
|
/**
|
|
1082
1115
|
* Set the timer interval (in ms) for internal logging queue, this is the
|
|
1083
1116
|
* amount of time to wait after logger.queue messages are detected to be sent.
|
|
@@ -1121,7 +1154,7 @@ declare namespace ApplicationInsights {
|
|
|
1121
1154
|
/**
|
|
1122
1155
|
* Endpoint where telemetry data is sent
|
|
1123
1156
|
*/
|
|
1124
|
-
endpointUrl?: string
|
|
1157
|
+
endpointUrl?: string | IPromise<string>;
|
|
1125
1158
|
/**
|
|
1126
1159
|
* Extension configs loaded in SDK
|
|
1127
1160
|
*/
|
|
@@ -1223,6 +1256,20 @@ declare namespace ApplicationInsights {
|
|
|
1223
1256
|
* @defaultValue undefined
|
|
1224
1257
|
*/
|
|
1225
1258
|
featureOptIn?: IFeatureOptIn;
|
|
1259
|
+
/**
|
|
1260
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1261
|
+
* this config is to manually set timeout for those promises.
|
|
1262
|
+
* Default: 50000ms
|
|
1263
|
+
* @since 3.3.0
|
|
1264
|
+
*/
|
|
1265
|
+
initTimeOut?: number;
|
|
1266
|
+
/**
|
|
1267
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1268
|
+
* this config is to manually set in memory proxy track calls count limit before promises finished.
|
|
1269
|
+
* Default: 100
|
|
1270
|
+
* @since 3.3.0
|
|
1271
|
+
*/
|
|
1272
|
+
initInMemoMaxSize?: number;
|
|
1226
1273
|
}
|
|
1227
1274
|
|
|
1228
1275
|
interface ICookieMgr {
|