@thantickets/common 1.0.22 → 1.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@ export declare abstract class Listener<T extends Event> {
11
11
  protected client: Stan;
12
12
  protected actWait: number;
13
13
  constructor(client: Stan);
14
+ protected getClient(): Stan;
14
15
  subscriptionOptions(): import("node-nats-streaming").SubscriptionOptions;
15
16
  listen(): void;
16
17
  parseMessage(msg: Message): any;
@@ -6,6 +6,9 @@ class Listener {
6
6
  this.actWait = 5 * 1000;
7
7
  this.client = client;
8
8
  }
9
+ getClient() {
10
+ return this.client;
11
+ }
9
12
  subscriptionOptions() {
10
13
  return this.client
11
14
  .subscriptionOptions()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thantickets/common",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",