@ccci/micro-server 1.0.190 → 1.0.192
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/index.js +63093 -63016
- package/dist/utils/BaseConsumer.d.ts +2 -2
- package/package.json +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Consumer, type ConsumerConfig } from "kafkajs";
|
|
1
|
+
import { ConsumerRunConfig, type Consumer, type ConsumerConfig } from "kafkajs";
|
|
2
2
|
import { BaseKafka } from "./BaseKafka";
|
|
3
3
|
import type { MessageHandler } from "../types/BrokerType";
|
|
4
4
|
/**
|
|
@@ -39,6 +39,6 @@ export declare class BaseConsumer {
|
|
|
39
39
|
* @returns {Promise<void>} - A promise that resolves once the consumer has successfully subscribed and started processing messages.
|
|
40
40
|
* @throws {Error} - Throws an error if the consumer is not connected before subscribing.
|
|
41
41
|
*/
|
|
42
|
-
subscribe(topic: string,
|
|
42
|
+
subscribe(topic: string, messageHandler: MessageHandler, consumerRunConfig?: ConsumerRunConfig): Promise<void>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=BaseConsumer.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccci/micro-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.192",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/bcryptjs": "^2.4.6",
|
|
17
17
|
"@types/bun": "latest",
|
|
18
|
+
"@types/compression": "^1.7.5",
|
|
18
19
|
"@types/cors": "^2.8.17",
|
|
19
20
|
"@types/express": "^4.17.21",
|
|
20
21
|
"@types/express-fileupload": "^1.5.0",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@aws-sdk/client-s3": "^3.699.0",
|
|
40
41
|
"bcryptjs": "^2.4.3",
|
|
42
|
+
"compression": "^1.8.0",
|
|
41
43
|
"cors": "^2.8.5",
|
|
42
44
|
"express": "^4.19.2",
|
|
43
45
|
"express-fileupload": "^1.5.0",
|