@midwayjs/rabbitmq 3.9.0 → 3.10.0
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.
- package/dist/interface.d.ts +5 -5
- package/package.json +7 -7
package/dist/interface.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface IRabbitMQApplication {
|
|
|
7
7
|
createConsumer(listenerOptions: RabbitMQListenerOptions, listenerCallback: (msg: ConsumeMessage | null, channel: Channel, channelWrapper: any) => Promise<void>): Promise<void>;
|
|
8
8
|
close(): Promise<void>;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type IMidwayRabbitMQApplication = IMidwayApplication<IMidwayRabbitMQContext> & IRabbitMQApplication;
|
|
11
11
|
export interface IRabbitMQExchange {
|
|
12
12
|
name: string;
|
|
13
13
|
type: string;
|
|
@@ -20,14 +20,14 @@ export interface IMidwayRabbitMQConfigurationOptions extends IConfigurationOptio
|
|
|
20
20
|
exchanges?: IRabbitMQExchange[];
|
|
21
21
|
useConfirmChannel?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type IMidwayRabbitMQContext = IMidwayContext<{
|
|
24
24
|
channel: Channel;
|
|
25
25
|
queueName: string;
|
|
26
26
|
ack: (data: any) => void;
|
|
27
27
|
}>;
|
|
28
|
-
export
|
|
28
|
+
export type Application = IMidwayRabbitMQApplication;
|
|
29
29
|
export interface Context extends IMidwayRabbitMQContext {
|
|
30
30
|
}
|
|
31
|
-
export
|
|
32
|
-
export
|
|
31
|
+
export type NextFunction = BaseNextFunction;
|
|
32
|
+
export type DefaultConfig = string | AmqpOptions.Connect;
|
|
33
33
|
//# sourceMappingURL=interface.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/rabbitmq",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Midway Framework for rabbitmq",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/mock": "^3.
|
|
28
|
-
"@types/amqplib": "0.
|
|
27
|
+
"@midwayjs/mock": "^3.10.0",
|
|
28
|
+
"@types/amqplib": "0.10.1",
|
|
29
29
|
"amqplib": "0.10.3",
|
|
30
|
-
"fs-extra": "10.0
|
|
30
|
+
"fs-extra": "10.1.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@midwayjs/core": "^3.
|
|
33
|
+
"@midwayjs/core": "^3.10.0",
|
|
34
34
|
"@midwayjs/logger": "^2.15.0",
|
|
35
|
-
"amqp-connection-manager": "4.1.
|
|
35
|
+
"amqp-connection-manager": "4.1.10"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@types/amqplib": "*",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=12"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "33d28f1a020963404488e866432916fd15c0952c"
|
|
50
50
|
}
|