diff --git a/src/interfaces/events-query.ts b/src/interfaces/events-query.ts index 1b2c56fce..2b2e470af 100644 --- a/src/interfaces/events-query.ts +++ b/src/interfaces/events-query.ts @@ -7,8 +7,8 @@ import { Events } from '../utils/events.js'; import { Message } from '../core/message.js'; import { removeUndefinedProperties } from '../utils/object.js'; import { Time } from '../utils/time.js'; +import { validateProtocolUrlNormalized } from '../utils/url.js'; import { DwnInterfaceName, DwnMethodName } from '../enums/dwn-interface-method.js'; -import { validateProtocolUrlNormalized, validateSchemaUrlNormalized } from '../utils/url.js'; export type EventsQueryOptions = { signer: Signer; diff --git a/src/interfaces/events-subscribe.ts b/src/interfaces/events-subscribe.ts index ba7de2843..4941e96ef 100644 --- a/src/interfaces/events-subscribe.ts +++ b/src/interfaces/events-subscribe.ts @@ -5,8 +5,8 @@ import { AbstractMessage } from '../core/abstract-message.js'; import { Message } from '../core/message.js'; import { removeUndefinedProperties } from '../utils/object.js'; import { Time } from '../utils/time.js'; +import { validateProtocolUrlNormalized } from '../utils/url.js'; import { DwnInterfaceName, DwnMethodName } from '../enums/dwn-interface-method.js'; -import { validateProtocolUrlNormalized, validateSchemaUrlNormalized } from '../utils/url.js'; export type EventsSubscribeOptions = { diff --git a/src/types/events-types.ts b/src/types/events-types.ts index 3cde85ce7..bd466b9bc 100644 --- a/src/types/events-types.ts +++ b/src/types/events-types.ts @@ -1,7 +1,7 @@ import type { MessageEvent } from './subscriptions.js'; import type { AuthorizationModel, GenericMessage, GenericMessageReply, MessageSubscription } from './message-types.js'; import type { DwnInterfaceName, DwnMethodName } from '../enums/dwn-interface-method.js'; -import type { PaginationCursor, RangeCriterion, RangeFilter } from './query-types.js'; +import type { PaginationCursor, RangeCriterion } from './query-types.js'; /** * filters used when filtering for any type of Message across interfaces */ diff --git a/src/utils/events.ts b/src/utils/events.ts index 3a420b37d..a75419c69 100644 --- a/src/utils/events.ts +++ b/src/utils/events.ts @@ -2,10 +2,10 @@ import type { EventsFilter } from '../types/events-types.js'; import type { Filter } from '../types/query-types.js'; import { FilterUtility } from '../utils/filter.js'; +import { normalizeProtocolUrl } from './url.js'; import { PermissionsProtocol } from '../protocols/permissions.js'; import { Records } from '../utils/records.js'; import { isEmptyObject, removeUndefinedProperties } from './object.js'; -import { normalizeProtocolUrl } from './url.js'; /** diff --git a/tests/interfaces/events-query.spec.ts b/tests/interfaces/events-query.spec.ts index e5d9a4229..090dbc63d 100644 --- a/tests/interfaces/events-query.spec.ts +++ b/tests/interfaces/events-query.spec.ts @@ -1,6 +1,5 @@ import type { EventsQueryMessage } from '../../src/types/events-types.js'; import type { ProtocolsQueryFilter } from '../../src/types/protocols-types.js'; -import type { RecordsFilter } from '../../src/types/records-types.js'; import { EventsQuery } from '../../src/interfaces/events-query.js'; import { Jws } from '../../src/utils/jws.js'; diff --git a/tests/scenarios/subscriptions.spec.ts b/tests/scenarios/subscriptions.spec.ts index d6e2547dc..2643d9988 100644 --- a/tests/scenarios/subscriptions.spec.ts +++ b/tests/scenarios/subscriptions.spec.ts @@ -17,7 +17,7 @@ import { TestDataGenerator } from '../utils/test-data-generator.js'; import { TestEventStream } from '../test-event-stream.js'; import { TestStores } from '../test-stores.js'; import { DidKey, UniversalResolver } from '@web5/dids'; -import { Dwn, DwnConstant, DwnInterfaceName, DwnMethodName, Message } from '../../src/index.js'; +import { Dwn, DwnInterfaceName, DwnMethodName, Message } from '../../src/index.js'; import { expect } from 'chai'; @@ -521,7 +521,7 @@ export function testSubscriptionScenarios(): void { allMessages.push(await Message.getCid(message)); }; const allSubscription = await TestDataGenerator.generateEventsSubscribe({ - author : alice, + author: alice, }); const allSubscriptionReply = await dwn.processMessage(alice.did, allSubscription.message, { subscriptionHandler: allHandler }); expect(allSubscriptionReply.status.code).to.equal(200);