@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.
Files changed (28) hide show
  1. package/browser/es5/applicationinsights-dependencies-js.cjs.js +75 -59
  2. package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-dependencies-js.gbl.js +77 -61
  6. package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-dependencies-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-dependencies-js.js +77 -61
  11. package/browser/es5/applicationinsights-dependencies-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-dependencies-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-dependencies-js.js +75 -59
  15. package/dist/es5/applicationinsights-dependencies-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-dependencies-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  18. package/dist-es5/DependencyInitializer.js +1 -1
  19. package/dist-es5/DependencyListener.js +1 -1
  20. package/dist-es5/InternalConstants.js +1 -1
  21. package/dist-es5/__DynamicConstants.js +1 -1
  22. package/dist-es5/ajax.js +1 -1
  23. package/dist-es5/ajaxRecord.js +1 -1
  24. package/dist-es5/ajaxUtils.js +1 -1
  25. package/dist-es5/applicationinsights-dependencies-js.js +1 -1
  26. package/package.json +3 -3
  27. package/types/applicationinsights-dependencies-js.d.ts +1 -1
  28. 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-04
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) {
@@ -29,11 +29,13 @@
29
29
  var SYMBOL = "Symbol";
30
30
  var POLYFILL_TAG = "_polyfill";
31
31
  var INDEX_OF = "indexOf";
32
+ var LAST_INDEX_OF = "lastIndexOf";
32
33
  var LENGTH = "length";
33
34
  var DONE = "done";
34
35
  var VALUE = "value";
35
36
  var NAME = "name";
36
37
  var SLICE = "slice";
38
+ var CALL = "call";
37
39
  var ObjClass = Object;
38
40
  var ObjProto = ObjClass[PROTOTYPE];
39
41
  var StrCls = String;
@@ -64,7 +66,7 @@
64
66
  };
65
67
  }
66
68
  function objToString(value) {
67
- return ObjProto.toString.call(value);
69
+ return ObjProto.toString[CALL](value);
68
70
  }
69
71
  function isUndefined(value) {
70
72
  return typeof value === UNDEFINED || value === UNDEFINED;
@@ -78,8 +80,8 @@
78
80
  function isDefined(arg) {
79
81
  return !!arg || arg !== UNDEF_VALUE;
80
82
  }
81
- var isString = _createIs(STRING);
82
- var isFunction = _createIs(FUNCTION);
83
+ var isString = ( _createIs(STRING));
84
+ var isFunction = ( _createIs(FUNCTION));
83
85
  function isObject(value) {
84
86
  if (!value && isNullOrUndefined(value)) {
85
87
  return false;
@@ -87,13 +89,13 @@
87
89
  return !!value && typeof value === OBJECT;
88
90
  }
89
91
  var isArray = ArrCls.isArray;
90
- var isNumber = _createIs(NUMBER);
91
- var isError = _createObjIs("Error");
92
+ var isNumber = ( _createIs(NUMBER));
93
+ var isError = ( _createObjIs("Error"));
92
94
 
93
95
  var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
94
96
 
95
97
  function objHasOwnProperty(obj, prop) {
96
- return obj && ObjProto.hasOwnProperty.call(obj, prop);
98
+ return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
97
99
  }
98
100
 
99
101
  var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
@@ -105,7 +107,7 @@
105
107
  if (theObject && isObject(theObject)) {
106
108
  for (var prop in theObject) {
107
109
  if (objHasOwn(theObject, prop)) {
108
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
110
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
109
111
  break;
110
112
  }
111
113
  }
@@ -130,8 +132,12 @@
130
132
  }
131
133
 
132
134
  var _objFreeze = ObjClass["freeze"];
133
- var _doNothing = function (value) { return value; };
134
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
135
+ function _doNothing(value) {
136
+ return value;
137
+ }
138
+ function _getProto(value) {
139
+ return value[__PROTO__] || NULL_VALUE;
140
+ }
135
141
  var objAssign = ObjClass["assign"];
136
142
  function objKeys(value) {
137
143
  if (!isObject(value) || value === NULL_VALUE) {
@@ -167,7 +173,7 @@
167
173
  return createSimpleMap(values);
168
174
  }
169
175
 
170
- var _wellKnownSymbolMap = createEnumKeyMap({
176
+ var _wellKnownSymbolMap = createEnumKeyMap({
171
177
  asyncIterator: 0 ,
172
178
  hasInstance: 1 ,
173
179
  isConcatSpreadable: 2 ,
@@ -227,43 +233,46 @@
227
233
  return objToString(object) + ": " + propertyValueDump;
228
234
  }
229
235
 
230
- var _arrSlice = ArrProto[SLICE];
231
- var _throwMissingFunction = function (funcName, thisArg) {
236
+ var _slice;
237
+ function _throwMissingFunction(funcName, thisArg) {
232
238
  throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
233
- };
234
- var _unwrapInstFunction = function (funcName) {
239
+ }
240
+ function _unwrapInstFunction(funcName) {
241
+ _slice = _slice || ArrProto[SLICE];
235
242
  return function (thisArg) {
236
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
243
+ return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
237
244
  };
238
- };
239
- var _unwrapFunction = function (funcName, clsProto) {
245
+ }
246
+ function _unwrapFunction(funcName, clsProto) {
247
+ _slice = _slice || ArrProto[SLICE];
240
248
  var clsFn = clsProto && clsProto[funcName];
241
249
  return function (thisArg) {
242
250
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
243
251
  if (theFunc) {
244
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
252
+ return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
245
253
  }
246
254
  _throwMissingFunction(funcName, thisArg);
247
255
  };
248
- };
249
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
256
+ }
257
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
258
+ _slice = _slice || ArrProto[SLICE];
250
259
  var clsFn = clsProto && clsProto[funcName];
251
260
  return function (thisArg) {
252
261
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
253
262
  if (theFunc || polyFunc) {
254
263
  var theArgs = arguments;
255
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
264
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
256
265
  }
257
266
  _throwMissingFunction(funcName, thisArg);
258
267
  };
259
- };
268
+ }
260
269
 
261
270
  var mathMax = MathCls.max;
262
271
 
263
- var strSlice = _unwrapFunction(SLICE, StrProto);
272
+ var strSlice = ( _unwrapFunction(SLICE, StrProto));
264
273
 
265
- var strSubstring = _unwrapFunction("substring", StrProto);
266
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
274
+ var strSubstring = ( _unwrapFunction("substring", StrProto));
275
+ var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
267
276
  function polyStrSubstr(value, start, length) {
268
277
  if (isNullOrUndefined(value)) {
269
278
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -393,12 +402,14 @@
393
402
  var _cachedDocument;
394
403
  var _cachedNavigator;
395
404
  var _isWebWorker;
396
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
397
- var getGlobal = function (useCached) {
405
+ function lazySafeGetInst(name) {
406
+ return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
407
+ }
408
+ function getGlobal(useCached) {
398
409
  (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
399
410
  return _cachedGlobal.v;
400
- };
401
- var getInst = function (name, useCached) {
411
+ }
412
+ function getInst(name, useCached) {
402
413
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
403
414
  if (gbl && gbl[name]) {
404
415
  return gbl[name];
@@ -407,24 +418,26 @@
407
418
  return _cachedWindow.v;
408
419
  }
409
420
  return NULL_VALUE;
410
- };
411
- var getDocument = function () {
421
+ }
422
+ function getDocument() {
412
423
  (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
413
424
  return _cachedDocument.v;
414
- };
415
- var hasWindow = function () { return !!getWindow(); };
416
- var getWindow = function () {
425
+ }
426
+ function hasWindow() {
427
+ return !!getWindow();
428
+ }
429
+ function getWindow() {
417
430
  (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
418
431
  return _cachedWindow.v;
419
- };
420
- var getNavigator = function () {
432
+ }
433
+ function getNavigator() {
421
434
  (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
422
435
  return _cachedNavigator.v;
423
- };
424
- var isWebWorker = function () {
436
+ }
437
+ function isWebWorker() {
425
438
  !_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
426
439
  return _isWebWorker.v;
427
- };
440
+ }
428
441
 
429
442
  var _symbol;
430
443
  var _symbolFor;
@@ -478,7 +491,7 @@
478
491
  try {
479
492
  var count = 0;
480
493
  while (!(iterResult = iter.next())[DONE]) {
481
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
494
+ if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
482
495
  break;
483
496
  }
484
497
  count++;
@@ -507,7 +520,7 @@
507
520
  }
508
521
  }
509
522
 
510
- var fnApply = _unwrapInstFunction("apply");
523
+ var fnApply = ( _unwrapInstFunction("apply"));
511
524
 
512
525
  function arrAppend(target, elms) {
513
526
  if (!isUndefined(elms) && target) {
@@ -531,7 +544,7 @@
531
544
  var len = theArray[LENGTH] >>> 0;
532
545
  for (var idx = 0; idx < len; idx++) {
533
546
  if (idx in theArray) {
534
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
547
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
535
548
  break;
536
549
  }
537
550
  }
@@ -539,14 +552,12 @@
539
552
  }
540
553
  }
541
554
 
542
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
555
+ var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
556
+ ( _unwrapFunction(LAST_INDEX_OF, ArrProto));
543
557
 
544
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
558
+ var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
545
559
 
546
- var fnCall = _unwrapInstFunction("call");
547
-
548
- var _objCreate = ObjClass["create"];
549
- var objCreate = _objCreate || polyObjCreate;
560
+ var objCreate = ObjClass["create"] || polyObjCreate;
550
561
  function polyObjCreate(obj) {
551
562
  if (!obj) {
552
563
  return {};
@@ -573,7 +584,7 @@
573
584
  return fn(obj, proto);
574
585
  }
575
586
 
576
- var _createCustomError = function (name, d, b) {
587
+ function _createCustomError(name, d, b) {
577
588
  _safeDefineName(d, name);
578
589
  d = objSetPrototypeOf(d, b);
579
590
  function __() {
@@ -582,7 +593,7 @@
582
593
  }
583
594
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
584
595
  return d;
585
- };
596
+ }
586
597
  var _safeSetName = function (baseClass, name) {
587
598
  try {
588
599
  name && (baseClass[NAME] = name);
@@ -640,9 +651,13 @@
640
651
  return value;
641
652
  };
642
653
  }
643
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
654
+ var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
655
+ var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
656
+ var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
644
657
 
645
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
658
+ var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
659
+ ( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
660
+ ( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
646
661
 
647
662
  var _fnToString;
648
663
  var _objCtrFnString;
@@ -658,7 +673,7 @@
658
673
  if (value !== _gblWindow) {
659
674
  if (!_objCtrFnString) {
660
675
  _fnToString = Function[PROTOTYPE].toString;
661
- _objCtrFnString = fnCall(_fnToString, ObjClass);
676
+ _objCtrFnString = _fnToString[CALL](ObjClass);
662
677
  }
663
678
  try {
664
679
  var proto = objGetPrototypeOf(value);
@@ -667,7 +682,7 @@
667
682
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
668
683
  proto = proto[CONSTRUCTOR];
669
684
  }
670
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
685
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
671
686
  }
672
687
  }
673
688
  catch (ex) {
@@ -687,10 +702,11 @@
687
702
  return splitFn ? splitFn(value, limit) : [value];
688
703
  }
689
704
 
690
- var strSplit = _unwrapFunction("split", StrProto);
691
- hasSymbol() ? _unwrapFunction("split", StrProto) : polyStrSymSplit;
705
+ var strSplit = ( _unwrapFunction("split", StrProto));
706
+ ( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit : null));
692
707
 
693
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
708
+ var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
709
+ ( _unwrapFunction(LAST_INDEX_OF, StrProto));
694
710
 
695
711
  var REF = "ref";
696
712
  var UNREF = "un" + REF;
@@ -1376,7 +1392,7 @@
1376
1392
  return result;
1377
1393
  }
1378
1394
 
1379
- var version = '3.1.0-nightly3.2401-04';
1395
+ var version = '3.1.0-nightly3.2401-08';
1380
1396
  var instanceName = "." + newId(6);
1381
1397
  var _dataUid = 0;
1382
1398
  function _canAcceptData(target) {