Skip to content

Commit

Permalink
Merge pull request #78 from extractus/6.1.9
Browse files Browse the repository at this point in the history
v6.1.9
  • Loading branch information
ndaidong authored Jan 4, 2023
2 parents e9c5d67 + af1b9b0 commit 220217f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 23 deletions.
15 changes: 0 additions & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@ Collaborations and pull requests are always welcomed, though larger proposals sh
As an OSS, it's better to follow the Unix philosophy: "do one thing and do it well".


## What you can contribute?

We are planing to re-write this tool in TypeScript and make it Deno-first library.
If you are interested, please join our team.

Besides that, you can also:

- Test and report bugs
- Fix unresolved issues
- Improve performance
- Write better documentation
- Create examples or build demos
- Feedback on software design and APIs


## Third-party libraries

Please avoid using libaries other than those available in the standard library, unless necessary.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Without any options, the result should have the following structure:
published: ISO Date String,
entries: Array[
{
id: String,
title: String,
link: String,
description: String,
Expand Down
7 changes: 5 additions & 2 deletions dist/cjs/feed-extractor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@extractus/feed-extractor",
"version": "6.1.8",
"version": "6.1.9",
"main": "./feed-extractor.js"
}
7 changes: 5 additions & 2 deletions dist/feed-extractor.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @extractus/[email protected].8, by @extractus - built with esbuild at 2022-12-30T05:55:09.972Z - published under MIT license
// @extractus/[email protected].9, by @extractus - built with esbuild at 2023-01-04T04:09:49.802Z - published under MIT license
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
Expand Down Expand Up @@ -2003,6 +2003,9 @@ var getLink = (val = [], id = "") => {
if (id && isValid(id)) {
return id;
}
if (isObject(id) && hasProperty(id, "@_isPermaLink") && Boolean(id["@_isPermaLink"]) === true) {
return getText(id);
}
const getEntryLink = (links) => {
const items = links.map((item) => {
return getLink(item);
Expand Down Expand Up @@ -2133,7 +2136,7 @@ var transform2 = (item, options) => {
const entry = {
id: getEntryId(guid, link, pubDate),
title: getText(title),
link: getPureUrl(link),
link: getPureUrl(link, guid),
published,
description: buildDescription(description, descriptionMaxLen)
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.1.8",
"version": "6.1.9",
"name": "@extractus/feed-extractor",
"description": "To read and normalize RSS/ATOM/JSON feed data",
"homepage": "https://github.com/extractus/feed-extractor",
Expand Down Expand Up @@ -40,7 +40,7 @@
"html-entities": "^2.3.3"
},
"devDependencies": {
"esbuild": "^0.16.12",
"esbuild": "^0.16.13",
"jest": "^29.3.1",
"nock": "^13.2.9",
"standard": "^17.0.0"
Expand Down
3 changes: 3 additions & 0 deletions src/utils/normalizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const getLink = (val = [], id = '') => {
if (id && isValidUrl(id)) {
return id
}
if (isObject(id) && hasProperty(id, '@_isPermaLink') && Boolean(id['@_isPermaLink']) === true) {
return getText(id)
}
const getEntryLink = (links) => {
const items = links.map((item) => {
return getLink(item)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/parseRssFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const transform = (item, options) => {
const entry = {
id: getEntryId(guid, link, pubDate),
title: getText(title),
link: getPureUrl(link),
link: getPureUrl(link, guid),
published,
description: buildDescription(description, descriptionMaxLen)
}
Expand Down

0 comments on commit 220217f

Please sign in to comment.