@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2210-17 → 3.0.0-beta.2210-19
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/applicationinsights-dependencies-js.integrity.json +9 -9
- package/browser/applicationinsights-dependencies-js.js +153 -97
- package/browser/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.d.ts +1 -1
- package/dist/applicationinsights-dependencies-js.js +153 -97
- package/dist/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.rollup.d.ts +1 -1
- package/dist-esm/DependencyInitializer.js +1 -1
- package/dist-esm/DependencyListener.js +1 -1
- package/dist-esm/InternalConstants.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/ajax.js +4 -4
- package/dist-esm/ajax.js.map +1 -1
- package/dist-esm/ajaxRecord.js +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
- package/src/ajax.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2210-
|
|
2
|
+
* Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2210-19
|
|
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
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.0-beta.2210-
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.0-beta.2210-19
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -377,6 +377,7 @@
|
|
|
377
377
|
var PROTOTYPE = "prototype";
|
|
378
378
|
var STRING = "string";
|
|
379
379
|
var UNDEFINED = "undefined";
|
|
380
|
+
var CONSTRUCTOR = "constructor";
|
|
380
381
|
var HAS_OWN_PROPERTY = "hasOwnProperty";
|
|
381
382
|
var SYMBOL = "Symbol";
|
|
382
383
|
var POLYFILL_TAG = "_polyfill";
|
|
@@ -446,7 +447,7 @@
|
|
|
446
447
|
return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
|
|
447
448
|
}
|
|
448
449
|
|
|
449
|
-
function objForEachKey
|
|
450
|
+
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
450
451
|
if (theObject && isObject(theObject)) {
|
|
451
452
|
for (var prop in theObject) {
|
|
452
453
|
if (objHasOwn(theObject, prop)) {
|
|
@@ -478,7 +479,7 @@
|
|
|
478
479
|
}
|
|
479
480
|
function objDeepFreeze(value) {
|
|
480
481
|
if (_objFreeze) {
|
|
481
|
-
objForEachKey
|
|
482
|
+
objForEachKey(value, function (key, value) {
|
|
482
483
|
if (isArray(value) || isObject(value)) {
|
|
483
484
|
_objFreeze(value);
|
|
484
485
|
}
|
|
@@ -488,11 +489,11 @@
|
|
|
488
489
|
}
|
|
489
490
|
var objFreeze = _objFreeze || _doNothing;
|
|
490
491
|
ObjClass["seal"] || _doNothing;
|
|
491
|
-
ObjClass["getPrototypeOf"] || _doNothing;
|
|
492
|
+
var objGetPrototypeOf = ObjClass["getPrototypeOf"] || _doNothing;
|
|
492
493
|
|
|
493
494
|
function createSimpleMap(values) {
|
|
494
495
|
var mapClass = {};
|
|
495
|
-
objForEachKey
|
|
496
|
+
objForEachKey(values, function (field, value) {
|
|
496
497
|
mapClass[field] = value[1];
|
|
497
498
|
mapClass[value[0]] = value[1];
|
|
498
499
|
});
|
|
@@ -562,7 +563,7 @@
|
|
|
562
563
|
d.__proto__ = b;
|
|
563
564
|
}) ||
|
|
564
565
|
function (d, b) {
|
|
565
|
-
objForEachKey
|
|
566
|
+
objForEachKey(b, function (key, value) {
|
|
566
567
|
d[key] = value;
|
|
567
568
|
});
|
|
568
569
|
};
|
|
@@ -725,6 +726,13 @@
|
|
|
725
726
|
(!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = _lazySafeGet(function () { return getInst(DOCUMENT); }, UNDEF_VALUE));
|
|
726
727
|
return _cachedDocument.v;
|
|
727
728
|
}
|
|
729
|
+
function hasWindow() {
|
|
730
|
+
return !!getWindow();
|
|
731
|
+
}
|
|
732
|
+
function getWindow() {
|
|
733
|
+
(!_cachedWindow || (_globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = _lazySafeGet(function () { return getInst(WINDOW); }, UNDEF_VALUE));
|
|
734
|
+
return _cachedWindow.v;
|
|
735
|
+
}
|
|
728
736
|
function getNavigator() {
|
|
729
737
|
(!_cachedNavigator || (_globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = _lazySafeGet(function () { return getInst(NAVIGATOR); }, UNDEF_VALUE));
|
|
730
738
|
return _cachedNavigator.v;
|
|
@@ -800,11 +808,57 @@
|
|
|
800
808
|
|
|
801
809
|
var arrIndexOf = _unwrapFunction(INDEX_OF);
|
|
802
810
|
|
|
811
|
+
function utcNow() {
|
|
812
|
+
return (Date.now || polyUtcNow)();
|
|
813
|
+
}
|
|
814
|
+
function polyUtcNow() {
|
|
815
|
+
return new Date().getTime();
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
var _fnToString$1;
|
|
819
|
+
var _objCtrFnString;
|
|
820
|
+
var _gblWindow;
|
|
821
|
+
function isPlainObject(value) {
|
|
822
|
+
if (!value || typeof value !== OBJECT) {
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
if (!_gblWindow) {
|
|
826
|
+
_gblWindow = hasWindow() ? getWindow() : true;
|
|
827
|
+
}
|
|
828
|
+
var result = false;
|
|
829
|
+
if (value !== _gblWindow) {
|
|
830
|
+
if (!_objCtrFnString) {
|
|
831
|
+
_fnToString$1 = Function[PROTOTYPE].toString;
|
|
832
|
+
_objCtrFnString = _fnToString$1.call(ObjClass);
|
|
833
|
+
}
|
|
834
|
+
try {
|
|
835
|
+
var proto = objGetPrototypeOf(value);
|
|
836
|
+
result = !proto;
|
|
837
|
+
if (!result) {
|
|
838
|
+
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
839
|
+
proto = proto[CONSTRUCTOR];
|
|
840
|
+
}
|
|
841
|
+
result = proto && typeof proto === FUNCTION && _fnToString$1.call(proto) === _objCtrFnString;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
catch (ex) {
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
return result;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
var _perf;
|
|
851
|
+
function getPerformance() {
|
|
852
|
+
(!_perf || (_globalLazyTestHooks.lzy && !_perf.b)) && (_perf = _lazySafeGet(function () { return getInst("performance"); }, UNDEF_VALUE));
|
|
853
|
+
return _perf.v;
|
|
854
|
+
}
|
|
855
|
+
|
|
803
856
|
var mathMax = MathCls.max;
|
|
804
857
|
|
|
805
858
|
var strSlice = _unwrapFunction("slice");
|
|
806
859
|
|
|
807
860
|
var SUB_STR = "substr";
|
|
861
|
+
var strSubstring = _unwrapFunction("substring");
|
|
808
862
|
var strSubstr = StrProto[SUB_STR] ? _unwrapFunction(SUB_STR) : polyStrSubstr;
|
|
809
863
|
function polyStrSubstr(value, start, length) {
|
|
810
864
|
if (isNullOrUndefined(value)) {
|
|
@@ -822,6 +876,9 @@
|
|
|
822
876
|
}
|
|
823
877
|
return strSlice(value, start, start + length);
|
|
824
878
|
}
|
|
879
|
+
function strLeft(value, count) {
|
|
880
|
+
return strSubstring(value, 0, count);
|
|
881
|
+
}
|
|
825
882
|
|
|
826
883
|
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
827
884
|
|
|
@@ -878,11 +935,10 @@
|
|
|
878
935
|
var _DYN_CONFIGURABLE = "configurable";
|
|
879
936
|
var _DYN_ENUMERABLE = "enumerable";
|
|
880
937
|
var _DYN_APPLY = "apply";
|
|
881
|
-
var _DYN_INDEX_OF$1 = "indexOf";
|
|
882
938
|
var _DYN_PUSH = "push";
|
|
939
|
+
var _DYN_SPLICE = "splice";
|
|
883
940
|
var _DYN_INITIALIZE = "initialize";
|
|
884
941
|
var _DYN_IDENTIFIER = "identifier";
|
|
885
|
-
var _DYN_SPLICE = "splice";
|
|
886
942
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
887
943
|
var _DYN_NAME$2 = "name";
|
|
888
944
|
var _DYN_TIME = "time";
|
|
@@ -936,7 +992,6 @@
|
|
|
936
992
|
throw new aggregationErrorType(message, sourceErrors || []);
|
|
937
993
|
}
|
|
938
994
|
|
|
939
|
-
var UNDEFINED_VALUE = undefined;
|
|
940
995
|
var STR_EMPTY = "";
|
|
941
996
|
var STR_CORE = "core";
|
|
942
997
|
var STR_DISABLED = "disabled";
|
|
@@ -950,9 +1005,8 @@
|
|
|
950
1005
|
|
|
951
1006
|
var strToString = "toString";
|
|
952
1007
|
var strGetPrototypeOf = "getPrototypeOf";
|
|
953
|
-
var strConstructor = "constructor";
|
|
954
1008
|
var _fnToString = ObjClass$1[strToString];
|
|
955
|
-
|
|
1009
|
+
_fnToString[_DYN_CALL ](ObjClass$1);
|
|
956
1010
|
var rCamelCase = /-([a-z])/g;
|
|
957
1011
|
var rNormalizeInvalid = /([^\w\d_$])/g;
|
|
958
1012
|
var rLeadingNumeric = /^(\d+[\w\d_$])/;
|
|
@@ -973,36 +1027,15 @@
|
|
|
973
1027
|
}
|
|
974
1028
|
return value;
|
|
975
1029
|
}
|
|
976
|
-
var objForEachKey = objForEachKey$1;
|
|
977
1030
|
function strContains(value, search) {
|
|
978
1031
|
if (value && search) {
|
|
979
1032
|
return strIndexOf(value, search) !== -1;
|
|
980
1033
|
}
|
|
981
1034
|
return false;
|
|
982
1035
|
}
|
|
983
|
-
function isPlainObject(value) {
|
|
984
|
-
var result = false;
|
|
985
|
-
if (value && typeof value === "object") {
|
|
986
|
-
var proto = _getObjProto(value);
|
|
987
|
-
if (!proto) {
|
|
988
|
-
result = true;
|
|
989
|
-
}
|
|
990
|
-
else {
|
|
991
|
-
if (proto[strConstructor] && objHasOwnProperty(proto, strConstructor)) {
|
|
992
|
-
proto = proto[strConstructor];
|
|
993
|
-
}
|
|
994
|
-
result = typeof proto === strShimFunction && _fnToString[_DYN_CALL ](proto) === _objFunctionString;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
return result;
|
|
998
|
-
}
|
|
999
1036
|
function toISOString(date) {
|
|
1000
1037
|
return date && date.toISOString() || "";
|
|
1001
1038
|
}
|
|
1002
|
-
function dateNow() {
|
|
1003
|
-
var dt = Date;
|
|
1004
|
-
return dt.now ? dt.now() : new dt().getTime();
|
|
1005
|
-
}
|
|
1006
1039
|
function getExceptionName(object) {
|
|
1007
1040
|
if (isError(object)) {
|
|
1008
1041
|
return object[_DYN_NAME$2 ];
|
|
@@ -1052,7 +1085,6 @@
|
|
|
1052
1085
|
var strDocumentMode = "documentMode";
|
|
1053
1086
|
var strLocation = "location";
|
|
1054
1087
|
var strConsole = "console";
|
|
1055
|
-
var strPerformance = "performance";
|
|
1056
1088
|
var strJSON = "JSON";
|
|
1057
1089
|
var strCrypto = "crypto";
|
|
1058
1090
|
var strMsCrypto = "msCrypto";
|
|
@@ -1080,9 +1112,6 @@
|
|
|
1080
1112
|
}
|
|
1081
1113
|
return getInst(strConsole);
|
|
1082
1114
|
}
|
|
1083
|
-
function getPerformance() {
|
|
1084
|
-
return getInst(strPerformance);
|
|
1085
|
-
}
|
|
1086
1115
|
function hasJSON() {
|
|
1087
1116
|
return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
|
|
1088
1117
|
}
|
|
@@ -1152,7 +1181,7 @@
|
|
|
1152
1181
|
}
|
|
1153
1182
|
function _autoSeedMwc() {
|
|
1154
1183
|
try {
|
|
1155
|
-
var now =
|
|
1184
|
+
var now = utcNow() & 0x7fffffff;
|
|
1156
1185
|
_mwcSeed(((Math.random() * UInt32Mask) ^ now) + now);
|
|
1157
1186
|
}
|
|
1158
1187
|
catch (e) {
|
|
@@ -1206,7 +1235,7 @@
|
|
|
1206
1235
|
}
|
|
1207
1236
|
|
|
1208
1237
|
var _objDefineProperty = ObjDefineProperty;
|
|
1209
|
-
var version = "3.0.0-beta.2210-
|
|
1238
|
+
var version = "3.0.0-beta.2210-19";
|
|
1210
1239
|
var instanceName = "." + newId(6);
|
|
1211
1240
|
var _dataUid = 0;
|
|
1212
1241
|
function _createAccessor(target, prop, value) {
|
|
@@ -1291,7 +1320,7 @@
|
|
|
1291
1320
|
target_1 = {};
|
|
1292
1321
|
}
|
|
1293
1322
|
if (target_1) {
|
|
1294
|
-
objForEachKey
|
|
1323
|
+
objForEachKey(source, function (key, value) {
|
|
1295
1324
|
target_1[key] = _cfgDeepCopy(value);
|
|
1296
1325
|
});
|
|
1297
1326
|
return target_1;
|
|
@@ -1406,9 +1435,18 @@
|
|
|
1406
1435
|
var detail = {
|
|
1407
1436
|
n: name,
|
|
1408
1437
|
h: [],
|
|
1409
|
-
|
|
1410
|
-
if (handler && handler.fn
|
|
1411
|
-
detail.h
|
|
1438
|
+
trk: function (handler) {
|
|
1439
|
+
if (handler && handler.fn) {
|
|
1440
|
+
if (arrIndexOf(detail.h, handler) === -1) {
|
|
1441
|
+
detail.h[_DYN_PUSH ](handler);
|
|
1442
|
+
}
|
|
1443
|
+
state.trk(handler, detail);
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
clr: function (handler) {
|
|
1447
|
+
var idx = arrIndexOf(detail.h, handler);
|
|
1448
|
+
if (idx !== -1) {
|
|
1449
|
+
detail.h[_DYN_SPLICE ](idx, 1);
|
|
1412
1450
|
}
|
|
1413
1451
|
}
|
|
1414
1452
|
};
|
|
@@ -1422,25 +1460,28 @@
|
|
|
1422
1460
|
}
|
|
1423
1461
|
var activeHandler = state.act;
|
|
1424
1462
|
if (activeHandler) {
|
|
1425
|
-
detail.
|
|
1463
|
+
detail.trk(activeHandler);
|
|
1426
1464
|
}
|
|
1427
1465
|
return value;
|
|
1428
1466
|
}
|
|
1429
|
-
_getProperty[state.prop] =
|
|
1467
|
+
_getProperty[state.prop] = {
|
|
1468
|
+
chng: function () {
|
|
1469
|
+
state.add(detail);
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1430
1472
|
function _setProperty(newValue) {
|
|
1431
1473
|
if (value !== newValue) {
|
|
1432
1474
|
if (!!_setProperty[state.ro] && state.upd) {
|
|
1433
1475
|
throwInvalidAccess("[" + name + "] is sealed from " + dumpObj(theConfig));
|
|
1434
1476
|
}
|
|
1435
1477
|
if (value && value[CFG_HANDLER_LINK]) {
|
|
1436
|
-
if (isPlainObject(value)) {
|
|
1437
|
-
objForEachKey
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
value[idx] = UNDEFINED_VALUE;
|
|
1478
|
+
if (isPlainObject(value) || isArray(value)) {
|
|
1479
|
+
objForEachKey(value, function (key) {
|
|
1480
|
+
var propDesc = objGetOwnPropertyDescriptor(value, key);
|
|
1481
|
+
if (propDesc && propDesc.get) {
|
|
1482
|
+
var valueState = propDesc.get[state.prop];
|
|
1483
|
+
valueState && valueState.chng();
|
|
1484
|
+
}
|
|
1444
1485
|
});
|
|
1445
1486
|
}
|
|
1446
1487
|
}
|
|
@@ -1472,7 +1513,7 @@
|
|
|
1472
1513
|
}
|
|
1473
1514
|
function _makeDynamicObject(state, target ) {
|
|
1474
1515
|
var _a;
|
|
1475
|
-
objForEachKey
|
|
1516
|
+
objForEachKey( target, function (key, value) {
|
|
1476
1517
|
_setDynamicProperty(state, target, key, value);
|
|
1477
1518
|
});
|
|
1478
1519
|
if (!target[CFG_HANDLER_LINK]) {
|
|
@@ -1490,19 +1531,10 @@
|
|
|
1490
1531
|
|
|
1491
1532
|
var symPrefix = "[[ai_";
|
|
1492
1533
|
var symPostfix = "]]";
|
|
1493
|
-
function _insertWatcher(watchers, theDetail) {
|
|
1494
|
-
if (theDetail && theDetail.h && theDetail.h[_DYN_LENGTH$2 ] > 0) {
|
|
1495
|
-
arrForEach(theDetail.h, function (handler) {
|
|
1496
|
-
if (handler && handler.fn && watchers[_DYN_INDEX_OF$1 ](handler) === -1) {
|
|
1497
|
-
watchers[_DYN_PUSH ](handler);
|
|
1498
|
-
}
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
1534
|
function _createState(cfgHandler) {
|
|
1503
|
-
var _a;
|
|
1504
1535
|
var dynamicPropertySymbol = newSymbol(symPrefix + "get" + cfgHandler.uid + symPostfix);
|
|
1505
1536
|
var dynamicPropertyReadOnly = newSymbol(symPrefix + "ro" + cfgHandler.uid + symPostfix);
|
|
1537
|
+
var dynamicPropertyDetail = newSymbol(symPrefix + "dtl" + cfgHandler.uid + symPostfix);
|
|
1506
1538
|
var _waitingHandlers = null;
|
|
1507
1539
|
var _watcherTimer = null;
|
|
1508
1540
|
var theState;
|
|
@@ -1510,6 +1542,12 @@
|
|
|
1510
1542
|
var prevWatcher = theState.act;
|
|
1511
1543
|
try {
|
|
1512
1544
|
theState.act = activeHandler;
|
|
1545
|
+
if (activeHandler && activeHandler[dynamicPropertyDetail]) {
|
|
1546
|
+
arrForEach(activeHandler[dynamicPropertyDetail], function (detail) {
|
|
1547
|
+
detail.clr(activeHandler);
|
|
1548
|
+
});
|
|
1549
|
+
activeHandler[dynamicPropertyDetail] = [];
|
|
1550
|
+
}
|
|
1513
1551
|
callback({
|
|
1514
1552
|
cfg: cfgHandler.cfg,
|
|
1515
1553
|
set: cfgHandler.set.bind(cfgHandler),
|
|
@@ -1519,7 +1557,7 @@
|
|
|
1519
1557
|
catch (e) {
|
|
1520
1558
|
var logger = cfgHandler[_DYN_LOGGER ];
|
|
1521
1559
|
if (logger) {
|
|
1522
|
-
logger[_DYN_THROW_INTERNAL ](1 , 107 ,
|
|
1560
|
+
logger[_DYN_THROW_INTERNAL ](1 , 107 , dumpObj(e));
|
|
1523
1561
|
}
|
|
1524
1562
|
throw e;
|
|
1525
1563
|
}
|
|
@@ -1531,18 +1569,24 @@
|
|
|
1531
1569
|
if (_waitingHandlers) {
|
|
1532
1570
|
var notifyHandlers = _waitingHandlers;
|
|
1533
1571
|
_waitingHandlers = null;
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
_watcherTimer = null;
|
|
1537
|
-
}
|
|
1572
|
+
_watcherTimer && _watcherTimer.cancel();
|
|
1573
|
+
_watcherTimer = null;
|
|
1538
1574
|
var watcherFailures_1 = [];
|
|
1539
1575
|
arrForEach(notifyHandlers, function (handler) {
|
|
1540
|
-
if (handler
|
|
1541
|
-
|
|
1542
|
-
|
|
1576
|
+
if (handler) {
|
|
1577
|
+
if (handler[dynamicPropertyDetail]) {
|
|
1578
|
+
arrForEach(handler[dynamicPropertyDetail], function (detail) {
|
|
1579
|
+
detail.clr(handler);
|
|
1580
|
+
});
|
|
1581
|
+
handler[dynamicPropertyDetail] = null;
|
|
1543
1582
|
}
|
|
1544
|
-
|
|
1545
|
-
|
|
1583
|
+
if (handler.fn) {
|
|
1584
|
+
try {
|
|
1585
|
+
_useHandler(handler, handler.fn);
|
|
1586
|
+
}
|
|
1587
|
+
catch (e) {
|
|
1588
|
+
watcherFailures_1[_DYN_PUSH ](e);
|
|
1589
|
+
}
|
|
1546
1590
|
}
|
|
1547
1591
|
}
|
|
1548
1592
|
});
|
|
@@ -1555,7 +1599,7 @@
|
|
|
1555
1599
|
}
|
|
1556
1600
|
}
|
|
1557
1601
|
if (watcherFailures_1[_DYN_LENGTH$2 ] > 0) {
|
|
1558
|
-
throwAggregationError("
|
|
1602
|
+
throwAggregationError("Watcher error(s): ", watcherFailures_1);
|
|
1559
1603
|
}
|
|
1560
1604
|
}
|
|
1561
1605
|
}
|
|
@@ -1570,18 +1614,31 @@
|
|
|
1570
1614
|
_notifyWatchers();
|
|
1571
1615
|
}, 0);
|
|
1572
1616
|
}
|
|
1573
|
-
|
|
1617
|
+
for (var idx = 0; idx < detail.h[_DYN_LENGTH$2 ]; idx++) {
|
|
1618
|
+
var handler = detail.h[idx];
|
|
1619
|
+
if (handler && arrIndexOf(_waitingHandlers, handler) === -1) {
|
|
1620
|
+
_waitingHandlers[_DYN_PUSH ](handler);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1574
1623
|
}
|
|
1575
1624
|
}
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1625
|
+
function _trackHandler(handler, detail) {
|
|
1626
|
+
if (handler) {
|
|
1627
|
+
var details = handler[dynamicPropertyDetail] = handler[dynamicPropertyDetail] || [];
|
|
1628
|
+
if (arrIndexOf(details, detail) === -1) {
|
|
1629
|
+
details[_DYN_PUSH ](detail);
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
theState = {
|
|
1634
|
+
prop: dynamicPropertySymbol,
|
|
1635
|
+
ro: dynamicPropertyReadOnly,
|
|
1636
|
+
hdlr: cfgHandler,
|
|
1637
|
+
add: _addWatcher,
|
|
1638
|
+
notify: _notifyWatchers,
|
|
1639
|
+
use: _useHandler,
|
|
1640
|
+
trk: _trackHandler
|
|
1641
|
+
};
|
|
1585
1642
|
return theState;
|
|
1586
1643
|
}
|
|
1587
1644
|
|
|
@@ -1865,7 +1922,7 @@
|
|
|
1865
1922
|
var PerfEvent = /** @class */ (function () {
|
|
1866
1923
|
function PerfEvent(name, payloadDetails, isAsync) {
|
|
1867
1924
|
var _self = this;
|
|
1868
|
-
_self.start =
|
|
1925
|
+
_self.start = utcNow();
|
|
1869
1926
|
_self[_DYN_NAME$2 ] = name;
|
|
1870
1927
|
_self[_DYN_IS_ASYNC ] = isAsync;
|
|
1871
1928
|
_self[_DYN_IS_CHILD_EVT ] = function () { return false; };
|
|
@@ -1916,7 +1973,7 @@
|
|
|
1916
1973
|
}
|
|
1917
1974
|
}
|
|
1918
1975
|
}
|
|
1919
|
-
_self[_DYN_TIME ] =
|
|
1976
|
+
_self[_DYN_TIME ] = utcNow() - _self.start;
|
|
1920
1977
|
_self.exTime = _self[_DYN_TIME ] - childTime;
|
|
1921
1978
|
_self[_DYN_COMPLETE ] = function () { };
|
|
1922
1979
|
};
|
|
@@ -2019,7 +2076,7 @@
|
|
|
2019
2076
|
return _a = {},
|
|
2020
2077
|
_a[_DYN_VERSION ] = _isValid(version, 2, INVALID_VERSION) ? version : DEFAULT_VERSION,
|
|
2021
2078
|
_a[_DYN_TRACE_ID$1 ] = isValidTraceId(traceId) ? traceId : generateW3CId(),
|
|
2022
|
-
_a[_DYN_SPAN_ID$1 ] = isValidSpanId(spanId) ? spanId : generateW3CId()
|
|
2079
|
+
_a[_DYN_SPAN_ID$1 ] = isValidSpanId(spanId) ? spanId : strLeft(generateW3CId(), 16),
|
|
2023
2080
|
_a.traceFlags = flags >= 0 && flags <= 0xFF ? flags : 1,
|
|
2024
2081
|
_a;
|
|
2025
2082
|
}
|
|
@@ -2138,7 +2195,7 @@
|
|
|
2138
2195
|
if (!extCfg && createIfMissing) {
|
|
2139
2196
|
extCfg = {};
|
|
2140
2197
|
}
|
|
2141
|
-
dynamicHandler.set(cfg,
|
|
2198
|
+
dynamicHandler.set(cfg, STR_EXTENSION_CONFIG, extCfg);
|
|
2142
2199
|
extCfg = cfg[STR_EXTENSION_CONFIG ];
|
|
2143
2200
|
if (extCfg) {
|
|
2144
2201
|
idCfg = extCfg[identifier];
|
|
@@ -2873,7 +2930,6 @@
|
|
|
2873
2930
|
var _DYN_NAME$1 = "name";
|
|
2874
2931
|
var _DYN_PATHNAME = "pathname";
|
|
2875
2932
|
var _DYN_CORRELATION_HEADER_E0 = "correlationHeaderExcludePatterns";
|
|
2876
|
-
var _DYN_INDEX_OF = "indexOf";
|
|
2877
2933
|
var _DYN_PROPERTIES = "properties";
|
|
2878
2934
|
var _DYN_MEASUREMENTS = "measurements";
|
|
2879
2935
|
var _DYN_STRINGIFY = "stringify";
|
|
@@ -2924,7 +2980,7 @@
|
|
|
2924
2980
|
function dataSanitizeProperties(logger, properties) {
|
|
2925
2981
|
if (properties) {
|
|
2926
2982
|
var tempProps_1 = {};
|
|
2927
|
-
objForEachKey
|
|
2983
|
+
objForEachKey(properties, function (prop, value) {
|
|
2928
2984
|
if (isObject(value) && hasJSON()) {
|
|
2929
2985
|
try {
|
|
2930
2986
|
value = getJSON()[_DYN_STRINGIFY ](value);
|
|
@@ -2944,7 +3000,7 @@
|
|
|
2944
3000
|
function dataSanitizeMeasurements(logger, measurements) {
|
|
2945
3001
|
if (measurements) {
|
|
2946
3002
|
var tempMeasurements_1 = {};
|
|
2947
|
-
objForEachKey
|
|
3003
|
+
objForEachKey(measurements, function (measure, value) {
|
|
2948
3004
|
measure = dataSanitizeKeyAndAddUniqueness(logger, measure, tempMeasurements_1);
|
|
2949
3005
|
tempMeasurements_1[measure] = value;
|
|
2950
3006
|
});
|
|
@@ -3056,7 +3112,7 @@
|
|
|
3056
3112
|
}
|
|
3057
3113
|
}
|
|
3058
3114
|
var requestHost = urlParseUrl(requestUrl).host[_DYN_TO_LOWER_CASE$1 ]();
|
|
3059
|
-
if (requestHost && (requestHost
|
|
3115
|
+
if (requestHost && (strIndexOf(requestHost, ":443") !== -1 || strIndexOf(requestHost, ":80") !== -1)) {
|
|
3060
3116
|
requestHost = (urlParseFullHost(requestUrl, true) || "")[_DYN_TO_LOWER_CASE$1 ]();
|
|
3061
3117
|
}
|
|
3062
3118
|
if ((!config || !config.enableCorsCorrelation) && (requestHost && requestHost !== currentHost)) {
|
|
@@ -3141,7 +3197,7 @@
|
|
|
3141
3197
|
return now;
|
|
3142
3198
|
}
|
|
3143
3199
|
}
|
|
3144
|
-
return
|
|
3200
|
+
return utcNow();
|
|
3145
3201
|
}
|
|
3146
3202
|
function dateTimeUtilsDuration(start, end) {
|
|
3147
3203
|
var result = null;
|
|
@@ -3359,7 +3415,7 @@
|
|
|
3359
3415
|
,
|
|
3360
3416
|
_a);
|
|
3361
3417
|
if (!isNullOrUndefined(customProperties)) {
|
|
3362
|
-
objForEachKey
|
|
3418
|
+
objForEachKey(customProperties, function (prop, value) {
|
|
3363
3419
|
telemetryItem.data[prop] = value;
|
|
3364
3420
|
});
|
|
3365
3421
|
}
|
|
@@ -3510,7 +3566,7 @@
|
|
|
3510
3566
|
arrForEach(serverTiming, function (value, idx) {
|
|
3511
3567
|
var name = normalizeJsName(value[strName] || "" + idx);
|
|
3512
3568
|
var newValue = server_1[name] || {};
|
|
3513
|
-
objForEachKey
|
|
3569
|
+
objForEachKey(value, function (key, val) {
|
|
3514
3570
|
if (key !== strName && isString(val) || isNumber(val)) {
|
|
3515
3571
|
if (newValue[key]) {
|
|
3516
3572
|
val = newValue[key] + ";" + val;
|
|
@@ -3751,7 +3807,7 @@
|
|
|
3751
3807
|
}
|
|
3752
3808
|
function _indexOf(value, match) {
|
|
3753
3809
|
if (value && match) {
|
|
3754
|
-
return value
|
|
3810
|
+
return strIndexOf(value, match);
|
|
3755
3811
|
}
|
|
3756
3812
|
return -1;
|
|
3757
3813
|
}
|
|
@@ -4465,7 +4521,7 @@
|
|
|
4465
4521
|
trackCallback();
|
|
4466
4522
|
}
|
|
4467
4523
|
else {
|
|
4468
|
-
|
|
4524
|
+
scheduleTimeout(locateResourceTiming, retryDelay);
|
|
4469
4525
|
}
|
|
4470
4526
|
}
|
|
4471
4527
|
catch (e) {
|