Skip to content

Commit 06fc82d

Browse files
authored
fix: add toStringTag for auto-tls (#2914)
To generate more helpful error messages, add the `toStringTag` symbol.
1 parent 8c515f2 commit 06fc82d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/auto-tls/src/auto-tls.ts

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ export class AutoTLS implements AutoTLSInterface {
8484
})
8585
}
8686

87+
readonly [Symbol.toStringTag] = '@libp2p/auto-tls'
88+
8789
readonly [serviceCapabilities]: string[] = [
8890
'@libp2p/auto-tls'
8991
]

0 commit comments

Comments
 (0)