Skip to content

Commit 3633d06

Browse files
authored
Merging pull request #18706
* Update RSS component versions and add User-Agent header - Bump @pipedream/rss version to 0.5.9 - Update merge-rss-feeds action version to 1.2.9 - Add User-Agent header in rss.app.ts - Bump new-item-from-multiple-feeds source version to 1.2.8 - Bump new-item-in-feed source version to 1.2.8 * Refactor RSS component methods to disable TypeScript explicit any warnings - Added eslint-disable comments for explicit any type in itemTs, itemKey, fetchFeed, isJSONFeed, and sortItems methods in rss.app.ts. - Updated new-item-from-multiple-feeds source to disable explicit any warning in forEach method. * Update random-item-in-multiple-feeds source version to 0.2.8 and adjust import order * Update RSS component versions and refactor axios usage - Bump @pipedream/rss version to 0.5.10 - Update merge-rss-feeds action version to 1.2.10 - Update new-item-from-multiple-feeds source version to 1.2.9 - Update new-item-in-feed source version to 1.2.9 - Update random-item-in-multiple-feeds source version to 0.2.9 - Refactor axios usage in rss.app.ts to use axios.request
1 parent e69be29 commit 3633d06

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

components/rss/actions/merge-rss-feeds/merge-rss-feeds.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineAction({
55
name: "Merge RSS Feeds",
66
description: "Retrieve multiple RSS feeds and return a merged array of items sorted by date [See documentation](https://www.rssboard.org/rss-specification)",
77
key: "rss-merge-rss-feeds",
8-
version: "1.2.9",
8+
version: "1.2.10",
99
annotations: {
1010
destructiveHint: false,
1111
openWorldHint: true,

components/rss/app/rss.app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {
2-
axios, ConfigurationError, DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
2+
ConfigurationError, DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
33
} from "@pipedream/platform";
44
import { defineApp } from "@pipedream/types";
5+
import axios from "axios";
56
import FeedParser, { Item } from "feedparser";
67
import { ReadStream } from "fs";
78
import hash from "object-hash";
@@ -54,7 +55,7 @@ export default defineApp({
5455
return hash(item);
5556
},
5657
async fetchFeed(url: string): Promise<any> { // eslint-disable-line @typescript-eslint/no-explicit-any
57-
const res = await axios(this, {
58+
const res = await axios.request({
5859
url,
5960
method: "GET",
6061
headers: {
@@ -63,7 +64,6 @@ export default defineApp({
6364
},
6465
validateStatus: () => true, // does not throw on any bad status code
6566
responseType: "stream", // stream is required for feedparser
66-
returnFullResponse: true,
6767
});
6868

6969
// Handle status codes as error codes

components/rss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/rss",
3-
"version": "0.5.9",
3+
"version": "0.5.10",
44
"description": "Pipedream RSS Components",
55
"main": "dist/app/rss.app.mjs",
66
"types": "dist/app/rss.app.d.ts",

components/rss/sources/new-item-from-multiple-feeds/new-item-from-multiple-feeds.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineSource({
88
name: "New Item From Multiple RSS Feeds",
99
type: "source",
1010
description: "Emit new items from multiple RSS feeds",
11-
version: "1.2.8",
11+
version: "1.2.9",
1212
props: {
1313
...rssCommon.props,
1414
urls: {

components/rss/sources/new-item-in-feed/new-item-in-feed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineSource({
77
key: "rss-new-item-in-feed",
88
name: "New Item in Feed",
99
description: "Emit new items from an RSS feed",
10-
version: "1.2.8",
10+
version: "1.2.9",
1111
type: "source",
1212
dedupe: "unique",
1313
props: {

components/rss/sources/random-item-in-multiple-feeds/random-item-in-multiple-feeds.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineSource({
88
name: "Random item from multiple RSS feeds",
99
type: "source",
1010
description: "Emit a random item from multiple RSS feeds",
11-
version: "0.2.8",
11+
version: "0.2.9",
1212
props: {
1313
...rssCommon.props,
1414
urls: {

0 commit comments

Comments
 (0)