@pipedream/twitter 0.3.5 → 0.3.7
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 → README.md} +0 -0
- package/package.json +2 -1
- package/sources/common/followed.mjs +2 -1
- package/sources/common/followers.mjs +2 -1
- package/sources/common/tweets.mjs +2 -1
- package/sources/my-liked-tweets/my-liked-tweets.mjs +3 -2
- package/sources/my-tweets/my-tweets.mjs +1 -1
- package/sources/new-follower-of-me/new-follower-of-me.mjs +1 -1
- package/sources/new-follower-of-user/new-follower-of-user.mjs +1 -1
- package/sources/new-list-followed/new-list-followed.mjs +1 -1
- package/sources/new-trends-by-geo/new-trends-by-geo.mjs +3 -2
- package/sources/new-tweet-in-list/new-tweet-in-list.mjs +1 -1
- package/sources/new-unfollower-of-me/new-unfollower-of-me.mjs +1 -1
- package/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +1 -1
- package/sources/new-user-followed/new-user-followed.mjs +1 -1
- package/sources/search-mentions/search-mentions.mjs +4 -3
- package/sources/tweets-liked-by-user/tweets-liked-by-user.mjs +4 -3
- package/sources/user-tweets/user-tweets.mjs +1 -1
- package/sources/watch-retweets-of-me/watch-retweets-of-me.mjs +1 -1
- package/sources/watch-retweets-of-my-tweet/watch-retweets-of-my-tweet.mjs +1 -1
- package/sources/watch-retweets-of-user-tweet/watch-retweets-of-user-tweet.mjs +1 -1
package/{readme.md → README.md}
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/twitter",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Pipedream Twitter Components",
|
|
5
5
|
"main": "twitter.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
+
"@pipedream/platform": "^1.2.0",
|
|
14
15
|
"axios": "^0.21.1",
|
|
15
16
|
"moment": "^2.29.1",
|
|
16
17
|
"querystring": "^0.2.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
props: {
|
|
@@ -9,7 +10,7 @@ export default {
|
|
|
9
10
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
10
11
|
type: "$.interface.timer",
|
|
11
12
|
default: {
|
|
12
|
-
intervalSeconds:
|
|
13
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
13
14
|
},
|
|
14
15
|
},
|
|
15
16
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
props: {
|
|
@@ -9,7 +10,7 @@ export default {
|
|
|
9
10
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
10
11
|
type: "$.interface.timer",
|
|
11
12
|
default: {
|
|
12
|
-
intervalSeconds:
|
|
13
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
13
14
|
},
|
|
14
15
|
},
|
|
15
16
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
props: {
|
|
@@ -21,7 +22,7 @@ export default {
|
|
|
21
22
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
22
23
|
type: "$.interface.timer",
|
|
23
24
|
default: {
|
|
24
|
-
intervalSeconds:
|
|
25
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
25
26
|
},
|
|
26
27
|
},
|
|
27
28
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
key: "twitter-my-liked-tweets",
|
|
5
6
|
name: "My Liked Tweets",
|
|
6
7
|
description: "Emit new Tweets you like on Twitter",
|
|
7
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.9",
|
|
8
9
|
type: "source",
|
|
9
10
|
props: {
|
|
10
11
|
twitter,
|
|
@@ -13,7 +14,7 @@ export default {
|
|
|
13
14
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
14
15
|
type: "$.interface.timer",
|
|
15
16
|
default: {
|
|
16
|
-
intervalSeconds:
|
|
17
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
17
18
|
},
|
|
18
19
|
},
|
|
19
20
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
key: "twitter-new-trends-by-geo",
|
|
5
6
|
name: "New Trends by Geo",
|
|
6
7
|
description: "Emit new event when a new topic is trending on Twitter in a specific geographic location",
|
|
7
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.9",
|
|
8
9
|
type: "source",
|
|
9
10
|
props: {
|
|
10
11
|
twitter,
|
|
@@ -19,7 +20,7 @@ export default {
|
|
|
19
20
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
20
21
|
type: "$.interface.timer",
|
|
21
22
|
default: {
|
|
22
|
-
intervalSeconds:
|
|
23
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
23
24
|
},
|
|
24
25
|
},
|
|
25
26
|
},
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
2
|
import moment from "moment";
|
|
3
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
key: "twitter-search-mentions",
|
|
6
7
|
name: "Search Mentions",
|
|
7
8
|
description: "Emit new Tweets that match your search criteria",
|
|
8
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.9",
|
|
9
10
|
type: "source",
|
|
10
11
|
props: {
|
|
11
12
|
db: "$.service.db",
|
|
@@ -75,7 +76,7 @@ export default {
|
|
|
75
76
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
76
77
|
type: "$.interface.timer",
|
|
77
78
|
default: {
|
|
78
|
-
intervalSeconds:
|
|
79
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
79
80
|
},
|
|
80
81
|
},
|
|
81
82
|
},
|
|
@@ -122,7 +123,7 @@ export default {
|
|
|
122
123
|
|
|
123
124
|
// emit array of tweet objects
|
|
124
125
|
if (tweets.length > 0) {
|
|
125
|
-
tweets.sort(function(a, b) {return a.id - b.id;});
|
|
126
|
+
tweets.sort(function (a, b) { return a.id - b.id; });
|
|
126
127
|
|
|
127
128
|
tweets.forEach((tweet) => {
|
|
128
129
|
this.$emit(tweet, {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import twitter from "../../twitter.app.mjs";
|
|
2
|
+
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
|
-
key: "twitter-
|
|
5
|
+
key: "twitter-tweets-liked-by-user",
|
|
5
6
|
name: "Tweet Liked by User",
|
|
6
7
|
description: "Emit new Tweets liked by a specific user on Twitter",
|
|
7
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.9",
|
|
8
9
|
type: "source",
|
|
9
10
|
props: {
|
|
10
11
|
twitter,
|
|
@@ -19,7 +20,7 @@ export default {
|
|
|
19
20
|
description: "Pipedream will poll the Twitter API on this schedule",
|
|
20
21
|
type: "$.interface.timer",
|
|
21
22
|
default: {
|
|
22
|
-
intervalSeconds:
|
|
23
|
+
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
|
|
23
24
|
},
|
|
24
25
|
},
|
|
25
26
|
},
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
...base,
|
|
5
5
|
key: "twitter-watch-retweets-of-me",
|
|
6
6
|
name: "Watch Retweets of Me",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.7",
|
|
8
8
|
description: "Emit new event when recent Tweets authored by the authenticating user that have been retweeted by others",
|
|
9
9
|
type: "source",
|
|
10
10
|
props: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "twitter-watch-retweets-of-my-tweet",
|
|
6
6
|
name: "Watch Retweets of My Tweet",
|
|
7
7
|
description: "Emit new event when a specific Tweet from the authenticated user is retweeted",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
type: "source",
|
|
10
10
|
props: {
|
|
11
11
|
...base.props,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "twitter-watch-retweets-of-user-tweet",
|
|
7
7
|
name: "Watch Retweets of User Tweet",
|
|
8
8
|
description: "Emit new event when a specific Tweet from a user is retweeted",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.6",
|
|
10
10
|
type: "source",
|
|
11
11
|
props: {
|
|
12
12
|
...base.props,
|