scrapebadger 0.4.0 → 0.7.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.
- package/README.md +27 -291
- package/dist/index.d.cts +1904 -102
- package/dist/index.d.ts +1904 -102
- package/dist/index.js +838 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +815 -58
- package/dist/index.mjs.map +1 -1
- package/dist/twitter/index.js +1 -1
- package/dist/twitter/index.js.map +1 -1
- package/dist/twitter/index.mjs +1 -1
- package/dist/twitter/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/twitter/index.js
CHANGED
|
@@ -1874,7 +1874,7 @@ var StreamClient = class {
|
|
|
1874
1874
|
return;
|
|
1875
1875
|
}
|
|
1876
1876
|
if (!reconnect) {
|
|
1877
|
-
const reasonStr = reason instanceof Buffer ? reason.toString() :
|
|
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)}`)
|