File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1+ import fs from 'node:fs'
2+
13import { build } from 'esbuild'
2- import fs from 'fs'
34
45const { dependencies } = JSON . parse ( fs . readFileSync ( './package.json' , 'utf8' ) )
56// we need esbuild to process esm dependencies while leaving cjs compatible ones
Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ import { isArray } from 'bellajs'
77import {
88 toISODateString ,
99 buildDescription ,
10- getEntryId
10+ getEntryId ,
11+ getPureUrl
1112} from './normalizer.js'
1213
1314import { 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 }
You can’t perform that action at this time.
0 commit comments