@microsoft/applicationinsights-dependencies-js 3.1.0-nightly3.2401-04 → 3.1.0-nightly3.2401-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-dependencies-js.cjs.js +75 -59
- package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.gbl.js +77 -61
- package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-dependencies-js.js +77 -61
- package/browser/es5/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/es5/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-dependencies-js.js +75 -59
- package/dist/es5/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/es5/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist-es5/DependencyInitializer.js +1 -1
- package/dist-es5/DependencyListener.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/ajax.js +1 -1
- package/dist-es5/ajaxRecord.js +1 -1
- package/dist-es5/ajaxUtils.js +1 -1
- package/dist-es5/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-dependencies-js.d.ts +1 -1
- package/types/applicationinsights-dependencies-js.namespaced.d.ts +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 3.1.0-nightly3.2401-
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 3.1.0-nightly3.2401-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.1.0-nightly3.2401-
|
|
7
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_dependencies_js_3_1_0_nightly3_2401_08", msMod="__ms$mod__";
|
|
8
|
+
var mods={}, modDetail=mods[modName]={}, ver="3.1.0-nightly3.2401-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]||{});
|
|
@@ -47,11 +47,13 @@ var CONSTRUCTOR = "constructor";
|
|
|
47
47
|
var SYMBOL = "Symbol";
|
|
48
48
|
var POLYFILL_TAG = "_polyfill";
|
|
49
49
|
var INDEX_OF = "indexOf";
|
|
50
|
+
var LAST_INDEX_OF = "lastIndexOf";
|
|
50
51
|
var LENGTH = "length";
|
|
51
52
|
var DONE = "done";
|
|
52
53
|
var VALUE = "value";
|
|
53
54
|
var NAME = "name";
|
|
54
55
|
var SLICE = "slice";
|
|
56
|
+
var CALL = "call";
|
|
55
57
|
var ObjClass = Object;
|
|
56
58
|
var ObjProto = ObjClass[PROTOTYPE];
|
|
57
59
|
var StrCls = String;
|
|
@@ -82,7 +84,7 @@ function _createObjIs(theName) {
|
|
|
82
84
|
};
|
|
83
85
|
}
|
|
84
86
|
function objToString(value) {
|
|
85
|
-
return ObjProto.toString
|
|
87
|
+
return ObjProto.toString[CALL](value);
|
|
86
88
|
}
|
|
87
89
|
function isUndefined(value) {
|
|
88
90
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
@@ -96,8 +98,8 @@ function isStrictNullOrUndefined(value) {
|
|
|
96
98
|
function isDefined(arg) {
|
|
97
99
|
return !!arg || arg !== UNDEF_VALUE;
|
|
98
100
|
}
|
|
99
|
-
var isString = _createIs(STRING);
|
|
100
|
-
var isFunction = _createIs(FUNCTION);
|
|
101
|
+
var isString = ( _createIs(STRING));
|
|
102
|
+
var isFunction = ( _createIs(FUNCTION));
|
|
101
103
|
function isObject(value) {
|
|
102
104
|
if (!value && isNullOrUndefined(value)) {
|
|
103
105
|
return false;
|
|
@@ -105,13 +107,13 @@ function isObject(value) {
|
|
|
105
107
|
return !!value && typeof value === OBJECT;
|
|
106
108
|
}
|
|
107
109
|
var isArray = ArrCls.isArray;
|
|
108
|
-
var isNumber = _createIs(NUMBER);
|
|
109
|
-
var isError = _createObjIs("Error");
|
|
110
|
+
var isNumber = ( _createIs(NUMBER));
|
|
111
|
+
var isError = ( _createObjIs("Error"));
|
|
110
112
|
|
|
111
113
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
112
114
|
|
|
113
115
|
function objHasOwnProperty(obj, prop) {
|
|
114
|
-
return obj && ObjProto.hasOwnProperty
|
|
116
|
+
return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
|
|
@@ -123,7 +125,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
123
125
|
if (theObject && isObject(theObject)) {
|
|
124
126
|
for (var prop in theObject) {
|
|
125
127
|
if (objHasOwn(theObject, prop)) {
|
|
126
|
-
if (callbackfn
|
|
128
|
+
if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
127
129
|
break;
|
|
128
130
|
}
|
|
129
131
|
}
|
|
@@ -148,8 +150,12 @@ function throwTypeError(message) {
|
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
var _objFreeze = ObjClass["freeze"];
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
function _doNothing(value) {
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
function _getProto(value) {
|
|
157
|
+
return value[__PROTO__] || NULL_VALUE;
|
|
158
|
+
}
|
|
153
159
|
var objAssign = ObjClass["assign"];
|
|
154
160
|
function objKeys(value) {
|
|
155
161
|
if (!isObject(value) || value === NULL_VALUE) {
|
|
@@ -185,7 +191,7 @@ function createTypeMap(values) {
|
|
|
185
191
|
return createSimpleMap(values);
|
|
186
192
|
}
|
|
187
193
|
|
|
188
|
-
var _wellKnownSymbolMap =
|
|
194
|
+
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
189
195
|
asyncIterator: 0 ,
|
|
190
196
|
hasInstance: 1 ,
|
|
191
197
|
isConcatSpreadable: 2 ,
|
|
@@ -245,43 +251,46 @@ function dumpObj(object, format) {
|
|
|
245
251
|
return objToString(object) + ": " + propertyValueDump;
|
|
246
252
|
}
|
|
247
253
|
|
|
248
|
-
var
|
|
249
|
-
|
|
254
|
+
var _slice;
|
|
255
|
+
function _throwMissingFunction(funcName, thisArg) {
|
|
250
256
|
throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
251
|
-
}
|
|
252
|
-
|
|
257
|
+
}
|
|
258
|
+
function _unwrapInstFunction(funcName) {
|
|
259
|
+
_slice = _slice || ArrProto[SLICE];
|
|
253
260
|
return function (thisArg) {
|
|
254
|
-
return thisArg[funcName].apply(thisArg,
|
|
261
|
+
return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
|
|
255
262
|
};
|
|
256
|
-
}
|
|
257
|
-
|
|
263
|
+
}
|
|
264
|
+
function _unwrapFunction(funcName, clsProto) {
|
|
265
|
+
_slice = _slice || ArrProto[SLICE];
|
|
258
266
|
var clsFn = clsProto && clsProto[funcName];
|
|
259
267
|
return function (thisArg) {
|
|
260
268
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
261
269
|
if (theFunc) {
|
|
262
|
-
return theFunc.apply(thisArg,
|
|
270
|
+
return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
|
|
263
271
|
}
|
|
264
272
|
_throwMissingFunction(funcName, thisArg);
|
|
265
273
|
};
|
|
266
|
-
}
|
|
267
|
-
|
|
274
|
+
}
|
|
275
|
+
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
276
|
+
_slice = _slice || ArrProto[SLICE];
|
|
268
277
|
var clsFn = clsProto && clsProto[funcName];
|
|
269
278
|
return function (thisArg) {
|
|
270
279
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
271
280
|
if (theFunc || polyFunc) {
|
|
272
281
|
var theArgs = arguments;
|
|
273
|
-
return (theFunc || polyFunc).apply(thisArg, theFunc ?
|
|
282
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
|
|
274
283
|
}
|
|
275
284
|
_throwMissingFunction(funcName, thisArg);
|
|
276
285
|
};
|
|
277
|
-
}
|
|
286
|
+
}
|
|
278
287
|
|
|
279
288
|
var mathMax = MathCls.max;
|
|
280
289
|
|
|
281
|
-
var strSlice = _unwrapFunction(SLICE, StrProto);
|
|
290
|
+
var strSlice = ( _unwrapFunction(SLICE, StrProto));
|
|
282
291
|
|
|
283
|
-
var strSubstring = _unwrapFunction("substring", StrProto);
|
|
284
|
-
var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
|
|
292
|
+
var strSubstring = ( _unwrapFunction("substring", StrProto));
|
|
293
|
+
var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
285
294
|
function polyStrSubstr(value, start, length) {
|
|
286
295
|
if (isNullOrUndefined(value)) {
|
|
287
296
|
throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
@@ -411,12 +420,14 @@ var _cachedWindow;
|
|
|
411
420
|
var _cachedDocument;
|
|
412
421
|
var _cachedNavigator;
|
|
413
422
|
var _isWebWorker;
|
|
414
|
-
|
|
415
|
-
|
|
423
|
+
function lazySafeGetInst(name) {
|
|
424
|
+
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
425
|
+
}
|
|
426
|
+
function getGlobal(useCached) {
|
|
416
427
|
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
|
|
417
428
|
return _cachedGlobal.v;
|
|
418
|
-
}
|
|
419
|
-
|
|
429
|
+
}
|
|
430
|
+
function getInst(name, useCached) {
|
|
420
431
|
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
|
|
421
432
|
if (gbl && gbl[name]) {
|
|
422
433
|
return gbl[name];
|
|
@@ -425,24 +436,26 @@ var getInst = function (name, useCached) {
|
|
|
425
436
|
return _cachedWindow.v;
|
|
426
437
|
}
|
|
427
438
|
return NULL_VALUE;
|
|
428
|
-
}
|
|
429
|
-
|
|
439
|
+
}
|
|
440
|
+
function getDocument() {
|
|
430
441
|
(!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
|
|
431
442
|
return _cachedDocument.v;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
443
|
+
}
|
|
444
|
+
function hasWindow() {
|
|
445
|
+
return !!getWindow();
|
|
446
|
+
}
|
|
447
|
+
function getWindow() {
|
|
435
448
|
(!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
|
|
436
449
|
return _cachedWindow.v;
|
|
437
|
-
}
|
|
438
|
-
|
|
450
|
+
}
|
|
451
|
+
function getNavigator() {
|
|
439
452
|
(!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
|
|
440
453
|
return _cachedNavigator.v;
|
|
441
|
-
}
|
|
442
|
-
|
|
454
|
+
}
|
|
455
|
+
function isWebWorker() {
|
|
443
456
|
!_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
|
|
444
457
|
return _isWebWorker.v;
|
|
445
|
-
}
|
|
458
|
+
}
|
|
446
459
|
|
|
447
460
|
var _symbol;
|
|
448
461
|
var _symbolFor;
|
|
@@ -496,7 +509,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
496
509
|
try {
|
|
497
510
|
var count = 0;
|
|
498
511
|
while (!(iterResult = iter.next())[DONE]) {
|
|
499
|
-
if (callbackfn
|
|
512
|
+
if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
|
|
500
513
|
break;
|
|
501
514
|
}
|
|
502
515
|
count++;
|
|
@@ -525,7 +538,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
525
538
|
}
|
|
526
539
|
}
|
|
527
540
|
|
|
528
|
-
var fnApply = _unwrapInstFunction("apply");
|
|
541
|
+
var fnApply = ( _unwrapInstFunction("apply"));
|
|
529
542
|
|
|
530
543
|
function arrAppend(target, elms) {
|
|
531
544
|
if (!isUndefined(elms) && target) {
|
|
@@ -549,7 +562,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
549
562
|
var len = theArray[LENGTH] >>> 0;
|
|
550
563
|
for (var idx = 0; idx < len; idx++) {
|
|
551
564
|
if (idx in theArray) {
|
|
552
|
-
if (callbackfn
|
|
565
|
+
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
553
566
|
break;
|
|
554
567
|
}
|
|
555
568
|
}
|
|
@@ -557,14 +570,12 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
557
570
|
}
|
|
558
571
|
}
|
|
559
572
|
|
|
560
|
-
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
573
|
+
var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
|
|
574
|
+
( _unwrapFunction(LAST_INDEX_OF, ArrProto));
|
|
561
575
|
|
|
562
|
-
var arrSlice = _unwrapFunction(SLICE, ArrProto);
|
|
576
|
+
var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
|
|
563
577
|
|
|
564
|
-
var
|
|
565
|
-
|
|
566
|
-
var _objCreate = ObjClass["create"];
|
|
567
|
-
var objCreate = _objCreate || polyObjCreate;
|
|
578
|
+
var objCreate = ObjClass["create"] || polyObjCreate;
|
|
568
579
|
function polyObjCreate(obj) {
|
|
569
580
|
if (!obj) {
|
|
570
581
|
return {};
|
|
@@ -591,7 +602,7 @@ function objSetPrototypeOf(obj, proto) {
|
|
|
591
602
|
return fn(obj, proto);
|
|
592
603
|
}
|
|
593
604
|
|
|
594
|
-
|
|
605
|
+
function _createCustomError(name, d, b) {
|
|
595
606
|
_safeDefineName(d, name);
|
|
596
607
|
d = objSetPrototypeOf(d, b);
|
|
597
608
|
function __() {
|
|
@@ -600,7 +611,7 @@ var _createCustomError = function (name, d, b) {
|
|
|
600
611
|
}
|
|
601
612
|
d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
|
|
602
613
|
return d;
|
|
603
|
-
}
|
|
614
|
+
}
|
|
604
615
|
var _safeSetName = function (baseClass, name) {
|
|
605
616
|
try {
|
|
606
617
|
name && (baseClass[NAME] = name);
|
|
@@ -658,9 +669,13 @@ function _createTrimFn(exp) {
|
|
|
658
669
|
return value;
|
|
659
670
|
};
|
|
660
671
|
}
|
|
661
|
-
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
672
|
+
var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
673
|
+
var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
|
|
674
|
+
var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
|
|
662
675
|
|
|
663
|
-
var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
|
|
676
|
+
var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
677
|
+
( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
|
|
678
|
+
( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
|
|
664
679
|
|
|
665
680
|
var _fnToString;
|
|
666
681
|
var _objCtrFnString;
|
|
@@ -676,7 +691,7 @@ function isPlainObject(value) {
|
|
|
676
691
|
if (value !== _gblWindow) {
|
|
677
692
|
if (!_objCtrFnString) {
|
|
678
693
|
_fnToString = Function[PROTOTYPE].toString;
|
|
679
|
-
_objCtrFnString =
|
|
694
|
+
_objCtrFnString = _fnToString[CALL](ObjClass);
|
|
680
695
|
}
|
|
681
696
|
try {
|
|
682
697
|
var proto = objGetPrototypeOf(value);
|
|
@@ -685,7 +700,7 @@ function isPlainObject(value) {
|
|
|
685
700
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
686
701
|
proto = proto[CONSTRUCTOR];
|
|
687
702
|
}
|
|
688
|
-
result = proto && typeof proto === FUNCTION && _fnToString
|
|
703
|
+
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
689
704
|
}
|
|
690
705
|
}
|
|
691
706
|
catch (ex) {
|
|
@@ -705,10 +720,11 @@ function polyStrSymSplit(value, splitter, limit) {
|
|
|
705
720
|
return splitFn ? splitFn(value, limit) : [value];
|
|
706
721
|
}
|
|
707
722
|
|
|
708
|
-
var strSplit = _unwrapFunction("split", StrProto);
|
|
709
|
-
|
|
723
|
+
var strSplit = ( _unwrapFunction("split", StrProto));
|
|
724
|
+
( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit : null));
|
|
710
725
|
|
|
711
|
-
var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
|
|
726
|
+
var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
|
|
727
|
+
( _unwrapFunction(LAST_INDEX_OF, StrProto));
|
|
712
728
|
|
|
713
729
|
var REF = "ref";
|
|
714
730
|
var UNREF = "un" + REF;
|
|
@@ -1394,7 +1410,7 @@ function newId(maxLength) {
|
|
|
1394
1410
|
return result;
|
|
1395
1411
|
}
|
|
1396
1412
|
|
|
1397
|
-
var version = '3.1.0-nightly3.2401-
|
|
1413
|
+
var version = '3.1.0-nightly3.2401-08';
|
|
1398
1414
|
var instanceName = "." + newId(6);
|
|
1399
1415
|
var _dataUid = 0;
|
|
1400
1416
|
function _canAcceptData(target) {
|