File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -366,4 +366,14 @@ pnpm eval https://news.google.com/rss
366
366
## License
367
367
The MIT License (MIT)
368
368
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
+
369
379
---
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 7.0.1 " ,
2
+ "version" : " 7.0.2 " ,
3
3
"name" : " @extractus/feed-extractor" ,
4
4
"description" : " To read and normalize RSS/ATOM/JSON feed data" ,
5
5
"homepage" : " https://extractor-demos.pages.dev" ,
31
31
"dependencies" : {
32
32
"bellajs" : " ^11.1.2" ,
33
33
"cross-fetch" : " ^4.0.0" ,
34
- "fast-xml-parser" : " ^4.2.6 " ,
34
+ "fast-xml-parser" : " ^4.2.7 " ,
35
35
"html-entities" : " ^2.4.0"
36
36
},
37
37
"devDependencies" : {
38
- "eslint" : " ^8.45 .0" ,
38
+ "eslint" : " ^8.47 .0" ,
39
39
"https-proxy-agent" : " ^7.0.1" ,
40
- "jest" : " ^29.6.1 " ,
40
+ "jest" : " ^29.6.2 " ,
41
41
"nock" : " ^13.3.2"
42
42
},
43
43
"keywords" : [
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const toISODateString = (dstr) => {
22
22
}
23
23
24
24
export const buildDescription = ( val , maxlen = 0 ) => {
25
- const stripped = stripTags ( String ( val ) )
25
+ const stripped = stripTags ( String ( val ) . trim ( ) . replace ( / ^ < ! \[ C D A T A \[ | \] \] > $ / g , '' ) )
26
26
const text = maxlen > 0 ? truncate ( stripped , maxlen ) : stripped
27
27
return text . replace ( / \n + / g, ' ' )
28
28
}
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ const transform = (item, options) => {
30
30
} = item
31
31
32
32
const published = useISODateFormat ? toISODateString ( pubDate ) : pubDate
33
-
34
33
const entry = {
35
34
id : getEntryId ( guid , link , pubDate ) ,
36
35
title : getText ( title ) ,
You can’t perform that action at this time.
0 commit comments