From 62e32252a334a5389546dd05a143ffb93cb8e744 Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:13:48 +0200 Subject: [PATCH] docs: fix filters import (#2579) --- packages/transport-websockets/README.md | 2 +- packages/transport-websockets/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/transport-websockets/README.md b/packages/transport-websockets/README.md index 0bee4634cd..4035e3b7dc 100644 --- a/packages/transport-websockets/README.md +++ b/packages/transport-websockets/README.md @@ -67,7 +67,7 @@ The available filters are: ```TypeScript import { createLibp2p } from 'libp2p' import { webSockets } from '@libp2p/websockets' -import filters from '@libp2p/websockets/filters' +import * as filters from '@libp2p/websockets/filters' const node = await createLibp2p({ transports: [ diff --git a/packages/transport-websockets/src/index.ts b/packages/transport-websockets/src/index.ts index c7f286ef69..c5d8a2b7b7 100644 --- a/packages/transport-websockets/src/index.ts +++ b/packages/transport-websockets/src/index.ts @@ -44,7 +44,7 @@ * ```TypeScript * import { createLibp2p } from 'libp2p' * import { webSockets } from '@libp2p/websockets' - * import filters from '@libp2p/websockets/filters' + * import * as filters from '@libp2p/websockets/filters' * * const node = await createLibp2p({ * transports: [