@microsoft/applicationinsights-dependencies-js 2.7.3-nightly.2112-07 → 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.2112-07",
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-TyP6aOMRDP/UxnOtxHuUlQzHNtoQJJI+mo4X4U09P0g= sha384-8GmMXHNXy5xCB800H5a+1iJ8SxBTz2h5C0Jyn9IF2EIt02g2X+ZCpbeRc9wxmyqm sha512-XQItL+SWEuJ1E6ODJmazF6GA6c0msKx77Jav1Mc/BZr0SDfGLTso6PFJBRVai5f8Dlhm5nfvIeND2rWvLRgClw==",
8
+ "integrity": "sha256-6lAHTyVP+/xLQUrEd25iK02XRrnxuRBFy/v+2enRN5s= sha384-f9utgcI0vrppUgWU83kaKM28gCZdZhpip+ZL3iUFarWzYBbhQ2fkYE/vWEBbKxAe sha512-wkQW62nKhlwFm8BiJdjIQZ5bU8Comc3bmDS0aNY7XtUKuHkYzvjYBmOlsOmmgJHDQOlqvjRxipBF0tNDGdpI6Q==",
9
9
  "hashes": {
10
- "sha256": "TyP6aOMRDP/UxnOtxHuUlQzHNtoQJJI+mo4X4U09P0g=",
11
- "sha384": "8GmMXHNXy5xCB800H5a+1iJ8SxBTz2h5C0Jyn9IF2EIt02g2X+ZCpbeRc9wxmyqm",
12
- "sha512": "XQItL+SWEuJ1E6ODJmazF6GA6c0msKx77Jav1Mc/BZr0SDfGLTso6PFJBRVai5f8Dlhm5nfvIeND2rWvLRgClw=="
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-4kMgNsuw7Tjw8E2yG3aPeIKKzT0RkigoB+CsBH/JpGE= sha384-7yKiyKNRc/fCZ6hC+yHUoS4LtrSqxNcOryO615AG9OzcqLGsOqT/ZNa3nC71cgAz sha512-rsM4sQEscghyxPFlaIES6iKXAsPfYX9IywNg2RgONYv7P+ibULhaDt+YLw6BHbMaRvysHb+Bwqttx2mJIwMQOg==",
18
+ "integrity": "sha256-CBkwEV8XufEGvUgLlgwT1ya9yJj8efQjZFtnyG0gJFk= sha384-tXYlwl/KLv0r8YbR08goOq7S7eQ9OdjEs8BGYxhoWByCmG70tx0SwyHnN5jExvz4 sha512-UCIekKXggl3rBiN14wE6b3Ox17ioMSSUJkwOA6mac/bTOvvXMt38RxcXqwoCi+dx2uc6bpkBcwkFsFY0Y2wemQ==",
19
19
  "hashes": {
20
- "sha256": "4kMgNsuw7Tjw8E2yG3aPeIKKzT0RkigoB+CsBH/JpGE=",
21
- "sha384": "7yKiyKNRc/fCZ6hC+yHUoS4LtrSqxNcOryO615AG9OzcqLGsOqT/ZNa3nC71cgAz",
22
- "sha512": "rsM4sQEscghyxPFlaIES6iKXAsPfYX9IywNg2RgONYv7P+ibULhaDt+YLw6BHbMaRvysHb+Bwqttx2mJIwMQOg=="
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.2112-07
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) {
@@ -609,6 +619,7 @@
609
619
 
610
620
  var strWindow = "window";
611
621
  var strDocument = "document";
622
+ var strDocumentMode = "documentMode";
612
623
  var strNavigator = "navigator";
613
624
  var strLocation = "location";
614
625
  var strConsole = "console";
@@ -705,7 +716,8 @@
705
716
  }
706
717
  var ua = (userAgentStr || "").toLowerCase();
707
718
  if (strContains(ua, strMsie)) {
708
- return parseInt(ua.split(strMsie)[1]);
719
+ var doc = getDocument() || {};
720
+ return Math.max(parseInt(ua.split(strMsie)[1]), (doc[strDocumentMode] || 0));
709
721
  }
710
722
  else if (strContains(ua, strTrident)) {
711
723
  var tridentVer = parseInt(ua.split(strTrident)[1]);