From 06fc82da85bdd4fdba5bba797135c7e8b2b10c53 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 13 Jan 2025 17:47:40 +0100 Subject: [PATCH] fix: add toStringTag for auto-tls (#2914) To generate more helpful error messages, add the `toStringTag` symbol. --- packages/auto-tls/src/auto-tls.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/auto-tls/src/auto-tls.ts b/packages/auto-tls/src/auto-tls.ts index e8e300dc44..23344651d4 100644 --- a/packages/auto-tls/src/auto-tls.ts +++ b/packages/auto-tls/src/auto-tls.ts @@ -84,6 +84,8 @@ export class AutoTLS implements AutoTLSInterface { }) } + readonly [Symbol.toStringTag] = '@libp2p/auto-tls' + readonly [serviceCapabilities]: string[] = [ '@libp2p/auto-tls' ]