@microsoft/applicationinsights-channel-js 3.3.0-nightly3.2406-07 → 3.3.0-nightly3.2406-08
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-channel-js.3.3.0-nightly3.2406-07.cjs.js → applicationinsights-channel-js.3.3.0-nightly3.2406-08.cjs.js} +21 -7
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.cjs.min.js.map +1 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.js → applicationinsights-channel-js.3.3.0-nightly3.2406-08.gbl.js} +23 -9
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.integrity.json +66 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.0-nightly3.2406-07.js → applicationinsights-channel-js.3.3.0-nightly3.2406-08.js} +23 -9
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.min.js +6 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-08.min.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.cjs.js +20 -6
- package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.gbl.js +22 -8
- package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
- package/browser/es5/applicationinsights-channel-js.3.js +22 -8
- package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
- package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-channel-js.js +20 -6
- package/dist/es5/applicationinsights-channel-js.js.map +1 -1
- package/dist/es5/applicationinsights-channel-js.min.js +2 -2
- package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
- package/dist-es5/EnvelopeCreator.js +2 -2
- package/dist-es5/EnvelopeCreator.js.map +1 -1
- package/dist-es5/Interfaces.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/SendBuffer.js +1 -1
- package/dist-es5/Sender.js +13 -3
- package/dist-es5/Sender.js.map +1 -1
- package/dist-es5/Serializer.js +1 -1
- package/dist-es5/TelemetryProcessors/Sample.js +1 -1
- package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-channel-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-channel-js.d.ts +1 -1
- package/types/applicationinsights-channel-js.namespaced.d.ts +52 -5
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.min.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.min.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.integrity.json +0 -66
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.min.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-channel-js",
|
|
3
|
-
"version": "3.3.0-nightly3.2406-
|
|
3
|
+
"version": "3.3.0-nightly3.2406-08",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK Channel",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
55
55
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
56
|
-
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-
|
|
57
|
-
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-
|
|
56
|
+
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-08",
|
|
57
|
+
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-08",
|
|
58
58
|
"@nevware21/ts-utils": ">= 0.11.1 < 2.x",
|
|
59
59
|
"@nevware21/ts-async": ">= 0.5.1 < 2.x"
|
|
60
60
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Channel, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Channel, 3.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Channel, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Channel, 3.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -129,6 +129,23 @@ declare namespace ApplicationInsights {
|
|
|
129
129
|
|
|
130
130
|
type DistributedTracingModes = number | eDistributedTracingModes;
|
|
131
131
|
|
|
132
|
+
const enum eActiveStatus {
|
|
133
|
+
NONE = 0,
|
|
134
|
+
/**
|
|
135
|
+
* inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
|
|
136
|
+
*/
|
|
137
|
+
INACTIVE = 1,
|
|
138
|
+
/**
|
|
139
|
+
* active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
|
|
140
|
+
*/
|
|
141
|
+
ACTIVE = 2,
|
|
142
|
+
/**
|
|
143
|
+
* Waiting for promises to be resolved
|
|
144
|
+
* NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
|
|
145
|
+
*/
|
|
146
|
+
PENDING = 3
|
|
147
|
+
}
|
|
148
|
+
|
|
132
149
|
const enum eDistributedTracingModes {
|
|
133
150
|
/**
|
|
134
151
|
* (Default) Send Application Insights correlation headers
|
|
@@ -233,7 +250,8 @@ declare namespace ApplicationInsights {
|
|
|
233
250
|
DynamicConfigException = 108,
|
|
234
251
|
DefaultThrottleMsgKey = 109,
|
|
235
252
|
CdnDeprecation = 110,
|
|
236
|
-
SdkLdrUpdate = 111
|
|
253
|
+
SdkLdrUpdate = 111,
|
|
254
|
+
InitPromiseException = 112
|
|
237
255
|
}
|
|
238
256
|
|
|
239
257
|
const enum eLoggingSeverity {
|
|
@@ -433,6 +451,21 @@ declare namespace ApplicationInsights {
|
|
|
433
451
|
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
434
452
|
*/
|
|
435
453
|
getWParam: () => number;
|
|
454
|
+
/**
|
|
455
|
+
* Watches and tracks status of initialization process
|
|
456
|
+
* @returns ActiveStatus
|
|
457
|
+
* @since 3.3.0
|
|
458
|
+
* If returned status is active, it means initialization process is completed.
|
|
459
|
+
* If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
|
|
460
|
+
* If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
|
|
461
|
+
*/
|
|
462
|
+
activeStatus?: () => eActiveStatus | number;
|
|
463
|
+
/**
|
|
464
|
+
* Set Active Status to pending, which will block the incoming changes until internal promises are resolved
|
|
465
|
+
* @internal Internal use
|
|
466
|
+
* @since 3.3.0
|
|
467
|
+
*/
|
|
468
|
+
_setPendingStatus?: () => void;
|
|
436
469
|
}
|
|
437
470
|
|
|
438
471
|
interface IBackendResponse {
|
|
@@ -963,11 +996,11 @@ declare namespace ApplicationInsights {
|
|
|
963
996
|
/**
|
|
964
997
|
* Instrumentation key of resource. Either this or connectionString must be specified.
|
|
965
998
|
*/
|
|
966
|
-
instrumentationKey?: string
|
|
999
|
+
instrumentationKey?: string | IPromise<string>;
|
|
967
1000
|
/**
|
|
968
1001
|
* Connection string of resource. Either this or instrumentationKey must be specified.
|
|
969
1002
|
*/
|
|
970
|
-
connectionString?: string
|
|
1003
|
+
connectionString?: string | IPromise<string>;
|
|
971
1004
|
/**
|
|
972
1005
|
* Set the timer interval (in ms) for internal logging queue, this is the
|
|
973
1006
|
* amount of time to wait after logger.queue messages are detected to be sent.
|
|
@@ -1011,7 +1044,7 @@ declare namespace ApplicationInsights {
|
|
|
1011
1044
|
/**
|
|
1012
1045
|
* Endpoint where telemetry data is sent
|
|
1013
1046
|
*/
|
|
1014
|
-
endpointUrl?: string
|
|
1047
|
+
endpointUrl?: string | IPromise<string>;
|
|
1015
1048
|
/**
|
|
1016
1049
|
* Extension configs loaded in SDK
|
|
1017
1050
|
*/
|
|
@@ -1113,6 +1146,20 @@ declare namespace ApplicationInsights {
|
|
|
1113
1146
|
* @defaultValue undefined
|
|
1114
1147
|
*/
|
|
1115
1148
|
featureOptIn?: IFeatureOptIn;
|
|
1149
|
+
/**
|
|
1150
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1151
|
+
* this config is to manually set timeout for those promises.
|
|
1152
|
+
* Default: 50000ms
|
|
1153
|
+
* @since 3.3.0
|
|
1154
|
+
*/
|
|
1155
|
+
initTimeOut?: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1158
|
+
* this config is to manually set in memory proxy track calls count limit before promises finished.
|
|
1159
|
+
* Default: 100
|
|
1160
|
+
* @since 3.3.0
|
|
1161
|
+
*/
|
|
1162
|
+
initInMemoMaxSize?: number;
|
|
1116
1163
|
}
|
|
1117
1164
|
|
|
1118
1165
|
interface ICookieMgr {
|