@microsoft/applicationinsights-dependencies-js 3.1.0-nightly3.2401-02 → 3.1.0-nightly3.2401-05
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,5 +1,5 @@
|
|
|
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-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -26,11 +26,13 @@ var CONSTRUCTOR = "constructor";
|
|
|
26
26
|
var SYMBOL = "Symbol";
|
|
27
27
|
var POLYFILL_TAG = "_polyfill";
|
|
28
28
|
var INDEX_OF = "indexOf";
|
|
29
|
+
var LAST_INDEX_OF = "lastIndexOf";
|
|
29
30
|
var LENGTH = "length";
|
|
30
31
|
var DONE = "done";
|
|
31
32
|
var VALUE = "value";
|
|
32
33
|
var NAME = "name";
|
|
33
34
|
var SLICE = "slice";
|
|
35
|
+
var CALL = "call";
|
|
34
36
|
var ObjClass = Object;
|
|
35
37
|
var ObjProto = ObjClass[PROTOTYPE];
|
|
36
38
|
var StrCls = String;
|
|
@@ -61,7 +63,7 @@ function _createObjIs(theName) {
|
|
|
61
63
|
};
|
|
62
64
|
}
|
|
63
65
|
function objToString(value) {
|
|
64
|
-
return ObjProto.toString
|
|
66
|
+
return ObjProto.toString[CALL](value);
|
|
65
67
|
}
|
|
66
68
|
function isUndefined(value) {
|
|
67
69
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
@@ -75,8 +77,8 @@ function isStrictNullOrUndefined(value) {
|
|
|
75
77
|
function isDefined(arg) {
|
|
76
78
|
return !!arg || arg !== UNDEF_VALUE;
|
|
77
79
|
}
|
|
78
|
-
var isString = _createIs(STRING);
|
|
79
|
-
var isFunction = _createIs(FUNCTION);
|
|
80
|
+
var isString = ( _createIs(STRING));
|
|
81
|
+
var isFunction = ( _createIs(FUNCTION));
|
|
80
82
|
function isObject(value) {
|
|
81
83
|
if (!value && isNullOrUndefined(value)) {
|
|
82
84
|
return false;
|
|
@@ -84,13 +86,13 @@ function isObject(value) {
|
|
|
84
86
|
return !!value && typeof value === OBJECT;
|
|
85
87
|
}
|
|
86
88
|
var isArray = ArrCls.isArray;
|
|
87
|
-
var isNumber = _createIs(NUMBER);
|
|
88
|
-
var isError = _createObjIs("Error");
|
|
89
|
+
var isNumber = ( _createIs(NUMBER));
|
|
90
|
+
var isError = ( _createObjIs("Error"));
|
|
89
91
|
|
|
90
92
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
91
93
|
|
|
92
94
|
function objHasOwnProperty(obj, prop) {
|
|
93
|
-
return obj && ObjProto.hasOwnProperty
|
|
95
|
+
return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
|
|
@@ -102,7 +104,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
102
104
|
if (theObject && isObject(theObject)) {
|
|
103
105
|
for (var prop in theObject) {
|
|
104
106
|
if (objHasOwn(theObject, prop)) {
|
|
105
|
-
if (callbackfn
|
|
107
|
+
if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
106
108
|
break;
|
|
107
109
|
}
|
|
108
110
|
}
|
|
@@ -127,8 +129,12 @@ function throwTypeError(message) {
|
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
var _objFreeze = ObjClass["freeze"];
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
function _doNothing(value) {
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
135
|
+
function _getProto(value) {
|
|
136
|
+
return value[__PROTO__] || NULL_VALUE;
|
|
137
|
+
}
|
|
132
138
|
var objAssign = ObjClass["assign"];
|
|
133
139
|
function objKeys(value) {
|
|
134
140
|
if (!isObject(value) || value === NULL_VALUE) {
|
|
@@ -164,7 +170,7 @@ function createTypeMap(values) {
|
|
|
164
170
|
return createSimpleMap(values);
|
|
165
171
|
}
|
|
166
172
|
|
|
167
|
-
var _wellKnownSymbolMap =
|
|
173
|
+
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
168
174
|
asyncIterator: 0 ,
|
|
169
175
|
hasInstance: 1 ,
|
|
170
176
|
isConcatSpreadable: 2 ,
|
|
@@ -224,43 +230,46 @@ function dumpObj(object, format) {
|
|
|
224
230
|
return objToString(object) + ": " + propertyValueDump;
|
|
225
231
|
}
|
|
226
232
|
|
|
227
|
-
var
|
|
228
|
-
|
|
233
|
+
var _slice;
|
|
234
|
+
function _throwMissingFunction(funcName, thisArg) {
|
|
229
235
|
throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
230
|
-
}
|
|
231
|
-
|
|
236
|
+
}
|
|
237
|
+
function _unwrapInstFunction(funcName) {
|
|
238
|
+
_slice = _slice || ArrProto[SLICE];
|
|
232
239
|
return function (thisArg) {
|
|
233
|
-
return thisArg[funcName].apply(thisArg,
|
|
240
|
+
return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
|
|
234
241
|
};
|
|
235
|
-
}
|
|
236
|
-
|
|
242
|
+
}
|
|
243
|
+
function _unwrapFunction(funcName, clsProto) {
|
|
244
|
+
_slice = _slice || ArrProto[SLICE];
|
|
237
245
|
var clsFn = clsProto && clsProto[funcName];
|
|
238
246
|
return function (thisArg) {
|
|
239
247
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
240
248
|
if (theFunc) {
|
|
241
|
-
return theFunc.apply(thisArg,
|
|
249
|
+
return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
|
|
242
250
|
}
|
|
243
251
|
_throwMissingFunction(funcName, thisArg);
|
|
244
252
|
};
|
|
245
|
-
}
|
|
246
|
-
|
|
253
|
+
}
|
|
254
|
+
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
255
|
+
_slice = _slice || ArrProto[SLICE];
|
|
247
256
|
var clsFn = clsProto && clsProto[funcName];
|
|
248
257
|
return function (thisArg) {
|
|
249
258
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
250
259
|
if (theFunc || polyFunc) {
|
|
251
260
|
var theArgs = arguments;
|
|
252
|
-
return (theFunc || polyFunc).apply(thisArg, theFunc ?
|
|
261
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
|
|
253
262
|
}
|
|
254
263
|
_throwMissingFunction(funcName, thisArg);
|
|
255
264
|
};
|
|
256
|
-
}
|
|
265
|
+
}
|
|
257
266
|
|
|
258
267
|
var mathMax = MathCls.max;
|
|
259
268
|
|
|
260
|
-
var strSlice = _unwrapFunction(SLICE, StrProto);
|
|
269
|
+
var strSlice = ( _unwrapFunction(SLICE, StrProto));
|
|
261
270
|
|
|
262
|
-
var strSubstring = _unwrapFunction("substring", StrProto);
|
|
263
|
-
var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
|
|
271
|
+
var strSubstring = ( _unwrapFunction("substring", StrProto));
|
|
272
|
+
var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
264
273
|
function polyStrSubstr(value, start, length) {
|
|
265
274
|
if (isNullOrUndefined(value)) {
|
|
266
275
|
throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
@@ -390,12 +399,14 @@ var _cachedWindow;
|
|
|
390
399
|
var _cachedDocument;
|
|
391
400
|
var _cachedNavigator;
|
|
392
401
|
var _isWebWorker;
|
|
393
|
-
|
|
394
|
-
|
|
402
|
+
function lazySafeGetInst(name) {
|
|
403
|
+
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
404
|
+
}
|
|
405
|
+
function getGlobal(useCached) {
|
|
395
406
|
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
|
|
396
407
|
return _cachedGlobal.v;
|
|
397
|
-
}
|
|
398
|
-
|
|
408
|
+
}
|
|
409
|
+
function getInst(name, useCached) {
|
|
399
410
|
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
|
|
400
411
|
if (gbl && gbl[name]) {
|
|
401
412
|
return gbl[name];
|
|
@@ -404,24 +415,26 @@ var getInst = function (name, useCached) {
|
|
|
404
415
|
return _cachedWindow.v;
|
|
405
416
|
}
|
|
406
417
|
return NULL_VALUE;
|
|
407
|
-
}
|
|
408
|
-
|
|
418
|
+
}
|
|
419
|
+
function getDocument() {
|
|
409
420
|
(!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
|
|
410
421
|
return _cachedDocument.v;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
422
|
+
}
|
|
423
|
+
function hasWindow() {
|
|
424
|
+
return !!getWindow();
|
|
425
|
+
}
|
|
426
|
+
function getWindow() {
|
|
414
427
|
(!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
|
|
415
428
|
return _cachedWindow.v;
|
|
416
|
-
}
|
|
417
|
-
|
|
429
|
+
}
|
|
430
|
+
function getNavigator() {
|
|
418
431
|
(!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
|
|
419
432
|
return _cachedNavigator.v;
|
|
420
|
-
}
|
|
421
|
-
|
|
433
|
+
}
|
|
434
|
+
function isWebWorker() {
|
|
422
435
|
!_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
|
|
423
436
|
return _isWebWorker.v;
|
|
424
|
-
}
|
|
437
|
+
}
|
|
425
438
|
|
|
426
439
|
var _symbol;
|
|
427
440
|
var _symbolFor;
|
|
@@ -475,7 +488,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
475
488
|
try {
|
|
476
489
|
var count = 0;
|
|
477
490
|
while (!(iterResult = iter.next())[DONE]) {
|
|
478
|
-
if (callbackfn
|
|
491
|
+
if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
|
|
479
492
|
break;
|
|
480
493
|
}
|
|
481
494
|
count++;
|
|
@@ -504,7 +517,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
504
517
|
}
|
|
505
518
|
}
|
|
506
519
|
|
|
507
|
-
var fnApply = _unwrapInstFunction("apply");
|
|
520
|
+
var fnApply = ( _unwrapInstFunction("apply"));
|
|
508
521
|
|
|
509
522
|
function arrAppend(target, elms) {
|
|
510
523
|
if (!isUndefined(elms) && target) {
|
|
@@ -528,7 +541,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
528
541
|
var len = theArray[LENGTH] >>> 0;
|
|
529
542
|
for (var idx = 0; idx < len; idx++) {
|
|
530
543
|
if (idx in theArray) {
|
|
531
|
-
if (callbackfn
|
|
544
|
+
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
532
545
|
break;
|
|
533
546
|
}
|
|
534
547
|
}
|
|
@@ -536,14 +549,12 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
536
549
|
}
|
|
537
550
|
}
|
|
538
551
|
|
|
539
|
-
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
552
|
+
var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
|
|
553
|
+
( _unwrapFunction(LAST_INDEX_OF, ArrProto));
|
|
540
554
|
|
|
541
|
-
var arrSlice = _unwrapFunction(SLICE, ArrProto);
|
|
555
|
+
var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
|
|
542
556
|
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
var _objCreate = ObjClass["create"];
|
|
546
|
-
var objCreate = _objCreate || polyObjCreate;
|
|
557
|
+
var objCreate = ObjClass["create"] || polyObjCreate;
|
|
547
558
|
function polyObjCreate(obj) {
|
|
548
559
|
if (!obj) {
|
|
549
560
|
return {};
|
|
@@ -570,7 +581,7 @@ function objSetPrototypeOf(obj, proto) {
|
|
|
570
581
|
return fn(obj, proto);
|
|
571
582
|
}
|
|
572
583
|
|
|
573
|
-
|
|
584
|
+
function _createCustomError(name, d, b) {
|
|
574
585
|
_safeDefineName(d, name);
|
|
575
586
|
d = objSetPrototypeOf(d, b);
|
|
576
587
|
function __() {
|
|
@@ -579,7 +590,7 @@ var _createCustomError = function (name, d, b) {
|
|
|
579
590
|
}
|
|
580
591
|
d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
|
|
581
592
|
return d;
|
|
582
|
-
}
|
|
593
|
+
}
|
|
583
594
|
var _safeSetName = function (baseClass, name) {
|
|
584
595
|
try {
|
|
585
596
|
name && (baseClass[NAME] = name);
|
|
@@ -637,9 +648,13 @@ function _createTrimFn(exp) {
|
|
|
637
648
|
return value;
|
|
638
649
|
};
|
|
639
650
|
}
|
|
640
|
-
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
651
|
+
var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
652
|
+
var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
|
|
653
|
+
var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
|
|
641
654
|
|
|
642
|
-
var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
|
|
655
|
+
var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
656
|
+
( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
|
|
657
|
+
( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
|
|
643
658
|
|
|
644
659
|
var _fnToString;
|
|
645
660
|
var _objCtrFnString;
|
|
@@ -655,7 +670,7 @@ function isPlainObject(value) {
|
|
|
655
670
|
if (value !== _gblWindow) {
|
|
656
671
|
if (!_objCtrFnString) {
|
|
657
672
|
_fnToString = Function[PROTOTYPE].toString;
|
|
658
|
-
_objCtrFnString =
|
|
673
|
+
_objCtrFnString = _fnToString[CALL](ObjClass);
|
|
659
674
|
}
|
|
660
675
|
try {
|
|
661
676
|
var proto = objGetPrototypeOf(value);
|
|
@@ -664,7 +679,7 @@ function isPlainObject(value) {
|
|
|
664
679
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
665
680
|
proto = proto[CONSTRUCTOR];
|
|
666
681
|
}
|
|
667
|
-
result = proto && typeof proto === FUNCTION && _fnToString
|
|
682
|
+
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
668
683
|
}
|
|
669
684
|
}
|
|
670
685
|
catch (ex) {
|
|
@@ -684,10 +699,11 @@ function polyStrSymSplit(value, splitter, limit) {
|
|
|
684
699
|
return splitFn ? splitFn(value, limit) : [value];
|
|
685
700
|
}
|
|
686
701
|
|
|
687
|
-
var strSplit = _unwrapFunction("split", StrProto);
|
|
688
|
-
|
|
702
|
+
var strSplit = ( _unwrapFunction("split", StrProto));
|
|
703
|
+
( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit : null));
|
|
689
704
|
|
|
690
|
-
var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
|
|
705
|
+
var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
|
|
706
|
+
( _unwrapFunction(LAST_INDEX_OF, StrProto));
|
|
691
707
|
|
|
692
708
|
var REF = "ref";
|
|
693
709
|
var UNREF = "un" + REF;
|
|
@@ -1373,7 +1389,7 @@ function newId(maxLength) {
|
|
|
1373
1389
|
return result;
|
|
1374
1390
|
}
|
|
1375
1391
|
|
|
1376
|
-
var version = '3.1.0-nightly3.2401-
|
|
1392
|
+
var version = '3.1.0-nightly3.2401-05';
|
|
1377
1393
|
var instanceName = "." + newId(6);
|
|
1378
1394
|
var _dataUid = 0;
|
|
1379
1395
|
function _canAcceptData(target) {
|