-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix problem with some rss sources those provide only `id` instead of `link` - Update dependencies - Update docs
- Loading branch information
Showing
8 changed files
with
18 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
@@ -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); | ||
|
@@ -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) | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters