diff --git a/lib/index.ts b/lib/index.ts index 7f75b16..8d5830e 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -3,6 +3,7 @@ import { connect, Connection as AMQPConn, ConsumeMessage, + Replies, } from "amqplib"; import { hostname } from "os"; import { @@ -208,7 +209,7 @@ class Connection { .catch((e) => Promise.reject(new Error(e))); } - queueDeclare(queueName: string): Promise { + queueDeclare(queueName: string): Promise { return this.channel!.assertQueue(queueName, { durable: true, autoDelete: false, @@ -217,7 +218,7 @@ class Connection { }).catch((e) => Promise.reject(new Error(e))); } - transientQueueDeclare(queueName: string): Promise { + transientQueueDeclare(queueName: string): Promise { return this.channel!.assertQueue(queueName, { durable: false, autoDelete: true, diff --git a/package.json b/package.json index ba29e68..68ca375 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@babel/core": "^7.17.0", "@babel/preset-env": "^7.16.11", "@babel/preset-typescript": "^7.16.7", - "@types/amqplib": "^0.8.2", + "@types/amqplib": "^0.10.0", "@types/jest": "^29.0.0", "@types/uuid": "^8.3.4", "babel-jest": "^29.0.0", diff --git a/yarn.lock b/yarn.lock index b2e1fd9..4052713 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1356,12 +1356,11 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e" integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== -"@types/amqplib@^0.8.2": - version "0.8.2" - resolved "https://registry.yarnpkg.com/@types/amqplib/-/amqplib-0.8.2.tgz#9c46f2c7fac381e4f81bcb612c00d54549697d22" - integrity sha512-p+TFLzo52f8UanB+Nq6gyUi65yecAcRY3nYowU6MPGFtaJvEDxcnFWrxssSTkF+ts1W3zyQDvgVICLQem5WxRA== +"@types/amqplib@^0.10.0": + version "0.10.0" + resolved "https://registry.yarnpkg.com/@types/amqplib/-/amqplib-0.10.0.tgz#41c54c82e37fa9b57b147299f8c044013d7559c5" + integrity sha512-39XGMpfVGqjYK+LjPqMb/98rm/KwZCfJj5S1K2lGg9PqzhUQek5iFhrtgOLQGw5QbArsPYCTj7ElEJpP3Hhb1w== dependencies: - "@types/bluebird" "*" "@types/node" "*" "@types/babel__core@^7.1.14": @@ -1397,11 +1396,6 @@ dependencies: "@babel/types" "^7.3.0" -"@types/bluebird@*": - version "3.5.36" - resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.36.tgz#00d9301d4dc35c2f6465a8aec634bb533674c652" - integrity sha512-HBNx4lhkxN7bx6P0++W8E289foSu8kO8GCk2unhuVggO+cE7rh9DhZUyPhUxNRG9m+5B5BTKxZQ5ZP92x/mx9Q== - "@types/graceful-fs@^4.1.3": version "4.1.5" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"