@the-convocation/twitter-scraper 0.18.1 → 0.18.2
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/dist/default/cjs/index.js +6 -0
- package/dist/default/cjs/index.js.map +1 -1
- package/dist/default/esm/index.mjs +6 -0
- package/dist/default/esm/index.mjs.map +1 -1
- package/dist/node/cjs/index.cjs +6 -0
- package/dist/node/cjs/index.cjs.map +1 -1
- package/dist/node/esm/index.mjs +6 -0
- package/dist/node/esm/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/esm/index.mjs
CHANGED
|
@@ -891,6 +891,12 @@ async function getProfile(username, auth) {
|
|
|
891
891
|
}
|
|
892
892
|
const { result: user } = value.data.user;
|
|
893
893
|
const { legacy } = user;
|
|
894
|
+
if (user.__typename === "UserUnavailable" && user?.reason === "Suspended") {
|
|
895
|
+
return {
|
|
896
|
+
success: false,
|
|
897
|
+
err: new Error("User is suspended.")
|
|
898
|
+
};
|
|
899
|
+
}
|
|
894
900
|
if (user.rest_id == null || user.rest_id.length === 0) {
|
|
895
901
|
return {
|
|
896
902
|
success: false,
|