diff --git a/deno.json b/deno.json index b57b0e2..01ca356 100644 --- a/deno.json +++ b/deno.json @@ -2,7 +2,7 @@ "imports": { "cross-fetch": "./src/deno/cross-fetch.js", "html-entities": "https://esm.sh/html-entities@2.4.0", - "fast-xml-parser": "https://esm.sh/fast-xml-parser@4.2.5", + "fast-xml-parser": "https://esm.sh/fast-xml-parser@4.3.2", "bellajs": "https://esm.sh/bellajs@11.1.2" } } diff --git a/package.json b/package.json index 0965d5a..a16826e 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "7.0.6", + "version": "7.0.7", "name": "@extractus/feed-extractor", "description": "To read and normalize RSS/ATOM/JSON feed data", "homepage": "https://extractor-demos.pages.dev", @@ -31,14 +31,14 @@ "dependencies": { "bellajs": "^11.1.2", "cross-fetch": "^4.0.0", - "fast-xml-parser": "^4.2.7", + "fast-xml-parser": "^4.3.2", "html-entities": "^2.4.0" }, "devDependencies": { - "eslint": "^8.47.0", - "https-proxy-agent": "^7.0.1", - "jest": "^29.6.3", - "nock": "^13.3.3" + "eslint": "^8.53.0", + "https-proxy-agent": "^7.0.2", + "jest": "^29.7.0", + "nock": "^13.3.8" }, "keywords": [ "extractor", diff --git a/src/utils/parseAtomFeed.js b/src/utils/parseAtomFeed.js index 96b4784..b74147d 100644 --- a/src/utils/parseAtomFeed.js +++ b/src/utils/parseAtomFeed.js @@ -40,7 +40,7 @@ const transform = (item, options) => { title: getText(title), link: getPureUrl(link, id, baseUrl), published: useISODateFormat ? toISODateString(pubDate) : pubDate, - description: buildDescription(summary || htmlContent, descriptionMaxLen), + description: buildDescription(htmlContent, descriptionMaxLen), } const extraFields = getExtraEntryFields(item) diff --git a/src/utils/parseRdfFeed.js b/src/utils/parseRdfFeed.js index 5c582b2..bc9e883 100644 --- a/src/utils/parseRdfFeed.js +++ b/src/utils/parseRdfFeed.js @@ -36,7 +36,7 @@ const transform = (item, options) => { title: getText(title), link: getPureUrl(link, guid, baseUrl), published, - description: buildDescription(description || htmlContent, descriptionMaxLen), + description: buildDescription(htmlContent, descriptionMaxLen), } const extraFields = getExtraEntryFields(item) diff --git a/src/utils/parseRssFeed.js b/src/utils/parseRssFeed.js index cbc793f..c1af753 100644 --- a/src/utils/parseRssFeed.js +++ b/src/utils/parseRssFeed.js @@ -37,7 +37,7 @@ const transform = (item, options) => { title: getText(title), link: getPureUrl(link, guid, baseUrl), published, - description: buildDescription(description || htmlContent, descriptionMaxLen), + description: buildDescription(htmlContent, descriptionMaxLen), } const extraFields = getExtraEntryFields(item)