@hpcc-js/comms 2.99.0 → 2.99.2

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.2";
652
+ var BUILD_VERSION = "2.107.4";
653
653
 
654
654
  /******************************************************************************
655
655
  Copyright (c) Microsoft Corporation.
@@ -3570,10 +3570,10 @@
3570
3570
  var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
3571
3571
  currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
3572
3572
  currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
3573
- decimal = locale.decimal === undefined ? "." : locale.decimal + "",
3573
+ decimal = locale.decimal + "",
3574
3574
  numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),
3575
3575
  percent = locale.percent === undefined ? "%" : locale.percent + "",
3576
- minus = locale.minus === undefined ? "-" : locale.minus + "",
3576
+ minus = locale.minus + "",
3577
3577
  nan = locale.nan === undefined ? "NaN" : locale.nan + "";
3578
3578
 
3579
3579
  function newFormat(specifier) {
@@ -3766,7 +3766,7 @@
3766
3766
  if (step < 0) while (++step <= 0) {
3767
3767
  while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
3768
3768
  } else while (--step >= 0) {
3769
- while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
3769
+ while (offseti(date, 1), !test(date)) {} // eslint-disable-line no-empty
3770
3770
  }
3771
3771
  }
3772
3772
  });
@@ -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 {};
@@ -9105,9 +9112,13 @@
9105
9112
  else if (edge._sourceActivity || edge._targetActivity) {
9106
9113
  edge._isSpill = true;
9107
9114
  var source = edge.getSource();
9108
- source._isSpill = true;
9115
+ if (source) {
9116
+ source._isSpill = true;
9117
+ }
9109
9118
  var target = edge.getTarget();
9110
- target._isSpill = true;
9119
+ if (target) {
9120
+ target._isSpill = true;
9121
+ }
9111
9122
  }
9112
9123
  retVal.addEdge(edge);
9113
9124
  break;
@@ -10288,7 +10299,7 @@
10288
10299
  return false;
10289
10300
  });
10290
10301
  if (!wuMissing) {
10291
- logger.warning("Unexpected exception: ");
10302
+ logger.warning("Unexpected ESP exception: ".concat(e.message));
10292
10303
  throw e;
10293
10304
  }
10294
10305
  return {};