@microsoft/applicationinsights-analytics-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-analytics-js.cjs.js +82 -64
- package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.js +84 -66
- package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-analytics-js.js +84 -66
- package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.js +82 -64
- package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
- package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Timing.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-analytics-js.js +1 -1
- package/package.json +5 -5
- package/types/applicationinsights-analytics-js.d.ts +1 -1
- package/types/applicationinsights-analytics-js.namespaced.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.1.0-nightly3.2401-
|
|
2
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.1.0-nightly3.2401-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -27,11 +27,13 @@ var CONSTRUCTOR = "constructor";
|
|
|
27
27
|
var SYMBOL = "Symbol";
|
|
28
28
|
var POLYFILL_TAG = "_polyfill";
|
|
29
29
|
var INDEX_OF = "indexOf";
|
|
30
|
+
var LAST_INDEX_OF = "lastIndexOf";
|
|
30
31
|
var LENGTH = "length";
|
|
31
32
|
var DONE = "done";
|
|
32
33
|
var VALUE = "value";
|
|
33
34
|
var NAME = "name";
|
|
34
35
|
var SLICE = "slice";
|
|
36
|
+
var CALL = "call";
|
|
35
37
|
var ObjClass = Object;
|
|
36
38
|
var ObjProto = ObjClass[PROTOTYPE];
|
|
37
39
|
var StrCls = String;
|
|
@@ -62,7 +64,7 @@ function _createObjIs(theName) {
|
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
function objToString(value) {
|
|
65
|
-
return ObjProto.toString
|
|
67
|
+
return ObjProto.toString[CALL](value);
|
|
66
68
|
}
|
|
67
69
|
function isUndefined(value) {
|
|
68
70
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
@@ -76,8 +78,8 @@ function isStrictNullOrUndefined(value) {
|
|
|
76
78
|
function isDefined(arg) {
|
|
77
79
|
return !!arg || arg !== UNDEF_VALUE;
|
|
78
80
|
}
|
|
79
|
-
var isString = _createIs(STRING);
|
|
80
|
-
var isFunction = _createIs(FUNCTION);
|
|
81
|
+
var isString = ( _createIs(STRING));
|
|
82
|
+
var isFunction = ( _createIs(FUNCTION));
|
|
81
83
|
function isObject(value) {
|
|
82
84
|
if (!value && isNullOrUndefined(value)) {
|
|
83
85
|
return false;
|
|
@@ -85,9 +87,9 @@ function isObject(value) {
|
|
|
85
87
|
return !!value && typeof value === OBJECT;
|
|
86
88
|
}
|
|
87
89
|
var isArray = ArrCls.isArray;
|
|
88
|
-
var isNumber = _createIs(NUMBER);
|
|
89
|
-
var isBoolean = _createIs(BOOLEAN);
|
|
90
|
-
var isError = _createObjIs("Error");
|
|
90
|
+
var isNumber = ( _createIs(NUMBER));
|
|
91
|
+
var isBoolean = ( _createIs(BOOLEAN));
|
|
92
|
+
var isError = ( _createObjIs("Error"));
|
|
91
93
|
function isTruthy(value) {
|
|
92
94
|
return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
|
|
93
95
|
}
|
|
@@ -95,7 +97,7 @@ function isTruthy(value) {
|
|
|
95
97
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
96
98
|
|
|
97
99
|
function objHasOwnProperty(obj, prop) {
|
|
98
|
-
return obj && ObjProto.hasOwnProperty
|
|
100
|
+
return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
|
|
@@ -107,7 +109,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
107
109
|
if (theObject && isObject(theObject)) {
|
|
108
110
|
for (var prop in theObject) {
|
|
109
111
|
if (objHasOwn(theObject, prop)) {
|
|
110
|
-
if (callbackfn
|
|
112
|
+
if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
111
113
|
break;
|
|
112
114
|
}
|
|
113
115
|
}
|
|
@@ -132,8 +134,12 @@ function throwTypeError(message) {
|
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
var _objFreeze = ObjClass["freeze"];
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
function _doNothing(value) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
function _getProto(value) {
|
|
141
|
+
return value[__PROTO__] || NULL_VALUE;
|
|
142
|
+
}
|
|
137
143
|
var objAssign = ObjClass["assign"];
|
|
138
144
|
function objKeys(value) {
|
|
139
145
|
if (!isObject(value) || value === NULL_VALUE) {
|
|
@@ -161,7 +167,7 @@ function createEnumKeyMap(values) {
|
|
|
161
167
|
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
|
|
162
168
|
}
|
|
163
169
|
|
|
164
|
-
var _wellKnownSymbolMap =
|
|
170
|
+
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
165
171
|
asyncIterator: 0 ,
|
|
166
172
|
hasInstance: 1 ,
|
|
167
173
|
isConcatSpreadable: 2 ,
|
|
@@ -221,43 +227,46 @@ function dumpObj(object, format) {
|
|
|
221
227
|
return objToString(object) + ": " + propertyValueDump;
|
|
222
228
|
}
|
|
223
229
|
|
|
224
|
-
var
|
|
225
|
-
|
|
230
|
+
var _slice;
|
|
231
|
+
function _throwMissingFunction(funcName, thisArg) {
|
|
226
232
|
throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
227
|
-
}
|
|
228
|
-
|
|
233
|
+
}
|
|
234
|
+
function _unwrapInstFunction(funcName) {
|
|
235
|
+
_slice = _slice || ArrProto[SLICE];
|
|
229
236
|
return function (thisArg) {
|
|
230
|
-
return thisArg[funcName].apply(thisArg,
|
|
237
|
+
return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
|
|
231
238
|
};
|
|
232
|
-
}
|
|
233
|
-
|
|
239
|
+
}
|
|
240
|
+
function _unwrapFunction(funcName, clsProto) {
|
|
241
|
+
_slice = _slice || ArrProto[SLICE];
|
|
234
242
|
var clsFn = clsProto && clsProto[funcName];
|
|
235
243
|
return function (thisArg) {
|
|
236
244
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
237
245
|
if (theFunc) {
|
|
238
|
-
return theFunc.apply(thisArg,
|
|
246
|
+
return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
|
|
239
247
|
}
|
|
240
248
|
_throwMissingFunction(funcName, thisArg);
|
|
241
249
|
};
|
|
242
|
-
}
|
|
243
|
-
|
|
250
|
+
}
|
|
251
|
+
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
252
|
+
_slice = _slice || ArrProto[SLICE];
|
|
244
253
|
var clsFn = clsProto && clsProto[funcName];
|
|
245
254
|
return function (thisArg) {
|
|
246
255
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
247
256
|
if (theFunc || polyFunc) {
|
|
248
257
|
var theArgs = arguments;
|
|
249
|
-
return (theFunc || polyFunc).apply(thisArg, theFunc ?
|
|
258
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
|
|
250
259
|
}
|
|
251
260
|
_throwMissingFunction(funcName, thisArg);
|
|
252
261
|
};
|
|
253
|
-
}
|
|
262
|
+
}
|
|
254
263
|
|
|
255
264
|
var mathMax = MathCls.max;
|
|
256
265
|
|
|
257
|
-
var strSlice = _unwrapFunction(SLICE, StrProto);
|
|
266
|
+
var strSlice = ( _unwrapFunction(SLICE, StrProto));
|
|
258
267
|
|
|
259
|
-
var strSubstring = _unwrapFunction("substring", StrProto);
|
|
260
|
-
var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
|
|
268
|
+
var strSubstring = ( _unwrapFunction("substring", StrProto));
|
|
269
|
+
var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
261
270
|
function polyStrSubstr(value, start, length) {
|
|
262
271
|
if (isNullOrUndefined(value)) {
|
|
263
272
|
throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
@@ -388,12 +397,14 @@ var _cachedDocument;
|
|
|
388
397
|
var _cachedNavigator;
|
|
389
398
|
var _cachedHistory;
|
|
390
399
|
var _isWebWorker;
|
|
391
|
-
|
|
392
|
-
|
|
400
|
+
function lazySafeGetInst(name) {
|
|
401
|
+
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
402
|
+
}
|
|
403
|
+
function getGlobal(useCached) {
|
|
393
404
|
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
|
|
394
405
|
return _cachedGlobal.v;
|
|
395
|
-
}
|
|
396
|
-
|
|
406
|
+
}
|
|
407
|
+
function getInst(name, useCached) {
|
|
397
408
|
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
|
|
398
409
|
if (gbl && gbl[name]) {
|
|
399
410
|
return gbl[name];
|
|
@@ -402,29 +413,33 @@ var getInst = function (name, useCached) {
|
|
|
402
413
|
return _cachedWindow.v;
|
|
403
414
|
}
|
|
404
415
|
return NULL_VALUE;
|
|
405
|
-
}
|
|
406
|
-
|
|
416
|
+
}
|
|
417
|
+
function getDocument() {
|
|
407
418
|
(!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
|
|
408
419
|
return _cachedDocument.v;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
420
|
+
}
|
|
421
|
+
function hasWindow() {
|
|
422
|
+
return !!getWindow();
|
|
423
|
+
}
|
|
424
|
+
function getWindow() {
|
|
412
425
|
(!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
|
|
413
426
|
return _cachedWindow.v;
|
|
414
|
-
}
|
|
415
|
-
|
|
427
|
+
}
|
|
428
|
+
function getNavigator() {
|
|
416
429
|
(!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
|
|
417
430
|
return _cachedNavigator.v;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
431
|
+
}
|
|
432
|
+
function hasHistory() {
|
|
433
|
+
return !!getHistory();
|
|
434
|
+
}
|
|
435
|
+
function getHistory() {
|
|
421
436
|
(!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history"));
|
|
422
437
|
return _cachedHistory.v;
|
|
423
|
-
}
|
|
424
|
-
|
|
438
|
+
}
|
|
439
|
+
function isWebWorker() {
|
|
425
440
|
!_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
|
|
426
441
|
return _isWebWorker.v;
|
|
427
|
-
}
|
|
442
|
+
}
|
|
428
443
|
|
|
429
444
|
var _symbol;
|
|
430
445
|
var _symbolFor;
|
|
@@ -475,7 +490,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
475
490
|
try {
|
|
476
491
|
var count = 0;
|
|
477
492
|
while (!(iterResult = iter.next())[DONE]) {
|
|
478
|
-
if (callbackfn
|
|
493
|
+
if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
|
|
479
494
|
break;
|
|
480
495
|
}
|
|
481
496
|
count++;
|
|
@@ -504,7 +519,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
504
519
|
}
|
|
505
520
|
}
|
|
506
521
|
|
|
507
|
-
var fnApply = _unwrapInstFunction("apply");
|
|
522
|
+
var fnApply = ( _unwrapInstFunction("apply"));
|
|
508
523
|
|
|
509
524
|
function arrAppend(target, elms) {
|
|
510
525
|
if (!isUndefined(elms) && target) {
|
|
@@ -528,7 +543,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
528
543
|
var len = theArray[LENGTH] >>> 0;
|
|
529
544
|
for (var idx = 0; idx < len; idx++) {
|
|
530
545
|
if (idx in theArray) {
|
|
531
|
-
if (callbackfn
|
|
546
|
+
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
532
547
|
break;
|
|
533
548
|
}
|
|
534
549
|
}
|
|
@@ -536,16 +551,14 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
536
551
|
}
|
|
537
552
|
}
|
|
538
553
|
|
|
539
|
-
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
554
|
+
var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
|
|
555
|
+
( _unwrapFunction(LAST_INDEX_OF, ArrProto));
|
|
540
556
|
|
|
541
|
-
var arrMap = _unwrapFunction("map", ArrProto);
|
|
557
|
+
var arrMap = ( _unwrapFunction("map", ArrProto));
|
|
542
558
|
|
|
543
|
-
var arrSlice = _unwrapFunction(SLICE, ArrProto);
|
|
559
|
+
var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
|
|
544
560
|
|
|
545
|
-
var
|
|
546
|
-
|
|
547
|
-
var _objCreate = ObjClass["create"];
|
|
548
|
-
var objCreate = _objCreate || polyObjCreate;
|
|
561
|
+
var objCreate = ObjClass["create"] || polyObjCreate;
|
|
549
562
|
function polyObjCreate(obj) {
|
|
550
563
|
if (!obj) {
|
|
551
564
|
return {};
|
|
@@ -572,7 +585,7 @@ function objSetPrototypeOf(obj, proto) {
|
|
|
572
585
|
return fn(obj, proto);
|
|
573
586
|
}
|
|
574
587
|
|
|
575
|
-
|
|
588
|
+
function _createCustomError(name, d, b) {
|
|
576
589
|
_safeDefineName(d, name);
|
|
577
590
|
d = objSetPrototypeOf(d, b);
|
|
578
591
|
function __() {
|
|
@@ -581,7 +594,7 @@ var _createCustomError = function (name, d, b) {
|
|
|
581
594
|
}
|
|
582
595
|
d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
|
|
583
596
|
return d;
|
|
584
|
-
}
|
|
597
|
+
}
|
|
585
598
|
var _safeSetName = function (baseClass, name) {
|
|
586
599
|
try {
|
|
587
600
|
name && (baseClass[NAME] = name);
|
|
@@ -639,9 +652,13 @@ function _createTrimFn(exp) {
|
|
|
639
652
|
return value;
|
|
640
653
|
};
|
|
641
654
|
}
|
|
642
|
-
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
655
|
+
var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
656
|
+
var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
|
|
657
|
+
var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
|
|
643
658
|
|
|
644
|
-
var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
|
|
659
|
+
var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
660
|
+
( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
|
|
661
|
+
( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
|
|
645
662
|
|
|
646
663
|
var _fnToString;
|
|
647
664
|
var _objCtrFnString;
|
|
@@ -657,7 +674,7 @@ function isPlainObject(value) {
|
|
|
657
674
|
if (value !== _gblWindow) {
|
|
658
675
|
if (!_objCtrFnString) {
|
|
659
676
|
_fnToString = Function[PROTOTYPE].toString;
|
|
660
|
-
_objCtrFnString =
|
|
677
|
+
_objCtrFnString = _fnToString[CALL](ObjClass);
|
|
661
678
|
}
|
|
662
679
|
try {
|
|
663
680
|
var proto = objGetPrototypeOf(value);
|
|
@@ -666,7 +683,7 @@ function isPlainObject(value) {
|
|
|
666
683
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
667
684
|
proto = proto[CONSTRUCTOR];
|
|
668
685
|
}
|
|
669
|
-
result = proto && typeof proto === FUNCTION && _fnToString
|
|
686
|
+
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
670
687
|
}
|
|
671
688
|
}
|
|
672
689
|
catch (ex) {
|
|
@@ -681,7 +698,7 @@ function getPerformance() {
|
|
|
681
698
|
return _perf.v;
|
|
682
699
|
}
|
|
683
700
|
|
|
684
|
-
var strEndsWith = _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
|
|
701
|
+
var strEndsWith = ( _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
685
702
|
function polyStrEndsWith(value, searchString, length) {
|
|
686
703
|
if (!isString(value)) {
|
|
687
704
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
@@ -693,7 +710,8 @@ function polyStrEndsWith(value, searchString, length) {
|
|
|
693
710
|
return strSubstring(value, end - chkLen, end) === searchValue;
|
|
694
711
|
}
|
|
695
712
|
|
|
696
|
-
var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
|
|
713
|
+
var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
|
|
714
|
+
( _unwrapFunction(LAST_INDEX_OF, StrProto));
|
|
697
715
|
|
|
698
716
|
var REF = "ref";
|
|
699
717
|
var UNREF = "un" + REF;
|
|
@@ -1345,7 +1363,7 @@ function newId(maxLength) {
|
|
|
1345
1363
|
return result;
|
|
1346
1364
|
}
|
|
1347
1365
|
|
|
1348
|
-
var version = '3.1.0-nightly3.2401-
|
|
1366
|
+
var version = '3.1.0-nightly3.2401-08';
|
|
1349
1367
|
var instanceName = "." + newId(6);
|
|
1350
1368
|
var _dataUid = 0;
|
|
1351
1369
|
function _canAcceptData(target) {
|
|
@@ -5630,7 +5648,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
|
|
|
5630
5648
|
});
|
|
5631
5649
|
return _this;
|
|
5632
5650
|
}
|
|
5633
|
-
AnalyticsPlugin.Version = '3.1.0-nightly3.2401-
|
|
5651
|
+
AnalyticsPlugin.Version = '3.1.0-nightly3.2401-08';
|
|
5634
5652
|
return AnalyticsPlugin;
|
|
5635
5653
|
}(BaseTelemetryPlugin));
|
|
5636
5654
|
|