@midwayjs/rabbitmq 3.20.4 → 3.20.11
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/framework.js +1 -0
- package/dist/interface.d.ts +1 -0
- package/package.json +4 -4
package/dist/framework.js
CHANGED
|
@@ -55,6 +55,7 @@ let MidwayRabbitMQFramework = class MidwayRabbitMQFramework extends core_1.BaseF
|
|
|
55
55
|
for (const listenerOptions of methodBindListeners) {
|
|
56
56
|
await this.app.createConsumer(listenerOptions, async (data, channel, channelWrapper) => {
|
|
57
57
|
const ctx = {
|
|
58
|
+
data,
|
|
58
59
|
channel,
|
|
59
60
|
queueName: listenerOptions.queueName,
|
|
60
61
|
ack: data => {
|
package/dist/interface.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IMidwayRabbitMQConfigurationOptions extends IConfigurationOptio
|
|
|
21
21
|
useConfirmChannel?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export type IMidwayRabbitMQContext = IMidwayContext<{
|
|
24
|
+
data: ConsumeMessage;
|
|
24
25
|
channel: Channel;
|
|
25
26
|
queueName: string;
|
|
26
27
|
ack: (data: any) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/rabbitmq",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.11",
|
|
4
4
|
"description": "Midway Framework for rabbitmq",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/mock": "^3.20.
|
|
27
|
+
"@midwayjs/mock": "^3.20.11",
|
|
28
28
|
"@types/amqplib": "0.10.6",
|
|
29
29
|
"amqplib": "0.10.5",
|
|
30
30
|
"fs-extra": "11.3.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@midwayjs/core": "^3.20.
|
|
33
|
+
"@midwayjs/core": "^3.20.11",
|
|
34
34
|
"amqp-connection-manager": "4.1.14"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=12"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "741e5e2cd200d44182bf893f348f58fb5c4e5404"
|
|
49
49
|
}
|