Skip to content

Commit 20a6ff1

Browse files
authored
Merge pull request #143 from extractus/7.1.4
v7.1.4
2 parents eda9905 + bd1b336 commit 20a6ff1

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

Diff for: build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import fs from 'node:fs'
2+
13
import { build } from 'esbuild'
2-
import fs from 'fs'
34

45
const { dependencies } = JSON.parse(fs.readFileSync('./package.json', 'utf8'))
56
// we need esbuild to process esm dependencies while leaving cjs compatible ones

Diff for: package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.1.3",
2+
"version": "7.1.4",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://extractor-demos.pages.dev",
@@ -39,18 +39,18 @@
3939
"reset": "node reset"
4040
},
4141
"dependencies": {
42-
"bellajs": "^11.1.3",
43-
"cross-fetch": "^4.0.0",
44-
"fast-xml-parser": "^4.3.6",
42+
"bellajs": "^11.2.0",
43+
"cross-fetch": "^4.1.0",
44+
"fast-xml-parser": "^4.5.1",
4545
"html-entities": "^2.5.2"
4646
},
4747
"devDependencies": {
48-
"esbuild": "^0.21.0",
49-
"eslint": "^9.2.0",
50-
"globals": "^15.1.0",
51-
"https-proxy-agent": "^7.0.4",
48+
"esbuild": "^0.25.0",
49+
"eslint": "^9.20.0",
50+
"globals": "^15.14.0",
51+
"https-proxy-agent": "^7.0.6",
5252
"jest": "^29.7.0",
53-
"nock": "^13.5.4"
53+
"nock": "^14.0.1"
5454
},
5555
"keywords": [
5656
"extractor",

Diff for: src/utils/parseJsonFeed.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { isArray } from 'bellajs'
77
import {
88
toISODateString,
99
buildDescription,
10-
getEntryId
10+
getEntryId,
11+
getPureUrl
1112
} from './normalizer.js'
1213

1314
import { absolutify, purify as purifyUrl } from './linker.js'
@@ -36,7 +37,7 @@ const transform = (item, options) => {
3637
const entry = {
3738
id: getEntryId(id, link, pubDate),
3839
title,
39-
link: purifyUrl(link) || absolutify(baseUrl, link),
40+
link: getPureUrl(link, '', baseUrl),
4041
published,
4142
description: buildDescription(textContent || htmlContent || summary, descriptionMaxLen),
4243
}

0 commit comments

Comments
 (0)