@pipedream/twitter 0.3.6 → 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.
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/twitter",
3
- "version": "0.3.6",
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: 60 * 15,
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: 60 * 15,
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: 60 * 15,
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.7",
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: 60 * 15,
17
+ intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
17
18
  },
18
19
  },
19
20
  },
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-my-tweets",
6
6
  name: "My Tweets",
7
7
  description: "Emit new Tweets you post to Twitter",
8
- version: "0.0.9",
8
+ version: "0.0.11",
9
9
  type: "source",
10
10
  props: {
11
11
  ...base.props,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-follower-of-me",
6
6
  name: "New Follower of Me",
7
7
  description: "Emit new event when a user follows you on Twitter",
8
- version: "0.0.9",
8
+ version: "0.0.11",
9
9
  type: "source",
10
10
  props: {
11
11
  ...common.props,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-follower-of-user",
6
6
  name: "New Follower of User",
7
7
  description: "Emit new event when a specific user gains a follower",
8
- version: "0.0.9",
8
+ version: "0.0.11",
9
9
  type: "source",
10
10
  props: {
11
11
  ...base.props,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-list-followed",
6
6
  name: "New List Followed",
7
7
  description: "Emit new event when the authenticated user follows a List",
8
- version: "0.0.1",
8
+ version: "0.0.3",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -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.7",
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: 60 * 15,
23
+ intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
23
24
  },
24
25
  },
25
26
  },
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-tweet-in-list",
6
6
  name: "New Tweet in List",
7
7
  description: "Emit new Tweets posted by members of a list",
8
- version: "0.0.5",
8
+ version: "0.0.7",
9
9
  type: "source",
10
10
  props: {
11
11
  ...base.props,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-unfollower-of-me",
6
6
  name: "New Unfollower of Me",
7
7
  description: "Emit new event when a user unfollows you on Twitter",
8
- version: "0.0.10",
8
+ version: "0.0.12",
9
9
  type: "source",
10
10
  methods: {
11
11
  ...common.methods,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-unfollower-of-user",
6
6
  name: "New Unfollower of User",
7
7
  description: "Emit new event when a specific user loses a follower on Twitter",
8
- version: "0.0.8",
8
+ version: "0.0.10",
9
9
  type: "source",
10
10
  props: {
11
11
  ...base.props,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-new-user-followed",
6
6
  name: "New User Followed",
7
7
  description: "Emit new event when the authenticated user follows a User",
8
- version: "0.0.1",
8
+ version: "0.0.3",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -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.7",
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: 60 * 15,
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-tweet-liked-by-user",
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.7",
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: 60 * 15,
23
+ intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
23
24
  },
24
25
  },
25
26
  },
@@ -5,7 +5,7 @@ export default {
5
5
  key: "twitter-user-tweets",
6
6
  name: "User Tweets",
7
7
  description: "Emit new Tweets posted by a user",
8
- version: "0.0.9",
8
+ version: "0.0.11",
9
9
  type: "source",
10
10
  props: {
11
11
  ...base.props,
@@ -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.5",
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.4",
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.4",
9
+ version: "0.0.6",
10
10
  type: "source",
11
11
  props: {
12
12
  ...base.props,