@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.
- 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-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -30,11 +30,13 @@
|
|
|
30
30
|
var SYMBOL = "Symbol";
|
|
31
31
|
var POLYFILL_TAG = "_polyfill";
|
|
32
32
|
var INDEX_OF = "indexOf";
|
|
33
|
+
var LAST_INDEX_OF = "lastIndexOf";
|
|
33
34
|
var LENGTH = "length";
|
|
34
35
|
var DONE = "done";
|
|
35
36
|
var VALUE = "value";
|
|
36
37
|
var NAME = "name";
|
|
37
38
|
var SLICE = "slice";
|
|
39
|
+
var CALL = "call";
|
|
38
40
|
var ObjClass = Object;
|
|
39
41
|
var ObjProto = ObjClass[PROTOTYPE];
|
|
40
42
|
var StrCls = String;
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
function objToString(value) {
|
|
68
|
-
return ObjProto.toString
|
|
70
|
+
return ObjProto.toString[CALL](value);
|
|
69
71
|
}
|
|
70
72
|
function isUndefined(value) {
|
|
71
73
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
@@ -79,8 +81,8 @@
|
|
|
79
81
|
function isDefined(arg) {
|
|
80
82
|
return !!arg || arg !== UNDEF_VALUE;
|
|
81
83
|
}
|
|
82
|
-
var isString = _createIs(STRING);
|
|
83
|
-
var isFunction = _createIs(FUNCTION);
|
|
84
|
+
var isString = ( _createIs(STRING));
|
|
85
|
+
var isFunction = ( _createIs(FUNCTION));
|
|
84
86
|
function isObject(value) {
|
|
85
87
|
if (!value && isNullOrUndefined(value)) {
|
|
86
88
|
return false;
|
|
@@ -88,9 +90,9 @@
|
|
|
88
90
|
return !!value && typeof value === OBJECT;
|
|
89
91
|
}
|
|
90
92
|
var isArray = ArrCls.isArray;
|
|
91
|
-
var isNumber = _createIs(NUMBER);
|
|
92
|
-
var isBoolean = _createIs(BOOLEAN);
|
|
93
|
-
var isError = _createObjIs("Error");
|
|
93
|
+
var isNumber = ( _createIs(NUMBER));
|
|
94
|
+
var isBoolean = ( _createIs(BOOLEAN));
|
|
95
|
+
var isError = ( _createObjIs("Error"));
|
|
94
96
|
function isTruthy(value) {
|
|
95
97
|
return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
|
|
96
98
|
}
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
99
101
|
|
|
100
102
|
function objHasOwnProperty(obj, prop) {
|
|
101
|
-
return obj && ObjProto.hasOwnProperty
|
|
103
|
+
return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
|
|
@@ -110,7 +112,7 @@
|
|
|
110
112
|
if (theObject && isObject(theObject)) {
|
|
111
113
|
for (var prop in theObject) {
|
|
112
114
|
if (objHasOwn(theObject, prop)) {
|
|
113
|
-
if (callbackfn
|
|
115
|
+
if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
114
116
|
break;
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -135,8 +137,12 @@
|
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
var _objFreeze = ObjClass["freeze"];
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
function _doNothing(value) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
function _getProto(value) {
|
|
144
|
+
return value[__PROTO__] || NULL_VALUE;
|
|
145
|
+
}
|
|
140
146
|
var objAssign = ObjClass["assign"];
|
|
141
147
|
function objKeys(value) {
|
|
142
148
|
if (!isObject(value) || value === NULL_VALUE) {
|
|
@@ -164,7 +170,7 @@
|
|
|
164
170
|
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
|
|
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 @@
|
|
|
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));
|
|
@@ -391,12 +400,14 @@
|
|
|
391
400
|
var _cachedNavigator;
|
|
392
401
|
var _cachedHistory;
|
|
393
402
|
var _isWebWorker;
|
|
394
|
-
|
|
395
|
-
|
|
403
|
+
function lazySafeGetInst(name) {
|
|
404
|
+
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
405
|
+
}
|
|
406
|
+
function getGlobal(useCached) {
|
|
396
407
|
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
|
|
397
408
|
return _cachedGlobal.v;
|
|
398
|
-
}
|
|
399
|
-
|
|
409
|
+
}
|
|
410
|
+
function getInst(name, useCached) {
|
|
400
411
|
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
|
|
401
412
|
if (gbl && gbl[name]) {
|
|
402
413
|
return gbl[name];
|
|
@@ -405,29 +416,33 @@
|
|
|
405
416
|
return _cachedWindow.v;
|
|
406
417
|
}
|
|
407
418
|
return NULL_VALUE;
|
|
408
|
-
}
|
|
409
|
-
|
|
419
|
+
}
|
|
420
|
+
function getDocument() {
|
|
410
421
|
(!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
|
|
411
422
|
return _cachedDocument.v;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
423
|
+
}
|
|
424
|
+
function hasWindow() {
|
|
425
|
+
return !!getWindow();
|
|
426
|
+
}
|
|
427
|
+
function getWindow() {
|
|
415
428
|
(!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
|
|
416
429
|
return _cachedWindow.v;
|
|
417
|
-
}
|
|
418
|
-
|
|
430
|
+
}
|
|
431
|
+
function getNavigator() {
|
|
419
432
|
(!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
|
|
420
433
|
return _cachedNavigator.v;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
434
|
+
}
|
|
435
|
+
function hasHistory() {
|
|
436
|
+
return !!getHistory();
|
|
437
|
+
}
|
|
438
|
+
function getHistory() {
|
|
424
439
|
(!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history"));
|
|
425
440
|
return _cachedHistory.v;
|
|
426
|
-
}
|
|
427
|
-
|
|
441
|
+
}
|
|
442
|
+
function isWebWorker() {
|
|
428
443
|
!_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
|
|
429
444
|
return _isWebWorker.v;
|
|
430
|
-
}
|
|
445
|
+
}
|
|
431
446
|
|
|
432
447
|
var _symbol;
|
|
433
448
|
var _symbolFor;
|
|
@@ -478,7 +493,7 @@
|
|
|
478
493
|
try {
|
|
479
494
|
var count = 0;
|
|
480
495
|
while (!(iterResult = iter.next())[DONE]) {
|
|
481
|
-
if (callbackfn
|
|
496
|
+
if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
|
|
482
497
|
break;
|
|
483
498
|
}
|
|
484
499
|
count++;
|
|
@@ -507,7 +522,7 @@
|
|
|
507
522
|
}
|
|
508
523
|
}
|
|
509
524
|
|
|
510
|
-
var fnApply = _unwrapInstFunction("apply");
|
|
525
|
+
var fnApply = ( _unwrapInstFunction("apply"));
|
|
511
526
|
|
|
512
527
|
function arrAppend(target, elms) {
|
|
513
528
|
if (!isUndefined(elms) && target) {
|
|
@@ -531,7 +546,7 @@
|
|
|
531
546
|
var len = theArray[LENGTH] >>> 0;
|
|
532
547
|
for (var idx = 0; idx < len; idx++) {
|
|
533
548
|
if (idx in theArray) {
|
|
534
|
-
if (callbackfn
|
|
549
|
+
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
535
550
|
break;
|
|
536
551
|
}
|
|
537
552
|
}
|
|
@@ -539,16 +554,14 @@
|
|
|
539
554
|
}
|
|
540
555
|
}
|
|
541
556
|
|
|
542
|
-
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
557
|
+
var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
|
|
558
|
+
( _unwrapFunction(LAST_INDEX_OF, ArrProto));
|
|
543
559
|
|
|
544
|
-
var arrMap = _unwrapFunction("map", ArrProto);
|
|
560
|
+
var arrMap = ( _unwrapFunction("map", ArrProto));
|
|
545
561
|
|
|
546
|
-
var arrSlice = _unwrapFunction(SLICE, ArrProto);
|
|
562
|
+
var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
|
|
547
563
|
|
|
548
|
-
var
|
|
549
|
-
|
|
550
|
-
var _objCreate = ObjClass["create"];
|
|
551
|
-
var objCreate = _objCreate || polyObjCreate;
|
|
564
|
+
var objCreate = ObjClass["create"] || polyObjCreate;
|
|
552
565
|
function polyObjCreate(obj) {
|
|
553
566
|
if (!obj) {
|
|
554
567
|
return {};
|
|
@@ -575,7 +588,7 @@
|
|
|
575
588
|
return fn(obj, proto);
|
|
576
589
|
}
|
|
577
590
|
|
|
578
|
-
|
|
591
|
+
function _createCustomError(name, d, b) {
|
|
579
592
|
_safeDefineName(d, name);
|
|
580
593
|
d = objSetPrototypeOf(d, b);
|
|
581
594
|
function __() {
|
|
@@ -584,7 +597,7 @@
|
|
|
584
597
|
}
|
|
585
598
|
d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
|
|
586
599
|
return d;
|
|
587
|
-
}
|
|
600
|
+
}
|
|
588
601
|
var _safeSetName = function (baseClass, name) {
|
|
589
602
|
try {
|
|
590
603
|
name && (baseClass[NAME] = name);
|
|
@@ -642,9 +655,13 @@
|
|
|
642
655
|
return value;
|
|
643
656
|
};
|
|
644
657
|
}
|
|
645
|
-
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
658
|
+
var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
659
|
+
var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
|
|
660
|
+
var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
|
|
646
661
|
|
|
647
|
-
var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
|
|
662
|
+
var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
663
|
+
( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
|
|
664
|
+
( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
|
|
648
665
|
|
|
649
666
|
var _fnToString;
|
|
650
667
|
var _objCtrFnString;
|
|
@@ -660,7 +677,7 @@
|
|
|
660
677
|
if (value !== _gblWindow) {
|
|
661
678
|
if (!_objCtrFnString) {
|
|
662
679
|
_fnToString = Function[PROTOTYPE].toString;
|
|
663
|
-
_objCtrFnString =
|
|
680
|
+
_objCtrFnString = _fnToString[CALL](ObjClass);
|
|
664
681
|
}
|
|
665
682
|
try {
|
|
666
683
|
var proto = objGetPrototypeOf(value);
|
|
@@ -669,7 +686,7 @@
|
|
|
669
686
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
670
687
|
proto = proto[CONSTRUCTOR];
|
|
671
688
|
}
|
|
672
|
-
result = proto && typeof proto === FUNCTION && _fnToString
|
|
689
|
+
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
673
690
|
}
|
|
674
691
|
}
|
|
675
692
|
catch (ex) {
|
|
@@ -684,7 +701,7 @@
|
|
|
684
701
|
return _perf.v;
|
|
685
702
|
}
|
|
686
703
|
|
|
687
|
-
var strEndsWith = _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
|
|
704
|
+
var strEndsWith = ( _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
688
705
|
function polyStrEndsWith(value, searchString, length) {
|
|
689
706
|
if (!isString(value)) {
|
|
690
707
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
@@ -696,7 +713,8 @@
|
|
|
696
713
|
return strSubstring(value, end - chkLen, end) === searchValue;
|
|
697
714
|
}
|
|
698
715
|
|
|
699
|
-
var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
|
|
716
|
+
var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
|
|
717
|
+
( _unwrapFunction(LAST_INDEX_OF, StrProto));
|
|
700
718
|
|
|
701
719
|
var REF = "ref";
|
|
702
720
|
var UNREF = "un" + REF;
|
|
@@ -1348,7 +1366,7 @@
|
|
|
1348
1366
|
return result;
|
|
1349
1367
|
}
|
|
1350
1368
|
|
|
1351
|
-
var version = '3.1.0-nightly3.2401-
|
|
1369
|
+
var version = '3.1.0-nightly3.2401-05';
|
|
1352
1370
|
var instanceName = "." + newId(6);
|
|
1353
1371
|
var _dataUid = 0;
|
|
1354
1372
|
function _canAcceptData(target) {
|
|
@@ -5633,7 +5651,7 @@
|
|
|
5633
5651
|
});
|
|
5634
5652
|
return _this;
|
|
5635
5653
|
}
|
|
5636
|
-
AnalyticsPlugin.Version = '3.1.0-nightly3.2401-
|
|
5654
|
+
AnalyticsPlugin.Version = '3.1.0-nightly3.2401-05';
|
|
5637
5655
|
return AnalyticsPlugin;
|
|
5638
5656
|
}(BaseTelemetryPlugin));
|
|
5639
5657
|
|