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" };