From ed107e49fd06ecc591c660ba076d7f96331b5677 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 26 Dec 2023 13:31:23 -0600 Subject: [PATCH] Move new libs into deps.ts --- src/deps.ts | 2 ++ src/filter.ts | 4 +--- src/reqmeister.ts | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/deps.ts b/src/deps.ts index b9db9e2..4a9314b 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -81,5 +81,7 @@ export { Machina } from 'https://gitlab.com/soapbox-pub/nostr-machina/-/raw/08a1 export * as Sentry from 'https://deno.land/x/sentry@7.78.0/index.js'; export { sentry as sentryMiddleware } from 'npm:@hono/sentry@^1.0.0'; export * as Comlink from 'npm:comlink@^4.4.1'; +export { EventEmitter } from 'npm:tseep@^1.1.3'; +export { default as stringifyStable } from 'npm:fast-stable-stringify@^1.0.0'; export type * as TypeFest from 'npm:type-fest@^4.3.0'; diff --git a/src/filter.ts b/src/filter.ts index 92a022d..38fcff7 100644 --- a/src/filter.ts +++ b/src/filter.ts @@ -1,10 +1,8 @@ import { Conf } from '@/config.ts'; -import { type Event, type Filter, matchFilters } from '@/deps.ts'; +import { type Event, type Filter, matchFilters, stringifyStable } from '@/deps.ts'; import type { EventData } from '@/types.ts'; -import stringifyStable from 'npm:fast-stable-stringify'; - /** Additional properties that may be added by Ditto to events. */ type Relation = 'author' | 'author_stats' | 'event_stats'; diff --git a/src/reqmeister.ts b/src/reqmeister.ts index eb1f26d..960151f 100644 --- a/src/reqmeister.ts +++ b/src/reqmeister.ts @@ -1,7 +1,6 @@ import * as client from '@/client.ts'; -import { Event, Filter } from '@/deps.ts'; +import { type Event, EventEmitter, type Filter } from '@/deps.ts'; -import { EventEmitter } from 'npm:tseep'; import { eventToMicroFilter, getFilterId, type MicroFilter } from '@/filter.ts'; interface ReqmeisterOpts {