@hpcc-js/comms 2.65.0 → 2.66.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 (46) hide show
  1. package/dist/index.es6.js +199 -197
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +101 -85
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/index.node.js +216 -173
  8. package/dist/index.node.js.map +1 -1
  9. package/dist/index.node.min.js +1 -1
  10. package/dist/index.node.min.js.map +1 -1
  11. package/lib-es6/__package__.js +2 -2
  12. package/lib-es6/clienttools/eclMeta.js +4 -4
  13. package/lib-es6/clienttools/eclMeta.js.map +1 -1
  14. package/lib-es6/clienttools/eclcc.js +18 -18
  15. package/lib-es6/clienttools/eclcc.js.map +1 -1
  16. package/lib-es6/connection.js +6 -6
  17. package/lib-es6/connection.js.map +1 -1
  18. package/lib-es6/ecl/graph.js +5 -5
  19. package/lib-es6/ecl/graph.js.map +1 -1
  20. package/lib-es6/ecl/logicalFile.js +2 -2
  21. package/lib-es6/ecl/logicalFile.js.map +1 -1
  22. package/lib-es6/ecl/result.js +1 -1
  23. package/lib-es6/ecl/result.js.map +1 -1
  24. package/lib-es6/ecl/scope.js +5 -5
  25. package/lib-es6/ecl/scope.js.map +1 -1
  26. package/lib-es6/ecl/store.js +4 -4
  27. package/lib-es6/ecl/store.js.map +1 -1
  28. package/lib-es6/ecl/targetCluster.js +2 -2
  29. package/lib-es6/ecl/targetCluster.js.map +1 -1
  30. package/lib-es6/ecl/topology.js +1 -1
  31. package/lib-es6/ecl/topology.js.map +1 -1
  32. package/lib-es6/ecl/workunit.js +4 -4
  33. package/lib-es6/ecl/workunit.js.map +1 -1
  34. package/lib-es6/espConnection.js +1 -1
  35. package/lib-es6/espConnection.js.map +1 -1
  36. package/lib-es6/services/wsEcl.js +3 -3
  37. package/lib-es6/services/wsEcl.js.map +1 -1
  38. package/package.json +20 -20
  39. package/src/__package__.ts +2 -2
  40. package/src/ecl/topology.ts +1 -1
  41. package/types/__package__.d.ts +2 -2
  42. package/types/ecl/activity.d.ts +1 -1
  43. package/types/ecl/activity.d.ts.map +1 -1
  44. package/types/ecl/topology.d.ts.map +1 -1
  45. package/types-3.4/__package__.d.ts +2 -2
  46. package/types-3.4/ecl/activity.d.ts +1 -1
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/util')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/util'], factory) :
4
- (global = global || self, factory(global['@hpcc-js/comms'] = {}, global['@hpcc-js/util']));
5
- }(this, (function (exports, util) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/comms"] = {}, global["@hpcc-js/util"]));
5
+ })(this, (function (exports, util) { 'use strict';
6
6
 
7
7
  var global =
8
8
  (typeof globalThis !== 'undefined' && globalThis) ||
@@ -603,8 +603,8 @@
603
603
  }
604
604
 
605
605
  var PKG_NAME = "@hpcc-js/comms";
606
- var PKG_VERSION = "2.65.0";
607
- var BUILD_VERSION = "2.94.0";
606
+ var PKG_VERSION = "2.66.0";
607
+ var BUILD_VERSION = "2.97.0";
608
608
 
609
609
  /*! *****************************************************************************
610
610
  Copyright (c) Microsoft Corporation.
@@ -693,10 +693,10 @@
693
693
  ar[i] = from[i];
694
694
  }
695
695
  }
696
- return to.concat(ar || from);
696
+ return to.concat(ar || Array.prototype.slice.call(from));
697
697
  }
698
698
 
699
- var logger = util.scopedLogger("comms/connection.ts");
699
+ var logger$1 = util.scopedLogger("comms/connection.ts");
700
700
  function instanceOfIOptions(object) {
701
701
  return "baseUrl" in object;
702
702
  }
@@ -735,20 +735,20 @@
735
735
  obj[key].forEach(function (row, i) {
736
736
  if (typeof row === "object") {
737
737
  includeItemCount_1 = true;
738
- str.push(serializeRequest(row, encodeRequest, prefix + encode(key + "." + i, encodeRequest)));
738
+ str.push(serializeRequest(row, encodeRequest, prefix + encode("".concat(key, ".").concat(i), encodeRequest)));
739
739
  }
740
740
  else {
741
- str.push(prefix + encode(key + "_i" + i, encodeRequest) + "=" + serializeRequest(row, encodeRequest));
741
+ str.push(prefix + encode("".concat(key, "_i").concat(i), encodeRequest) + "=" + serializeRequest(row, encodeRequest));
742
742
  }
743
743
  });
744
744
  if (includeItemCount_1) {
745
- str.push(prefix + encode(key + ".itemcount", encodeRequest) + "=" + obj[key].length);
745
+ str.push(prefix + encode("".concat(key, ".itemcount"), encodeRequest) + "=" + obj[key].length);
746
746
  }
747
747
  }
748
748
  else if (typeof obj[key] === "object") {
749
749
  if (obj[key] && obj[key]["Item"] instanceof Array) { // Specific to ws_machine.GetTargetClusterInfo?
750
750
  str.push(serializeRequest(obj[key]["Item"], encodeRequest, prefix + encode(key, encodeRequest)));
751
- str.push(prefix + encode(key + ".itemcount", encodeRequest) + "=" + obj[key]["Item"].length);
751
+ str.push(prefix + encode("".concat(key, ".itemcount"), encodeRequest) + "=" + obj[key]["Item"].length);
752
752
  }
753
753
  else {
754
754
  str.push(serializeRequest(obj[key], encodeRequest, prefix + encode(key, encodeRequest)));
@@ -798,12 +798,12 @@
798
798
  respondedTimeout -= respondedTick;
799
799
  if (respondedTimeout <= 0) {
800
800
  clearInterval(progress);
801
- logger.error("Request timeout: " + script.src);
801
+ logger$1.error("Request timeout: " + script.src);
802
802
  doCallback();
803
803
  reject(Error("Request timeout: " + script.src));
804
804
  }
805
805
  else {
806
- logger.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
806
+ logger$1.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
807
807
  }
808
808
  }
809
809
  }, respondedTick);
@@ -814,7 +814,7 @@
814
814
  });
815
815
  }
816
816
  function authHeader(opts) {
817
- return opts.userID ? { Authorization: "Basic " + btoa(opts.userID + ":" + opts.password) } : {};
817
+ return opts.userID ? { Authorization: "Basic ".concat(btoa("".concat(opts.userID, ":").concat(opts.password))) } : {};
818
818
  }
819
819
  // _omitMap is a workaround for older HPCC-Platform instances without credentials ---
820
820
  var _omitMap = {};
@@ -873,7 +873,7 @@
873
873
  abortSignal = request.abortSignal_;
874
874
  delete request.abortSignal_;
875
875
  }
876
- return doFetch(opts, action + "?" + serializeRequest(request, opts.encodeRequest), {
876
+ return doFetch(opts, "".concat(action, "?").concat(serializeRequest(request, opts.encodeRequest)), {
877
877
  method: "get",
878
878
  signal: abortSignal
879
879
  }, __assign({}, header), responseType);
@@ -952,7 +952,7 @@
952
952
  _this.Source = exceptions.Source;
953
953
  _this.Exception = exceptions.Exception;
954
954
  if (exceptions.Exception.length) {
955
- _this.message = exceptions.Exception[0].Code + ": " + exceptions.Exception[0].Message;
955
+ _this.message = "".concat(exceptions.Exception[0].Code, ": ").concat(exceptions.Exception[0].Message);
956
956
  }
957
957
  else {
958
958
  _this.message = "";
@@ -1272,7 +1272,7 @@
1272
1272
  };
1273
1273
  EclService.prototype.requestJson = function (querySet, queryId) {
1274
1274
  // http://192.168.3.22:8002/WsEcl/example/request/query/roxie/peopleaccounts/json?display
1275
- return this._connection.send("example/request/query/" + querySet + "/" + queryId + "/json", {}, "text").then(function (response) {
1275
+ return this._connection.send("example/request/query/".concat(querySet, "/").concat(queryId, "/json"), {}, "text").then(function (response) {
1276
1276
  var requestSchema = JSON.parse(response);
1277
1277
  for (var key in requestSchema) {
1278
1278
  return requestSchema[key];
@@ -1282,7 +1282,7 @@
1282
1282
  };
1283
1283
  EclService.prototype.responseJson = function (querySet, queryId) {
1284
1284
  // http://192.168.3.22:8002/WsEcl/example/response/query/roxie/peopleaccounts/json?display
1285
- return this._connection.send("example/response/query/" + querySet + "/" + queryId + "/json", {}, "text").then(function (response) {
1285
+ return this._connection.send("example/response/query/".concat(querySet, "/").concat(queryId, "/json"), {}, "text").then(function (response) {
1286
1286
  var responseSchema = JSON.parse(response);
1287
1287
  for (var key in responseSchema) {
1288
1288
  return responseSchema[key].Results;
@@ -1298,7 +1298,7 @@
1298
1298
  };
1299
1299
  EclService.prototype.submit = function (querySet, queryId, request) {
1300
1300
  // http://192.168.3.22:8002/WsEcl/submit/query/roxie/peopleaccounts.1/json
1301
- var action = "submit/query/" + querySet + "/" + queryId;
1301
+ var action = "submit/query/".concat(querySet, "/").concat(queryId);
1302
1302
  return this._connection.send(action, request, "json2").then(function (response) {
1303
1303
  if (response.Results && response.Results.Exception) {
1304
1304
  throw new ESPExceptions(action, request, {
@@ -1348,7 +1348,7 @@
1348
1348
  };
1349
1349
  }
1350
1350
 
1351
- var ascendingBisect = bisector(ascending);
1351
+ bisector(ascending);
1352
1352
 
1353
1353
  function number(x) {
1354
1354
  return x === null ? NaN : +x;
@@ -1569,13 +1569,18 @@
1569
1569
  return StoreService;
1570
1570
  }(Service));
1571
1571
 
1572
+ /*
1573
+ Response structures generated via:
1574
+ * http://localhost:8010/WsTopology/TpLogicalClusterQuery?respjson_
1575
+ * http://json2ts.com/
1576
+ */
1577
+ exports.TpLogicalClusterQuery = void 0;
1572
1578
  (function (TpLogicalClusterQuery) {
1573
- var RoxieQueueFilter;
1574
1579
  (function (RoxieQueueFilter) {
1575
1580
  RoxieQueueFilter["All"] = "All";
1576
1581
  RoxieQueueFilter["QueriesOnly"] = "QueriesOnly";
1577
1582
  RoxieQueueFilter["WorkunitsOnly"] = "WorkunitsOnly";
1578
- })(RoxieQueueFilter = TpLogicalClusterQuery.RoxieQueueFilter || (TpLogicalClusterQuery.RoxieQueueFilter = {}));
1583
+ })(TpLogicalClusterQuery.RoxieQueueFilter || (TpLogicalClusterQuery.RoxieQueueFilter = {}));
1579
1584
  })(exports.TpLogicalClusterQuery || (exports.TpLogicalClusterQuery = {}));
1580
1585
  var TopologyService = /** @class */ (function (_super) {
1581
1586
  __extends(TopologyService, _super);
@@ -1631,6 +1636,13 @@
1631
1636
  return TopologyService;
1632
1637
  }(Service));
1633
1638
 
1639
+ /*
1640
+ Response structures generated via:
1641
+ * http://localhost:8010/WsWorkunits/WUInfo?reqjson_
1642
+ * http://localhost:8010/WsWorkunits/WUInfo?respjson_
1643
+ * http://json2ts.com/
1644
+ */
1645
+ exports.WUStateID = void 0;
1634
1646
  (function (WUStateID) {
1635
1647
  WUStateID[WUStateID["Unknown"] = 0] = "Unknown";
1636
1648
  WUStateID[WUStateID["Compiled"] = 1] = "Compiled";
@@ -1655,8 +1667,8 @@
1655
1667
  function isECLResult(_) {
1656
1668
  return typeof _.Name === "string";
1657
1669
  }
1670
+ exports.WUUpdate = void 0;
1658
1671
  (function (WUUpdate) {
1659
- var Action;
1660
1672
  (function (Action) {
1661
1673
  Action[Action["Unknown"] = 0] = "Unknown";
1662
1674
  Action[Action["Compile"] = 1] = "Compile";
@@ -1668,7 +1680,7 @@
1668
1680
  Action[Action["Resume"] = 7] = "Resume";
1669
1681
  Action[Action["Debug"] = 8] = "Debug";
1670
1682
  Action[Action["__size"] = 9] = "__size";
1671
- })(Action = WUUpdate.Action || (WUUpdate.Action = {}));
1683
+ })(WUUpdate.Action || (WUUpdate.Action = {}));
1672
1684
  })(exports.WUUpdate || (exports.WUUpdate = {}));
1673
1685
  function isWUQueryECLWorkunit(_) {
1674
1686
  return _.TotalClusterTime !== undefined;
@@ -1870,6 +1882,8 @@
1870
1882
  return date.getDate() - 1;
1871
1883
  });
1872
1884
 
1885
+ var timeDay = day;
1886
+
1873
1887
  function weekday(i) {
1874
1888
  return newInterval(function(date) {
1875
1889
  date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
@@ -1883,11 +1897,11 @@
1883
1897
 
1884
1898
  var sunday = weekday(0);
1885
1899
  var monday = weekday(1);
1886
- var tuesday = weekday(2);
1887
- var wednesday = weekday(3);
1900
+ weekday(2);
1901
+ weekday(3);
1888
1902
  var thursday = weekday(4);
1889
- var friday = weekday(5);
1890
- var saturday = weekday(6);
1903
+ weekday(5);
1904
+ weekday(6);
1891
1905
 
1892
1906
  var year = newInterval(function(date) {
1893
1907
  date.setMonth(0, 1);
@@ -1911,6 +1925,8 @@
1911
1925
  });
1912
1926
  };
1913
1927
 
1928
+ var timeYear = year;
1929
+
1914
1930
  var utcDay = newInterval(function(date) {
1915
1931
  date.setUTCHours(0, 0, 0, 0);
1916
1932
  }, function(date, step) {
@@ -1921,6 +1937,8 @@
1921
1937
  return date.getUTCDate() - 1;
1922
1938
  });
1923
1939
 
1940
+ var utcDay$1 = utcDay;
1941
+
1924
1942
  function utcWeekday(i) {
1925
1943
  return newInterval(function(date) {
1926
1944
  date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
@@ -1934,11 +1952,11 @@
1934
1952
 
1935
1953
  var utcSunday = utcWeekday(0);
1936
1954
  var utcMonday = utcWeekday(1);
1937
- var utcTuesday = utcWeekday(2);
1938
- var utcWednesday = utcWeekday(3);
1955
+ utcWeekday(2);
1956
+ utcWeekday(3);
1939
1957
  var utcThursday = utcWeekday(4);
1940
- var utcFriday = utcWeekday(5);
1941
- var utcSaturday = utcWeekday(6);
1958
+ utcWeekday(5);
1959
+ utcWeekday(6);
1942
1960
 
1943
1961
  var utcYear = newInterval(function(date) {
1944
1962
  date.setUTCMonth(0, 1);
@@ -1962,6 +1980,8 @@
1962
1980
  });
1963
1981
  };
1964
1982
 
1983
+ var utcYear$1 = utcYear;
1984
+
1965
1985
  function localDate(d) {
1966
1986
  if (0 <= d.y && d.y < 100) {
1967
1987
  var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
@@ -2150,7 +2170,7 @@
2150
2170
  return function(string) {
2151
2171
  var d = newDate(1900, undefined, 1),
2152
2172
  i = parseSpecifier(d, specifier, string += "", 0),
2153
- week, day$1;
2173
+ week, day;
2154
2174
  if (i != string.length) return null;
2155
2175
 
2156
2176
  // If a UNIX timestamp is specified, return it.
@@ -2171,25 +2191,25 @@
2171
2191
  if (d.V < 1 || d.V > 53) return null;
2172
2192
  if (!("w" in d)) d.w = 1;
2173
2193
  if ("Z" in d) {
2174
- week = utcDate(newDate(d.y, 0, 1)), day$1 = week.getUTCDay();
2175
- week = day$1 > 4 || day$1 === 0 ? utcMonday.ceil(week) : utcMonday(week);
2176
- week = utcDay.offset(week, (d.V - 1) * 7);
2194
+ week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
2195
+ week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
2196
+ week = utcDay$1.offset(week, (d.V - 1) * 7);
2177
2197
  d.y = week.getUTCFullYear();
2178
2198
  d.m = week.getUTCMonth();
2179
2199
  d.d = week.getUTCDate() + (d.w + 6) % 7;
2180
2200
  } else {
2181
- week = localDate(newDate(d.y, 0, 1)), day$1 = week.getDay();
2182
- week = day$1 > 4 || day$1 === 0 ? monday.ceil(week) : monday(week);
2183
- week = day.offset(week, (d.V - 1) * 7);
2201
+ week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
2202
+ week = day > 4 || day === 0 ? monday.ceil(week) : monday(week);
2203
+ week = timeDay.offset(week, (d.V - 1) * 7);
2184
2204
  d.y = week.getFullYear();
2185
2205
  d.m = week.getMonth();
2186
2206
  d.d = week.getDate() + (d.w + 6) % 7;
2187
2207
  }
2188
2208
  } else if ("W" in d || "U" in d) {
2189
2209
  if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
2190
- day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
2210
+ day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
2191
2211
  d.m = 0;
2192
- d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day$1 + 5) % 7 : d.w + d.U * 7 - (day$1 + 6) % 7;
2212
+ d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
2193
2213
  }
2194
2214
 
2195
2215
  // If a time zone is specified, all fields are interpreted as UTC and then
@@ -2475,7 +2495,7 @@
2475
2495
  }
2476
2496
 
2477
2497
  function formatDayOfYear(d, p) {
2478
- return pad(1 + day.count(year(d), d), p, 3);
2498
+ return pad(1 + timeDay.count(timeYear(d), d), p, 3);
2479
2499
  }
2480
2500
 
2481
2501
  function formatMilliseconds(d, p) {
@@ -2504,7 +2524,7 @@
2504
2524
  }
2505
2525
 
2506
2526
  function formatWeekNumberSunday(d, p) {
2507
- return pad(sunday.count(year(d) - 1, d), p, 2);
2527
+ return pad(sunday.count(timeYear(d) - 1, d), p, 2);
2508
2528
  }
2509
2529
 
2510
2530
  function dISO(d) {
@@ -2514,7 +2534,7 @@
2514
2534
 
2515
2535
  function formatWeekNumberISO(d, p) {
2516
2536
  d = dISO(d);
2517
- return pad(thursday.count(year(d), d) + (year(d).getDay() === 4), p, 2);
2537
+ return pad(thursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
2518
2538
  }
2519
2539
 
2520
2540
  function formatWeekdayNumberSunday(d) {
@@ -2522,7 +2542,7 @@
2522
2542
  }
2523
2543
 
2524
2544
  function formatWeekNumberMonday(d, p) {
2525
- return pad(monday.count(year(d) - 1, d), p, 2);
2545
+ return pad(monday.count(timeYear(d) - 1, d), p, 2);
2526
2546
  }
2527
2547
 
2528
2548
  function formatYear(d, p) {
@@ -2564,7 +2584,7 @@
2564
2584
  }
2565
2585
 
2566
2586
  function formatUTCDayOfYear(d, p) {
2567
- return pad(1 + utcDay.count(utcYear(d), d), p, 3);
2587
+ return pad(1 + utcDay$1.count(utcYear$1(d), d), p, 3);
2568
2588
  }
2569
2589
 
2570
2590
  function formatUTCMilliseconds(d, p) {
@@ -2593,7 +2613,7 @@
2593
2613
  }
2594
2614
 
2595
2615
  function formatUTCWeekNumberSunday(d, p) {
2596
- return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
2616
+ return pad(utcSunday.count(utcYear$1(d) - 1, d), p, 2);
2597
2617
  }
2598
2618
 
2599
2619
  function UTCdISO(d) {
@@ -2603,7 +2623,7 @@
2603
2623
 
2604
2624
  function formatUTCWeekNumberISO(d, p) {
2605
2625
  d = UTCdISO(d);
2606
- return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
2626
+ return pad(utcThursday.count(utcYear$1(d), d) + (utcYear$1(d).getUTCDay() === 4), p, 2);
2607
2627
  }
2608
2628
 
2609
2629
  function formatUTCWeekdayNumberSunday(d) {
@@ -2611,7 +2631,7 @@
2611
2631
  }
2612
2632
 
2613
2633
  function formatUTCWeekNumberMonday(d, p) {
2614
- return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
2634
+ return pad(utcMonday.count(utcYear$1(d) - 1, d), p, 2);
2615
2635
  }
2616
2636
 
2617
2637
  function formatUTCYear(d, p) {
@@ -2650,8 +2670,6 @@
2650
2670
  }
2651
2671
 
2652
2672
  var locale;
2653
- var timeFormat;
2654
- var timeParse;
2655
2673
  var utcFormat;
2656
2674
  var utcParse;
2657
2675
 
@@ -2668,8 +2686,6 @@
2668
2686
 
2669
2687
  function defaultLocale(definition) {
2670
2688
  locale = formatLocale(definition);
2671
- timeFormat = locale.format;
2672
- timeParse = locale.parse;
2673
2689
  utcFormat = locale.utcFormat;
2674
2690
  utcParse = locale.utcParse;
2675
2691
  return locale;
@@ -2896,7 +2912,7 @@
2896
2912
  scopeStack.pop();
2897
2913
  }
2898
2914
  if (!scopeParent1) {
2899
- console.log("Missing SG:Parent (" + scope.Id + "): " + scope.parentScope());
2915
+ console.log("Missing SG:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2900
2916
  }
2901
2917
  else {
2902
2918
  var parent1 = scopeParent1;
@@ -2906,7 +2922,7 @@
2906
2922
  case "activity":
2907
2923
  var scopeParent2 = subgraphs[scope.parentScope()];
2908
2924
  if (!scopeParent2) {
2909
- console.log("Missing A:Parent (" + scope.Id + "): " + scope.parentScope());
2925
+ console.log("Missing A:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2910
2926
  }
2911
2927
  else {
2912
2928
  vertices[scope.ScopeName] = scopeParent2.createVertex(scope);
@@ -2918,7 +2934,7 @@
2918
2934
  case "function":
2919
2935
  var scopeParent3 = vertices[scope.parentScope()];
2920
2936
  if (!scopeParent3) {
2921
- console.log("Missing F:Parent (" + scope.Id + "): " + scope.parentScope());
2937
+ console.log("Missing F:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2922
2938
  }
2923
2939
  else {
2924
2940
  scopeParent3._.children().push(scope);
@@ -2930,7 +2946,7 @@
2930
2946
  var scope = edges[id];
2931
2947
  var scopeParent3 = subgraphs[scope.parentScope()];
2932
2948
  if (!scopeParent3) {
2933
- console.log("Missing E:Parent (" + scope.Id + "): " + scope.parentScope());
2949
+ console.log("Missing E:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2934
2950
  }
2935
2951
  else {
2936
2952
  var parent3 = scopeParent3;
@@ -2942,7 +2958,7 @@
2942
2958
  catch (e) {
2943
2959
  // const sourceIndex = scope.attr("SourceIndex").RawValue;
2944
2960
  // const targetIndex = scope.attr("TargetIndex").RawValue;
2945
- console.log("Invalid Edge: " + id);
2961
+ console.log("Invalid Edge: ".concat(id));
2946
2962
  }
2947
2963
  }
2948
2964
  }
@@ -3235,7 +3251,7 @@
3235
3251
  __extends(GlobalResultCache, _super);
3236
3252
  function GlobalResultCache() {
3237
3253
  return _super.call(this, function (obj) {
3238
- return obj.BaseUrl + "-" + obj.Wuid + "-" + obj.ResultName;
3254
+ return "".concat(obj.BaseUrl, "-").concat(obj.Wuid, "-").concat(obj.ResultName);
3239
3255
  }) || this;
3240
3256
  }
3241
3257
  return GlobalResultCache;
@@ -3706,21 +3722,21 @@
3706
3722
  var label = "";
3707
3723
  var rows = [];
3708
3724
  label = this.Id;
3709
- rows.push("<tr><td class=\"key\">ID:</td><td class=\"value\">" + this.Id + "</td></tr>");
3725
+ rows.push("<tr><td class=\"key\">ID:</td><td class=\"value\">".concat(this.Id, "</td></tr>"));
3710
3726
  if (parentScope) {
3711
- rows.push("<tr><td class=\"key\">Parent ID:</td><td class=\"value\">" + parentScope.Id + "</td></tr>");
3727
+ rows.push("<tr><td class=\"key\">Parent ID:</td><td class=\"value\">".concat(parentScope.Id, "</td></tr>"));
3712
3728
  }
3713
- rows.push("<tr><td class=\"key\">Scope:</td><td class=\"value\">" + this.ScopeName + "</td></tr>");
3729
+ rows.push("<tr><td class=\"key\">Scope:</td><td class=\"value\">".concat(this.ScopeName, "</td></tr>"));
3714
3730
  var attrs = this.formattedAttrs();
3715
3731
  for (var key in attrs) {
3716
3732
  if (key === "Label") {
3717
3733
  label = attrs[key];
3718
3734
  }
3719
3735
  else {
3720
- rows.push("<tr><td class=\"key\">" + key + "</td><td class=\"value\">" + attrs[key] + "</td></tr>");
3736
+ rows.push("<tr><td class=\"key\">".concat(key, "</td><td class=\"value\">").concat(attrs[key], "</td></tr>"));
3721
3737
  }
3722
3738
  }
3723
- return "<div class=\"eclwatch_WUGraph_Tooltip\" style=\"max-width:480px\">\n <h4 align=\"center\">" + label + "</h4>\n <table>\n " + rows.join("") + "\n </table>\n </div>";
3739
+ return "<div class=\"eclwatch_WUGraph_Tooltip\" style=\"max-width:480px\">\n <h4 align=\"center\">".concat(label, "</h4>\n <table>\n ").concat(rows.join(""), "\n </table>\n </div>");
3724
3740
  };
3725
3741
  return BaseScope;
3726
3742
  }(util.StateObject));
@@ -3854,13 +3870,13 @@
3854
3870
 
3855
3871
  var formatter = utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");
3856
3872
  var parser = utcParse("%Y-%m-%dT%H:%M:%S.%LZ");
3857
- var logger$1 = util.scopedLogger("workunit.ts");
3873
+ var logger = util.scopedLogger("workunit.ts");
3858
3874
  var WUStateID = exports.WUStateID;
3859
3875
  var WorkunitCache = /** @class */ (function (_super) {
3860
3876
  __extends(WorkunitCache, _super);
3861
3877
  function WorkunitCache() {
3862
3878
  return _super.call(this, function (obj) {
3863
- return obj.BaseUrl + "-" + obj.Wuid;
3879
+ return "".concat(obj.BaseUrl, "-").concat(obj.Wuid);
3864
3880
  }) || this;
3865
3881
  }
3866
3882
  return WorkunitCache;
@@ -4962,7 +4978,7 @@
4962
4978
  return false;
4963
4979
  });
4964
4980
  if (!wuMissing) {
4965
- logger$1.warning("Unexpected exception: ");
4981
+ logger.warning("Unexpected exception: ");
4966
4982
  throw e;
4967
4983
  }
4968
4984
  return {};
@@ -4999,7 +5015,7 @@
4999
5015
  return false;
5000
5016
  });
5001
5017
  if (!wuMissing) {
5002
- logger$1.warning("Unexpected exception: ");
5018
+ logger.warning("Unexpected exception: ");
5003
5019
  throw e;
5004
5020
  }
5005
5021
  return {};
@@ -5067,12 +5083,12 @@
5067
5083
  var optsStr = "";
5068
5084
  for (var key in opts) {
5069
5085
  if (opts.hasOwnProperty(key)) {
5070
- optsStr += " " + key + "='" + opts[key] + "'";
5086
+ optsStr += " ".concat(key, "='").concat(opts[key], "'");
5071
5087
  }
5072
5088
  }
5073
5089
  return this.connection.WUCDebug({
5074
5090
  Wuid: this.Wuid,
5075
- Command: "<debug:" + command + " uid='" + this.Wuid + "'" + optsStr + "/>"
5091
+ Command: "<debug:".concat(command, " uid='").concat(this.Wuid, "'").concat(optsStr, "/>")
5076
5092
  }).then(function (response) {
5077
5093
  return response;
5078
5094
  });
@@ -5088,7 +5104,7 @@
5088
5104
  }
5089
5105
  return new util.XMLNode(command);
5090
5106
  }).catch(function (_) {
5091
- logger$1.error(_);
5107
+ logger.error(_);
5092
5108
  return Promise.resolve(new util.XMLNode(command));
5093
5109
  });
5094
5110
  };
@@ -5203,7 +5219,7 @@
5203
5219
  column: +_col
5204
5220
  };
5205
5221
  }
5206
- throw new Error("Bad definition: " + vertex._[ATTR_DEFINITION]);
5222
+ throw new Error("Bad definition: ".concat(vertex._[ATTR_DEFINITION]));
5207
5223
  }
5208
5224
  function breakpointLocations(graph, path) {
5209
5225
  var retVal = [];
@@ -5392,12 +5408,12 @@
5392
5408
  __extends(LogicalFileCache, _super);
5393
5409
  function LogicalFileCache() {
5394
5410
  return _super.call(this, function (obj) {
5395
- return obj.BaseUrl + "-" + obj.Cluster + "-" + obj.Name;
5411
+ return "".concat(obj.BaseUrl, "-").concat(obj.Cluster, "-").concat(obj.Name);
5396
5412
  }) || this;
5397
5413
  }
5398
5414
  return LogicalFileCache;
5399
5415
  }(util.Cache));
5400
- var _store = new LogicalFileCache();
5416
+ var _store$1 = new LogicalFileCache();
5401
5417
  var LogicalFile = /** @class */ (function (_super) {
5402
5418
  __extends(LogicalFile, _super);
5403
5419
  function LogicalFile(optsConnection, Cluster, Name) {
@@ -5680,14 +5696,14 @@
5680
5696
  configurable: true
5681
5697
  });
5682
5698
  LogicalFile.attach = function (optsConnection, Cluster, Name) {
5683
- var retVal = _store.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
5699
+ var retVal = _store$1.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
5684
5700
  return new LogicalFile(optsConnection, Cluster, Name);
5685
5701
  });
5686
5702
  return retVal;
5687
5703
  };
5688
5704
  LogicalFile.prototype.filePartsOnCluster = function () {
5689
5705
  var _a;
5690
- return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []));
5706
+ return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []), true);
5691
5707
  };
5692
5708
  LogicalFile.prototype.fileParts = function () {
5693
5709
  var _a, _b;
@@ -6134,12 +6150,12 @@
6134
6150
  __extends(StoreCache, _super);
6135
6151
  function StoreCache() {
6136
6152
  return _super.call(this, function (obj) {
6137
- return obj.BaseUrl + "-" + obj.Name + ":" + obj.UserSpecific + "-" + obj.Namespace;
6153
+ return "".concat(obj.BaseUrl, "-").concat(obj.Name, ":").concat(obj.UserSpecific, "-").concat(obj.Namespace);
6138
6154
  }) || this;
6139
6155
  }
6140
6156
  return StoreCache;
6141
6157
  }(util.Cache));
6142
- var _store$1 = new StoreCache();
6158
+ var _store = new StoreCache();
6143
6159
  var ValueChangedMessage = /** @class */ (function (_super) {
6144
6160
  __extends(ValueChangedMessage, _super);
6145
6161
  function ValueChangedMessage(key, value, oldValue) {
@@ -6188,7 +6204,7 @@
6188
6204
  Store.attach = function (optsConnection, Name, Namespace, UserSpecific) {
6189
6205
  if (Name === void 0) { Name = "HPCCApps"; }
6190
6206
  if (UserSpecific === void 0) { UserSpecific = true; }
6191
- var retVal = _store$1.get({ BaseUrl: optsConnection.baseUrl, Name: Name, UserSpecific: UserSpecific, Namespace: Namespace }, function () {
6207
+ var retVal = _store.get({ BaseUrl: optsConnection.baseUrl, Name: Name, UserSpecific: UserSpecific, Namespace: Namespace }, function () {
6192
6208
  return new Store(optsConnection, Name, Namespace, UserSpecific);
6193
6209
  });
6194
6210
  return retVal;
@@ -6212,7 +6228,7 @@
6212
6228
  _this._dispatch.post(new ValueChangedMessage(key, value, oldValue));
6213
6229
  }
6214
6230
  }).catch(function (e) {
6215
- console.error("Store.set(\"" + key + "\", \"" + value + "\") failed:", e);
6231
+ console.error("Store.set(\"".concat(key, "\", \"").concat(value, "\") failed:"), e);
6216
6232
  });
6217
6233
  };
6218
6234
  Store.prototype.get = function (key, broadcast) {
@@ -6231,7 +6247,7 @@
6231
6247
  }
6232
6248
  return response.Value;
6233
6249
  }).catch(function (e) {
6234
- console.error("Store.get(" + key + ") failed:", e);
6250
+ console.error("Store.get(".concat(key, ") failed:"), e);
6235
6251
  return undefined;
6236
6252
  });
6237
6253
  };
@@ -6281,7 +6297,7 @@
6281
6297
  _this._dispatch.post(new ValueChangedMessage(key, undefined, oldValue));
6282
6298
  }
6283
6299
  }).catch(function (e) {
6284
- console.error("Store.delete(" + key + ") failed:", e);
6300
+ console.error("Store.delete(".concat(key, ") failed:"), e);
6285
6301
  });
6286
6302
  };
6287
6303
  Store.prototype.monitor = function (callback) {
@@ -6294,7 +6310,7 @@
6294
6310
  __extends(TargetClusterCache, _super);
6295
6311
  function TargetClusterCache() {
6296
6312
  return _super.call(this, function (obj) {
6297
- return obj.BaseUrl + "-" + obj.Name;
6313
+ return "".concat(obj.BaseUrl, "-").concat(obj.Name);
6298
6314
  }) || this;
6299
6315
  }
6300
6316
  return TargetClusterCache;
@@ -6393,7 +6409,7 @@
6393
6409
  var _this = this;
6394
6410
  if (request === void 0) { request = {}; }
6395
6411
  return this.machineConnection.GetTargetClusterInfo(__assign({ TargetClusters: {
6396
- Item: [this.Type + ":" + this.Name]
6412
+ Item: ["".concat(this.Type, ":").concat(this.Name)]
6397
6413
  } }, request)).then(function (response) {
6398
6414
  var retVal = [];
6399
6415
  for (var _i = 0, _a = response.TargetClusterInfoList.TargetClusterInfo; _i < _a.length; _i++) {
@@ -6559,7 +6575,7 @@
6559
6575
  }
6560
6576
  }
6561
6577
  }
6562
- return rootProtocol + "//" + ip + ":" + port + "/";
6578
+ return "".concat(rootProtocol, "//").concat(ip, ":").concat(port, "/");
6563
6579
  });
6564
6580
  };
6565
6581
  Topology.prototype.fetchTargetClusters = function () {
@@ -6704,5 +6720,5 @@
6704
6720
 
6705
6721
  Object.defineProperty(exports, '__esModule', { value: true });
6706
6722
 
6707
- })));
6723
+ }));
6708
6724
  //# sourceMappingURL=index.js.map