@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.
@@ -913,6 +913,12 @@ async function getProfile(username, auth) {
913
913
  }
914
914
  const { result: user } = value.data.user;
915
915
  const { legacy } = user;
916
+ if (user.__typename === "UserUnavailable" && user?.reason === "Suspended") {
917
+ return {
918
+ success: false,
919
+ err: new Error("User is suspended.")
920
+ };
921
+ }
916
922
  if (user.rest_id == null || user.rest_id.length === 0) {
917
923
  return {
918
924
  success: false,