@opentap/runner-client 1.2.1-alpha.1.14 → 1.2.1-alpha.2.2
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 +1 -1
- package/lib/SessionClient.js +1 -1
- package/package.json +1 -1
package/lib/BaseClient.js
CHANGED
|
@@ -184,7 +184,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
184
184
|
* @returns {boolean}
|
|
185
185
|
*/
|
|
186
186
|
BaseClient.prototype.isErrorResponse = function (response) {
|
|
187
|
-
return response && typeof response === 'object' && ['Type', 'Message', 'StackTrace'
|
|
187
|
+
return response && typeof response === 'object' && ['Type', 'Message', 'StackTrace'].every(function (prop) { return prop in response; });
|
|
188
188
|
};
|
|
189
189
|
/**
|
|
190
190
|
* Create a connection to the nats server.
|
package/lib/SessionClient.js
CHANGED
|
@@ -60,7 +60,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
60
60
|
* @returns Subscription object
|
|
61
61
|
*/
|
|
62
62
|
SessionClient.prototype.connectSessionEvents = function (eventHandler, options) {
|
|
63
|
-
return this.subscribe('Events', __assign(__assign({}, options), { callback: function (error, encodedMessage) {
|
|
63
|
+
return this.subscribe('Events.*', __assign(__assign({}, options), { callback: function (error, encodedMessage) {
|
|
64
64
|
if (error) {
|
|
65
65
|
eventHandler(undefined, error);
|
|
66
66
|
return;
|