Skip to content

Commit

Permalink
Fix AMQP lib publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Jun 26, 2023
1 parent 0e4ae16 commit ed53cd2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
3 changes: 0 additions & 3 deletions packages/amqp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ export { AbstractAmqpPublisher } from './lib/AbstractAmqpPublisher'

export type { AmqpConfig } from './lib/amqpConnectionResolver'
export { resolveAmqpConnection } from './lib/amqpConnectionResolver'

export { objectToBuffer } from '../core/lib/utils/queueUtils'
export { waitAndRetry } from '../core/lib/utils/waitUtils'
3 changes: 1 addition & 2 deletions packages/amqp/lib/AbstractAmqpPublisher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { SyncPublisher } from '@message-queue-toolkit/core'

import { objectToBuffer } from '../../core/lib/utils/queueUtils'
import { objectToBuffer } from '@message-queue-toolkit/core'

import { AbstractAmqpService } from './AbstractAmqpService'

Expand Down
8 changes: 5 additions & 3 deletions packages/amqp/lib/AbstractAmqpService.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import type { QueueConsumerDependencies } from '@message-queue-toolkit/core'
import type {
QueueConsumerDependencies,
QueueDependencies,
QueueOptions,
} from '@message-queue-toolkit/core'
import { AbstractQueueService } from '@message-queue-toolkit/core'
import type { Channel, Connection } from 'amqplib'
import type { Options } from 'amqplib/properties'

import type { QueueDependencies, QueueOptions } from '../../core/lib/queues/AbstractQueueService'

export type AMQPDependencies = QueueDependencies & {
amqpConnection: Connection
}
Expand Down
2 changes: 1 addition & 1 deletion packages/amqp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@message-queue-toolkit/amqp",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"license": "MIT",
"description": "AMQP adapter for message-queue-toolkit",
Expand Down

0 comments on commit ed53cd2

Please sign in to comment.