@webda/amqp 3.4.1 → 3.4.2
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/lib/queue.d.ts +3 -2
- package/lib/queue.js.map +1 -1
- package/package.json +4 -4
- package/webda.module.json +0 -40
package/lib/queue.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MessageReceipt, Queue, QueueParameters } from "@webda/core";
|
|
2
|
+
import * as amqplib from "amqplib";
|
|
2
3
|
export declare class AMQPQueueParameters extends QueueParameters {
|
|
3
4
|
url: string;
|
|
4
5
|
queue: string;
|
|
@@ -10,8 +11,8 @@ export declare class AMQPQueueParameters extends QueueParameters {
|
|
|
10
11
|
* @WebdaModda
|
|
11
12
|
*/
|
|
12
13
|
export default class AMQPQueue<T = any, K extends AMQPQueueParameters = AMQPQueueParameters> extends Queue<T, K> {
|
|
13
|
-
channel:
|
|
14
|
-
conn:
|
|
14
|
+
channel: amqplib.Channel;
|
|
15
|
+
conn: amqplib.ChannelModel;
|
|
15
16
|
/**
|
|
16
17
|
* @override
|
|
17
18
|
*/
|
package/lib/queue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../src/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,MAAM,OAAO,mBAAoB,SAAQ,eAAe;CAIvD;AACD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,SAAwE,SAAQ,KAAW;IAG9G;;OAEG;IACH,cAAc,CAAC,MAAW;QACxB,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,CAA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AAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webda/amqp",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Implements AMQP on webda",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"activemq",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test": "c8 mocha"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@webda/core": "^3.
|
|
22
|
+
"@webda/core": "^3.18.0",
|
|
23
23
|
"amqplib": "^0.10.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@testdeck/mocha": "^0.3.3",
|
|
51
51
|
"@types/amqplib": "^0.10.0",
|
|
52
52
|
"@types/node": "18.11.13",
|
|
53
|
-
"@webda/shell": "^3.13.
|
|
53
|
+
"@webda/shell": "^3.13.1",
|
|
54
54
|
"sinon": "^18.0.0"
|
|
55
55
|
},
|
|
56
56
|
"nx": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=18.0.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "79fedd5b6915347d202c2fc0c8d295c29f118157"
|
|
67
67
|
}
|
package/webda.module.json
CHANGED
|
@@ -131,46 +131,6 @@
|
|
|
131
131
|
],
|
|
132
132
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
133
133
|
"title": "AMQPQueue"
|
|
134
|
-
},
|
|
135
|
-
"Webda/BinaryFile": {
|
|
136
|
-
"type": "object",
|
|
137
|
-
"properties": {
|
|
138
|
-
"hash": {
|
|
139
|
-
"type": "string",
|
|
140
|
-
"description": "Will be computed by the service\n\nhash of the content"
|
|
141
|
-
},
|
|
142
|
-
"challenge": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"description": "Will be computed by the service\n\nhash of the content prefixed by 'WEBDA'"
|
|
145
|
-
},
|
|
146
|
-
"size": {
|
|
147
|
-
"type": "number",
|
|
148
|
-
"description": "Size of the binary"
|
|
149
|
-
},
|
|
150
|
-
"name": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"description": "Current name"
|
|
153
|
-
},
|
|
154
|
-
"mimetype": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"description": "Mimetype of the binary"
|
|
157
|
-
},
|
|
158
|
-
"metadata": {
|
|
159
|
-
"description": "Metadatas stored along with the binary"
|
|
160
|
-
},
|
|
161
|
-
"originalname": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"description": "Original name"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"required": [
|
|
167
|
-
"mimetype",
|
|
168
|
-
"name",
|
|
169
|
-
"size"
|
|
170
|
-
],
|
|
171
|
-
"description": "Represent a file to store",
|
|
172
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
173
|
-
"title": "BinaryFile"
|
|
174
134
|
}
|
|
175
135
|
}
|
|
176
136
|
}
|