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.
@@ -1874,7 +1874,7 @@ var StreamClient = class {
1874
1874
  return;
1875
1875
  }
1876
1876
  if (!reconnect) {
1877
- const reasonStr = reason instanceof Buffer ? reason.toString() : String(reason ?? "");
1877
+ const reasonStr = reason instanceof Buffer ? reason.toString() : typeof reason === "string" ? reason : "";
1878
1878
  emitter.emit(
1879
1879
  "error",
1880
1880
  new WebSocketStreamError(`WebSocket closed: ${reasonStr || String(code)}`)