@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 3.3.0-nightly3.2406-
|
|
2
|
+
* 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
|
(function (global, factory) {
|
|
6
6
|
var undef = "undefined";
|
|
7
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
8
|
-
var mods={}, modDetail=mods[modName]={}, ver="3.3.0-nightly3.2406-
|
|
7
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_channel_js_3_3_0_nightly3_2406_08", msMod="__ms$mod__";
|
|
8
|
+
var mods={}, modDetail=mods[modName]={}, ver="3.3.0-nightly3.2406-08";
|
|
9
9
|
var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
|
|
10
10
|
// Versioned namespace "Microsoft.ApplicationInsights3"
|
|
11
11
|
var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
@@ -1046,6 +1046,13 @@ dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
|
|
|
1046
1046
|
var createEnumStyle = createEnum;
|
|
1047
1047
|
var createValueMap = createTypeMap;
|
|
1048
1048
|
|
|
1049
|
+
var ActiveStatus = createEnumStyle({
|
|
1050
|
+
NONE: 0 ,
|
|
1051
|
+
PENDING: 3 ,
|
|
1052
|
+
INACTIVE: 1 ,
|
|
1053
|
+
ACTIVE: 2
|
|
1054
|
+
});
|
|
1055
|
+
|
|
1049
1056
|
var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
|
|
1050
1057
|
var _DYN_BLK_VAL = "blkVal";
|
|
1051
1058
|
var _DYN_LENGTH$2 = "length";
|
|
@@ -1064,6 +1071,7 @@ var _DYN_CANCEL = "cancel";
|
|
|
1064
1071
|
var _DYN_INITIALIZE$1 = "initialize";
|
|
1065
1072
|
var _DYN_IDENTIFIER = "identifier";
|
|
1066
1073
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
1074
|
+
var _DYN_VALUE = "value";
|
|
1067
1075
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
1068
1076
|
var _DYN_NAME$2 = "name";
|
|
1069
1077
|
var _DYN_TIME = "time";
|
|
@@ -1897,7 +1905,7 @@ function newId(maxLength) {
|
|
|
1897
1905
|
return result;
|
|
1898
1906
|
}
|
|
1899
1907
|
|
|
1900
|
-
var version = '3.3.0-nightly3.2406-
|
|
1908
|
+
var version = '3.3.0-nightly3.2406-08';
|
|
1901
1909
|
var instanceName = "." + newId(6);
|
|
1902
1910
|
var _dataUid = 0;
|
|
1903
1911
|
function _canAcceptData(target) {
|
|
@@ -3795,7 +3803,7 @@ var SenderPostManager = /** @class */ (function () {
|
|
|
3795
3803
|
if (!responseHandled) {
|
|
3796
3804
|
responseHandled = true;
|
|
3797
3805
|
if (!result.rejected) {
|
|
3798
|
-
var response_1 = result
|
|
3806
|
+
var response_1 = result[_DYN_VALUE ];
|
|
3799
3807
|
try {
|
|
3800
3808
|
if (!_isOneDs && !response_1.ok) {
|
|
3801
3809
|
_handleError(response_1.statusText);
|
|
@@ -3808,7 +3816,7 @@ var SenderPostManager = /** @class */ (function () {
|
|
|
3808
3816
|
}
|
|
3809
3817
|
else {
|
|
3810
3818
|
doAwaitResponse(response_1.text(), function (resp) {
|
|
3811
|
-
_onFetchComplete(response_1, payload, resp
|
|
3819
|
+
_onFetchComplete(response_1, payload, resp[_DYN_VALUE ]);
|
|
3812
3820
|
resolveFunc && resolveFunc(true);
|
|
3813
3821
|
});
|
|
3814
3822
|
}
|
|
@@ -5520,7 +5528,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
|
|
|
5520
5528
|
}
|
|
5521
5529
|
}
|
|
5522
5530
|
var EnvelopeCreator = {
|
|
5523
|
-
Version: '3.3.0-nightly3.2406-
|
|
5531
|
+
Version: '3.3.0-nightly3.2406-08'
|
|
5524
5532
|
};
|
|
5525
5533
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
5526
5534
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -6322,6 +6330,12 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6322
6330
|
return senderConfig;
|
|
6323
6331
|
}
|
|
6324
6332
|
});
|
|
6333
|
+
if (core.activeStatus() === ActiveStatus.PENDING) {
|
|
6334
|
+
_self.pause();
|
|
6335
|
+
}
|
|
6336
|
+
else if (core.activeStatus() === ActiveStatus.ACTIVE) {
|
|
6337
|
+
_self.resume();
|
|
6338
|
+
}
|
|
6325
6339
|
if (_orgEndpointUrl !== senderConfig.endpointUrl) {
|
|
6326
6340
|
_endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;
|
|
6327
6341
|
}
|
|
@@ -6370,7 +6384,7 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6370
6384
|
_throwInternal(diagLog, 1 , 100 , "Invalid Instrumentation key " + _instrumentationKey);
|
|
6371
6385
|
}
|
|
6372
6386
|
_customHeaders = senderConfig[_DYN_CUSTOM_HEADERS ];
|
|
6373
|
-
if (!isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
|
|
6387
|
+
if (isString(_endpointUrl) && !isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
|
|
6374
6388
|
arrForEach(_customHeaders, function (customHeader) {
|
|
6375
6389
|
_this.addHeader(customHeader.header, customHeader.value);
|
|
6376
6390
|
});
|