scrapebadger 0.4.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1868,7 +1868,7 @@ var StreamClient = class {
1868
1868
  return;
1869
1869
  }
1870
1870
  if (!reconnect) {
1871
- const reasonStr = reason instanceof Buffer ? reason.toString() : String(reason ?? "");
1871
+ const reasonStr = reason instanceof Buffer ? reason.toString() : typeof reason === "string" ? reason : "";
1872
1872
  emitter.emit(
1873
1873
  "error",
1874
1874
  new WebSocketStreamError(`WebSocket closed: ${reasonStr || String(code)}`)