@drarzter/kafka-client 0.9.3 → 0.9.4
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/{chunk-TPIP5VV7.mjs → chunk-SM4FZKAZ.mjs} +3 -3
- package/dist/chunk-SM4FZKAZ.mjs.map +1 -0
- package/dist/{client-D-SxYV2b.d.mts → client-1irhGEu0.d.mts} +3 -3
- package/dist/{client-CBBUDDtu.d.ts → client-BpFjkHhr.d.ts} +3 -3
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +2 -2
- package/dist/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-TPIP5VV7.mjs.map +0 -1
package/dist/core.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ import { T as TopicMapConstraint, C as ClientId, G as GroupId, K as KafkaInstrum
|
|
|
4
4
|
export { B as BatchMessageItem, c as BatchMeta, d as BatchSendOptions, e as BeforeConsumeResult, f as CircuitBreakerOptions, g as CompressionType, h as ConsumerHandle, i as ConsumerInterceptor, D as DeduplicationOptions, j as DlqReason, E as EnvelopeHeaderOptions, k as EventEnvelope, H as HEADER_CORRELATION_ID, l as HEADER_EVENT_ID, m as HEADER_LAMPORT_CLOCK, n as HEADER_SCHEMA_VERSION, o as HEADER_TIMESTAMP, p as HEADER_TRACEPARENT, I as InferSchema, q as KafkaLogger, r as KafkaMetrics, M as MessageHeaders, s as MessageLostContext, R as RetryOptions, t as RoutingOptions, u as SchemaParseContext, v as SendOptions, w as SubscribeRetryOptions, x as TTopicMessageMap, y as TopicsFrom, z as TransactionContext, A as TransactionalHandlerContext, F as TtlExpiredContext, W as WindowConsumerOptions, J as WindowMeta, L as buildEnvelopeHeaders, N as decodeHeaders, O as extractEnvelope, P as getEnvelopeContext, Q as runWithEnvelopeContext, U as topic } from './consumer.types-fFCag3VJ.mjs';
|
|
5
5
|
import { DynamicModule, OnModuleInit } from '@nestjs/common';
|
|
6
6
|
import { DiscoveryService, ModuleRef } from '@nestjs/core';
|
|
7
|
-
import { I as IKafkaClient, r as KafkaHealthResult } from './client-
|
|
8
|
-
export { C as CheckpointEntry, s as CheckpointRestoreResult, t as CheckpointResult, u as ConsumerGroupSummary, D as DlqReplayOptions, v as IKafkaAdmin, w as IKafkaConsumer, x as IKafkaLifecycle, y as IKafkaProducer, R as ReadSnapshotOptions, z as RestoreCheckpointOptions, T as TopicDescription, A as TopicPartitionInfo } from './client-
|
|
7
|
+
import { I as IKafkaClient, r as KafkaHealthResult } from './client-1irhGEu0.mjs';
|
|
8
|
+
export { C as CheckpointEntry, s as CheckpointRestoreResult, t as CheckpointResult, u as ConsumerGroupSummary, D as DlqReplayOptions, v as IKafkaAdmin, w as IKafkaConsumer, x as IKafkaLifecycle, y as IKafkaProducer, R as ReadSnapshotOptions, z as RestoreCheckpointOptions, T as TopicDescription, A as TopicPartitionInfo } from './client-1irhGEu0.mjs';
|
|
9
9
|
|
|
10
10
|
/** Shared configuration fields for both `register()` and `registerAsync()`. */
|
|
11
11
|
interface KafkaModuleBaseOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { T as TopicMapConstraint, C as ClientId, G as GroupId, K as KafkaInstrum
|
|
|
4
4
|
export { B as BatchMessageItem, c as BatchMeta, d as BatchSendOptions, e as BeforeConsumeResult, f as CircuitBreakerOptions, g as CompressionType, h as ConsumerHandle, i as ConsumerInterceptor, D as DeduplicationOptions, j as DlqReason, E as EnvelopeHeaderOptions, k as EventEnvelope, H as HEADER_CORRELATION_ID, l as HEADER_EVENT_ID, m as HEADER_LAMPORT_CLOCK, n as HEADER_SCHEMA_VERSION, o as HEADER_TIMESTAMP, p as HEADER_TRACEPARENT, I as InferSchema, q as KafkaLogger, r as KafkaMetrics, M as MessageHeaders, s as MessageLostContext, R as RetryOptions, t as RoutingOptions, u as SchemaParseContext, v as SendOptions, w as SubscribeRetryOptions, x as TTopicMessageMap, y as TopicsFrom, z as TransactionContext, A as TransactionalHandlerContext, F as TtlExpiredContext, W as WindowConsumerOptions, J as WindowMeta, L as buildEnvelopeHeaders, N as decodeHeaders, O as extractEnvelope, P as getEnvelopeContext, Q as runWithEnvelopeContext, U as topic } from './consumer.types-fFCag3VJ.js';
|
|
5
5
|
import { DynamicModule, OnModuleInit } from '@nestjs/common';
|
|
6
6
|
import { DiscoveryService, ModuleRef } from '@nestjs/core';
|
|
7
|
-
import { I as IKafkaClient, r as KafkaHealthResult } from './client-
|
|
8
|
-
export { C as CheckpointEntry, s as CheckpointRestoreResult, t as CheckpointResult, u as ConsumerGroupSummary, D as DlqReplayOptions, v as IKafkaAdmin, w as IKafkaConsumer, x as IKafkaLifecycle, y as IKafkaProducer, R as ReadSnapshotOptions, z as RestoreCheckpointOptions, T as TopicDescription, A as TopicPartitionInfo } from './client-
|
|
7
|
+
import { I as IKafkaClient, r as KafkaHealthResult } from './client-BpFjkHhr.js';
|
|
8
|
+
export { C as CheckpointEntry, s as CheckpointRestoreResult, t as CheckpointResult, u as ConsumerGroupSummary, D as DlqReplayOptions, v as IKafkaAdmin, w as IKafkaConsumer, x as IKafkaLifecycle, y as IKafkaProducer, R as ReadSnapshotOptions, z as RestoreCheckpointOptions, T as TopicDescription, A as TopicPartitionInfo } from './client-BpFjkHhr.js';
|
|
9
9
|
|
|
10
10
|
/** Shared configuration fields for both `register()` and `registerAsync()`. */
|
|
11
11
|
interface KafkaModuleBaseOptions {
|
package/dist/index.js
CHANGED
|
@@ -664,8 +664,8 @@ var AdminOps = class {
|
|
|
664
664
|
return result.topics.map((t) => ({
|
|
665
665
|
name: t.name,
|
|
666
666
|
partitions: t.partitions.map((p) => ({
|
|
667
|
-
partition: p.partitionId ?? p.partition,
|
|
668
|
-
leader: p.leader,
|
|
667
|
+
partition: p.partitionId ?? p.partition ?? 0,
|
|
668
|
+
leader: p.leader ?? 0,
|
|
669
669
|
replicas: (p.replicas ?? []).map(
|
|
670
670
|
(r) => typeof r === "number" ? r : r.nodeId
|
|
671
671
|
),
|