@hpcc-js/comms 2.99.0 → 2.99.1

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.
package/dist/index.js CHANGED
@@ -648,8 +648,8 @@
648
648
  }
649
649
 
650
650
  var PKG_NAME = "@hpcc-js/comms";
651
- var PKG_VERSION = "2.99.0";
652
- var BUILD_VERSION = "2.107.1";
651
+ var PKG_VERSION = "2.99.1";
652
+ var BUILD_VERSION = "2.107.3";
653
653
 
654
654
  /******************************************************************************
655
655
  Copyright (c) Microsoft Corporation.
@@ -6746,7 +6746,7 @@
6746
6746
  return this.WUDetails(request).then(function (response) { return response.Scopes.Scope; });
6747
6747
  };
6748
6748
  Workunit.prototype.normalizeDetails = function (meta, scopes) {
6749
- var _a;
6749
+ var _a, _b;
6750
6750
  var columns = {
6751
6751
  id: {
6752
6752
  Measure: "label"
@@ -6763,11 +6763,15 @@
6763
6763
  var props = {};
6764
6764
  var formattedProps = {};
6765
6765
  if (scope && scope.Id && scope.Properties && scope.Properties.Property) {
6766
- for (var key in scope.Properties.Property) {
6766
+ var _loop_2 = function (key) {
6767
6767
  var scopeProperty = scope.Properties.Property[key];
6768
6768
  if (scopeProperty.Measure === "ns") {
6769
6769
  scopeProperty.Measure = "s";
6770
6770
  }
6771
+ if (scopeProperty.Name === "Kind") {
6772
+ var rawValue_1 = parseInt(scopeProperty.RawValue, 10);
6773
+ scopeProperty.Formatted = (_a = meta.Activities.Activity.filter(function (a) { return a.Kind === rawValue_1; })[0].Name) !== null && _a !== void 0 ? _a : scopeProperty.RawValue;
6774
+ }
6771
6775
  columns[scopeProperty.Name] = __assign({}, scopeProperty);
6772
6776
  safeDelete(columns, scopeProperty.Name, "RawValue");
6773
6777
  safeDelete(columns, scopeProperty.Name, "Formatted");
@@ -6806,7 +6810,10 @@
6806
6810
  default:
6807
6811
  props[scopeProperty.Name] = scopeProperty.RawValue;
6808
6812
  }
6809
- formattedProps[scopeProperty.Name] = formatNum((_a = scopeProperty.Formatted) !== null && _a !== void 0 ? _a : props[scopeProperty.Name]);
6813
+ formattedProps[scopeProperty.Name] = formatNum((_b = scopeProperty.Formatted) !== null && _b !== void 0 ? _b : props[scopeProperty.Name]);
6814
+ };
6815
+ for (var key in scope.Properties.Property) {
6816
+ _loop_2(key);
6810
6817
  }
6811
6818
  // Other properties ---
6812
6819
  }
@@ -7091,7 +7098,7 @@
7091
7098
  return false;
7092
7099
  });
7093
7100
  if (!wuMissing) {
7094
- logger$3.warning("Unexpected exception: ");
7101
+ logger$3.warning("Unexpected ESP exception: ".concat(e.message));
7095
7102
  throw e;
7096
7103
  }
7097
7104
  return {};
@@ -7128,7 +7135,7 @@
7128
7135
  return false;
7129
7136
  });
7130
7137
  if (!wuMissing) {
7131
- logger$3.warning("Unexpected exception: ");
7138
+ logger$3.warning("Unexpected ESP exception: ".concat(e.message));
7132
7139
  throw e;
7133
7140
  }
7134
7141
  return {};
@@ -7887,7 +7894,7 @@
7887
7894
  return false;
7888
7895
  });
7889
7896
  if (!fileMissing) {
7890
- logger$2.warning("Unexpected exception: ");
7897
+ logger$2.warning("Unexpected ESP exception: ".concat(e.message));
7891
7898
  throw e;
7892
7899
  }
7893
7900
  return {};
@@ -10288,7 +10295,7 @@
10288
10295
  return false;
10289
10296
  });
10290
10297
  if (!wuMissing) {
10291
- logger.warning("Unexpected exception: ");
10298
+ logger.warning("Unexpected ESP exception: ".concat(e.message));
10292
10299
  throw e;
10293
10300
  }
10294
10301
  return {};