Skip to content

Commit 44db29c

Browse files
committed
Update license and add missing error
1 parent acb40a3 commit 44db29c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

LICENSE.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
The MIT License (MIT)
2-
Copyright (c) 2016-2023 Blizzard Entertainment
3-
2023 Confluent, Inc.
2+
Copyright (c) 2023 Confluent, Inc.
43

54
Permission is hereby granted, free of charge, to any person obtaining a copy of
65
this software and associated documentation files (the "Software"), to deal in

lib/kafkajs/_consumer.js

+4
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ class Consumer {
213213
}
214214

215215
if (Object.hasOwn(this.#kJSConfig, 'partitionAssignors')) {
216+
if (!Array.isArray(this.#kJSConfig.partitionAssignors)) {
217+
throw new error.KafkaJSError(CompatibilityErrorMessages.partitionAssignors(), { code: error.ErrorCodes.ERR__INVALID_ARG });
218+
}
219+
216220
this.#kJSConfig.partitionAssignors.forEach(assignor => {
217221
if (typeof assignor !== 'string')
218222
throw new error.KafkaJSError(CompatibilityErrorMessages.partitionAssignors(), { code: error.ErrorCodes.ERR__INVALID_ARG });

0 commit comments

Comments
 (0)