@microsoft/applicationinsights-dependencies-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.
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-dependencies-js",
3
- "version": "2.7.3-nightly.2201-02",
3
+ "version": "2.7.3",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-dependencies-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-6edazFWm4YFs8Lk4TPJ6tqV0G7rAh8p66JzWnJRGmaE= sha384-0u+wKYRUkg9hGYdkqDlag/H17DfaLgHeNUC8Hf+7LLSUGHIp1s83Zv0/xFW6jUxq sha512-+iVWhYhKwUSktu3fhO7/HAonRqXCOH880S7uN3g0OMcjjTXz9g+Znr3KR1AkP6ycMnFyPZGxSNrGCZt3ryjblQ==",
8
+ "integrity": "sha256-6lAHTyVP+/xLQUrEd25iK02XRrnxuRBFy/v+2enRN5s= sha384-f9utgcI0vrppUgWU83kaKM28gCZdZhpip+ZL3iUFarWzYBbhQ2fkYE/vWEBbKxAe sha512-wkQW62nKhlwFm8BiJdjIQZ5bU8Comc3bmDS0aNY7XtUKuHkYzvjYBmOlsOmmgJHDQOlqvjRxipBF0tNDGdpI6Q==",
9
9
  "hashes": {
10
- "sha256": "6edazFWm4YFs8Lk4TPJ6tqV0G7rAh8p66JzWnJRGmaE=",
11
- "sha384": "0u+wKYRUkg9hGYdkqDlag/H17DfaLgHeNUC8Hf+7LLSUGHIp1s83Zv0/xFW6jUxq",
12
- "sha512": "+iVWhYhKwUSktu3fhO7/HAonRqXCOH880S7uN3g0OMcjjTXz9g+Znr3KR1AkP6ycMnFyPZGxSNrGCZt3ryjblQ=="
10
+ "sha256": "6lAHTyVP+/xLQUrEd25iK02XRrnxuRBFy/v+2enRN5s=",
11
+ "sha384": "f9utgcI0vrppUgWU83kaKM28gCZdZhpip+ZL3iUFarWzYBbhQ2fkYE/vWEBbKxAe",
12
+ "sha512": "wkQW62nKhlwFm8BiJdjIQZ5bU8Comc3bmDS0aNY7XtUKuHkYzvjYBmOlsOmmgJHDQOlqvjRxipBF0tNDGdpI6Q=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-dependencies-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-TYAoXwNxJsmRuJz4pqO1yU9BWqZ5XcVRsPFyxa+YKwE= sha384-ESCMw+jmIQHxj8ZPWp2m6WIQDHFJX2dDAbZCXkWVsu0+2THfrD76HAcm37Zq+bnz sha512-9P8KE4+4UBDUNJE1KW5e7p6OBEyWsaadgs5gyZRY2nxiLKPswNkOuQCSRUp8r7aAKM77WZ3OajbGJPqeYT/V6g==",
18
+ "integrity": "sha256-CBkwEV8XufEGvUgLlgwT1ya9yJj8efQjZFtnyG0gJFk= sha384-tXYlwl/KLv0r8YbR08goOq7S7eQ9OdjEs8BGYxhoWByCmG70tx0SwyHnN5jExvz4 sha512-UCIekKXggl3rBiN14wE6b3Ox17ioMSSUJkwOA6mac/bTOvvXMt38RxcXqwoCi+dx2uc6bpkBcwkFsFY0Y2wemQ==",
19
19
  "hashes": {
20
- "sha256": "TYAoXwNxJsmRuJz4pqO1yU9BWqZ5XcVRsPFyxa+YKwE=",
21
- "sha384": "ESCMw+jmIQHxj8ZPWp2m6WIQDHFJX2dDAbZCXkWVsu0+2THfrD76HAcm37Zq+bnz",
22
- "sha512": "9P8KE4+4UBDUNJE1KW5e7p6OBEyWsaadgs5gyZRY2nxiLKPswNkOuQCSRUp8r7aAKM77WZ3OajbGJPqeYT/V6g=="
20
+ "sha256": "CBkwEV8XufEGvUgLlgwT1ya9yJj8efQjZFtnyG0gJFk=",
21
+ "sha384": "tXYlwl/KLv0r8YbR08goOq7S7eQ9OdjEs8BGYxhoWByCmG70tx0SwyHnN5jExvz4",
22
+ "sha512": "UCIekKXggl3rBiN14wE6b3Ox17ioMSSUJkwOA6mac/bTOvvXMt38RxcXqwoCi+dx2uc6bpkBcwkFsFY0Y2wemQ=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 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
- 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);
@@ -424,6 +428,7 @@
424
428
  var strOnPrefix = "on";
425
429
  var strAttachEvent = "attachEvent";
426
430
  var strAddEventHelper = "addEventListener";
431
+ var strToISOString = "toISOString";
427
432
  var _objDefineProperty = ObjDefineProperty;
428
433
  function objToString(obj) {
429
434
  return ObjProto.toString.call(obj);
@@ -498,22 +503,27 @@
498
503
  return typeof value === "number";
499
504
  }
500
505
  function toISOString(date) {
501
- if (isDate(date)) {
502
- var pad = function (num) {
503
- var r = String(num);
504
- if (r.length === 1) {
505
- r = "0" + r;
506
- }
507
- return r;
508
- };
509
- return date.getUTCFullYear()
510
- + "-" + pad(date.getUTCMonth() + 1)
511
- + "-" + pad(date.getUTCDate())
512
- + "T" + pad(date.getUTCHours())
513
- + ":" + pad(date.getUTCMinutes())
514
- + ":" + pad(date.getUTCSeconds())
515
- + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
516
- + "Z";
506
+ if (date) {
507
+ if (date[strToISOString]) {
508
+ return date[strToISOString]();
509
+ }
510
+ if (isDate(date)) {
511
+ var pad = function (num) {
512
+ var r = String(num);
513
+ if (r.length === 1) {
514
+ r = "0" + r;
515
+ }
516
+ return r;
517
+ };
518
+ return date.getUTCFullYear()
519
+ + "-" + pad(date.getUTCMonth() + 1)
520
+ + "-" + pad(date.getUTCDate())
521
+ + "T" + pad(date.getUTCHours())
522
+ + ":" + pad(date.getUTCMinutes())
523
+ + ":" + pad(date.getUTCSeconds())
524
+ + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
525
+ + "Z";
526
+ }
517
527
  }
518
528
  }
519
529
  function arrForEach(arr, callbackfn, thisArg) {