@hpcc-js/comms 2.95.1 → 2.96.1

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.95.1";
652
- var BUILD_VERSION = "2.106.8";
651
+ var PKG_VERSION = "2.96.1";
652
+ var BUILD_VERSION = "2.106.10";
653
653
 
654
654
  /******************************************************************************
655
655
  Copyright (c) Microsoft Corporation.
@@ -746,7 +746,7 @@
746
746
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
747
747
  };
748
748
 
749
- var logger$4 = util.scopedLogger("comms/connection.ts");
749
+ var logger$5 = util.scopedLogger("comms/connection.ts");
750
750
  function instanceOfIOptions(object) {
751
751
  return "baseUrl" in object;
752
752
  }
@@ -848,12 +848,12 @@
848
848
  respondedTimeout -= respondedTick;
849
849
  if (respondedTimeout <= 0) {
850
850
  clearInterval(progress);
851
- logger$4.error("Request timeout: " + script.src);
851
+ logger$5.error("Request timeout: " + script.src);
852
852
  doCallback();
853
853
  reject(Error("Request timeout: " + script.src));
854
854
  }
855
855
  else {
856
- logger$4.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
856
+ logger$5.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
857
857
  }
858
858
  }
859
859
  }, respondedTick);
@@ -2099,7 +2099,7 @@
2099
2099
  return LogaccessServiceBase;
2100
2100
  }(Service));
2101
2101
 
2102
- var logger$3 = util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");
2102
+ var logger$4 = util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");
2103
2103
  var LogaccessService = /** @class */ (function (_super) {
2104
2104
  __extends(LogaccessService, _super);
2105
2105
  function LogaccessService() {
@@ -2291,7 +2291,7 @@
2291
2291
  lines = (_b = (_a = logLines.lines) === null || _a === void 0 ? void 0 : _a.map(convertLogLine)) !== null && _b !== void 0 ? _b : [];
2292
2292
  break;
2293
2293
  default:
2294
- logger$3.warning("Unknown RemoteLogManagerType: ".concat(logInfo.RemoteLogManagerType));
2294
+ logger$4.warning("Unknown RemoteLogManagerType: ".concat(logInfo.RemoteLogManagerType));
2295
2295
  lines = [];
2296
2296
  }
2297
2297
  return {
@@ -2300,7 +2300,7 @@
2300
2300
  };
2301
2301
  }
2302
2302
  catch (e) {
2303
- logger$3.error(e);
2303
+ logger$4.error(e);
2304
2304
  }
2305
2305
  return {
2306
2306
  lines: [],
@@ -3341,9 +3341,9 @@
3341
3341
  return { result: false, error: e };
3342
3342
  });
3343
3343
  };
3344
- WorkunitsService.prototype.WUQuery = function (request) {
3344
+ WorkunitsService.prototype.WUQuery = function (request, abortSignal) {
3345
3345
  if (request === void 0) { request = {}; }
3346
- return _super.prototype.WUQuery.call(this, request).then(function (response) {
3346
+ return this._connection.send("WUQuery", request, "json", false, abortSignal).then(function (response) {
3347
3347
  return util.deepMixin({ Workunits: { ECLWorkunit: [] } }, response);
3348
3348
  });
3349
3349
  };
@@ -5915,7 +5915,7 @@
5915
5915
  }
5916
5916
  return null;
5917
5917
  }
5918
- var logger$2 = util.scopedLogger("workunit.ts");
5918
+ var logger$3 = util.scopedLogger("workunit.ts");
5919
5919
  var WorkunitCache = /** @class */ (function (_super) {
5920
5920
  __extends(WorkunitCache, _super);
5921
5921
  function WorkunitCache() {
@@ -6821,7 +6821,7 @@
6821
6821
  });
6822
6822
  }
6823
6823
  catch (e) {
6824
- logger$2.error("Unexpected \"DefinitionList\": ".concat(normalizedScope[DEFINITION_LIST]));
6824
+ logger$3.error("Unexpected \"DefinitionList\": ".concat(normalizedScope[DEFINITION_LIST]));
6825
6825
  }
6826
6826
  }
6827
6827
  var dedup = {};
@@ -7085,7 +7085,7 @@
7085
7085
  return false;
7086
7086
  });
7087
7087
  if (!wuMissing) {
7088
- logger$2.warning("Unexpected exception: ");
7088
+ logger$3.warning("Unexpected exception: ");
7089
7089
  throw e;
7090
7090
  }
7091
7091
  return {};
@@ -7122,7 +7122,7 @@
7122
7122
  return false;
7123
7123
  });
7124
7124
  if (!wuMissing) {
7125
- logger$2.warning("Unexpected exception: ");
7125
+ logger$3.warning("Unexpected exception: ");
7126
7126
  throw e;
7127
7127
  }
7128
7128
  return {};
@@ -7216,7 +7216,7 @@
7216
7216
  }
7217
7217
  return new util.XMLNode(command);
7218
7218
  }).catch(function (_) {
7219
- logger$2.error(_);
7219
+ logger$3.error(_);
7220
7220
  return Promise.resolve(new util.XMLNode(command));
7221
7221
  });
7222
7222
  };
@@ -7516,6 +7516,7 @@
7516
7516
  return Activity;
7517
7517
  }(util.StateObject));
7518
7518
 
7519
+ var logger$2 = util.scopedLogger("logicalFile.ts");
7519
7520
  var LogicalFileCache = /** @class */ (function (_super) {
7520
7521
  __extends(LogicalFileCache, _super);
7521
7522
  function LogicalFileCache() {
@@ -7807,6 +7808,11 @@
7807
7808
  enumerable: false,
7808
7809
  configurable: true
7809
7810
  });
7811
+ Object.defineProperty(LogicalFile.prototype, "StateID", {
7812
+ get: function () { return this.get("StateID"); },
7813
+ enumerable: false,
7814
+ configurable: true
7815
+ });
7810
7816
  Object.defineProperty(LogicalFile.prototype, "ExpirationDate", {
7811
7817
  get: function () { return this.get("ExpirationDate"); },
7812
7818
  enumerable: false,
@@ -7861,6 +7867,21 @@
7861
7867
  return this.connection.DFUInfo({ Cluster: this.Cluster, Name: this.Name }).then(function (response) {
7862
7868
  _this.set(__assign({ Cluster: _this.Cluster }, response.FileDetail));
7863
7869
  return response.FileDetail;
7870
+ }).catch(function (e) {
7871
+ // deleted ---
7872
+ var fileMissing = e.Exception.some(function (exception) {
7873
+ if (exception.Code === 20038) {
7874
+ _this.set("Name", _this.Name + " (Deleted)");
7875
+ _this.set("StateID", 999);
7876
+ return true;
7877
+ }
7878
+ return false;
7879
+ });
7880
+ if (!fileMissing) {
7881
+ logger$2.warning("Unexpected exception: ");
7882
+ throw e;
7883
+ }
7884
+ return {};
7864
7885
  });
7865
7886
  };
7866
7887
  LogicalFile.prototype.fetchDefFile = function (format) {