@elizaos/plugin-twitter 1.0.3 → 1.0.6
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/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3219,7 +3219,7 @@ async function createCreateNoteTweetRequest(text, auth, tweetId, mediaData) {
|
|
|
3219
3219
|
const xCsrfToken = cookies.find((cookie) => cookie.key === "ct0");
|
|
3220
3220
|
const baseHeaders = await getTwitterApiHeaders();
|
|
3221
3221
|
const headers = new Headers({
|
|
3222
|
-
...baseHeaders,
|
|
3222
|
+
...Object.fromEntries(baseHeaders.entries()),
|
|
3223
3223
|
authorization: `Bearer ${auth.bearerToken}`,
|
|
3224
3224
|
cookie: await auth.cookieJar().getCookieString(onboardingTaskUrl),
|
|
3225
3225
|
"content-type": "application/json",
|
|
@@ -3337,7 +3337,7 @@ async function deleteTweet(tweetId, auth) {
|
|
|
3337
3337
|
const xCsrfToken = cookies.find((cookie) => cookie.key === "ct0");
|
|
3338
3338
|
const baseHeaders = await getTwitterApiHeaders();
|
|
3339
3339
|
const headers = new Headers({
|
|
3340
|
-
...baseHeaders,
|
|
3340
|
+
...Object.fromEntries(baseHeaders.entries()),
|
|
3341
3341
|
authorization: `Bearer ${auth.bearerToken}`,
|
|
3342
3342
|
cookie: await auth.cookieJar().getCookieString(onboardingTaskUrl),
|
|
3343
3343
|
"content-type": "application/json",
|
|
@@ -3626,7 +3626,7 @@ async function createQuoteTweetRequest(text, quotedTweetId, auth, mediaData) {
|
|
|
3626
3626
|
const xCsrfToken = cookies.find((cookie) => cookie.key === "ct0");
|
|
3627
3627
|
const baseHeaders = await getTwitterApiHeaders();
|
|
3628
3628
|
const headers = new Headers({
|
|
3629
|
-
...baseHeaders,
|
|
3629
|
+
...Object.fromEntries(baseHeaders.entries()),
|
|
3630
3630
|
authorization: `Bearer ${auth.bearerToken}`,
|
|
3631
3631
|
cookie: await auth.cookieJar().getCookieString(onboardingTaskUrl),
|
|
3632
3632
|
"content-type": "application/json",
|
|
@@ -3772,7 +3772,7 @@ async function createCreateLongTweetRequest(text, auth, tweetId, mediaData) {
|
|
|
3772
3772
|
const xCsrfToken = cookies.find((cookie) => cookie.key === "ct0");
|
|
3773
3773
|
const baseHeaders = await getTwitterApiHeaders();
|
|
3774
3774
|
const headers = new Headers({
|
|
3775
|
-
...baseHeaders,
|
|
3775
|
+
...Object.fromEntries(baseHeaders.entries()),
|
|
3776
3776
|
authorization: `Bearer ${auth.bearerToken}`,
|
|
3777
3777
|
cookie: await auth.cookieJar().getCookieString(onboardingTaskUrl),
|
|
3778
3778
|
"content-type": "application/json",
|
|
@@ -13876,7 +13876,6 @@ var _TwitterService = class _TwitterService extends Service {
|
|
|
13876
13876
|
}
|
|
13877
13877
|
}
|
|
13878
13878
|
};
|
|
13879
|
-
console.log("twitterUser:::::::", twitterUser);
|
|
13880
13879
|
runtime.emitEvent(["TWITTER_WORLD_JOINED" /* WORLD_JOINED */, EventType4.WORLD_JOINED], {
|
|
13881
13880
|
runtime,
|
|
13882
13881
|
world,
|