v1.3.18
This commit is contained in:
parent
50a4cb8535
commit
17d9d124fe
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@navy.gif/wrappers",
|
"name": "@navy.gif/wrappers",
|
||||||
"version": "1.3.17",
|
"version": "1.3.18",
|
||||||
"description": "Various wrapper classes I use in my projects",
|
"description": "Various wrapper classes I use in my projects",
|
||||||
"repository": "https://git.corgi.wtf/Navy.gif/wrappers.git",
|
"repository": "https://git.corgi.wtf/Navy.gif/wrappers.git",
|
||||||
"author": "Navy.gif",
|
"author": "Navy.gif",
|
||||||
|
@ -300,13 +300,13 @@ class MessageBroker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assertExchange (exchange: string, props: ExchangeDef) {
|
assertExchange (exchange: string, props?: ExchangeDef) {
|
||||||
if (!this.#channel)
|
if (!this.#channel)
|
||||||
throw new Error('Channel doesn\'t exist');
|
throw new Error('Channel doesn\'t exist');
|
||||||
return this.#channel.assertExchange(exchange, props.type ?? 'fanout', props);
|
return this.#channel.assertExchange(exchange, props?.type ?? 'fanout', props);
|
||||||
}
|
}
|
||||||
|
|
||||||
assertQueue (queue: string, opts: QueueDef) {
|
assertQueue (queue: string, opts?: QueueDef) {
|
||||||
if (!this.#channel)
|
if (!this.#channel)
|
||||||
throw new Error('Channel doesn\'t exist');
|
throw new Error('Channel doesn\'t exist');
|
||||||
return this.#channel.assertQueue(queue, opts);
|
return this.#channel.assertQueue(queue, opts);
|
||||||
|
Loading…
Reference in New Issue
Block a user