Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Oct 12, 2024
1 parent d05db6f commit edc48bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion packages/amqp/lib/AbstractAmqpQueuePublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ export abstract class AbstractAmqpQueuePublisher<
options: AMQPPublisherOptions<MessagePayloadType, AMQPQueueCreationConfig, AMQPQueueLocator>,
) {
super(dependencies, options)

if (!options.locatorConfig?.queueName && !options.creationConfig?.queueName) {
throw new Error('Either locatorConfig or creationConfig must provide queueName')
}

this.queueName = options.locatorConfig
? options.locatorConfig.queueName
: options.creationConfig.queueName
: options.creationConfig!.queueName
}

protected publishInternal(message: Buffer, options: AmqpQueueMessageOptions): void {
Expand Down
10 changes: 5 additions & 5 deletions packages/amqp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"prepublishOnly": "npm run build:release"
},
"dependencies": {
"@lokalise/node-core": "^12.0.0",
"@lokalise/node-core": "^13.0.1",
"zod": "^3.23.8"
},
"peerDependencies": {
Expand All @@ -38,14 +38,14 @@
"@kibertoad/biome-config": "^1.2.1",
"@message-queue-toolkit/core": "*",
"@types/amqplib": "^0.10.5",
"@types/node": "^22.0.0",
"@vitest/coverage-v8": "^2.0.4",
"@types/node": "^22.7.5",
"@vitest/coverage-v8": "^2.1.2",
"amqplib": "^0.10.4",
"awilix": "^12.0.1",
"awilix-manager": "^5.4.0",
"del-cli": "^6.0.0",
"typescript": "^5.5.2",
"vitest": "^2.0.4"
"typescript": "^5.6.3",
"vitest": "^2.1.2"
},
"homepage": "https://github.com/kibertoad/message-queue-toolkit",
"repository": {
Expand Down

0 comments on commit edc48bd

Please sign in to comment.