@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 +4 -3
- package/package.json +1 -1
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 (
|
|
283
|
-
if (
|
|
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) {
|