@microsoft/applicationinsights-analytics-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.
Files changed (28) hide show
  1. package/browser/es5/applicationinsights-analytics-js.cjs.js +82 -64
  2. package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-analytics-js.gbl.js +84 -66
  6. package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-analytics-js.js +84 -66
  11. package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-analytics-js.js +82 -64
  15. package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
  18. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
  19. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
  20. package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  21. package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  22. package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  23. package/dist-es5/JavaScriptSDK/Timing.js +1 -1
  24. package/dist-es5/__DynamicConstants.js +1 -1
  25. package/dist-es5/applicationinsights-analytics-js.js +1 -1
  26. package/package.json +5 -5
  27. package/types/applicationinsights-analytics-js.d.ts +1 -1
  28. package/types/applicationinsights-analytics-js.namespaced.d.ts +1 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 3.1.0-nightly3.2401-02
2
+ * Application Insights JavaScript SDK - Web Analytics, 3.1.0-nightly3.2401-05
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 = "es5_applicationinsights_analytics_js_3_1_0_nightly3_2401_02", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.1.0-nightly3.2401-02";
7
+ var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_analytics_js_3_1_0_nightly3_2401_05", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.1.0-nightly3.2401-05";
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]||{});
@@ -48,11 +48,13 @@ var CONSTRUCTOR = "constructor";
48
48
  var SYMBOL = "Symbol";
49
49
  var POLYFILL_TAG = "_polyfill";
50
50
  var INDEX_OF = "indexOf";
51
+ var LAST_INDEX_OF = "lastIndexOf";
51
52
  var LENGTH = "length";
52
53
  var DONE = "done";
53
54
  var VALUE = "value";
54
55
  var NAME = "name";
55
56
  var SLICE = "slice";
57
+ var CALL = "call";
56
58
  var ObjClass = Object;
57
59
  var ObjProto = ObjClass[PROTOTYPE];
58
60
  var StrCls = String;
@@ -83,7 +85,7 @@ function _createObjIs(theName) {
83
85
  };
84
86
  }
85
87
  function objToString(value) {
86
- return ObjProto.toString.call(value);
88
+ return ObjProto.toString[CALL](value);
87
89
  }
88
90
  function isUndefined(value) {
89
91
  return typeof value === UNDEFINED || value === UNDEFINED;
@@ -97,8 +99,8 @@ function isStrictNullOrUndefined(value) {
97
99
  function isDefined(arg) {
98
100
  return !!arg || arg !== UNDEF_VALUE;
99
101
  }
100
- var isString = _createIs(STRING);
101
- var isFunction = _createIs(FUNCTION);
102
+ var isString = ( _createIs(STRING));
103
+ var isFunction = ( _createIs(FUNCTION));
102
104
  function isObject(value) {
103
105
  if (!value && isNullOrUndefined(value)) {
104
106
  return false;
@@ -106,9 +108,9 @@ function isObject(value) {
106
108
  return !!value && typeof value === OBJECT;
107
109
  }
108
110
  var isArray = ArrCls.isArray;
109
- var isNumber = _createIs(NUMBER);
110
- var isBoolean = _createIs(BOOLEAN);
111
- var isError = _createObjIs("Error");
111
+ var isNumber = ( _createIs(NUMBER));
112
+ var isBoolean = ( _createIs(BOOLEAN));
113
+ var isError = ( _createObjIs("Error"));
112
114
  function isTruthy(value) {
113
115
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
114
116
  }
@@ -116,7 +118,7 @@ function isTruthy(value) {
116
118
  var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
117
119
 
118
120
  function objHasOwnProperty(obj, prop) {
119
- return obj && ObjProto.hasOwnProperty.call(obj, prop);
121
+ return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
120
122
  }
121
123
 
122
124
  var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
@@ -128,7 +130,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
128
130
  if (theObject && isObject(theObject)) {
129
131
  for (var prop in theObject) {
130
132
  if (objHasOwn(theObject, prop)) {
131
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
133
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
132
134
  break;
133
135
  }
134
136
  }
@@ -153,8 +155,12 @@ function throwTypeError(message) {
153
155
  }
154
156
 
155
157
  var _objFreeze = ObjClass["freeze"];
156
- var _doNothing = function (value) { return value; };
157
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
158
+ function _doNothing(value) {
159
+ return value;
160
+ }
161
+ function _getProto(value) {
162
+ return value[__PROTO__] || NULL_VALUE;
163
+ }
158
164
  var objAssign = ObjClass["assign"];
159
165
  function objKeys(value) {
160
166
  if (!isObject(value) || value === NULL_VALUE) {
@@ -182,7 +188,7 @@ function createEnumKeyMap(values) {
182
188
  return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
183
189
  }
184
190
 
185
- var _wellKnownSymbolMap = createEnumKeyMap({
191
+ var _wellKnownSymbolMap = createEnumKeyMap({
186
192
  asyncIterator: 0 ,
187
193
  hasInstance: 1 ,
188
194
  isConcatSpreadable: 2 ,
@@ -242,43 +248,46 @@ function dumpObj(object, format) {
242
248
  return objToString(object) + ": " + propertyValueDump;
243
249
  }
244
250
 
245
- var _arrSlice = ArrProto[SLICE];
246
- var _throwMissingFunction = function (funcName, thisArg) {
251
+ var _slice;
252
+ function _throwMissingFunction(funcName, thisArg) {
247
253
  throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
248
- };
249
- var _unwrapInstFunction = function (funcName) {
254
+ }
255
+ function _unwrapInstFunction(funcName) {
256
+ _slice = _slice || ArrProto[SLICE];
250
257
  return function (thisArg) {
251
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
258
+ return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
252
259
  };
253
- };
254
- var _unwrapFunction = function (funcName, clsProto) {
260
+ }
261
+ function _unwrapFunction(funcName, clsProto) {
262
+ _slice = _slice || ArrProto[SLICE];
255
263
  var clsFn = clsProto && clsProto[funcName];
256
264
  return function (thisArg) {
257
265
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
258
266
  if (theFunc) {
259
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
267
+ return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
260
268
  }
261
269
  _throwMissingFunction(funcName, thisArg);
262
270
  };
263
- };
264
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
271
+ }
272
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
273
+ _slice = _slice || ArrProto[SLICE];
265
274
  var clsFn = clsProto && clsProto[funcName];
266
275
  return function (thisArg) {
267
276
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
268
277
  if (theFunc || polyFunc) {
269
278
  var theArgs = arguments;
270
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
279
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
271
280
  }
272
281
  _throwMissingFunction(funcName, thisArg);
273
282
  };
274
- };
283
+ }
275
284
 
276
285
  var mathMax = MathCls.max;
277
286
 
278
- var strSlice = _unwrapFunction(SLICE, StrProto);
287
+ var strSlice = ( _unwrapFunction(SLICE, StrProto));
279
288
 
280
- var strSubstring = _unwrapFunction("substring", StrProto);
281
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
289
+ var strSubstring = ( _unwrapFunction("substring", StrProto));
290
+ var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
282
291
  function polyStrSubstr(value, start, length) {
283
292
  if (isNullOrUndefined(value)) {
284
293
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -409,12 +418,14 @@ var _cachedDocument;
409
418
  var _cachedNavigator;
410
419
  var _cachedHistory;
411
420
  var _isWebWorker;
412
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
413
- var getGlobal = function (useCached) {
421
+ function lazySafeGetInst(name) {
422
+ return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
423
+ }
424
+ function getGlobal(useCached) {
414
425
  (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
415
426
  return _cachedGlobal.v;
416
- };
417
- var getInst = function (name, useCached) {
427
+ }
428
+ function getInst(name, useCached) {
418
429
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
419
430
  if (gbl && gbl[name]) {
420
431
  return gbl[name];
@@ -423,29 +434,33 @@ var getInst = function (name, useCached) {
423
434
  return _cachedWindow.v;
424
435
  }
425
436
  return NULL_VALUE;
426
- };
427
- var getDocument = function () {
437
+ }
438
+ function getDocument() {
428
439
  (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
429
440
  return _cachedDocument.v;
430
- };
431
- var hasWindow = function () { return !!getWindow(); };
432
- var getWindow = function () {
441
+ }
442
+ function hasWindow() {
443
+ return !!getWindow();
444
+ }
445
+ function getWindow() {
433
446
  (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
434
447
  return _cachedWindow.v;
435
- };
436
- var getNavigator = function () {
448
+ }
449
+ function getNavigator() {
437
450
  (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
438
451
  return _cachedNavigator.v;
439
- };
440
- var hasHistory = function () { return !!getHistory(); };
441
- var getHistory = function () {
452
+ }
453
+ function hasHistory() {
454
+ return !!getHistory();
455
+ }
456
+ function getHistory() {
442
457
  (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history"));
443
458
  return _cachedHistory.v;
444
- };
445
- var isWebWorker = function () {
459
+ }
460
+ function isWebWorker() {
446
461
  !_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
447
462
  return _isWebWorker.v;
448
- };
463
+ }
449
464
 
450
465
  var _symbol;
451
466
  var _symbolFor;
@@ -496,7 +511,7 @@ function iterForOf(iter, callbackfn, thisArg) {
496
511
  try {
497
512
  var count = 0;
498
513
  while (!(iterResult = iter.next())[DONE]) {
499
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
514
+ if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
500
515
  break;
501
516
  }
502
517
  count++;
@@ -525,7 +540,7 @@ function iterForOf(iter, callbackfn, thisArg) {
525
540
  }
526
541
  }
527
542
 
528
- var fnApply = _unwrapInstFunction("apply");
543
+ var fnApply = ( _unwrapInstFunction("apply"));
529
544
 
530
545
  function arrAppend(target, elms) {
531
546
  if (!isUndefined(elms) && target) {
@@ -549,7 +564,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
549
564
  var len = theArray[LENGTH] >>> 0;
550
565
  for (var idx = 0; idx < len; idx++) {
551
566
  if (idx in theArray) {
552
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
567
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
553
568
  break;
554
569
  }
555
570
  }
@@ -557,16 +572,14 @@ function arrForEach(theArray, callbackfn, thisArg) {
557
572
  }
558
573
  }
559
574
 
560
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
575
+ var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
576
+ ( _unwrapFunction(LAST_INDEX_OF, ArrProto));
561
577
 
562
- var arrMap = _unwrapFunction("map", ArrProto);
578
+ var arrMap = ( _unwrapFunction("map", ArrProto));
563
579
 
564
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
580
+ var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
565
581
 
566
- var fnCall = _unwrapInstFunction("call");
567
-
568
- var _objCreate = ObjClass["create"];
569
- var objCreate = _objCreate || polyObjCreate;
582
+ var objCreate = ObjClass["create"] || polyObjCreate;
570
583
  function polyObjCreate(obj) {
571
584
  if (!obj) {
572
585
  return {};
@@ -593,7 +606,7 @@ function objSetPrototypeOf(obj, proto) {
593
606
  return fn(obj, proto);
594
607
  }
595
608
 
596
- var _createCustomError = function (name, d, b) {
609
+ function _createCustomError(name, d, b) {
597
610
  _safeDefineName(d, name);
598
611
  d = objSetPrototypeOf(d, b);
599
612
  function __() {
@@ -602,7 +615,7 @@ var _createCustomError = function (name, d, b) {
602
615
  }
603
616
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
604
617
  return d;
605
- };
618
+ }
606
619
  var _safeSetName = function (baseClass, name) {
607
620
  try {
608
621
  name && (baseClass[NAME] = name);
@@ -660,9 +673,13 @@ function _createTrimFn(exp) {
660
673
  return value;
661
674
  };
662
675
  }
663
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
676
+ var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
677
+ var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
678
+ var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
664
679
 
665
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
680
+ var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
681
+ ( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
682
+ ( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
666
683
 
667
684
  var _fnToString;
668
685
  var _objCtrFnString;
@@ -678,7 +695,7 @@ function isPlainObject(value) {
678
695
  if (value !== _gblWindow) {
679
696
  if (!_objCtrFnString) {
680
697
  _fnToString = Function[PROTOTYPE].toString;
681
- _objCtrFnString = fnCall(_fnToString, ObjClass);
698
+ _objCtrFnString = _fnToString[CALL](ObjClass);
682
699
  }
683
700
  try {
684
701
  var proto = objGetPrototypeOf(value);
@@ -687,7 +704,7 @@ function isPlainObject(value) {
687
704
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
688
705
  proto = proto[CONSTRUCTOR];
689
706
  }
690
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
707
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
691
708
  }
692
709
  }
693
710
  catch (ex) {
@@ -702,7 +719,7 @@ function getPerformance() {
702
719
  return _perf.v;
703
720
  }
704
721
 
705
- var strEndsWith = _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
722
+ var strEndsWith = ( _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
706
723
  function polyStrEndsWith(value, searchString, length) {
707
724
  if (!isString(value)) {
708
725
  throwTypeError("'" + dumpObj(value) + "' is not a string");
@@ -714,7 +731,8 @@ function polyStrEndsWith(value, searchString, length) {
714
731
  return strSubstring(value, end - chkLen, end) === searchValue;
715
732
  }
716
733
 
717
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
734
+ var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
735
+ ( _unwrapFunction(LAST_INDEX_OF, StrProto));
718
736
 
719
737
  var REF = "ref";
720
738
  var UNREF = "un" + REF;
@@ -1366,7 +1384,7 @@ function newId(maxLength) {
1366
1384
  return result;
1367
1385
  }
1368
1386
 
1369
- var version = '3.1.0-nightly3.2401-02';
1387
+ var version = '3.1.0-nightly3.2401-05';
1370
1388
  var instanceName = "." + newId(6);
1371
1389
  var _dataUid = 0;
1372
1390
  function _canAcceptData(target) {
@@ -5651,7 +5669,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
5651
5669
  });
5652
5670
  return _this;
5653
5671
  }
5654
- AnalyticsPlugin.Version = '3.1.0-nightly3.2401-02';
5672
+ AnalyticsPlugin.Version = '3.1.0-nightly3.2401-05';
5655
5673
  return AnalyticsPlugin;
5656
5674
  }(BaseTelemetryPlugin));
5657
5675