Skip to content

Commit 6fc2606

Browse files
authored
Merge pull request #104 from extractus/7.0.2
v7.0.2
2 parents 4e92250 + 59ed895 commit 6fc2606

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,14 @@ pnpm eval https://news.google.com/rss
366366
## License
367367
The MIT License (MIT)
368368

369+
## Support the project
370+
371+
If you find value from this open source project, you can support in the following ways:
372+
373+
- Give it a star ⭐
374+
- Buy me a coffee: https://paypal.me/ndaidong 🍵
375+
- Subscribe [Feed Reader service](https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1/) on RapidAPI 😉
376+
377+
Thank you.
378+
369379
---

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.0.1",
2+
"version": "7.0.2",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://extractor-demos.pages.dev",
@@ -31,13 +31,13 @@
3131
"dependencies": {
3232
"bellajs": "^11.1.2",
3333
"cross-fetch": "^4.0.0",
34-
"fast-xml-parser": "^4.2.6",
34+
"fast-xml-parser": "^4.2.7",
3535
"html-entities": "^2.4.0"
3636
},
3737
"devDependencies": {
38-
"eslint": "^8.45.0",
38+
"eslint": "^8.47.0",
3939
"https-proxy-agent": "^7.0.1",
40-
"jest": "^29.6.1",
40+
"jest": "^29.6.2",
4141
"nock": "^13.3.2"
4242
},
4343
"keywords": [

src/utils/normalizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const toISODateString = (dstr) => {
2222
}
2323

2424
export const buildDescription = (val, maxlen = 0) => {
25-
const stripped = stripTags(String(val))
25+
const stripped = stripTags(String(val).trim().replace(/^<!\[CDATA\[|\]\]>$/g, ''))
2626
const text = maxlen > 0 ? truncate(stripped, maxlen) : stripped
2727
return text.replace(/\n+/g, ' ')
2828
}

src/utils/parseRssFeed.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const transform = (item, options) => {
3030
} = item
3131

3232
const published = useISODateFormat ? toISODateString(pubDate) : pubDate
33-
3433
const entry = {
3534
id: getEntryId(guid, link, pubDate),
3635
title: getText(title),

0 commit comments

Comments
 (0)