@514labs/moose-lib 0.6.252-ci-3-gf88b2b20 → 0.6.252-ci-1-g40bb1da4
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/browserCompatible.js +6 -14
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +6 -14
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs.map +1 -1
- package/dist/dmv2/index.js +6 -14
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +6 -14
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -25
- package/dist/index.d.ts +2 -25
- package/dist/index.js +6 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -15
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +202 -100
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +202 -100
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dmv2/index.js
CHANGED
|
@@ -42,7 +42,6 @@ __export(commons_exports, {
|
|
|
42
42
|
antiCachePath: () => antiCachePath,
|
|
43
43
|
cliLog: () => cliLog,
|
|
44
44
|
compilerLog: () => compilerLog,
|
|
45
|
-
createProducerConfig: () => createProducerConfig,
|
|
46
45
|
getClickhouseClient: () => getClickhouseClient,
|
|
47
46
|
getFileName: () => getFileName,
|
|
48
47
|
getKafkaClient: () => getKafkaClient,
|
|
@@ -65,25 +64,18 @@ function isTruthy(value) {
|
|
|
65
64
|
function mapTstoJs(filePath) {
|
|
66
65
|
return filePath.replace(/\.ts$/, ".js").replace(/\.cts$/, ".cjs").replace(/\.mts$/, ".mjs");
|
|
67
66
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
67
|
+
async function getKafkaProducer(cfg, logger) {
|
|
68
|
+
const kafka = await getKafkaClient(cfg, logger);
|
|
69
|
+
const producer = kafka.producer({
|
|
70
70
|
kafkaJS: {
|
|
71
|
-
idempotent:
|
|
72
|
-
// Not needed for at-least-once delivery
|
|
71
|
+
idempotent: true,
|
|
73
72
|
acks: ACKs,
|
|
74
73
|
retry: {
|
|
75
74
|
retries: MAX_RETRIES_PRODUCER,
|
|
76
75
|
maxRetryTime: MAX_RETRY_TIME_MS
|
|
77
76
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Send immediately - batching happens at application level
|
|
81
|
-
...maxMessageBytes && { "message.max.bytes": maxMessageBytes }
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
async function getKafkaProducer(cfg, logger, maxMessageBytes) {
|
|
85
|
-
const kafka = await getKafkaClient(cfg, logger);
|
|
86
|
-
const producer = kafka.producer(createProducerConfig(maxMessageBytes));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
87
79
|
await producer.connect();
|
|
88
80
|
return producer;
|
|
89
81
|
}
|