@microsoft/applicationinsights-web-basic 2.7.3-nightly.2201-01 → 2.7.4-nightly.2202-01

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.
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "aib",
3
+ "version": "2.7.4-nightly.2202-01",
4
+ "ext": {
5
+ "@js": {
6
+ "file": "aib.2.7.4-nightly.2202-01.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-6e0MVd23iHkd+CHh2Vs1nGEJzs6o61fjMVGWwPfsE6M= sha384-tHRuMvTwsQb8sDKfIhhyYWTAivEL2XmwSXjA+ENH6OHJbfeUnb2nThnN5otaXivU sha512-pxrfdRE5J5mJBGFHL1D0k8wmW5MmufvIRbvO7qoqYwQgxwJ5PajrqSOZQ6VkFEo/FMV/CfX4q7CA6sBu/5+klQ==",
9
+ "hashes": {
10
+ "sha256": "6e0MVd23iHkd+CHh2Vs1nGEJzs6o61fjMVGWwPfsE6M=",
11
+ "sha384": "tHRuMvTwsQb8sDKfIhhyYWTAivEL2XmwSXjA+ENH6OHJbfeUnb2nThnN5otaXivU",
12
+ "sha512": "pxrfdRE5J5mJBGFHL1D0k8wmW5MmufvIRbvO7qoqYwQgxwJ5PajrqSOZQ6VkFEo/FMV/CfX4q7CA6sBu/5+klQ=="
13
+ }
14
+ },
15
+ "@min.js": {
16
+ "file": "aib.2.7.4-nightly.2202-01.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-dsPdxYg+VF3QwDOFBbnRAKNtwxqvxVuI1bgeLKEvNt4= sha384-SQXWbpvh7vv4AxADK5GKfqMHPJldLS54gvUJlrYOx0gVQhXtwpfywuYGIbAGoMWH sha512-9uYkrzUn7pimtcPKlpLiDUm6fiMI4Do8FXT8me8afIJvKoOh72vY3y+ja2O7l9uqTW5edHq/SwXUAZRzAF5fiA==",
19
+ "hashes": {
20
+ "sha256": "dsPdxYg+VF3QwDOFBbnRAKNtwxqvxVuI1bgeLKEvNt4=",
21
+ "sha384": "SQXWbpvh7vv4AxADK5GKfqMHPJldLS54gvUJlrYOx0gVQhXtwpfywuYGIbAGoMWH",
22
+ "sha512": "9uYkrzUn7pimtcPKlpLiDUm6fiMI4Do8FXT8me8afIJvKoOh72vY3y+ja2O7l9uqTW5edHq/SwXUAZRzAF5fiA=="
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.7.3-nightly.2201-01
2
+ * Application Insights JavaScript Web SDK - Basic, 2.7.4-nightly.2202-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -29,20 +29,24 @@
29
29
  var ObjDefineProperty = ObjClass["defineProperty"];
30
30
  var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
31
31
 
32
- function getGlobal() {
33
- if (typeof globalThis !== strShimUndefined && globalThis) {
34
- return globalThis;
35
- }
36
- if (typeof self !== strShimUndefined && self) {
37
- return self;
38
- }
39
- if (typeof window !== strShimUndefined && window) {
40
- return window;
41
- }
42
- if (typeof global !== strShimUndefined && global) {
43
- return global;
32
+ var _cachedGlobal = null;
33
+ function getGlobal(useCached) {
34
+ if (useCached === void 0) { useCached = true; }
35
+ if (!_cachedGlobal || !useCached) {
36
+ if (typeof globalThis !== strShimUndefined && globalThis) {
37
+ _cachedGlobal = globalThis;
38
+ }
39
+ if (typeof self !== strShimUndefined && self) {
40
+ _cachedGlobal = self;
41
+ }
42
+ if (typeof window !== strShimUndefined && window) {
43
+ _cachedGlobal = window;
44
+ }
45
+ if (typeof global !== strShimUndefined && global) {
46
+ _cachedGlobal = global;
47
+ }
44
48
  }
45
- return null;
49
+ return _cachedGlobal;
46
50
  }
47
51
  function throwTypeError(message) {
48
52
  throw new TypeError(message);
@@ -439,6 +443,7 @@
439
443
  var strOnPrefix = "on";
440
444
  var strAttachEvent = "attachEvent";
441
445
  var strAddEventHelper = "addEventListener";
446
+ var strToISOString = "toISOString";
442
447
  var _objDefineProperty = ObjDefineProperty;
443
448
  ObjClass["freeze"];
444
449
  ObjClass["seal"];
@@ -539,22 +544,27 @@
539
544
  return typeof value === "boolean";
540
545
  }
541
546
  function toISOString(date) {
542
- if (isDate(date)) {
543
- var pad = function (num) {
544
- var r = String(num);
545
- if (r.length === 1) {
546
- r = "0" + r;
547
- }
548
- return r;
549
- };
550
- return date.getUTCFullYear()
551
- + "-" + pad(date.getUTCMonth() + 1)
552
- + "-" + pad(date.getUTCDate())
553
- + "T" + pad(date.getUTCHours())
554
- + ":" + pad(date.getUTCMinutes())
555
- + ":" + pad(date.getUTCSeconds())
556
- + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
557
- + "Z";
547
+ if (date) {
548
+ if (date[strToISOString]) {
549
+ return date[strToISOString]();
550
+ }
551
+ if (isDate(date)) {
552
+ var pad = function (num) {
553
+ var r = String(num);
554
+ if (r.length === 1) {
555
+ r = "0" + r;
556
+ }
557
+ return r;
558
+ };
559
+ return date.getUTCFullYear()
560
+ + "-" + pad(date.getUTCMonth() + 1)
561
+ + "-" + pad(date.getUTCDate())
562
+ + "T" + pad(date.getUTCHours())
563
+ + ":" + pad(date.getUTCMinutes())
564
+ + ":" + pad(date.getUTCSeconds())
565
+ + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
566
+ + "Z";
567
+ }
558
568
  }
559
569
  }
560
570
  function arrForEach(arr, callbackfn, thisArg) {
@@ -922,7 +932,7 @@
922
932
  }
923
933
  function useXDomainRequest() {
924
934
  if (_useXDomainRequest === null) {
925
- _useXDomainRequest = (typeof XDomainRequest !== undefined);
935
+ _useXDomainRequest = (typeof XDomainRequest !== "undefined");
926
936
  if (_useXDomainRequest && isXhrSupported()) {
927
937
  _useXDomainRequest = _useXDomainRequest && !_hasProperty(getGlobalInst("XMLHttpRequest"), "withCredentials");
928
938
  }
@@ -3075,7 +3085,7 @@
3075
3085
  return exceptionData;
3076
3086
  };
3077
3087
  Exception.prototype.toInterface = function () {
3078
- var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel; _a.ver; var problemGroup = _a.problemGroup, id = _a.id, isManual = _a.isManual;
3088
+ var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel, problemGroup = _a.problemGroup, id = _a.id, isManual = _a.isManual;
3079
3089
  var exceptionDetailsInterface = exceptions instanceof Array
3080
3090
  && arrMap(exceptions, function (exception) { return exception.toInterface(); })
3081
3091
  || undefined;
@@ -3859,7 +3869,7 @@
3859
3869
  }
3860
3870
  }
3861
3871
  var EnvelopeCreator = {
3862
- Version: "2.7.3-nightly.2201-01"
3872
+ Version: "2.7.4-nightly.2202-01"
3863
3873
  };
3864
3874
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3865
3875
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -5028,4 +5038,4 @@
5028
5038
  (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
5029
5039
 
5030
5040
  }));
5031
- //# sourceMappingURL=aib.2.7.3-nightly.2201-01.js.map
5041
+ //# sourceMappingURL=aib.2.7.4-nightly.2202-01.js.map