File tree 3 files changed +14
-12
lines changed
3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change
1
+ import fs from 'node:fs'
2
+
1
3
import { build } from 'esbuild'
2
- import fs from 'fs'
3
4
4
5
const { dependencies } = JSON . parse ( fs . readFileSync ( './package.json' , 'utf8' ) )
5
6
// we need esbuild to process esm dependencies while leaving cjs compatible ones
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 7.1.3 " ,
2
+ "version" : " 7.1.4 " ,
3
3
"name" : " @extractus/feed-extractor" ,
4
4
"description" : " To read and normalize RSS/ATOM/JSON feed data" ,
5
5
"homepage" : " https://extractor-demos.pages.dev" ,
39
39
"reset" : " node reset"
40
40
},
41
41
"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 " ,
45
45
"html-entities" : " ^2.5.2"
46
46
},
47
47
"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 " ,
52
52
"jest" : " ^29.7.0" ,
53
- "nock" : " ^13.5.4 "
53
+ "nock" : " ^14.0.1 "
54
54
},
55
55
"keywords" : [
56
56
" extractor" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ import { isArray } from 'bellajs'
7
7
import {
8
8
toISODateString ,
9
9
buildDescription ,
10
- getEntryId
10
+ getEntryId ,
11
+ getPureUrl
11
12
} from './normalizer.js'
12
13
13
14
import { absolutify , purify as purifyUrl } from './linker.js'
@@ -36,7 +37,7 @@ const transform = (item, options) => {
36
37
const entry = {
37
38
id : getEntryId ( id , link , pubDate ) ,
38
39
title,
39
- link : purifyUrl ( link ) || absolutify ( baseUrl , link ) ,
40
+ link : getPureUrl ( link , '' , baseUrl ) ,
40
41
published,
41
42
description : buildDescription ( textContent || htmlContent || summary , descriptionMaxLen ) ,
42
43
}
You can’t perform that action at this time.
0 commit comments