Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit dbf6688

Browse files
authored
fix: add .js to import paths (#166)
1 parent 81d24ca commit dbf6688

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

packages/libp2p-interfaces/src/dht/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { PeerId } from '../peer-id'
1+
import type { PeerId } from '../peer-id/index.js'
22
import type { CID } from 'multiformats/cid'
3-
import type { PeerData } from '../peer-data'
4-
import type { AbortOptions, Startable } from '../index'
5-
import type { PeerDiscovery } from '../peer-discovery'
3+
import type { PeerData } from '../peer-data/index.js'
4+
import type { AbortOptions, Startable } from '../index.js'
5+
import type { PeerDiscovery } from '../peer-discovery/index.js'
66

77
/**
88
* The types of events emitted during DHT queries

packages/libp2p-interfaces/src/peer-store/index.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { PeerId } from '../peer-id/index.js'
22
import type { Multiaddr } from '@multiformats/multiaddr'
33
import type { EventEmitter } from '../index.js'
44
import type { Envelope } from '../record/index.js'
5+
import type { PeerData } from '../peer-data/index.js'
56

67
export interface Address {
78
/**
@@ -182,10 +183,6 @@ export interface ProtoBook extends Book<string[]> {
182183
remove: (peerId: PeerId, protocols: string[]) => Promise<void>
183184
}
184185

185-
export interface PeerData {
186-
peerId: PeerId
187-
}
188-
189186
export interface PeerProtocolsChangeData {
190187
peerId: PeerId
191188
protocols: string[]

packages/libp2p-interfaces/src/pubsub/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { PeerId } from '../peer-id'
1+
import type { PeerId } from '../peer-id/index.js'
22
import type { Pushable } from 'it-pushable'
3-
import type { Registrar } from '../registrar'
3+
import type { Registrar } from '../registrar/index.js'
44
import type { EventEmitter, Startable } from '../index.js'
55

66
/**

packages/libp2p-interfaces/src/value-store/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PeerId } from '../peer-id'
1+
import type { PeerId } from '../peer-id/index.js'
22

33
export interface GetValueResult {
44
from: PeerId

0 commit comments

Comments
 (0)