@microsoft/applicationinsights-debugplugin-js 2.8.0-nightly.2204-19 → 2.8.0

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 (53) hide show
  1. package/browser/{ai.dbg.2.8.0-nightly.2204-19.cjs.js → ai.dbg.2.8.0.cjs.js} +23 -18
  2. package/browser/ai.dbg.2.8.0.cjs.js.map +1 -0
  3. package/browser/ai.dbg.2.8.0.cjs.min.js +6 -0
  4. package/browser/ai.dbg.2.8.0.cjs.min.js.map +1 -0
  5. package/browser/{ai.dbg.2.8.0-nightly.2204-19.gbl.js → ai.dbg.2.8.0.gbl.js} +23 -18
  6. package/browser/ai.dbg.2.8.0.gbl.js.map +1 -0
  7. package/browser/ai.dbg.2.8.0.gbl.min.js +6 -0
  8. package/browser/ai.dbg.2.8.0.gbl.min.js.map +1 -0
  9. package/browser/ai.dbg.2.8.0.integrity.json +66 -0
  10. package/browser/{ai.dbg.2.8.0-nightly.2204-19.js → ai.dbg.2.8.0.js} +23 -18
  11. package/browser/ai.dbg.2.8.0.js.map +1 -0
  12. package/browser/ai.dbg.2.8.0.min.js +6 -0
  13. package/browser/ai.dbg.2.8.0.min.js.map +1 -0
  14. package/browser/ai.dbg.2.cjs.js +22 -17
  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 +22 -17
  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 +22 -17
  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 +4 -3
  27. package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
  28. package/dist/applicationinsights-debugplugin-js.js +22 -17
  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/types/tsdoc-metadata.json +1 -1
  44. package/browser/ai.dbg.2.8.0-nightly.2204-19.cjs.js.map +0 -1
  45. package/browser/ai.dbg.2.8.0-nightly.2204-19.cjs.min.js +0 -6
  46. package/browser/ai.dbg.2.8.0-nightly.2204-19.cjs.min.js.map +0 -1
  47. package/browser/ai.dbg.2.8.0-nightly.2204-19.gbl.js.map +0 -1
  48. package/browser/ai.dbg.2.8.0-nightly.2204-19.gbl.min.js +0 -6
  49. package/browser/ai.dbg.2.8.0-nightly.2204-19.gbl.min.js.map +0 -1
  50. package/browser/ai.dbg.2.8.0-nightly.2204-19.integrity.json +0 -66
  51. package/browser/ai.dbg.2.8.0-nightly.2204-19.js.map +0 -1
  52. package/browser/ai.dbg.2.8.0-nightly.2204-19.min.js +0 -6
  53. package/browser/ai.dbg.2.8.0-nightly.2204-19.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 2.8.0-nightly.2204-19
2
+ * Application Insights JavaScript SDK - Debug Plugin, 2.8.0
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -1268,7 +1268,7 @@ function newId(maxLength) {
1268
1268
  }
1269
1269
 
1270
1270
  var _objDefineProperty = ObjDefineProperty;
1271
- var version = "2.8.0-nightly.2204-19";
1271
+ var version = "2.8.0";
1272
1272
  var instanceName = "." + newId(6);
1273
1273
  var _dataUid = 0;
1274
1274
  function _createAccessor(target, prop, value) {
@@ -1348,20 +1348,20 @@ var strTelemetryPluginChain = "TelemetryPluginChain";
1348
1348
  var strHasRunFlags = "_hasRun";
1349
1349
  var strGetTelCtx = "_getTelCtx";
1350
1350
  var _chainId = 0;
1351
- function _getNextProxyStart(proxy, config, core, startAt) {
1351
+ function _getNextProxyStart(proxy, core, startAt) {
1352
1352
  while (proxy) {
1353
1353
  if (proxy.getPlugin() === startAt) {
1354
1354
  return proxy;
1355
1355
  }
1356
1356
  proxy = proxy.getNext();
1357
1357
  }
1358
- return createTelemetryProxyChain([startAt], config, core);
1358
+ return createTelemetryProxyChain([startAt], core.config || {}, core);
1359
1359
  }
1360
1360
  function _createInternalContext(telemetryChain, config, core, startAt) {
1361
1361
  var _nextProxy = null;
1362
1362
  var _onComplete = [];
1363
1363
  if (startAt !== null) {
1364
- _nextProxy = startAt ? _getNextProxyStart(telemetryChain, config, core, startAt) : telemetryChain;
1364
+ _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;
1365
1365
  }
1366
1366
  var context = {
1367
1367
  _next: _moveNext,
@@ -1448,6 +1448,7 @@ function _createInternalContext(telemetryChain, config, core, startAt) {
1448
1448
  }
1449
1449
  });
1450
1450
  }
1451
+ theConfig = newConfig_1;
1451
1452
  }
1452
1453
  }
1453
1454
  return theConfig;
@@ -1494,7 +1495,8 @@ function createProcessTelemetryContext(telemetryChain, config, core, startAt) {
1494
1495
  context.createNew = _createNew;
1495
1496
  return context;
1496
1497
  }
1497
- function createProcessTelemetryUnloadContext(telemetryChain, config, core, startAt) {
1498
+ function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1499
+ var config = core.config || {};
1498
1500
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1499
1501
  var context = internalContext.ctx;
1500
1502
  function _processNext(unloadState) {
@@ -1507,19 +1509,20 @@ function createProcessTelemetryUnloadContext(telemetryChain, config, core, start
1507
1509
  if (isArray(plugins)) {
1508
1510
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1509
1511
  }
1510
- return createProcessTelemetryUnloadContext(plugins || context.getNext(), config, core, startAt);
1512
+ return createProcessTelemetryUnloadContext(plugins || context.getNext(), core, startAt);
1511
1513
  }
1512
1514
  context.processNext = _processNext;
1513
1515
  context.createNew = _createNew;
1514
1516
  return context;
1515
1517
  }
1516
- function createProcessTelemetryUpdateContext(telemetryChain, config, core, startAt) {
1518
+ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1519
+ var config = core.config || {};
1517
1520
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1518
1521
  var context = internalContext.ctx;
1519
1522
  function _processNext(updateState) {
1520
1523
  return context.iterate(function (plugin) {
1521
- if (isFunction(plugin[strUpdate])) {
1522
- plugin[strUpdate](context, updateState);
1524
+ if (isFunction(plugin.update)) {
1525
+ plugin.update(context, updateState);
1523
1526
  }
1524
1527
  });
1525
1528
  }
@@ -1528,7 +1531,7 @@ function createProcessTelemetryUpdateContext(telemetryChain, config, core, start
1528
1531
  if (isArray(plugins)) {
1529
1532
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1530
1533
  }
1531
- return createProcessTelemetryUpdateContext(plugins || context.getNext(), config, core, startAt);
1534
+ return createProcessTelemetryUpdateContext(plugins || context.getNext(), core, startAt);
1532
1535
  }
1533
1536
  context.processNext = _processNext;
1534
1537
  context.createNew = _createNew;
@@ -1620,7 +1623,7 @@ function createTelemetryPluginProxy(plugin, config, core) {
1620
1623
  hasRun = true;
1621
1624
  }
1622
1625
  if (!nextProxy || !hasNextRun) {
1623
- _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + plugin.identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1626
+ _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1624
1627
  }
1625
1628
  }
1626
1629
  }, details, isAsync);
@@ -1634,7 +1637,7 @@ function createTelemetryPluginProxy(plugin, config, core) {
1634
1637
  return false;
1635
1638
  }
1636
1639
  var pluginState = _getPluginState(plugin);
1637
- if (pluginState[strTeardown] || pluginState[strDisabled]) {
1640
+ if (pluginState.teardown || pluginState[strDisabled]) {
1638
1641
  return false;
1639
1642
  }
1640
1643
  if (hasSetNext) {
@@ -1957,12 +1960,13 @@ var BaseTelemetryPlugin = /** @class */ (function () {
1957
1960
  _isinitialized = true;
1958
1961
  };
1959
1962
  _self.teardown = function (unloadCtx, unloadState) {
1960
- if (!_self.core || (unloadCtx && _self.core !== unloadCtx.core())) {
1963
+ var core = _self.core;
1964
+ if (!core || (unloadCtx && core !== unloadCtx.core())) {
1961
1965
  return;
1962
1966
  }
1963
1967
  var result;
1964
1968
  var unloadDone = false;
1965
- var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1969
+ var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1966
1970
  var theUnloadState = unloadState || {
1967
1971
  reason: 0 ,
1968
1972
  isAsync: false
@@ -1990,12 +1994,13 @@ var BaseTelemetryPlugin = /** @class */ (function () {
1990
1994
  return result;
1991
1995
  };
1992
1996
  _self.update = function (updateCtx, updateState) {
1993
- if (!_self.core || (updateCtx && _self.core !== updateCtx.core())) {
1997
+ var core = _self.core;
1998
+ if (!core || (updateCtx && core !== updateCtx.core())) {
1994
1999
  return;
1995
2000
  }
1996
2001
  var result;
1997
2002
  var updateDone = false;
1998
- var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
2003
+ var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1999
2004
  var theUpdateState = updateState || {
2000
2005
  reason: 0
2001
2006
  };
@@ -3883,4 +3888,4 @@ var DebugPlugin = /** @class */ (function (_super) {
3883
3888
  var DebugPlugin$1 = DebugPlugin;
3884
3889
 
3885
3890
  exports.DebugPlugin = DebugPlugin$1;
3886
- //# sourceMappingURL=ai.dbg.2.8.0-nightly.2204-19.cjs.js.map
3891
+ //# sourceMappingURL=ai.dbg.2.8.0.cjs.js.map