Skip to content

Commit 220217f

Browse files
authored
Merge pull request #78 from extractus/6.1.9
v6.1.9
2 parents e9c5d67 + af1b9b0 commit 220217f

File tree

8 files changed

+18
-23
lines changed

8 files changed

+18
-23
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ Collaborations and pull requests are always welcomed, though larger proposals sh
77
As an OSS, it's better to follow the Unix philosophy: "do one thing and do it well".
88

99

10-
## What you can contribute?
11-
12-
We are planing to re-write this tool in TypeScript and make it Deno-first library.
13-
If you are interested, please join our team.
14-
15-
Besides that, you can also:
16-
17-
- Test and report bugs
18-
- Fix unresolved issues
19-
- Improve performance
20-
- Write better documentation
21-
- Create examples or build demos
22-
- Feedback on software design and APIs
23-
24-
2510
## Third-party libraries
2611

2712
Please avoid using libaries other than those available in the standard library, unless necessary.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Without any options, the result should have the following structure:
113113
published: ISO Date String,
114114
entries: Array[
115115
{
116+
id: String,
116117
title: String,
117118
link: String,
118119
description: String,

dist/cjs/feed-extractor.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@extractus/feed-extractor",
3-
"version": "6.1.8",
3+
"version": "6.1.9",
44
"main": "./feed-extractor.js"
55
}

dist/feed-extractor.esm.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @extractus/feed-extractor@6.1.8, by @extractus - built with esbuild at 2022-12-30T05:55:09.972Z - published under MIT license
1+
// @extractus/feed-extractor@6.1.9, by @extractus - built with esbuild at 2023-01-04T04:09:49.802Z - published under MIT license
22
var __create = Object.create;
33
var __defProp = Object.defineProperty;
44
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2003,6 +2003,9 @@ var getLink = (val = [], id = "") => {
20032003
if (id && isValid(id)) {
20042004
return id;
20052005
}
2006+
if (isObject(id) && hasProperty(id, "@_isPermaLink") && Boolean(id["@_isPermaLink"]) === true) {
2007+
return getText(id);
2008+
}
20062009
const getEntryLink = (links) => {
20072010
const items = links.map((item) => {
20082011
return getLink(item);
@@ -2133,7 +2136,7 @@ var transform2 = (item, options) => {
21332136
const entry = {
21342137
id: getEntryId(guid, link, pubDate),
21352138
title: getText(title),
2136-
link: getPureUrl(link),
2139+
link: getPureUrl(link, guid),
21372140
published,
21382141
description: buildDescription(description, descriptionMaxLen)
21392142
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.1.8",
2+
"version": "6.1.9",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://github.com/extractus/feed-extractor",
@@ -40,7 +40,7 @@
4040
"html-entities": "^2.3.3"
4141
},
4242
"devDependencies": {
43-
"esbuild": "^0.16.12",
43+
"esbuild": "^0.16.13",
4444
"jest": "^29.3.1",
4545
"nock": "^13.2.9",
4646
"standard": "^17.0.0"

src/utils/normalizer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export const getLink = (val = [], id = '') => {
3535
if (id && isValidUrl(id)) {
3636
return id
3737
}
38+
if (isObject(id) && hasProperty(id, '@_isPermaLink') && Boolean(id['@_isPermaLink']) === true) {
39+
return getText(id)
40+
}
3841
const getEntryLink = (links) => {
3942
const items = links.map((item) => {
4043
return getLink(item)

src/utils/parseRssFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const transform = (item, options) => {
3333
const entry = {
3434
id: getEntryId(guid, link, pubDate),
3535
title: getText(title),
36-
link: getPureUrl(link),
36+
link: getPureUrl(link, guid),
3737
published,
3838
description: buildDescription(description, descriptionMaxLen)
3939
}

0 commit comments

Comments
 (0)