@hpcc-js/comms 3.5.1 → 3.5.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.
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
4
4
  import { scopedLogger, join, promiseTimeout, exists, deepMixin, xml2json, StateObject, Cache, Graph, Subgraph as Subgraph$1, Vertex as Vertex$1, Edge as Edge$1, SAXStackParser, Stack, espTime2Seconds as espTime2Seconds$1, deepMixinT, XMLNode, debounce, Message, Dispatch } from "@hpcc-js/util";
5
- const PKG_NAME = "@hpcc-js/comms", PKG_VERSION = "3.5.0", BUILD_VERSION = "3.6.0", logger$5 = scopedLogger("comms/connection.ts");
5
+ const PKG_NAME = "@hpcc-js/comms", PKG_VERSION = "3.5.1", BUILD_VERSION = "3.6.1", logger$5 = scopedLogger("comms/connection.ts");
6
6
  function instanceOfIOptions(object) {
7
7
  return "baseUrl" in object;
8
8
  }
@@ -2095,7 +2095,7 @@ function identity(x) {
2095
2095
  }
2096
2096
  var map = Array.prototype.map, prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2097
2097
  function formatLocale$1(locale2) {
2098
- var group = locale2.grouping === void 0 || locale2.thousands === void 0 ? identity : formatGroup(map.call(locale2.grouping, Number), locale2.thousands + ""), currencyPrefix = locale2.currency === void 0 ? "" : locale2.currency[0] + "", currencySuffix = locale2.currency === void 0 ? "" : locale2.currency[1] + "", decimal = locale2.decimal === void 0 ? "." : locale2.decimal + "", numerals = locale2.numerals === void 0 ? identity : formatNumerals(map.call(locale2.numerals, String)), percent = locale2.percent === void 0 ? "%" : locale2.percent + "", minus = locale2.minus === void 0 ? "-" : locale2.minus + "", nan = locale2.nan === void 0 ? "NaN" : locale2.nan + "";
2098
+ var group = locale2.grouping === void 0 || locale2.thousands === void 0 ? identity : formatGroup(map.call(locale2.grouping, Number), locale2.thousands + ""), currencyPrefix = locale2.currency === void 0 ? "" : locale2.currency[0] + "", currencySuffix = locale2.currency === void 0 ? "" : locale2.currency[1] + "", decimal = locale2.decimal + "", numerals = locale2.numerals === void 0 ? identity : formatNumerals(map.call(locale2.numerals, String)), percent = locale2.percent === void 0 ? "%" : locale2.percent + "", minus = locale2.minus + "", nan = locale2.nan === void 0 ? "NaN" : locale2.nan + "";
2099
2099
  function newFormat(specifier) {
2100
2100
  specifier = formatSpecifier(specifier);
2101
2101
  var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
@@ -4295,7 +4295,7 @@ class Workunit extends StateObject {
4295
4295
  }
4296
4296
  // WsWorkunits passthroughs ---
4297
4297
  WUQuery(_request = {}) {
4298
- return this.connection.WUQuery({ ..._request, Wuid: this.Wuid }).then((response) => (this.set(response.Workunits.ECLWorkunit[0]), response)).catch((e) => {
4298
+ return this.connection.WUQuery({ ..._request, Wuid: this.Wuid }).then((response) => (response.Workunits.ECLWorkunit.length === 0 ? (this.clearState(this.Wuid), this.set("StateID", WUStateID.NotFound)) : this.set(response.Workunits.ECLWorkunit[0]), response)).catch((e) => {
4299
4299
  if (!e.Exception.some((exception) => exception.Code === 20081 ? (this.clearState(this.Wuid), this.set("StateID", WUStateID.NotFound), !0) : !1))
4300
4300
  throw logger$3.warning(`Unexpected ESP exception: ${e.message}`), e;
4301
4301
  return {};