@opentap/runner-client 2.10.0-alpha.1.3 → 2.10.0-alpha.1.4
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.d.ts +0 -6
- package/lib/BaseClient.js +0 -8
- package/package.json +1 -1
package/lib/BaseClient.d.ts
CHANGED
|
@@ -58,12 +58,6 @@ export declare class BaseClient {
|
|
|
58
58
|
*/
|
|
59
59
|
protected subscribe(subject: string, options: SubscriptionOptions): Subscription;
|
|
60
60
|
protected encode(payload: any): Uint8Array;
|
|
61
|
-
/**
|
|
62
|
-
* Check if the the response is an error from the server.
|
|
63
|
-
* @param {any} response
|
|
64
|
-
* @returns {boolean}
|
|
65
|
-
*/
|
|
66
|
-
private isErrorResponse;
|
|
67
61
|
/**
|
|
68
62
|
* Create a connection to the nats server.
|
|
69
63
|
* @param {ConnectionOptions} options
|
package/lib/BaseClient.js
CHANGED
|
@@ -277,14 +277,6 @@ var BaseClient = /** @class */ (function () {
|
|
|
277
277
|
}
|
|
278
278
|
return StringCodec().encode(JSON.stringify(payload));
|
|
279
279
|
};
|
|
280
|
-
/**
|
|
281
|
-
* Check if the the response is an error from the server.
|
|
282
|
-
* @param {any} response
|
|
283
|
-
* @returns {boolean}
|
|
284
|
-
*/
|
|
285
|
-
BaseClient.prototype.isErrorResponse = function (response) {
|
|
286
|
-
return response && typeof response === 'object' && ['Type', 'Message', 'StackTrace'].every(function (prop) { return prop in response; });
|
|
287
|
-
};
|
|
288
280
|
/**
|
|
289
281
|
* Create a connection to the nats server.
|
|
290
282
|
* @param {ConnectionOptions} options
|