@opentap/runner-client 2.10.0-alpha.1.2 → 2.10.0-alpha.1.3

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
@@ -145,7 +145,7 @@ var BaseClient = /** @class */ (function () {
145
145
  responsePromise = new Promise(function (resolve, reject) {
146
146
  var messages = [];
147
147
  subscription.callback = function (error, message) {
148
- var _a, _b, _c, _d;
148
+ var _a, _b, _c;
149
149
  if (error) {
150
150
  return reject(error);
151
151
  }
@@ -185,9 +185,7 @@ var BaseClient = /** @class */ (function () {
185
185
  flattenedArray[k++] = m[i];
186
186
  }
187
187
  });
188
- console.log((_c = finalMessage.headers) === null || _c === void 0 ? void 0 : _c.get('OpenTapNatsError'));
189
- console.log(typeof ((_d = finalMessage.headers) === null || _d === void 0 ? void 0 : _d.get('OpenTapNatsError')));
190
- return resolve({ byteArray: flattenedArray, isErrorResponse: false });
188
+ return resolve({ byteArray: flattenedArray, isErrorResponse: ((_c = finalMessage.headers) === null || _c === void 0 ? void 0 : _c.get('OpenTapNatsError')) === 'true' });
191
189
  };
192
190
  }).then(function (_a) {
193
191
  var byteArray = _a.byteArray, isErrorResponse = _a.isErrorResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "2.10.0-alpha.1.2",
3
+ "version": "2.10.0-alpha.1.3",
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",