Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Jun 20, 2024
1 parent eff6b2b commit babbd40
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/events-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/events-subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/types/events-types.ts
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/utils/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';


/**
Expand Down
1 change: 0 additions & 1 deletion tests/interfaces/events-query.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions tests/scenarios/subscriptions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit babbd40

Please sign in to comment.