@microsoft/applicationinsights-debugplugin-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.
Files changed (55) hide show
  1. package/browser/{ai.dbg.2.7.3-nightly.2112-07.cjs.js → ai.dbg.2.7.3.cjs.js} +44 -32
  2. package/browser/ai.dbg.2.7.3.cjs.js.map +1 -0
  3. package/browser/ai.dbg.2.7.3.cjs.min.js +6 -0
  4. package/browser/ai.dbg.2.7.3.cjs.min.js.map +1 -0
  5. package/browser/{ai.dbg.2.7.3-nightly.2112-07.gbl.js → ai.dbg.2.7.3.gbl.js} +44 -32
  6. package/browser/ai.dbg.2.7.3.gbl.js.map +1 -0
  7. package/browser/ai.dbg.2.7.3.gbl.min.js +6 -0
  8. package/browser/ai.dbg.2.7.3.gbl.min.js.map +1 -0
  9. package/browser/ai.dbg.2.7.3.integrity.json +66 -0
  10. package/browser/{ai.dbg.2.7.3-nightly.2112-07.js → ai.dbg.2.7.3.js} +44 -32
  11. package/browser/ai.dbg.2.7.3.js.map +1 -0
  12. package/browser/ai.dbg.2.7.3.min.js +6 -0
  13. package/browser/ai.dbg.2.7.3.min.js.map +1 -0
  14. package/browser/ai.dbg.2.cjs.js +43 -31
  15. package/browser/ai.dbg.2.cjs.js.map +1 -1
  16. package/browser/ai.dbg.2.cjs.min.js +2 -2
  17. package/browser/ai.dbg.2.cjs.min.js.map +1 -1
  18. package/browser/ai.dbg.2.gbl.js +43 -31
  19. package/browser/ai.dbg.2.gbl.js.map +1 -1
  20. package/browser/ai.dbg.2.gbl.min.js +2 -2
  21. package/browser/ai.dbg.2.gbl.min.js.map +1 -1
  22. package/browser/ai.dbg.2.js +43 -31
  23. package/browser/ai.dbg.2.js.map +1 -1
  24. package/browser/ai.dbg.2.min.js +2 -2
  25. package/browser/ai.dbg.2.min.js.map +1 -1
  26. package/dist/applicationinsights-debugplugin-js.api.json +1 -1
  27. package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
  28. package/dist/applicationinsights-debugplugin-js.js +43 -31
  29. package/dist/applicationinsights-debugplugin-js.js.map +1 -1
  30. package/dist/applicationinsights-debugplugin-js.min.js +2 -2
  31. package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
  32. package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
  33. package/dist-esm/DebugPlugin.js +1 -1
  34. package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
  35. package/dist-esm/components/Dashboard.js +1 -1
  36. package/dist-esm/components/LogEntry.js +1 -1
  37. package/dist-esm/components/debugBins.js +1 -1
  38. package/dist-esm/components/filterList.js +1 -1
  39. package/dist-esm/components/helpers.js +1 -1
  40. package/dist-esm/components/styleNodeSrc.js +1 -1
  41. package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
  42. package/package.json +54 -57
  43. package/src/components/Dashboard.ts +6 -6
  44. package/src/interfaces/IDebugPluginConfig.ts +1 -1
  45. package/types/tsdoc-metadata.json +1 -1
  46. package/browser/ai.dbg.2.7.3-nightly.2112-07.cjs.js.map +0 -1
  47. package/browser/ai.dbg.2.7.3-nightly.2112-07.cjs.min.js +0 -6
  48. package/browser/ai.dbg.2.7.3-nightly.2112-07.cjs.min.js.map +0 -1
  49. package/browser/ai.dbg.2.7.3-nightly.2112-07.gbl.js.map +0 -1
  50. package/browser/ai.dbg.2.7.3-nightly.2112-07.gbl.min.js +0 -6
  51. package/browser/ai.dbg.2.7.3-nightly.2112-07.gbl.min.js.map +0 -1
  52. package/browser/ai.dbg.2.7.3-nightly.2112-07.integrity.json +0 -66
  53. package/browser/ai.dbg.2.7.3-nightly.2112-07.js.map +0 -1
  54. package/browser/ai.dbg.2.7.3-nightly.2112-07.min.js +0 -6
  55. package/browser/ai.dbg.2.7.3-nightly.2112-07.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 2.7.3-nightly.2112-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 2.7.3
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  this.Microsoft = this.Microsoft || {};
@@ -17,20 +17,24 @@ this.Microsoft = this.Microsoft || {};
17
17
  var ObjDefineProperty = ObjClass["defineProperty"];
18
18
  var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
19
19
 
20
- function getGlobal() {
21
- if (typeof globalThis !== strShimUndefined && globalThis) {
22
- return globalThis;
23
- }
24
- if (typeof self !== strShimUndefined && self) {
25
- return self;
26
- }
27
- if (typeof window !== strShimUndefined && window) {
28
- return window;
29
- }
30
- if (typeof global !== strShimUndefined && global) {
31
- return global;
20
+ var _cachedGlobal = null;
21
+ function getGlobal(useCached) {
22
+ if (useCached === void 0) { useCached = true; }
23
+ if (!_cachedGlobal || !useCached) {
24
+ if (typeof globalThis !== strShimUndefined && globalThis) {
25
+ _cachedGlobal = globalThis;
26
+ }
27
+ if (typeof self !== strShimUndefined && self) {
28
+ _cachedGlobal = self;
29
+ }
30
+ if (typeof window !== strShimUndefined && window) {
31
+ _cachedGlobal = window;
32
+ }
33
+ if (typeof global !== strShimUndefined && global) {
34
+ _cachedGlobal = global;
35
+ }
32
36
  }
33
- return null;
37
+ return _cachedGlobal;
34
38
  }
35
39
  function throwTypeError(message) {
36
40
  throw new TypeError(message);
@@ -409,6 +413,7 @@ this.Microsoft = this.Microsoft || {};
409
413
  var strOnPrefix = "on";
410
414
  var strAttachEvent = "attachEvent";
411
415
  var strAddEventHelper = "addEventListener";
416
+ var strToISOString = "toISOString";
412
417
  var _objDefineProperty = ObjDefineProperty;
413
418
  function objToString(obj) {
414
419
  return ObjProto.toString.call(obj);
@@ -510,22 +515,27 @@ this.Microsoft = this.Microsoft || {};
510
515
  return typeof value === "symbol";
511
516
  }
512
517
  function toISOString(date) {
513
- if (isDate(date)) {
514
- var pad = function (num) {
515
- var r = String(num);
516
- if (r.length === 1) {
517
- r = "0" + r;
518
- }
519
- return r;
520
- };
521
- return date.getUTCFullYear()
522
- + "-" + pad(date.getUTCMonth() + 1)
523
- + "-" + pad(date.getUTCDate())
524
- + "T" + pad(date.getUTCHours())
525
- + ":" + pad(date.getUTCMinutes())
526
- + ":" + pad(date.getUTCSeconds())
527
- + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
528
- + "Z";
518
+ if (date) {
519
+ if (date[strToISOString]) {
520
+ return date[strToISOString]();
521
+ }
522
+ if (isDate(date)) {
523
+ var pad = function (num) {
524
+ var r = String(num);
525
+ if (r.length === 1) {
526
+ r = "0" + r;
527
+ }
528
+ return r;
529
+ };
530
+ return date.getUTCFullYear()
531
+ + "-" + pad(date.getUTCMonth() + 1)
532
+ + "-" + pad(date.getUTCDate())
533
+ + "T" + pad(date.getUTCHours())
534
+ + ":" + pad(date.getUTCMinutes())
535
+ + ":" + pad(date.getUTCSeconds())
536
+ + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
537
+ + "Z";
538
+ }
529
539
  }
530
540
  }
531
541
  function arrForEach(arr, callbackfn, thisArg) {
@@ -680,6 +690,7 @@ this.Microsoft = this.Microsoft || {};
680
690
 
681
691
  var strWindow = "window";
682
692
  var strDocument = "document";
693
+ var strDocumentMode = "documentMode";
683
694
  var strNavigator = "navigator";
684
695
  var strLocation = "location";
685
696
  var strConsole = "console";
@@ -783,7 +794,8 @@ this.Microsoft = this.Microsoft || {};
783
794
  }
784
795
  var ua = (userAgentStr || "").toLowerCase();
785
796
  if (strContains(ua, strMsie)) {
786
- return parseInt(ua.split(strMsie)[1]);
797
+ var doc = getDocument() || {};
798
+ return Math.max(parseInt(ua.split(strMsie)[1]), (doc[strDocumentMode] || 0));
787
799
  }
788
800
  else if (strContains(ua, strTrident)) {
789
801
  var tridentVer = parseInt(ua.split(strTrident)[1]);
@@ -3365,4 +3377,4 @@ this.Microsoft = this.Microsoft || {};
3365
3377
  (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 });
3366
3378
 
3367
3379
  })(this.Microsoft.ApplicationInsights = this.Microsoft.ApplicationInsights || {});
3368
- //# sourceMappingURL=ai.dbg.2.7.3-nightly.2112-07.gbl.js.map
3380
+ //# sourceMappingURL=ai.dbg.2.7.3.gbl.js.map