@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/core.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  getEnvelopeContext,
16
16
  runWithEnvelopeContext,
17
17
  topic
18
- } from "./chunk-TPIP5VV7.mjs";
18
+ } from "./chunk-SM4FZKAZ.mjs";
19
19
  import "./chunk-EQQGB2QZ.mjs";
20
20
  export {
21
21
  HEADER_CORRELATION_ID,
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-D-SxYV2b.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-D-SxYV2b.mjs';
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-CBBUDDtu.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-CBBUDDtu.js';
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
  ),