chore(kafka): remove luxon dependency
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
This commit is contained in:
@@ -39,8 +39,7 @@
|
||||
"@backstage/config": "workspace:^",
|
||||
"@backstage/plugin-events-node": "workspace:^",
|
||||
"@backstage/types": "workspace:^",
|
||||
"kafkajs": "^2.2.4",
|
||||
"luxon": "^3.0.0"
|
||||
"kafkajs": "^2.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/backend-test-utils": "workspace:^",
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { Config, readDurationFromConfig } from '@backstage/config';
|
||||
import { durationToMilliseconds } from '@backstage/types';
|
||||
import { ConsumerConfig, ConsumerSubscribeTopics, KafkaConfig } from 'kafkajs';
|
||||
import { Duration } from 'luxon';
|
||||
|
||||
/**
|
||||
* @public
|
||||
@@ -54,7 +54,7 @@ const readOptionalHumanDurationInMs = (
|
||||
|
||||
if (!humanDuration) return undefined;
|
||||
|
||||
return Duration.fromObject(humanDuration).as('milliseconds');
|
||||
return durationToMilliseconds(humanDuration);
|
||||
};
|
||||
|
||||
export const readConfig = (
|
||||
|
||||
Reference in New Issue
Block a user