Skip to content

Commit bcfc785

Browse files
authored
docs: update readme examples to import correct symbols (#58)
1 parent e8d3243 commit bcfc785

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/client/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A client implementation of the IPFS [Delegated Routing V1 HTTP API](https://spec
1818
## Example
1919

2020
```typescript
21-
import { createDelegatedRoutingV1HttpApiClient } from '@helia/routing-v1-http-api-client'
21+
import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
2222
import { CID } from 'multiformats/cid'
2323

2424
const client = createDelegatedRoutingV1HttpApiClient('https://example.org')
@@ -35,7 +35,7 @@ The client can be configured as a libp2p service, this will enable it as both a
3535
## Example
3636

3737
```typescript
38-
import { createDelegatedRoutingV1HttpApiClient } from '@helia/routing-v1-http-api-client'
38+
import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
3939
import { createLibp2p } from 'libp2p'
4040
import { peerIdFromString } from '@libp2p/peer-id'
4141

packages/client/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @example
77
*
88
* ```typescript
9-
* import { createDelegatedRoutingV1HttpApiClient } from '@helia/routing-v1-http-api-client'
9+
* import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
1010
* import { CID } from 'multiformats/cid'
1111
*
1212
* const client = createDelegatedRoutingV1HttpApiClient('https://example.org')
@@ -23,7 +23,7 @@
2323
* @example
2424
*
2525
* ```typescript
26-
* import { createDelegatedRoutingV1HttpApiClient } from '@helia/routing-v1-http-api-client'
26+
* import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
2727
* import { createLibp2p } from 'libp2p'
2828
* import { peerIdFromString } from '@libp2p/peer-id'
2929
*

packages/server/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*
88
* ```typescript
99
* import { createHelia } from 'helia'
10-
* import { createRoutingV1HttpApiServer } from '@helia/routing-v1-http-api-server'
10+
* import { createDelegatedRoutingV1HttpApiServer } from '@helia/delegated-routing-v1-http-api-server'
1111
*
1212
* const helia = await createHelia()
13-
* const server = await createRoutingV1HttpApiServer(helia, {
13+
* const server = await createDelegatedRoutingV1HttpApiServer(helia, {
1414
* listen: {
1515
* // fastify listen options
1616
* }

0 commit comments

Comments
 (0)