Skip to content

Commit

Permalink
fix: add toStringTag for auto-tls (#2914)
Browse files Browse the repository at this point in the history
To generate more helpful error messages, add the `toStringTag`
symbol.
  • Loading branch information
achingbrain authored Jan 13, 2025
1 parent 8c515f2 commit 06fc82d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/auto-tls/src/auto-tls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export class AutoTLS implements AutoTLSInterface {
})
}

readonly [Symbol.toStringTag] = '@libp2p/auto-tls'

readonly [serviceCapabilities]: string[] = [
'@libp2p/auto-tls'
]
Expand Down

0 comments on commit 06fc82d

Please sign in to comment.