Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: update interfaces and use static string for toStringTag #157

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interfaces": "^1.3.31",
"@libp2p/interfaces": "^2.0.1",
"@libp2p/logger": "^1.1.3",
"@libp2p/utils": "^1.0.10",
"@multiformats/mafmt": "^11.0.2",
Expand All @@ -166,7 +166,7 @@
"wherearewe": "^1.0.0"
},
"devDependencies": {
"@libp2p/interface-compliance-tests": "^1.1.32",
"@libp2p/interface-compliance-tests": "^2.0.1",
"@types/ws": "^8.2.2",
"aegir": "^37.0.12",
"is-loopback-addr": "^2.0.1",
Expand Down
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ export interface WebSocketsInit extends AbortOptions, WebSocketOptions {
}

export class WebSockets implements Transport {
static tag = 'WebSockets'

private readonly init?: WebSocketsInit

constructor (init?: WebSocketsInit) {
this.init = init
}

get [Symbol.toStringTag] () {
return WebSockets.tag
return '@libp2p/websockets'
}

get [symbol] (): true {
Expand Down