@opentap/runner-client 2.1.3-alpha.1.4 → 2.1.3-alpha.1.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/lib/BaseClient.js CHANGED
@@ -275,12 +275,13 @@ var BaseClient = /** @class */ (function () {
275
275
  * @returns Promise of an object
276
276
  */
277
277
  BaseClient.prototype.requestChunked = function (subject, replySubject, payload, options, isFullSubject, rawResponse) {
278
- var _a;
279
278
  return __awaiter(this, void 0, void 0, function () {
280
279
  var fileSize;
281
280
  var _this = this;
282
- return __generator(this, function (_b) {
283
- if ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.isClosed())
281
+ return __generator(this, function (_a) {
282
+ if (!this.connection)
283
+ return [2 /*return*/, Promise.reject("".concat(subject, ": Connection is down! Please try again!"))];
284
+ if (this.connection.isClosed())
284
285
  return [2 /*return*/, Promise.reject("".concat(subject, ": Connection has been closed! Please reconnect!"))];
285
286
  fileSize = -1;
286
287
  return [2 /*return*/, new Promise(function (resolve, reject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "2.1.3-alpha.1.4",
3
+ "version": "2.1.3-alpha.1.5",
4
4
  "description": "This is the web client for the OpenTAP Runner.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",