@microsoft/applicationinsights-debugplugin-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.
Files changed (51) hide show
  1. package/browser/{ai.dbg.2.7.3-nightly.2201-02.cjs.js → ai.dbg.2.7.3.cjs.js} +41 -31
  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.2201-02.gbl.js → ai.dbg.2.7.3.gbl.js} +41 -31
  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.2201-02.js → ai.dbg.2.7.3.js} +41 -31
  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 +40 -30
  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 +40 -30
  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 +40 -30
  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.d.ts +1 -1
  27. package/dist/applicationinsights-debugplugin-js.js +40 -30
  28. package/dist/applicationinsights-debugplugin-js.js.map +1 -1
  29. package/dist/applicationinsights-debugplugin-js.min.js +2 -2
  30. package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
  31. package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
  32. package/dist-esm/DebugPlugin.js +1 -1
  33. package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
  34. package/dist-esm/components/Dashboard.js +1 -1
  35. package/dist-esm/components/LogEntry.js +1 -1
  36. package/dist-esm/components/debugBins.js +1 -1
  37. package/dist-esm/components/filterList.js +1 -1
  38. package/dist-esm/components/helpers.js +1 -1
  39. package/dist-esm/components/styleNodeSrc.js +1 -1
  40. package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
  41. package/package.json +54 -57
  42. package/browser/ai.dbg.2.7.3-nightly.2201-02.cjs.js.map +0 -1
  43. package/browser/ai.dbg.2.7.3-nightly.2201-02.cjs.min.js +0 -6
  44. package/browser/ai.dbg.2.7.3-nightly.2201-02.cjs.min.js.map +0 -1
  45. package/browser/ai.dbg.2.7.3-nightly.2201-02.gbl.js.map +0 -1
  46. package/browser/ai.dbg.2.7.3-nightly.2201-02.gbl.min.js +0 -6
  47. package/browser/ai.dbg.2.7.3-nightly.2201-02.gbl.min.js.map +0 -1
  48. package/browser/ai.dbg.2.7.3-nightly.2201-02.integrity.json +0 -66
  49. package/browser/ai.dbg.2.7.3-nightly.2201-02.js.map +0 -1
  50. package/browser/ai.dbg.2.7.3-nightly.2201-02.min.js +0 -6
  51. package/browser/ai.dbg.2.7.3-nightly.2201-02.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 2.7.3-nightly.2201-02
2
+ * Application Insights JavaScript SDK - Debug Plugin, 2.7.3
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -17,20 +17,24 @@ var ObjCreate = ObjClass["create"];
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 @@ var _InternalMessageId = {
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 @@ function isSymbol(value) {
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) {
@@ -3363,4 +3373,4 @@ var DebugPlugin = /** @class */ (function (_super) {
3363
3373
  var DebugPlugin$1 = DebugPlugin;
3364
3374
 
3365
3375
  exports.DebugPlugin = DebugPlugin$1;
3366
- //# sourceMappingURL=ai.dbg.2.7.3-nightly.2201-02.cjs.js.map
3376
+ //# sourceMappingURL=ai.dbg.2.7.3.cjs.js.map