Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya committed Oct 20, 2023
1 parent d3fcc0d commit fbf1fc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncAPIDocumentInterface } from '@asyncapi/parser';
import { AsyncAPIDocument } from '@smoya/multi-parser';

export enum MetricType {
Counter = 'counter',
Expand All @@ -7,7 +7,7 @@ export enum MetricType {

export type MetricMetadata = { [key: string]: any };

export function MetadataFromDocument(doc: AsyncAPIDocumentInterface, metadata: MetricMetadata = []): MetricMetadata {
export function MetadataFromDocument(doc: AsyncAPIDocument, metadata: MetricMetadata = []): MetricMetadata {
metadata['_asyncapi_version'] = doc.version();
metadata['_asyncapi_servers'] = doc.allServers().all().length;
metadata['_asyncapi_channels'] = doc.allChannels().all().length;
Expand Down
1 change: 0 additions & 1 deletion test/metrics.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import exp from 'constants';
import { MetadataFromDocument } from '../src/metrics';
import { NewParser, AsyncAPIDocument } from '@smoya/multi-parser';

Expand Down

0 comments on commit fbf1fc0

Please sign in to comment.