@hpcc-js/comms 3.3.0 → 3.5.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.
@@ -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.2.0", BUILD_VERSION = "3.2.1", logger$5 = scopedLogger("comms/connection.ts");
5
+ const PKG_NAME = "@hpcc-js/comms", PKG_VERSION = "3.4.0", BUILD_VERSION = "3.4.0", logger$5 = scopedLogger("comms/connection.ts");
6
6
  function instanceOfIOptions(object) {
7
7
  return "baseUrl" in object;
8
8
  }
@@ -222,11 +222,6 @@ class ESPConnection {
222
222
  return retVal;
223
223
  }
224
224
  return response;
225
- }).catch((e) => {
226
- throw e.isESPExceptions ? e : new ESPExceptions(action, request, {
227
- Source: "ESPConnection.send",
228
- Exception: [{ Code: 0, Message: e.message }]
229
- });
230
225
  });
231
226
  }
232
227
  clone() {
@@ -1915,7 +1910,7 @@ class WorkunitsService extends WorkunitsServiceBase {
1915
1910
  __publicField(this, "_WUDetailsMetaPromise");
1916
1911
  }
1917
1912
  Ping() {
1918
- return this._connection.send("Ping", {}, "json", !1, void 0, "WsWorkunitsPingResponse").then((response) => ({ result: !0 })).catch((e) => ({ result: !1, error: e }));
1913
+ return this._connection.send("Ping", {}, "json", !1, void 0, "WsWorkunitsPingResponse").then(() => ({ result: !0 }));
1919
1914
  }
1920
1915
  WUQuery(request = {}, abortSignal) {
1921
1916
  return this._connection.send("WUQuery", request, "json", !1, abortSignal).then((response) => deepMixin({ Workunits: { ECLWorkunit: [] } }, response));
@@ -6315,4 +6310,4 @@ export {
6315
6310
  splitMetric,
6316
6311
  targetClusters
6317
6312
  };
6318
- //# sourceMappingURL=index.browser.js.map
6313
+ //# sourceMappingURL=index.js.map