@hpcc-js/comms 2.73.4 → 2.73.5

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
@@ -611,8 +611,8 @@
611
611
  }
612
612
 
613
613
  var PKG_NAME = "@hpcc-js/comms";
614
- var PKG_VERSION = "2.73.4";
615
- var BUILD_VERSION = "2.102.4";
614
+ var PKG_VERSION = "2.73.5";
615
+ var BUILD_VERSION = "2.102.7";
616
616
 
617
617
  /*! *****************************************************************************
618
618
  Copyright (c) Microsoft Corporation.
@@ -1705,8 +1705,12 @@
1705
1705
  function MachineService() {
1706
1706
  return _super !== null && _super.apply(this, arguments) || this;
1707
1707
  }
1708
- MachineService.prototype.GetTargetClusterUsageEx = function (request) {
1709
- return this._connection.send("GetTargetClusterUsage", request).then(function (response) {
1708
+ MachineService.prototype.GetTargetClusterUsageEx = function (targetClusters, bypassCachedResult) {
1709
+ if (bypassCachedResult === void 0) { bypassCachedResult = false; }
1710
+ return this._connection.send("GetTargetClusterUsage", {
1711
+ TargetClusters: targetClusters ? { Item: targetClusters } : {},
1712
+ BypassCachedResult: bypassCachedResult
1713
+ }).then(function (response) {
1710
1714
  return util.exists("TargetClusterUsages.TargetClusterUsage", response) ? response.TargetClusterUsages.TargetClusterUsage : [];
1711
1715
  }).then(function (response) {
1712
1716
  return response.filter(function (tcu) { return !!tcu.ComponentUsages; }).map(function (tcu) {
@@ -6759,7 +6763,7 @@
6759
6763
  };
6760
6764
  };
6761
6765
  TargetCluster.prototype.fetchUsage = function () {
6762
- return this.machineConnection.GetTargetClusterUsageEx({ TargetClusters: { Item: [this.Name] } });
6766
+ return this.machineConnection.GetTargetClusterUsageEx([this.Name]);
6763
6767
  };
6764
6768
  return TargetCluster;
6765
6769
  }(util.StateObject));