Skip to content

Commit

Permalink
Merge pull request #104 from extractus/7.0.2
Browse files Browse the repository at this point in the history
v7.0.2
  • Loading branch information
ndaidong authored Aug 16, 2023
2 parents 4e92250 + 59ed895 commit 6fc2606
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,14 @@ pnpm eval https://news.google.com/rss
## License
The MIT License (MIT)

## Support the project

If you find value from this open source project, you can support in the following ways:

- Give it a star ⭐
- Buy me a coffee: https://paypal.me/ndaidong 🍵
- Subscribe [Feed Reader service](https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1/) on RapidAPI 😉

Thank you.

---
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.0.1",
"version": "7.0.2",
"name": "@extractus/feed-extractor",
"description": "To read and normalize RSS/ATOM/JSON feed data",
"homepage": "https://extractor-demos.pages.dev",
Expand Down Expand Up @@ -31,13 +31,13 @@
"dependencies": {
"bellajs": "^11.1.2",
"cross-fetch": "^4.0.0",
"fast-xml-parser": "^4.2.6",
"fast-xml-parser": "^4.2.7",
"html-entities": "^2.4.0"
},
"devDependencies": {
"eslint": "^8.45.0",
"eslint": "^8.47.0",
"https-proxy-agent": "^7.0.1",
"jest": "^29.6.1",
"jest": "^29.6.2",
"nock": "^13.3.2"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/normalizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const toISODateString = (dstr) => {
}

export const buildDescription = (val, maxlen = 0) => {
const stripped = stripTags(String(val))
const stripped = stripTags(String(val).trim().replace(/^<!\[CDATA\[|\]\]>$/g, ''))
const text = maxlen > 0 ? truncate(stripped, maxlen) : stripped
return text.replace(/\n+/g, ' ')
}
Expand Down
1 change: 0 additions & 1 deletion src/utils/parseRssFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const transform = (item, options) => {
} = item

const published = useISODateFormat ? toISODateString(pubDate) : pubDate

const entry = {
id: getEntryId(guid, link, pubDate),
title: getText(title),
Expand Down

0 comments on commit 6fc2606

Please sign in to comment.