@microsoft/1ds-core-js 4.3.7-nightly3.2504-04 → 4.3.7-nightly3.2504-07
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/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.gbl.js → ms.core-4.3.7-nightly3.2504-07.gbl.js} +93 -83
- package/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.gbl.js.map → ms.core-4.3.7-nightly3.2504-07.gbl.js.map} +1 -1
- package/bundle/es5/ms.core-4.3.7-nightly3.2504-07.gbl.min.js +7 -0
- package/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.gbl.min.js.map → ms.core-4.3.7-nightly3.2504-07.gbl.min.js.map} +1 -1
- package/bundle/es5/ms.core-4.3.7-nightly3.2504-07.integrity.json +46 -0
- package/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.js → ms.core-4.3.7-nightly3.2504-07.js} +93 -83
- package/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.js.map → ms.core-4.3.7-nightly3.2504-07.js.map} +1 -1
- package/bundle/es5/ms.core-4.3.7-nightly3.2504-07.min.js +7 -0
- package/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.min.js.map → ms.core-4.3.7-nightly3.2504-07.min.js.map} +1 -1
- package/bundle/es5/ms.core.gbl.js +92 -82
- package/bundle/es5/ms.core.gbl.js.map +1 -1
- package/bundle/es5/ms.core.gbl.min.js +2 -2
- package/bundle/es5/ms.core.gbl.min.js.map +1 -1
- package/bundle/es5/ms.core.integrity.json +17 -17
- package/bundle/es5/ms.core.js +92 -82
- package/bundle/es5/ms.core.js.map +1 -1
- package/bundle/es5/ms.core.min.js +2 -2
- package/bundle/es5/ms.core.min.js.map +1 -1
- package/dist/es5/ms.core.js +90 -80
- package/dist/es5/ms.core.js.map +1 -1
- package/dist/es5/ms.core.min.js +2 -2
- package/dist/es5/ms.core.min.js.map +1 -1
- package/dist-es5/AppInsightsCore.js +1 -1
- package/dist-es5/BaseCore.js +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/Index.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/Utils.js +2 -2
- package/dist-es5/Utils.js.map +1 -1
- package/dist-es5/ValueSanitizer.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/package.json +2 -2
- package/types/1ds-core-js.d.ts +2 -2
- package/types/1ds-core-js.namespaced.d.ts +2 -2
- package/bundle/es5/ms.core-4.3.7-nightly3.2504-04.gbl.min.js +0 -7
- package/bundle/es5/ms.core-4.3.7-nightly3.2504-04.integrity.json +0 -46
- package/bundle/es5/ms.core-4.3.7-nightly3.2504-04.min.js +0 -7
package/bundle/es5/{ms.core-4.3.7-nightly3.2504-04.gbl.js → ms.core-4.3.7-nightly3.2504-07.gbl.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK Core, 4.3.7-nightly3.2504-
|
|
2
|
+
* 1DS JS SDK Core, 4.3.7-nightly3.2504-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
var undef = "undefined";
|
|
8
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
9
|
-
var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2504-
|
|
8
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_3_7_nightly3_2504_07", msMod="__ms$mod__";
|
|
9
|
+
var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2504-07";
|
|
10
10
|
// Versioned namespace "oneDS4"
|
|
11
11
|
var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
12
12
|
// Global namespace "oneDS"
|
|
@@ -1353,12 +1353,12 @@ var _DYN_IDENTIFIER = "identifier";
|
|
|
1353
1353
|
var _DYN_REMOVE_NOTIFICATION_0 = "removeNotificationListener";
|
|
1354
1354
|
var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
|
|
1355
1355
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
1356
|
-
var _DYN_VALUE$1 = "value";
|
|
1357
1356
|
var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
|
|
1358
1357
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
1359
1358
|
var _DYN_NAME = "name";
|
|
1360
1359
|
var _DYN_PROCESS_NEXT = "processNext";
|
|
1361
1360
|
var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
|
|
1361
|
+
var _DYN_VALUE$1 = "value";
|
|
1362
1362
|
var _DYN_ENABLED = "enabled";
|
|
1363
1363
|
var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
|
|
1364
1364
|
var _DYN_UNLOAD = "unload";
|
|
@@ -2327,7 +2327,7 @@ function newId(maxLength) {
|
|
|
2327
2327
|
return result;
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
|
-
var version = '3.3.7-nightly3.2504-
|
|
2330
|
+
var version = '3.3.7-nightly3.2504-07';
|
|
2331
2331
|
var instanceName = "." + newId(6);
|
|
2332
2332
|
var _dataUid = 0;
|
|
2333
2333
|
function _canAcceptData(target) {
|
|
@@ -4874,6 +4874,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
|
|
|
4874
4874
|
var _endpoint;
|
|
4875
4875
|
var _initInMemoMaxSize;
|
|
4876
4876
|
var _isStatusSet;
|
|
4877
|
+
var _initTimer;
|
|
4877
4878
|
var _internalLogPoller;
|
|
4878
4879
|
var _internalLogPollerListening;
|
|
4879
4880
|
var _forceStopInternalLogPoller;
|
|
@@ -4898,83 +4899,8 @@ var AppInsightsCore$1 = /** @class */ (function () {
|
|
|
4898
4899
|
config = _configHandler.cfg;
|
|
4899
4900
|
_addUnloadHook(_configHandler[_DYN_WATCH ](function (details) {
|
|
4900
4901
|
var rootCfg = details.cfg;
|
|
4901
|
-
var isPending = _activeStatus === 3 ;
|
|
4902
|
-
if (isPending) {
|
|
4903
|
-
return;
|
|
4904
|
-
}
|
|
4905
4902
|
_initInMemoMaxSize = rootCfg.initInMemoMaxSize || maxInitQueueSize;
|
|
4906
|
-
|
|
4907
|
-
var endpointUrl = rootCfg.endpointUrl;
|
|
4908
|
-
if (isNullOrUndefined(ikey)) {
|
|
4909
|
-
_instrumentationKey = null;
|
|
4910
|
-
_activeStatus = ActiveStatus.INACTIVE;
|
|
4911
|
-
var msg = "Please provide instrumentation key";
|
|
4912
|
-
if (!_isInitialized) {
|
|
4913
|
-
throwError(msg);
|
|
4914
|
-
}
|
|
4915
|
-
else {
|
|
4916
|
-
_throwInternal(_logger, 1 , 100 , msg);
|
|
4917
|
-
_releaseQueues();
|
|
4918
|
-
}
|
|
4919
|
-
return;
|
|
4920
|
-
}
|
|
4921
|
-
var promises = [];
|
|
4922
|
-
if (isPromiseLike(ikey)) {
|
|
4923
|
-
promises[_DYN_PUSH ](ikey);
|
|
4924
|
-
_instrumentationKey = null;
|
|
4925
|
-
}
|
|
4926
|
-
else {
|
|
4927
|
-
_instrumentationKey = ikey;
|
|
4928
|
-
}
|
|
4929
|
-
if (isPromiseLike(endpointUrl)) {
|
|
4930
|
-
promises[_DYN_PUSH ](endpointUrl);
|
|
4931
|
-
_endpoint = null;
|
|
4932
|
-
}
|
|
4933
|
-
else {
|
|
4934
|
-
_endpoint = endpointUrl;
|
|
4935
|
-
}
|
|
4936
|
-
if (promises[_DYN_LENGTH$1 ]) {
|
|
4937
|
-
_isStatusSet = false;
|
|
4938
|
-
_activeStatus = 3 ;
|
|
4939
|
-
var initTimeout = isNotNullOrUndefined(rootCfg.initTimeOut) ? rootCfg.initTimeOut : maxInitTimeout;
|
|
4940
|
-
var allPromises = createSyncAllSettledPromise(promises);
|
|
4941
|
-
scheduleTimeout(function () {
|
|
4942
|
-
if (!_isStatusSet) {
|
|
4943
|
-
_setStatus();
|
|
4944
|
-
}
|
|
4945
|
-
}, initTimeout);
|
|
4946
|
-
doAwaitResponse(allPromises, function (response) {
|
|
4947
|
-
try {
|
|
4948
|
-
if (_isStatusSet) {
|
|
4949
|
-
return;
|
|
4950
|
-
}
|
|
4951
|
-
if (!response.rejected) {
|
|
4952
|
-
var values = response[_DYN_VALUE$1 ];
|
|
4953
|
-
if (values && values[_DYN_LENGTH$1 ]) {
|
|
4954
|
-
var ikeyRes = values[0];
|
|
4955
|
-
_instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE$1 ];
|
|
4956
|
-
if (values[_DYN_LENGTH$1 ] > 1) {
|
|
4957
|
-
var endpointRes = values[1];
|
|
4958
|
-
_endpoint = endpointRes && endpointRes[_DYN_VALUE$1 ];
|
|
4959
|
-
}
|
|
4960
|
-
}
|
|
4961
|
-
if (_instrumentationKey) {
|
|
4962
|
-
config.instrumentationKey = _instrumentationKey;
|
|
4963
|
-
config.endpointUrl = _endpoint;
|
|
4964
|
-
}
|
|
4965
|
-
}
|
|
4966
|
-
_setStatus();
|
|
4967
|
-
}
|
|
4968
|
-
catch (e) {
|
|
4969
|
-
if (!_isStatusSet) {
|
|
4970
|
-
_setStatus();
|
|
4971
|
-
}
|
|
4972
|
-
}
|
|
4973
|
-
});
|
|
4974
|
-
}
|
|
4975
|
-
else {
|
|
4976
|
-
_setStatus();
|
|
4977
|
-
}
|
|
4903
|
+
_handleIKeyEndpointPromises(rootCfg);
|
|
4978
4904
|
var extCfg = details.ref(details.cfg, STR_EXTENSION_CONFIG);
|
|
4979
4905
|
objForEachKey(extCfg, function (key) {
|
|
4980
4906
|
details.ref(extCfg, key);
|
|
@@ -5095,6 +5021,89 @@ var AppInsightsCore$1 = /** @class */ (function () {
|
|
|
5095
5021
|
_internalLogPoller && _internalLogPoller[_DYN_CANCEL ]();
|
|
5096
5022
|
return _startLogPoller(true);
|
|
5097
5023
|
};
|
|
5024
|
+
function _handleIKeyEndpointPromises(theConfig) {
|
|
5025
|
+
var ikey = theConfig.instrumentationKey;
|
|
5026
|
+
var endpointUrl = theConfig.endpointUrl;
|
|
5027
|
+
if (_activeStatus !== 3 ) {
|
|
5028
|
+
if (isNullOrUndefined(ikey)) {
|
|
5029
|
+
_instrumentationKey = null;
|
|
5030
|
+
_activeStatus = ActiveStatus.INACTIVE;
|
|
5031
|
+
var msg = "Please provide instrumentation key";
|
|
5032
|
+
if (!_isInitialized) {
|
|
5033
|
+
throwError(msg);
|
|
5034
|
+
}
|
|
5035
|
+
else {
|
|
5036
|
+
_throwInternal(_logger, 1 , 100 , msg);
|
|
5037
|
+
_releaseQueues();
|
|
5038
|
+
}
|
|
5039
|
+
return;
|
|
5040
|
+
}
|
|
5041
|
+
var promises = [];
|
|
5042
|
+
if (isPromiseLike(ikey)) {
|
|
5043
|
+
promises[_DYN_PUSH ](ikey);
|
|
5044
|
+
_instrumentationKey = null;
|
|
5045
|
+
}
|
|
5046
|
+
else {
|
|
5047
|
+
_instrumentationKey = ikey;
|
|
5048
|
+
}
|
|
5049
|
+
if (isPromiseLike(endpointUrl)) {
|
|
5050
|
+
promises[_DYN_PUSH ](endpointUrl);
|
|
5051
|
+
_endpoint = null;
|
|
5052
|
+
}
|
|
5053
|
+
else {
|
|
5054
|
+
_endpoint = endpointUrl;
|
|
5055
|
+
}
|
|
5056
|
+
if (promises[_DYN_LENGTH$1 ]) {
|
|
5057
|
+
_waitForInitPromises(theConfig, promises);
|
|
5058
|
+
}
|
|
5059
|
+
else {
|
|
5060
|
+
_setStatus();
|
|
5061
|
+
}
|
|
5062
|
+
}
|
|
5063
|
+
}
|
|
5064
|
+
function _waitForInitPromises(theConfig, promises) {
|
|
5065
|
+
_isStatusSet = false;
|
|
5066
|
+
_activeStatus = 3 ;
|
|
5067
|
+
var initTimeout = isNotNullOrUndefined(theConfig.initTimeOut) ? theConfig.initTimeOut : maxInitTimeout;
|
|
5068
|
+
var allPromises = createSyncAllSettledPromise(promises);
|
|
5069
|
+
if (_initTimer) {
|
|
5070
|
+
_initTimer[_DYN_CANCEL ]();
|
|
5071
|
+
}
|
|
5072
|
+
_initTimer = scheduleTimeout(function () {
|
|
5073
|
+
_initTimer = null;
|
|
5074
|
+
if (!_isStatusSet) {
|
|
5075
|
+
_setStatus();
|
|
5076
|
+
}
|
|
5077
|
+
}, initTimeout);
|
|
5078
|
+
doAwaitResponse(allPromises, function (response) {
|
|
5079
|
+
try {
|
|
5080
|
+
if (_isStatusSet) {
|
|
5081
|
+
return;
|
|
5082
|
+
}
|
|
5083
|
+
if (!response.rejected) {
|
|
5084
|
+
var values = response[_DYN_VALUE$1 ];
|
|
5085
|
+
if (values && values[_DYN_LENGTH$1 ]) {
|
|
5086
|
+
var ikeyRes = values[0];
|
|
5087
|
+
_instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE$1 ];
|
|
5088
|
+
if (values[_DYN_LENGTH$1 ] > 1) {
|
|
5089
|
+
var endpointRes = values[1];
|
|
5090
|
+
_endpoint = endpointRes && endpointRes[_DYN_VALUE$1 ];
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
if (_instrumentationKey) {
|
|
5094
|
+
theConfig.instrumentationKey = _instrumentationKey;
|
|
5095
|
+
theConfig.endpointUrl = _endpoint;
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
_setStatus();
|
|
5099
|
+
}
|
|
5100
|
+
catch (e) {
|
|
5101
|
+
if (!_isStatusSet) {
|
|
5102
|
+
_setStatus();
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
});
|
|
5106
|
+
}
|
|
5098
5107
|
function _setStatus() {
|
|
5099
5108
|
_isStatusSet = true;
|
|
5100
5109
|
if (isNullOrUndefined(_instrumentationKey)) {
|
|
@@ -5387,6 +5396,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
|
|
|
5387
5396
|
_endpoint = null;
|
|
5388
5397
|
_initInMemoMaxSize = null;
|
|
5389
5398
|
_isStatusSet = false;
|
|
5399
|
+
_initTimer = null;
|
|
5390
5400
|
}
|
|
5391
5401
|
function _createTelCtx() {
|
|
5392
5402
|
var theCtx = createProcessTelemetryContext(_getPluginChain(), _configHandler.cfg, _self);
|
|
@@ -6420,7 +6430,7 @@ var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
|
|
|
6420
6430
|
var _DYN_CAN_HANDLE = "canHandle";
|
|
6421
6431
|
|
|
6422
6432
|
var _a;
|
|
6423
|
-
var Version = '4.3.7-nightly3.2504-
|
|
6433
|
+
var Version = '4.3.7-nightly3.2504-07';
|
|
6424
6434
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
6425
6435
|
var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
|
|
6426
6436
|
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|
|
@@ -7176,4 +7186,4 @@ exports.toISOString = toISOString;
|
|
|
7176
7186
|
exports.useXDomainRequest = useXDomainRequest;
|
|
7177
7187
|
|
|
7178
7188
|
}));
|
|
7179
|
-
//# sourceMappingURL=ms.core-4.3.7-nightly3.2504-
|
|
7189
|
+
//# sourceMappingURL=ms.core-4.3.7-nightly3.2504-07.gbl.js.map
|