@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/dist/es5/ms.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
*/
|
|
@@ -1336,12 +1336,12 @@
|
|
|
1336
1336
|
var _DYN_REMOVE_NOTIFICATION_0 = "removeNotificationListener";
|
|
1337
1337
|
var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
|
|
1338
1338
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
1339
|
-
var _DYN_VALUE$1 = "value";
|
|
1340
1339
|
var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
|
|
1341
1340
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
1342
1341
|
var _DYN_NAME = "name";
|
|
1343
1342
|
var _DYN_PROCESS_NEXT = "processNext";
|
|
1344
1343
|
var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
|
|
1344
|
+
var _DYN_VALUE$1 = "value";
|
|
1345
1345
|
var _DYN_ENABLED = "enabled";
|
|
1346
1346
|
var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
|
|
1347
1347
|
var _DYN_UNLOAD = "unload";
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
return result;
|
|
2311
2311
|
}
|
|
2312
2312
|
|
|
2313
|
-
var version = '3.3.7-nightly3.2504-
|
|
2313
|
+
var version = '3.3.7-nightly3.2504-07';
|
|
2314
2314
|
var instanceName = "." + newId(6);
|
|
2315
2315
|
var _dataUid = 0;
|
|
2316
2316
|
function _canAcceptData(target) {
|
|
@@ -4857,6 +4857,7 @@
|
|
|
4857
4857
|
var _endpoint;
|
|
4858
4858
|
var _initInMemoMaxSize;
|
|
4859
4859
|
var _isStatusSet;
|
|
4860
|
+
var _initTimer;
|
|
4860
4861
|
var _internalLogPoller;
|
|
4861
4862
|
var _internalLogPollerListening;
|
|
4862
4863
|
var _forceStopInternalLogPoller;
|
|
@@ -4881,83 +4882,8 @@
|
|
|
4881
4882
|
config = _configHandler.cfg;
|
|
4882
4883
|
_addUnloadHook(_configHandler[_DYN_WATCH ](function (details) {
|
|
4883
4884
|
var rootCfg = details.cfg;
|
|
4884
|
-
var isPending = _activeStatus === 3 ;
|
|
4885
|
-
if (isPending) {
|
|
4886
|
-
return;
|
|
4887
|
-
}
|
|
4888
4885
|
_initInMemoMaxSize = rootCfg.initInMemoMaxSize || maxInitQueueSize;
|
|
4889
|
-
|
|
4890
|
-
var endpointUrl = rootCfg.endpointUrl;
|
|
4891
|
-
if (isNullOrUndefined(ikey)) {
|
|
4892
|
-
_instrumentationKey = null;
|
|
4893
|
-
_activeStatus = ActiveStatus.INACTIVE;
|
|
4894
|
-
var msg = "Please provide instrumentation key";
|
|
4895
|
-
if (!_isInitialized) {
|
|
4896
|
-
throwError(msg);
|
|
4897
|
-
}
|
|
4898
|
-
else {
|
|
4899
|
-
_throwInternal(_logger, 1 , 100 , msg);
|
|
4900
|
-
_releaseQueues();
|
|
4901
|
-
}
|
|
4902
|
-
return;
|
|
4903
|
-
}
|
|
4904
|
-
var promises = [];
|
|
4905
|
-
if (isPromiseLike(ikey)) {
|
|
4906
|
-
promises[_DYN_PUSH ](ikey);
|
|
4907
|
-
_instrumentationKey = null;
|
|
4908
|
-
}
|
|
4909
|
-
else {
|
|
4910
|
-
_instrumentationKey = ikey;
|
|
4911
|
-
}
|
|
4912
|
-
if (isPromiseLike(endpointUrl)) {
|
|
4913
|
-
promises[_DYN_PUSH ](endpointUrl);
|
|
4914
|
-
_endpoint = null;
|
|
4915
|
-
}
|
|
4916
|
-
else {
|
|
4917
|
-
_endpoint = endpointUrl;
|
|
4918
|
-
}
|
|
4919
|
-
if (promises[_DYN_LENGTH$1 ]) {
|
|
4920
|
-
_isStatusSet = false;
|
|
4921
|
-
_activeStatus = 3 ;
|
|
4922
|
-
var initTimeout = isNotNullOrUndefined(rootCfg.initTimeOut) ? rootCfg.initTimeOut : maxInitTimeout;
|
|
4923
|
-
var allPromises = createSyncAllSettledPromise(promises);
|
|
4924
|
-
scheduleTimeout(function () {
|
|
4925
|
-
if (!_isStatusSet) {
|
|
4926
|
-
_setStatus();
|
|
4927
|
-
}
|
|
4928
|
-
}, initTimeout);
|
|
4929
|
-
doAwaitResponse(allPromises, function (response) {
|
|
4930
|
-
try {
|
|
4931
|
-
if (_isStatusSet) {
|
|
4932
|
-
return;
|
|
4933
|
-
}
|
|
4934
|
-
if (!response.rejected) {
|
|
4935
|
-
var values = response[_DYN_VALUE$1 ];
|
|
4936
|
-
if (values && values[_DYN_LENGTH$1 ]) {
|
|
4937
|
-
var ikeyRes = values[0];
|
|
4938
|
-
_instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE$1 ];
|
|
4939
|
-
if (values[_DYN_LENGTH$1 ] > 1) {
|
|
4940
|
-
var endpointRes = values[1];
|
|
4941
|
-
_endpoint = endpointRes && endpointRes[_DYN_VALUE$1 ];
|
|
4942
|
-
}
|
|
4943
|
-
}
|
|
4944
|
-
if (_instrumentationKey) {
|
|
4945
|
-
config.instrumentationKey = _instrumentationKey;
|
|
4946
|
-
config.endpointUrl = _endpoint;
|
|
4947
|
-
}
|
|
4948
|
-
}
|
|
4949
|
-
_setStatus();
|
|
4950
|
-
}
|
|
4951
|
-
catch (e) {
|
|
4952
|
-
if (!_isStatusSet) {
|
|
4953
|
-
_setStatus();
|
|
4954
|
-
}
|
|
4955
|
-
}
|
|
4956
|
-
});
|
|
4957
|
-
}
|
|
4958
|
-
else {
|
|
4959
|
-
_setStatus();
|
|
4960
|
-
}
|
|
4886
|
+
_handleIKeyEndpointPromises(rootCfg);
|
|
4961
4887
|
var extCfg = details.ref(details.cfg, STR_EXTENSION_CONFIG);
|
|
4962
4888
|
objForEachKey(extCfg, function (key) {
|
|
4963
4889
|
details.ref(extCfg, key);
|
|
@@ -5078,6 +5004,89 @@
|
|
|
5078
5004
|
_internalLogPoller && _internalLogPoller[_DYN_CANCEL ]();
|
|
5079
5005
|
return _startLogPoller(true);
|
|
5080
5006
|
};
|
|
5007
|
+
function _handleIKeyEndpointPromises(theConfig) {
|
|
5008
|
+
var ikey = theConfig.instrumentationKey;
|
|
5009
|
+
var endpointUrl = theConfig.endpointUrl;
|
|
5010
|
+
if (_activeStatus !== 3 ) {
|
|
5011
|
+
if (isNullOrUndefined(ikey)) {
|
|
5012
|
+
_instrumentationKey = null;
|
|
5013
|
+
_activeStatus = ActiveStatus.INACTIVE;
|
|
5014
|
+
var msg = "Please provide instrumentation key";
|
|
5015
|
+
if (!_isInitialized) {
|
|
5016
|
+
throwError(msg);
|
|
5017
|
+
}
|
|
5018
|
+
else {
|
|
5019
|
+
_throwInternal(_logger, 1 , 100 , msg);
|
|
5020
|
+
_releaseQueues();
|
|
5021
|
+
}
|
|
5022
|
+
return;
|
|
5023
|
+
}
|
|
5024
|
+
var promises = [];
|
|
5025
|
+
if (isPromiseLike(ikey)) {
|
|
5026
|
+
promises[_DYN_PUSH ](ikey);
|
|
5027
|
+
_instrumentationKey = null;
|
|
5028
|
+
}
|
|
5029
|
+
else {
|
|
5030
|
+
_instrumentationKey = ikey;
|
|
5031
|
+
}
|
|
5032
|
+
if (isPromiseLike(endpointUrl)) {
|
|
5033
|
+
promises[_DYN_PUSH ](endpointUrl);
|
|
5034
|
+
_endpoint = null;
|
|
5035
|
+
}
|
|
5036
|
+
else {
|
|
5037
|
+
_endpoint = endpointUrl;
|
|
5038
|
+
}
|
|
5039
|
+
if (promises[_DYN_LENGTH$1 ]) {
|
|
5040
|
+
_waitForInitPromises(theConfig, promises);
|
|
5041
|
+
}
|
|
5042
|
+
else {
|
|
5043
|
+
_setStatus();
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
function _waitForInitPromises(theConfig, promises) {
|
|
5048
|
+
_isStatusSet = false;
|
|
5049
|
+
_activeStatus = 3 ;
|
|
5050
|
+
var initTimeout = isNotNullOrUndefined(theConfig.initTimeOut) ? theConfig.initTimeOut : maxInitTimeout;
|
|
5051
|
+
var allPromises = createSyncAllSettledPromise(promises);
|
|
5052
|
+
if (_initTimer) {
|
|
5053
|
+
_initTimer[_DYN_CANCEL ]();
|
|
5054
|
+
}
|
|
5055
|
+
_initTimer = scheduleTimeout(function () {
|
|
5056
|
+
_initTimer = null;
|
|
5057
|
+
if (!_isStatusSet) {
|
|
5058
|
+
_setStatus();
|
|
5059
|
+
}
|
|
5060
|
+
}, initTimeout);
|
|
5061
|
+
doAwaitResponse(allPromises, function (response) {
|
|
5062
|
+
try {
|
|
5063
|
+
if (_isStatusSet) {
|
|
5064
|
+
return;
|
|
5065
|
+
}
|
|
5066
|
+
if (!response.rejected) {
|
|
5067
|
+
var values = response[_DYN_VALUE$1 ];
|
|
5068
|
+
if (values && values[_DYN_LENGTH$1 ]) {
|
|
5069
|
+
var ikeyRes = values[0];
|
|
5070
|
+
_instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE$1 ];
|
|
5071
|
+
if (values[_DYN_LENGTH$1 ] > 1) {
|
|
5072
|
+
var endpointRes = values[1];
|
|
5073
|
+
_endpoint = endpointRes && endpointRes[_DYN_VALUE$1 ];
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
5076
|
+
if (_instrumentationKey) {
|
|
5077
|
+
theConfig.instrumentationKey = _instrumentationKey;
|
|
5078
|
+
theConfig.endpointUrl = _endpoint;
|
|
5079
|
+
}
|
|
5080
|
+
}
|
|
5081
|
+
_setStatus();
|
|
5082
|
+
}
|
|
5083
|
+
catch (e) {
|
|
5084
|
+
if (!_isStatusSet) {
|
|
5085
|
+
_setStatus();
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
});
|
|
5089
|
+
}
|
|
5081
5090
|
function _setStatus() {
|
|
5082
5091
|
_isStatusSet = true;
|
|
5083
5092
|
if (isNullOrUndefined(_instrumentationKey)) {
|
|
@@ -5370,6 +5379,7 @@
|
|
|
5370
5379
|
_endpoint = null;
|
|
5371
5380
|
_initInMemoMaxSize = null;
|
|
5372
5381
|
_isStatusSet = false;
|
|
5382
|
+
_initTimer = null;
|
|
5373
5383
|
}
|
|
5374
5384
|
function _createTelCtx() {
|
|
5375
5385
|
var theCtx = createProcessTelemetryContext(_getPluginChain(), _configHandler.cfg, _self);
|
|
@@ -6403,7 +6413,7 @@
|
|
|
6403
6413
|
var _DYN_CAN_HANDLE = "canHandle";
|
|
6404
6414
|
|
|
6405
6415
|
var _a;
|
|
6406
|
-
var Version = '4.3.7-nightly3.2504-
|
|
6416
|
+
var Version = '4.3.7-nightly3.2504-07';
|
|
6407
6417
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
6408
6418
|
var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
|
|
6409
6419
|
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|