@microsoft/applicationinsights-analytics-js 2.7.3-nightly.2201-02 → 2.7.3
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/applicationinsights-analytics-js.integrity.json +9 -9
- package/browser/applicationinsights-analytics-js.js +41 -31
- package/browser/applicationinsights-analytics-js.js.map +1 -1
- package/browser/applicationinsights-analytics-js.min.js +2 -2
- package/browser/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.d.ts +1 -1
- package/dist/applicationinsights-analytics-js.js +41 -31
- package/dist/applicationinsights-analytics-js.js.map +1 -1
- package/dist/applicationinsights-analytics-js.min.js +2 -2
- package/dist/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.rollup.d.ts +1 -1
- package/dist-esm/JavaScriptSDK/ApplicationInsights.js +2 -2
- package/dist-esm/JavaScriptSDK/ApplicationInsights.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +60 -63
- package/src/JavaScriptSDK/ApplicationInsights.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.3
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Web Analytics, 2.7.3
|
|
2
|
+
* Application Insights JavaScript SDK - Web Analytics, 2.7.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -20,20 +20,24 @@
|
|
|
20
20
|
var ObjDefineProperty = ObjClass["defineProperty"];
|
|
21
21
|
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
var _cachedGlobal = null;
|
|
24
|
+
function getGlobal(useCached) {
|
|
25
|
+
if (useCached === void 0) { useCached = true; }
|
|
26
|
+
if (!_cachedGlobal || !useCached) {
|
|
27
|
+
if (typeof globalThis !== strShimUndefined && globalThis) {
|
|
28
|
+
_cachedGlobal = globalThis;
|
|
29
|
+
}
|
|
30
|
+
if (typeof self !== strShimUndefined && self) {
|
|
31
|
+
_cachedGlobal = self;
|
|
32
|
+
}
|
|
33
|
+
if (typeof window !== strShimUndefined && window) {
|
|
34
|
+
_cachedGlobal = window;
|
|
35
|
+
}
|
|
36
|
+
if (typeof global !== strShimUndefined && global) {
|
|
37
|
+
_cachedGlobal = global;
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
|
-
return
|
|
40
|
+
return _cachedGlobal;
|
|
37
41
|
}
|
|
38
42
|
function throwTypeError(message) {
|
|
39
43
|
throw new TypeError(message);
|
|
@@ -421,6 +425,7 @@
|
|
|
421
425
|
InMemoryStorageBufferFull: 105
|
|
422
426
|
};
|
|
423
427
|
|
|
428
|
+
var strToISOString = "toISOString";
|
|
424
429
|
var _objDefineProperty = ObjDefineProperty;
|
|
425
430
|
function objToString(obj) {
|
|
426
431
|
return ObjProto.toString.call(obj);
|
|
@@ -488,22 +493,27 @@
|
|
|
488
493
|
return typeof value === "string";
|
|
489
494
|
}
|
|
490
495
|
function toISOString(date) {
|
|
491
|
-
if (
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
496
|
+
if (date) {
|
|
497
|
+
if (date[strToISOString]) {
|
|
498
|
+
return date[strToISOString]();
|
|
499
|
+
}
|
|
500
|
+
if (isDate(date)) {
|
|
501
|
+
var pad = function (num) {
|
|
502
|
+
var r = String(num);
|
|
503
|
+
if (r.length === 1) {
|
|
504
|
+
r = "0" + r;
|
|
505
|
+
}
|
|
506
|
+
return r;
|
|
507
|
+
};
|
|
508
|
+
return date.getUTCFullYear()
|
|
509
|
+
+ "-" + pad(date.getUTCMonth() + 1)
|
|
510
|
+
+ "-" + pad(date.getUTCDate())
|
|
511
|
+
+ "T" + pad(date.getUTCHours())
|
|
512
|
+
+ ":" + pad(date.getUTCMinutes())
|
|
513
|
+
+ ":" + pad(date.getUTCSeconds())
|
|
514
|
+
+ "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
|
|
515
|
+
+ "Z";
|
|
516
|
+
}
|
|
507
517
|
}
|
|
508
518
|
}
|
|
509
519
|
function arrForEach(arr, callbackfn, thisArg) {
|
|
@@ -3440,7 +3450,7 @@
|
|
|
3440
3450
|
config.disableFlushOnUnload = stringToBoolOrDefault(config.disableFlushOnUnload, config.disableFlushOnBeforeUnload);
|
|
3441
3451
|
return config;
|
|
3442
3452
|
};
|
|
3443
|
-
ApplicationInsights.Version = "2.7.3
|
|
3453
|
+
ApplicationInsights.Version = "2.7.3";
|
|
3444
3454
|
return ApplicationInsights;
|
|
3445
3455
|
}(BaseTelemetryPlugin));
|
|
3446
3456
|
var Timing = /** @class */ (function () {
|