@microsoft/applicationinsights-analytics-js 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.
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-analytics-js",
3
- "version": "2.7.3-nightly.2201-01",
3
+ "version": "2.7.4-nightly.2202-01",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-analytics-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-7Y3DRP+kcU2/OIyR0bgDGVlHnFTq4r9UA+xSqX4j1Es= sha384-7DRapsZSihYMYWUpUPe56XoU/YSgtraIn92g+Ip1T+Ku+Q8WsWin7aeGlmyajFU/ sha512-Atrc8DBW7Gn7LHiMy4CYZbe/9QJbV2C0GAys/haCo1L8mvCFQj8i52LD5ULkkkDvZ3muTr9b3FTmNiGFTnQE1Q==",
8
+ "integrity": "sha256-zVc/4FVpbtYZHaMpIoRBGWJGLnXnsi100acRWSL0AFA= sha384-ZwP2j8gTQRvz94oguyimXhz/Evyxu6TDCtL85zX3CJ2yGJT8ek3KEEKfKsFVSe98 sha512-LiwNPa6p1vGOATF0mw4WlEJu4M2F1fkkRHc72PblQ2IvU0XJvfiBDEMZ7snlm0+dV4dMqfKUCqF6u+aZF6R+wA==",
9
9
  "hashes": {
10
- "sha256": "7Y3DRP+kcU2/OIyR0bgDGVlHnFTq4r9UA+xSqX4j1Es=",
11
- "sha384": "7DRapsZSihYMYWUpUPe56XoU/YSgtraIn92g+Ip1T+Ku+Q8WsWin7aeGlmyajFU/",
12
- "sha512": "Atrc8DBW7Gn7LHiMy4CYZbe/9QJbV2C0GAys/haCo1L8mvCFQj8i52LD5ULkkkDvZ3muTr9b3FTmNiGFTnQE1Q=="
10
+ "sha256": "zVc/4FVpbtYZHaMpIoRBGWJGLnXnsi100acRWSL0AFA=",
11
+ "sha384": "ZwP2j8gTQRvz94oguyimXhz/Evyxu6TDCtL85zX3CJ2yGJT8ek3KEEKfKsFVSe98",
12
+ "sha512": "LiwNPa6p1vGOATF0mw4WlEJu4M2F1fkkRHc72PblQ2IvU0XJvfiBDEMZ7snlm0+dV4dMqfKUCqF6u+aZF6R+wA=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-analytics-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-Bex3vuDaIA+FWuaK+FLY68X7pASvNEbDnierBbOH/jw= sha384-5xrrvzlQGFtoyTZ3FzSujOnR8ftiMEb5xv80UBEMej7WyfMpdL1ewO8wd5hsqdiZ sha512-tDU+1dtiAedVqb+abTqo4Gh3wyDYP7phc/xFTvYVVTXNBExI2gD2IHk2mbKytNlc4VsVUZma9bNECjoIXL+57w==",
18
+ "integrity": "sha256-QOCqUKDDbqMWHmW90Q0C03jx2J8yFIurtbdyncGmh4c= sha384-JddAPFN4gjghjGmCo1YH7NcWrl12knwIe9tTmx1V/S5FYMoeoCD/1HUNA1le6GiR sha512-XddLdRTlKaikc/4ydSl71PGS73SOikKKtPc2nLJXPKVHMlw5kiN94FUl6MBmqbZkTfV7z+4gbj5be6MhekfWXg==",
19
19
  "hashes": {
20
- "sha256": "Bex3vuDaIA+FWuaK+FLY68X7pASvNEbDnierBbOH/jw=",
21
- "sha384": "5xrrvzlQGFtoyTZ3FzSujOnR8ftiMEb5xv80UBEMej7WyfMpdL1ewO8wd5hsqdiZ",
22
- "sha512": "tDU+1dtiAedVqb+abTqo4Gh3wyDYP7phc/xFTvYVVTXNBExI2gD2IHk2mbKytNlc4VsVUZma9bNECjoIXL+57w=="
20
+ "sha256": "QOCqUKDDbqMWHmW90Q0C03jx2J8yFIurtbdyncGmh4c=",
21
+ "sha384": "JddAPFN4gjghjGmCo1YH7NcWrl12knwIe9tTmx1V/S5FYMoeoCD/1HUNA1le6GiR",
22
+ "sha512": "XddLdRTlKaikc/4ydSl71PGS73SOikKKtPc2nLJXPKVHMlw5kiN94FUl6MBmqbZkTfV7z+4gbj5be6MhekfWXg=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 2.7.3-nightly.2201-01
2
+ * Application Insights JavaScript SDK - Web Analytics, 2.7.4-nightly.2202-01
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
- function getGlobal() {
24
- if (typeof globalThis !== strShimUndefined && globalThis) {
25
- return globalThis;
26
- }
27
- if (typeof self !== strShimUndefined && self) {
28
- return self;
29
- }
30
- if (typeof window !== strShimUndefined && window) {
31
- return window;
32
- }
33
- if (typeof global !== strShimUndefined && global) {
34
- return global;
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 null;
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 (isDate(date)) {
492
- var pad = function (num) {
493
- var r = String(num);
494
- if (r.length === 1) {
495
- r = "0" + r;
496
- }
497
- return r;
498
- };
499
- return date.getUTCFullYear()
500
- + "-" + pad(date.getUTCMonth() + 1)
501
- + "-" + pad(date.getUTCDate())
502
- + "T" + pad(date.getUTCHours())
503
- + ":" + pad(date.getUTCMinutes())
504
- + ":" + pad(date.getUTCSeconds())
505
- + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
506
- + "Z";
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) {
@@ -2249,7 +2259,7 @@
2249
2259
  return exceptionData;
2250
2260
  };
2251
2261
  Exception.prototype.toInterface = function () {
2252
- 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;
2262
+ var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel, problemGroup = _a.problemGroup, id = _a.id, isManual = _a.isManual;
2253
2263
  var exceptionDetailsInterface = exceptions instanceof Array
2254
2264
  && arrMap(exceptions, function (exception) { return exception.toInterface(); })
2255
2265
  || undefined;
@@ -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-nightly.2201-01";
3453
+ ApplicationInsights.Version = "2.7.4-nightly.2202-01";
3444
3454
  return ApplicationInsights;
3445
3455
  }(BaseTelemetryPlugin));
3446
3456
  var Timing = /** @class */ (function () {