From e4f80ea7347587373e21b7b1bed1c139d8397106 Mon Sep 17 00:00:00 2001 From: Rishikant Sahu Date: Tue, 27 Feb 2024 15:59:01 +0530 Subject: [PATCH 1/2] Updated README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0887dba4..bef763ec 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Rettiwt-API can be used with or without logging in to Twitter. As such, the two - Tweet Favoriters (likes) - Tweet Retweeters (retweets) - Tweet Search + - Tweet Stream - Tweet List - User Details - User Followers From 744cd787510ef469ef5e6a2a6a5f258dcc8eac96 Mon Sep 17 00:00:00 2001 From: Rishikant Sahu Date: Tue, 27 Feb 2024 16:12:30 +0530 Subject: [PATCH 2/2] Fixed documentation for stream --- package.json | 2 +- src/services/public/TweetService.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0993067f..e3eb823e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rettiwt-api", - "version": "2.6.1", + "version": "2.6.2", "main": "dist/index.js", "types": "dist/index.d.ts", "description": "An API for fetching data from TwitterAPI, without any rate limits!", diff --git a/src/services/public/TweetService.ts b/src/services/public/TweetService.ts index 43afcec1..2828a0fd 100644 --- a/src/services/public/TweetService.ts +++ b/src/services/public/TweetService.ts @@ -118,7 +118,7 @@ export class TweetService extends FetcherService { * const rettiwt = new Rettiwt({ apiKey: API_KEY }); * * // Streaming all upcoming tweets from user 'user1' - * async () => { + * (async () => { * try { * for await (const tweet of rettiwt.tweet.stream({ fromUsers: ['user1'] }, 1000)) { * console.log(tweet.fullText); @@ -127,7 +127,7 @@ export class TweetService extends FetcherService { * catch (err) { * console.log(err); * } - * }(); + * })(); * ``` * * @public