From 9fc79f6853ac5dd7a8411fff57a0d23f3b9dfe77 Mon Sep 17 00:00:00 2001 From: Danish Arora <35004822+danisharora099@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:38:02 +0530 Subject: [PATCH] chore: export `FilterCodecs` (#1532) * export FilterCodecs * root export --- packages/core/src/index.ts | 2 +- packages/core/src/lib/filter/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index c5c508e742..8efdf07e23 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -12,7 +12,7 @@ export * as waku from "./lib/waku.js"; export { WakuNode, WakuOptions } from "./lib/waku.js"; export * as waku_filter from "./lib/filter/index.js"; -export { wakuFilter } from "./lib/filter/index.js"; +export { wakuFilter, FilterCodecs } from "./lib/filter/index.js"; export * as waku_light_push from "./lib/light_push/index.js"; export { wakuLightPush, LightPushCodec } from "./lib/light_push/index.js"; diff --git a/packages/core/src/lib/filter/index.ts b/packages/core/src/lib/filter/index.ts index cefce17d2e..dae27919b2 100644 --- a/packages/core/src/lib/filter/index.ts +++ b/packages/core/src/lib/filter/index.ts @@ -41,7 +41,7 @@ type SubscriptionCallback = { callback: Callback; }; -const FilterCodecs = { +export const FilterCodecs = { SUBSCRIBE: "/vac/waku/filter-subscribe/2.0.0-beta1", PUSH: "/vac/waku/filter-push/2.0.0-beta1" };