@palmetto/pubsub 1.0.0 → 1.0.1

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.
@@ -18,6 +18,7 @@ export declare class RabbitMqConnection {
18
18
  static create(config: RabbitMqConnectionConfig, logger: Logger): Promise<RabbitMqConnection>;
19
19
  private constructor();
20
20
  close(): Promise<void>;
21
+ isConnected(): boolean;
21
22
  /**
22
23
  * Creates the exchanges necessary for the given config
23
24
  * @param channel
@@ -46,6 +46,9 @@ class RabbitMqConnection {
46
46
  yield this.connection.close();
47
47
  });
48
48
  }
49
+ isConnected() {
50
+ return this.connection.isConnected();
51
+ }
49
52
  /**
50
53
  * Creates the exchanges necessary for the given config
51
54
  * @param channel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/pubsub",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "./dist/main.js",
5
5
  "scripts": {
6
6
  "lint": "yarn run -T eslint --fix ./src",
@@ -15,10 +15,9 @@
15
15
  "hook:format": "prettier --write --loglevel warn",
16
16
  "hook:tc": "yarn tc",
17
17
  "prepublishOnly": "yarn build",
18
- "test": "vitest run",
19
- "test:watch": "vitest watch",
20
- "redis-up": "docker compose -f redis-compose.yml up -d",
21
- "rabbitmq-up": "docker compose -f rabbitmq-compose.yml up -d"
18
+ "test-runner": "../../scripts/test-runner.sh",
19
+ "test": "yarn run test-runner vitest run",
20
+ "test:watch": "yarn run test-runner vitest watch"
22
21
  },
23
22
  "devDependencies": {
24
23
  "@types/amqplib": "^0",