amqp-connection-manager 4.1.11 → 4.1.12

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.
@@ -33,10 +33,10 @@ export interface PublishOptions extends Options.Publish {
33
33
  /** Message will be rejected after timeout ms */
34
34
  timeout?: number;
35
35
  }
36
- interface ConsumerOptions extends amqplib.Options.Consume {
36
+ export interface ConsumerOptions extends amqplib.Options.Consume {
37
37
  prefetch?: number;
38
38
  }
39
- interface Consumer {
39
+ export interface Consumer {
40
40
  consumerTag: string | null;
41
41
  queue: string;
42
42
  onMessage: (msg: amqplib.ConsumeMessage) => void;
@@ -248,4 +248,3 @@ export default class ChannelWrapper extends EventEmitter {
248
248
  /** Send a `get` to the underlying channel. */
249
249
  get(queue: string, options?: Options.Get): Promise<amqplib.GetMessage | false>;
250
250
  }
251
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amqp-connection-manager",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "description": "Auto-reconnect and round robin support for amqplib.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/cjs/index.js",
@@ -9,7 +9,8 @@
9
9
  ".": {
10
10
  "import": "./dist/esm/index.js",
11
11
  "require": "./dist/cjs/index.js",
12
- "default": "./dist/cjs/index.js"
12
+ "default": "./dist/cjs/index.js",
13
+ "types": "./dist/esm/index.d.ts"
13
14
  }
14
15
  },
15
16
  "files": [
@@ -56,7 +57,7 @@
56
57
  "semantic-release": "^19.0.2",
57
58
  "ts-jest": "^29.0.3",
58
59
  "ts-node": "^10.2.1",
59
- "typescript": "^4.3.5"
60
+ "typescript": "^5.0.3"
60
61
  },
61
62
  "engines": {
62
63
  "node": ">=10.0.0",