rsshub 1.0.0-master.dc19fc2 → 1.0.0-master.dc4c5c8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/api/index.ts +31 -0
- package/lib/api/namespace/all.ts +17 -0
- package/lib/api/namespace/one.ts +33 -0
- package/lib/api/radar/rules/all.ts +59 -0
- package/lib/api/radar/rules/one.ts +75 -0
- package/lib/{app.ts → app.tsx} +13 -2
- package/lib/config.test.ts +0 -6
- package/lib/config.ts +50 -12
- package/lib/errors/index.test.ts +23 -7
- package/lib/errors/index.tsx +30 -35
- package/lib/errors/types/config-not-found.ts +5 -0
- package/lib/errors/types/invalid-parameter.ts +5 -0
- package/lib/errors/types/not-found.ts +5 -0
- package/lib/errors/types/reject.ts +5 -0
- package/lib/errors/types/request-in-progress.ts +5 -0
- package/lib/index.ts +1 -1
- package/lib/middleware/access-control.ts +1 -1
- package/lib/middleware/cache.test.ts +54 -53
- package/lib/middleware/cache.ts +1 -1
- package/lib/middleware/parameter.test.ts +8 -24
- package/lib/middleware/parameter.ts +7 -8
- package/lib/middleware/{template.ts → template.tsx} +22 -11
- package/lib/registry.test.ts +2 -57
- package/lib/registry.ts +31 -43
- package/lib/router.js +12 -40
- package/lib/routes/005/index.ts +156 -0
- package/lib/routes/005/namespace.ts +8 -0
- package/lib/routes/005/templates/description.art +27 -0
- package/lib/routes/0x80/index.ts +87 -0
- package/lib/routes/0x80/namespace.ts +7 -0
- package/lib/routes/12306/index.ts +3 -2
- package/lib/routes/12306/zxdt.ts +6 -4
- package/lib/routes/12371/namespace.ts +7 -0
- package/lib/routes/12371/zxfb.ts +64 -0
- package/lib/routes/141jav/index.ts +38 -4
- package/lib/routes/141ppv/index.ts +38 -4
- package/lib/routes/163/ds.ts +6 -4
- package/lib/routes/163/dy.ts +1 -2
- package/lib/routes/163/dy2.ts +7 -11
- package/lib/routes/163/exclusive.ts +6 -4
- package/lib/routes/163/music/artist-songs.ts +1 -1
- package/lib/routes/163/music/artist.ts +1 -1
- package/lib/routes/163/music/djradio.ts +1 -1
- package/lib/routes/163/music/playlist.ts +9 -10
- package/lib/routes/163/music/userevents.ts +3 -2
- package/lib/routes/163/music/userplaylist.ts +1 -1
- package/lib/routes/163/music/userplayrecords.ts +8 -2
- package/lib/routes/163/news/rank.ts +3 -2
- package/lib/routes/163/news/special.ts +2 -1
- package/lib/routes/163/open/vip.ts +6 -4
- package/lib/routes/163/renjian.ts +5 -3
- package/lib/routes/163/today.ts +6 -4
- package/lib/routes/163/utils.ts +5 -6
- package/lib/routes/18comic/album.ts +5 -3
- package/lib/routes/18comic/blogs.ts +5 -3
- package/lib/routes/18comic/index.ts +6 -4
- package/lib/routes/18comic/search.ts +7 -5
- package/lib/routes/18comic/templates/description.art +8 -0
- package/lib/routes/18comic/utils.ts +6 -2
- package/lib/routes/19lou/index.ts +2 -1
- package/lib/routes/1lou/index.ts +118 -57
- package/lib/routes/1lou/namespace.ts +2 -0
- package/lib/routes/1point3acres/blog.ts +5 -3
- package/lib/routes/1point3acres/category.ts +5 -3
- package/lib/routes/1point3acres/offer.ts +8 -6
- package/lib/routes/1point3acres/section.ts +5 -3
- package/lib/routes/1point3acres/thread.ts +2 -1
- package/lib/routes/1point3acres/user/post.ts +5 -3
- package/lib/routes/1point3acres/user/thread.ts +5 -3
- package/lib/routes/1point3acres/utils.ts +1 -1
- package/lib/routes/1x/index.ts +121 -0
- package/lib/routes/1x/namespace.ts +8 -0
- package/lib/routes/1x/templates/description.art +17 -0
- package/lib/routes/2023game/index.ts +69 -0
- package/lib/routes/{zhangyoubao → 2023game}/namespace.ts +2 -2
- package/lib/routes/2048/index.ts +1 -1
- package/lib/routes/36kr/hot-list.ts +6 -4
- package/lib/routes/36kr/index.ts +13 -3
- package/lib/routes/3dmgame/game.ts +9 -6
- package/lib/routes/3dmgame/news-center.ts +7 -5
- package/lib/routes/3kns/index.ts +121 -0
- package/lib/routes/3kns/namespace.ts +6 -0
- package/lib/routes/3kns/templates/description.art +9 -0
- package/lib/routes/4gamers/category.ts +6 -5
- package/lib/routes/4gamers/tag.ts +5 -3
- package/lib/routes/4gamers/topic.ts +5 -3
- package/lib/routes/4gamers/utils.ts +3 -2
- package/lib/routes/4ksj/forum.ts +130 -77
- package/lib/routes/4ksj/templates/description.art +49 -46
- package/lib/routes/500px/tribe-set.ts +3 -12
- package/lib/routes/500px/utils.ts +23 -22
- package/lib/routes/50forum/zhuanjia.ts +6 -4
- package/lib/routes/51cto/namespace.ts +6 -0
- package/lib/routes/51cto/recommend.ts +52 -0
- package/lib/routes/51cto/utils.ts +21 -0
- package/lib/routes/52hrtt/symposium.ts +6 -4
- package/lib/routes/56kog/class.ts +1 -1
- package/lib/routes/56kog/top.ts +1 -1
- package/lib/routes/56kog/util.ts +1 -1
- package/lib/routes/591/list.ts +7 -6
- package/lib/routes/5eplay/index.ts +5 -3
- package/lib/routes/6park/index.ts +6 -4
- package/lib/routes/6park/news.ts +6 -4
- package/lib/routes/6v123/latest-movies.ts +5 -3
- package/lib/routes/6v123/latest-tvseries.ts +5 -3
- package/lib/routes/78dm/index.ts +1 -1
- package/lib/routes/7mmtv/index.ts +1 -1
- package/lib/routes/8264/list.ts +1 -1
- package/lib/routes/8kcos/cat.ts +6 -4
- package/lib/routes/8kcos/latest.ts +6 -4
- package/lib/routes/8kcos/tag.ts +5 -3
- package/lib/routes/91porn/author.ts +7 -5
- package/lib/routes/91porn/index.ts +7 -5
- package/lib/routes/91porn/utils.ts +2 -1
- package/lib/routes/95mm/category.ts +6 -4
- package/lib/routes/95mm/tab.ts +6 -4
- package/lib/routes/95mm/tag.ts +6 -4
- package/lib/routes/95mm/utils.ts +1 -1
- package/lib/routes/a9vg/a9vg.ts +6 -4
- package/lib/routes/aamacau/index.ts +5 -3
- package/lib/routes/abc/index.ts +20 -6
- package/lib/routes/abmedia/category.ts +6 -4
- package/lib/routes/abmedia/index.ts +5 -3
- package/lib/routes/abskoop/index.ts +7 -5
- package/lib/routes/abskoop/nsfw.ts +8 -6
- package/lib/routes/accessbriefing/index.ts +217 -0
- package/lib/routes/accessbriefing/namespace.ts +8 -0
- package/lib/routes/accessbriefing/templates/description.art +27 -0
- package/lib/routes/acfun/article.ts +4 -3
- package/lib/routes/acfun/video.ts +10 -4
- package/lib/routes/acg17/post.ts +5 -3
- package/lib/routes/acs/journal.ts +6 -4
- package/lib/routes/aeaweb/index.ts +6 -4
- package/lib/routes/aeon/category.ts +5 -4
- package/lib/routes/aeon/type.ts +5 -4
- package/lib/routes/aeon/utils.ts +5 -2
- package/lib/{routes-deprecated/afdian/dynamic.js → routes/afdian/dynamic.ts} +16 -5
- package/lib/{routes-deprecated/afdian/explore.js → routes/afdian/explore.ts} +26 -5
- package/lib/routes/afdian/namespace.ts +6 -0
- package/lib/routes/agefans/detail.ts +5 -3
- package/lib/routes/agefans/update.ts +5 -3
- package/lib/routes/agirls/index.ts +6 -4
- package/lib/routes/agirls/topic-list.ts +5 -3
- package/lib/routes/agirls/topic.ts +5 -3
- package/lib/routes/agora0/index.ts +6 -4
- package/lib/routes/agora0/pen0.ts +5 -3
- package/lib/routes/ahjzu/news.ts +5 -3
- package/lib/routes/aicaijing/index.ts +1 -1
- package/lib/routes/aiea/index.ts +14 -17
- package/lib/routes/ainvest/article.ts +5 -3
- package/lib/routes/ainvest/news.ts +5 -3
- package/lib/routes/aip/journal-pupp.ts +4 -2
- package/lib/routes/aip/journal.ts +5 -3
- package/lib/routes/aip/utils.ts +1 -1
- package/lib/routes/airchina/index.ts +7 -5
- package/lib/routes/aisixiang/thinktank.ts +2 -1
- package/lib/routes/aliresearch/information.ts +6 -4
- package/lib/routes/alistapart/index.ts +6 -4
- package/lib/routes/alistapart/topic.ts +5 -3
- package/lib/routes/aliyun/database-month.ts +5 -3
- package/lib/routes/aliyun/developer/group.ts +5 -3
- package/lib/routes/aljazeera/index.ts +1 -1
- package/lib/routes/ally/rail.ts +5 -3
- package/lib/routes/alternativeto/platform.ts +6 -4
- package/lib/routes/alternativeto/software.ts +6 -4
- package/lib/routes/amazon/kindle-software-updates.ts +1 -1
- package/lib/routes/android/platform-tools-releases.ts +5 -3
- package/lib/routes/annualreviews/index.ts +5 -3
- package/lib/routes/anquanke/vul.ts +3 -1
- package/lib/routes/apnews/topics.ts +7 -5
- package/lib/routes/app-center/release.ts +6 -4
- package/lib/routes/apple/apps.ts +13 -13
- package/lib/routes/apple/exchange-repair.ts +6 -4
- package/lib/routes/apple/podcast.ts +64 -0
- package/lib/routes/appleinsider/index.ts +6 -4
- package/lib/routes/appstore/price.ts +5 -3
- package/lib/routes/appstore/xianmian.ts +5 -3
- package/lib/routes/appstorrent/namespace.ts +6 -0
- package/lib/routes/appstorrent/programs.ts +91 -0
- package/lib/routes/appstorrent/templates/description.art +22 -0
- package/lib/routes/aqara/post.ts +1 -1
- package/lib/routes/aqicn/aqi.ts +82 -0
- package/lib/routes/aqicn/namespace.ts +6 -0
- package/lib/routes/arcteryx/new-arrivals.ts +6 -4
- package/lib/routes/arcteryx/outlet.ts +6 -4
- package/lib/routes/arcteryx/regear-new-arrivals.ts +6 -4
- package/lib/routes/arknights/japan.ts +5 -3
- package/lib/routes/arknights/news.ts +5 -3
- package/lib/routes/artstation/user.ts +6 -4
- package/lib/routes/asiantolick/index.ts +7 -5
- package/lib/routes/asus/bios.ts +6 -4
- package/lib/routes/asus/gpu-tweak.ts +5 -3
- package/lib/routes/atptour/namespace.ts +7 -0
- package/lib/routes/atptour/news.ts +52 -0
- package/lib/routes/baai/comments.ts +5 -3
- package/lib/routes/baai/events.ts +5 -3
- package/lib/routes/backlinko/blog.ts +5 -3
- package/lib/routes/baidu/gushitong/index.ts +6 -4
- package/lib/routes/baidu/search.ts +1 -1
- package/lib/routes/baidu/tieba/forum.ts +1 -1
- package/lib/routes/baidu/tieba/post.ts +6 -4
- package/lib/routes/baidu/tieba/search.ts +3 -3
- package/lib/routes/baidu/top.ts +1 -1
- package/lib/routes/bandcamp/live.ts +5 -3
- package/lib/routes/bandcamp/tag.ts +6 -4
- package/lib/routes/bandcamp/weekly.ts +6 -4
- package/lib/routes/bangumi/moe/index.ts +6 -4
- package/lib/routes/bangumi/online/online.ts +7 -5
- package/lib/routes/bangumi/tv/calendar/_base.ts +2 -1
- package/lib/routes/bangumi/tv/calendar/today.ts +6 -4
- package/lib/routes/bangumi/tv/group/reply.ts +5 -3
- package/lib/routes/bangumi/tv/group/topic.ts +5 -3
- package/lib/routes/bangumi/tv/other/followrank.ts +5 -3
- package/lib/routes/bangumi/tv/person/index.ts +5 -3
- package/lib/routes/bangumi/tv/subject/comments.ts +2 -1
- package/lib/routes/bangumi/tv/subject/ep.ts +3 -2
- package/lib/routes/bangumi/tv/subject/index.ts +9 -6
- package/lib/routes/bangumi/tv/subject/offcial-subject-api.ts +2 -1
- package/lib/routes/bangumi/tv/user/blog.ts +5 -3
- package/lib/routes/bangumi/tv/user/wish.ts +5 -3
- package/lib/routes/baozimh/index.ts +9 -5
- package/lib/routes/barronschina/index.ts +6 -4
- package/lib/routes/bbc/index.ts +17 -9
- package/lib/routes/bbcnewslabs/news.ts +5 -3
- package/lib/routes/bdys/index.ts +3 -2
- package/lib/routes/bellroy/new-releases.ts +5 -3
- package/lib/routes/bendibao/news.ts +7 -4
- package/lib/routes/bgmlist/onair.ts +1 -1
- package/lib/routes/bigquant/collections.ts +5 -3
- package/lib/routes/bilibili/api-interface.d.ts +484 -0
- package/lib/routes/bilibili/article.ts +5 -3
- package/lib/routes/bilibili/bangumi.ts +7 -2
- package/lib/routes/bilibili/cache.ts +24 -38
- package/lib/routes/bilibili/coin.ts +6 -4
- package/lib/routes/bilibili/dynamic.ts +270 -198
- package/lib/routes/bilibili/followers.ts +9 -6
- package/lib/routes/bilibili/followings-article.ts +3 -2
- package/lib/routes/bilibili/followings-dynamic.ts +3 -2
- package/lib/routes/bilibili/followings-video.ts +3 -2
- package/lib/routes/bilibili/followings.ts +11 -7
- package/lib/routes/bilibili/hot-search.ts +5 -3
- package/lib/routes/bilibili/like.ts +6 -4
- package/lib/routes/bilibili/live-room.ts +5 -3
- package/lib/routes/bilibili/manga-followings.ts +3 -2
- package/lib/routes/bilibili/manga-update.ts +5 -3
- package/lib/routes/bilibili/platform.ts +5 -3
- package/lib/routes/bilibili/ranking.ts +12 -1
- package/lib/routes/bilibili/user-bangumi.ts +6 -4
- package/lib/routes/bilibili/user-channel.ts +2 -4
- package/lib/routes/bilibili/user-collection.ts +14 -6
- package/lib/routes/bilibili/user-fav.ts +6 -4
- package/lib/routes/bilibili/utils.ts +1 -1
- package/lib/routes/bilibili/video-all.ts +2 -1
- package/lib/routes/bilibili/video.ts +7 -5
- package/lib/routes/bilibili/vsearch.ts +27 -30
- package/lib/routes/bilibili/watchlater.ts +3 -2
- package/lib/routes/binance/launchpool.ts +46 -0
- package/lib/routes/binance/namespace.ts +6 -0
- package/lib/routes/bing/daily-wallpaper.ts +15 -12
- package/lib/routes/bing/search.ts +6 -4
- package/lib/routes/biodiscover/index.ts +6 -4
- package/lib/routes/bioone/featured.ts +5 -3
- package/lib/routes/bioone/journal.ts +6 -4
- package/lib/routes/biquge/index.ts +2 -1
- package/lib/routes/bit/cs/cs.ts +5 -3
- package/lib/routes/bit/jwc/jwc.ts +5 -3
- package/lib/routes/bit/rszhaopin.ts +5 -3
- package/lib/routes/bit/yjs.ts +5 -3
- package/lib/routes/bitbucket/commits.ts +5 -3
- package/lib/routes/bitmovin/blog.ts +5 -3
- package/lib/routes/bjfu/grs.ts +5 -3
- package/lib/routes/bjfu/it/index.ts +5 -3
- package/lib/routes/bjfu/jwc/index.ts +5 -3
- package/lib/routes/bjfu/kjc.ts +5 -3
- package/lib/routes/bjfu/namespace.ts +1 -1
- package/lib/routes/bjfu/news/index.ts +5 -3
- package/lib/routes/bjp/apod.ts +5 -3
- package/lib/routes/bjsk/keti.ts +6 -4
- package/lib/routes/bjx/huanbao.ts +5 -3
- package/lib/{routes-deprecated/blogread/newest.js → routes/blogread/index.ts} +22 -7
- package/lib/routes/blogread/namespace.ts +6 -0
- package/lib/routes/bloomberg/authors.ts +6 -4
- package/lib/routes/bloomberg/index.ts +32 -3
- package/lib/routes/bloomberg/utils.ts +34 -20
- package/lib/routes/bluestacks/release.ts +8 -6
- package/lib/routes/bmkg/earthquake.ts +5 -3
- package/lib/routes/bmkg/news.ts +5 -3
- package/lib/routes/bnu/bs.ts +6 -4
- package/lib/routes/bnu/dwxgb.ts +5 -3
- package/lib/routes/bnu/jwb.ts +56 -0
- package/lib/routes/bnu/lib.ts +6 -4
- package/lib/routes/boc/whpj.ts +6 -4
- package/lib/routes/booru/mmda.ts +65 -3
- package/lib/routes/booru/templates/description.art +25 -0
- package/lib/routes/brave/latest.ts +5 -3
- package/lib/routes/brooklynmuseum/exhibitions.ts +11 -14
- package/lib/routes/bse/index.ts +5 -3
- package/lib/routes/bsky/posts.ts +12 -10
- package/lib/routes/btzj/index.ts +8 -5
- package/lib/routes/buaa/sme.ts +33 -2
- package/lib/routes/bulianglin/{bulianglin.ts → rss.ts} +8 -5
- package/lib/routes/bupt/rczp.ts +5 -3
- package/lib/routes/byau/namespace.ts +6 -0
- package/lib/routes/byau/xinwen/index.ts +72 -0
- package/lib/routes/byteclicks/index.ts +6 -4
- package/lib/routes/byteclicks/tag.ts +5 -3
- package/lib/routes/bytes/bytes.ts +6 -4
- package/lib/routes/c114/roll.ts +5 -3
- package/lib/routes/caai/utils.ts +1 -1
- package/lib/routes/caareviews/book.ts +5 -3
- package/lib/routes/caareviews/essay.ts +5 -3
- package/lib/routes/caareviews/exhibition.ts +5 -3
- package/lib/routes/caareviews/utils.ts +1 -1
- package/lib/routes/cahkms/index.ts +6 -4
- package/lib/routes/caijing/roll.ts +5 -3
- package/lib/routes/caixin/article.ts +5 -3
- package/lib/routes/caixin/blog.ts +4 -3
- package/lib/routes/caixin/category.ts +2 -1
- package/lib/routes/caixin/database.ts +6 -4
- package/lib/routes/caixin/latest.ts +8 -6
- package/lib/routes/caixin/utils.ts +1 -1
- package/lib/routes/caixin/weekly.ts +5 -3
- package/lib/routes/caixinglobal/latest.ts +5 -3
- package/lib/routes/camchina/index.ts +5 -3
- package/lib/routes/cankaoxiaoxi/index.ts +1 -1
- package/lib/routes/cartoonmad/comic.ts +6 -4
- package/lib/routes/cas/cg/index.ts +5 -3
- package/lib/routes/cas/ia/yjs.ts +5 -3
- package/lib/routes/cas/iee/kydt.ts +5 -3
- package/lib/routes/cas/mesalab/kb.ts +8 -6
- package/lib/routes/cas/sim/kyjz.ts +5 -3
- package/lib/routes/cast/index.ts +6 -4
- package/lib/routes/cau/ele.ts +5 -3
- package/lib/routes/cau/yjs.ts +6 -4
- package/lib/routes/cbaigui/index.ts +1 -1
- package/lib/routes/cbc/topics.ts +6 -4
- package/lib/routes/cbirc/index.ts +5 -3
- package/lib/routes/cbnweek/index.ts +6 -4
- package/lib/routes/ccf/ccfcv/index.ts +1 -1
- package/lib/routes/ccf/news.ts +6 -4
- package/lib/routes/ccf/tfbd/index.ts +5 -3
- package/lib/routes/ccf/tfbd/utils.ts +1 -1
- package/lib/routes/ccnu/career.ts +5 -3
- package/lib/routes/ccnu/cs.ts +5 -3
- package/lib/routes/ccnu/wu.ts +5 -3
- package/lib/routes/ccnu/yjs.ts +5 -3
- package/lib/routes/ccreports/index.ts +5 -3
- package/lib/routes/cctv/category.ts +6 -4
- package/lib/routes/cctv/jx.ts +5 -3
- package/lib/routes/cctv/lm.ts +6 -4
- package/lib/routes/cctv/utils/mzzlbg.ts +2 -1
- package/lib/routes/cctv/utils/news.ts +3 -2
- package/lib/routes/cctv/utils/xinwen1j1.ts +2 -1
- package/lib/routes/cctv/xwlb.ts +5 -3
- package/lib/routes/cde/xxgk.ts +1 -1
- package/lib/routes/cdzjryb/project-list.ts +6 -4
- package/lib/routes/cebbank/all.ts +9 -8
- package/lib/routes/cebbank/history.ts +5 -8
- package/lib/routes/cfachina/analygarden.ts +5 -3
- package/lib/routes/cgtn/podcast.ts +5 -3
- package/lib/routes/chaincatcher/home.ts +7 -5
- package/lib/routes/chaincatcher/news.ts +5 -3
- package/lib/routes/changba/user.ts +6 -4
- package/lib/routes/chaoxing/qk.ts +1 -1
- package/lib/routes/chaping/banner.ts +5 -3
- package/lib/routes/chaping/newsflash.ts +5 -3
- package/lib/routes/china/finance/finance.ts +5 -3
- package/lib/routes/china/news/highlights/news.ts +5 -3
- package/lib/routes/china/news/military/news.ts +5 -3
- package/lib/routes/chinadegrees/province.ts +36 -2
- package/lib/routes/chinafactcheck/index.ts +6 -4
- package/lib/routes/chinanews/index.ts +6 -4
- package/lib/routes/chinaventure/index.ts +6 -4
- package/lib/routes/chsi/hotnews.ts +5 -3
- package/lib/routes/chsi/kydt.ts +5 -3
- package/lib/routes/chsi/kyzx.ts +5 -3
- package/lib/routes/chuanliu/nice.ts +6 -4
- package/lib/routes/cib/whpj.ts +6 -4
- package/lib/routes/civitai/discussions.ts +5 -3
- package/lib/routes/civitai/models.ts +5 -3
- package/lib/routes/ciweimao/chapter.ts +5 -3
- package/lib/routes/cls/depth.ts +3 -2
- package/lib/routes/cls/hot.ts +6 -4
- package/lib/routes/cls/telegraph.ts +7 -5
- package/lib/routes/cma/channel.ts +1 -1
- package/lib/routes/cmpxchg8b/articles.ts +5 -3
- package/lib/routes/cn-healthcare/index.ts +5 -3
- package/lib/routes/cna/web/index.ts +1 -1
- package/lib/routes/cnbc/rss.ts +6 -4
- package/lib/routes/cnbeta/type.ts +6 -4
- package/lib/routes/cnblogs/common.ts +5 -3
- package/lib/routes/cncf/reports.ts +5 -3
- package/lib/routes/cneb/yjxw.ts +5 -3
- package/lib/routes/cneb/yjxx.ts +6 -4
- package/lib/routes/cngal/entry.ts +7 -5
- package/lib/routes/cngal/weekly.ts +6 -4
- package/lib/routes/cnjxol/index.ts +3 -2
- package/lib/routes/cnki/author.ts +4 -1
- package/lib/routes/cnki/debut.ts +6 -4
- package/lib/routes/cnki/journals.ts +5 -3
- package/lib/routes/cnki/utils.ts +1 -1
- package/lib/routes/cntheory/paper.ts +1 -1
- package/lib/routes/cntv/column.ts +6 -4
- package/lib/routes/codeforces/contests.ts +6 -4
- package/lib/routes/codeforces/recent-actions.ts +6 -4
- package/lib/routes/coindesk/index.ts +5 -3
- package/lib/routes/comicskingdom/index.ts +8 -5
- package/lib/routes/consumer/index.ts +5 -3
- package/lib/routes/cool18/index.ts +5 -3
- package/lib/routes/coolapk/dyh.ts +2 -1
- package/lib/routes/coolapk/huati.ts +2 -1
- package/lib/routes/coolapk/user-dynamic.ts +3 -2
- package/lib/routes/coomer/artist.ts +6 -4
- package/lib/routes/coomer/posts.ts +6 -4
- package/lib/routes/coomer/utils.ts +2 -1
- package/lib/routes/copymanga/comic.ts +1 -1
- package/lib/routes/cpcaauto/index.ts +255 -0
- package/lib/routes/cpcaauto/namespace.ts +8 -0
- package/lib/routes/cpuid/news.ts +5 -3
- package/lib/routes/cqgas/tqtz.ts +5 -3
- package/lib/routes/creative-comic/book.ts +7 -5
- package/lib/routes/crossbell/notes/character.ts +6 -4
- package/lib/routes/crossbell/notes/index.ts +5 -3
- package/lib/routes/crossbell/notes/source.ts +6 -4
- package/lib/routes/cs/index.ts +50 -2
- package/lib/routes/cs/namespace.ts +1 -0
- package/lib/routes/cs/video.ts +3 -1
- package/lib/routes/csdn/blog.ts +5 -3
- package/lib/routes/csu/career.ts +5 -3
- package/lib/routes/cts/news.ts +5 -3
- package/lib/routes/cuc/yz.ts +5 -3
- package/lib/routes/curiouscat/user.ts +5 -3
- package/lib/routes/curius/links.ts +6 -4
- package/lib/routes/cw/author.ts +5 -3
- package/lib/routes/cw/today.ts +5 -3
- package/lib/routes/cyzone/author.ts +5 -3
- package/lib/routes/cyzone/index.ts +6 -4
- package/lib/routes/cyzone/label.ts +5 -3
- package/lib/routes/cztv/daily.ts +6 -4
- package/lib/routes/cztv/zjxwlb.ts +6 -4
- package/lib/routes/dahecube/index.ts +3 -7
- package/lib/routes/daily/discussed.ts +6 -4
- package/lib/routes/daily/index.ts +6 -4
- package/lib/routes/daily/upvoted.ts +6 -4
- package/lib/routes/damai/activity.ts +1 -1
- package/lib/routes/dapenti/subject.ts +1 -1
- package/lib/routes/dapenti/tugua.ts +2 -2
- package/lib/routes/darwinawards/index.ts +6 -4
- package/lib/routes/dayanzai/index.ts +6 -4
- package/lib/routes/dbaplus/namespace.ts +6 -0
- package/lib/routes/dbaplus/rss.ts +48 -0
- package/lib/routes/dblp/publication.ts +5 -3
- package/lib/routes/dcfever/news.ts +14 -19
- package/lib/routes/dcfever/reviews.ts +13 -19
- package/lib/routes/dcfever/trading-search.ts +11 -22
- package/lib/routes/dcfever/trading.ts +10 -21
- package/lib/routes/dcfever/utils.ts +11 -10
- package/lib/routes/ddosi/category.ts +6 -4
- package/lib/routes/ddosi/index.ts +6 -4
- package/lib/routes/deadline/posts.ts +7 -5
- package/lib/routes/dedao/knowledge.ts +6 -4
- package/lib/routes/dedao/list.ts +5 -3
- package/lib/routes/dedao/user.ts +1 -1
- package/lib/routes/deepin/homepage.ts +41 -0
- package/lib/routes/deepin/namespace.ts +9 -0
- package/lib/routes/deeplearning/thebatch.ts +5 -3
- package/lib/routes/deepmind/blog.ts +5 -3
- package/lib/routes/dehenglaw/index.ts +128 -0
- package/lib/routes/dehenglaw/namespace.ts +8 -0
- package/lib/routes/dehenglaw/templates/description.art +7 -0
- package/lib/routes/deltaio/blog.ts +5 -3
- package/lib/routes/devolverdigital/blog.ts +5 -3
- package/lib/routes/dhu/news/xsxx.ts +5 -3
- package/lib/routes/diandong/news.ts +6 -4
- package/lib/routes/diershoubing/news.ts +6 -4
- package/lib/routes/discord/channel.ts +8 -5
- package/lib/routes/discourse/notifications.ts +4 -4
- package/lib/routes/discourse/utils.ts +2 -1
- package/lib/routes/discuz/discuz.ts +4 -2
- package/lib/routes/disinfo/publications.ts +5 -3
- package/lib/routes/diskanalyzer/whats-new.ts +5 -3
- package/lib/routes/distill/index.ts +6 -4
- package/lib/routes/dlnews/category.ts +7 -5
- package/lib/routes/dlsite/campaign.ts +2 -1
- package/lib/routes/dlsite/ci-en/article.ts +5 -3
- package/lib/routes/dlsite/index.ts +1 -1
- package/lib/routes/dlsite/new.ts +2 -1
- package/lib/routes/dlsite/utils.ts +1 -1
- package/lib/routes/dmzj/news.ts +6 -4
- package/lib/routes/dn/news.ts +1 -1
- package/lib/routes/dnaindia/category.ts +6 -4
- package/lib/routes/docschina/weekly.ts +37 -19
- package/lib/routes/dol/announce.ts +3 -5
- package/lib/routes/domp4/detail.ts +5 -3
- package/lib/routes/domp4/latest.ts +5 -3
- package/lib/routes/domp4/utils.ts +2 -1
- package/lib/routes/dongqiudi/daily.ts +5 -12
- package/lib/routes/dongqiudi/player-news.ts +6 -8
- package/lib/routes/dongqiudi/result.ts +6 -8
- package/lib/routes/dongqiudi/special.ts +5 -11
- package/lib/routes/dongqiudi/team-news.ts +7 -9
- package/lib/routes/dongqiudi/top-news.ts +6 -4
- package/lib/routes/dora-world/article.ts +87 -0
- package/lib/routes/dora-world/namespace.ts +6 -0
- package/lib/routes/dorohedoro/news.ts +5 -3
- package/lib/routes/douban/book/latest.ts +65 -0
- package/lib/routes/douban/other/discussion.ts +5 -3
- package/lib/routes/douban/other/doulist.ts +1 -1
- package/lib/routes/douban/other/explore.ts +1 -1
- package/lib/routes/douban/other/group.ts +6 -4
- package/lib/routes/douban/other/latest-music.ts +1 -1
- package/lib/routes/douban/other/list.ts +7 -5
- package/lib/routes/douban/other/recommended.ts +1 -1
- package/lib/routes/douban/other/weekly-best.ts +1 -1
- package/lib/routes/douyin/hashtag.ts +8 -5
- package/lib/routes/douyin/live.ts +7 -4
- package/lib/routes/douyin/user.ts +8 -5
- package/lib/routes/douyin/utils.ts +1 -1
- package/lib/routes/douyu/group.ts +7 -5
- package/lib/routes/douyu/post.ts +6 -4
- package/lib/routes/douyu/room.ts +5 -3
- package/lib/routes/dribbble/keyword.ts +1 -1
- package/lib/routes/dribbble/popular.ts +7 -5
- package/lib/routes/dribbble/user.ts +6 -4
- package/lib/routes/dribbble/utils.ts +1 -1
- package/lib/routes/dtcj/datainsight.ts +6 -4
- package/lib/routes/duozhuayu/search.ts +6 -4
- package/lib/routes/dushu/fuzhou/index.ts +6 -4
- package/lib/routes/dut/index.ts +2 -1
- package/lib/routes/dxy/profile/thread.ts +5 -3
- package/lib/routes/e-hentai/index.ts +1 -1
- package/lib/routes/eagle/blog.ts +8 -5
- package/lib/routes/earthquake/ceic.ts +6 -4
- package/lib/routes/earthquake/index.ts +6 -4
- package/lib/routes/eastday/24.ts +6 -4
- package/lib/routes/eastday/portrait.ts +5 -3
- package/lib/routes/eastday/sh.ts +5 -3
- package/lib/routes/eastmoney/report/index.ts +5 -3
- package/lib/routes/ecnu/contest.ts +7 -5
- package/lib/routes/ecnu/yjs.ts +5 -3
- package/lib/routes/economist/espresso.ts +5 -3
- package/lib/routes/economist/full.ts +5 -3
- package/lib/routes/economist/global-business-review.ts +6 -4
- package/lib/routes/ecust/e/news.ts +5 -3
- package/lib/routes/ecust/gschool/yjs.ts +5 -3
- package/lib/routes/egsea/flash.ts +5 -3
- package/lib/routes/ehentai/ehapi.ts +1 -1
- package/lib/routes/ehentai/favorites.ts +13 -15
- package/lib/routes/ehentai/search.ts +11 -14
- package/lib/routes/ehentai/tag.ts +11 -14
- package/lib/routes/ekantipur/issue.ts +6 -4
- package/lib/routes/elasticsearch-cn/index.ts +6 -4
- package/lib/routes/eleduck/jobs.ts +5 -3
- package/lib/routes/elsevier/issue.ts +7 -5
- package/lib/routes/elsevier/journal.ts +7 -5
- package/lib/routes/epicgames/index.ts +7 -5
- package/lib/routes/eprice/rss.ts +6 -11
- package/lib/routes/esquirehk/namespace.ts +6 -0
- package/lib/routes/esquirehk/tag.ts +104 -0
- package/lib/routes/esquirehk/templates/subpages.art +30 -0
- package/lib/routes/europechinese/latest.ts +66 -0
- package/lib/routes/europechinese/namespace.ts +6 -0
- package/lib/routes/eventernote/actors.ts +5 -3
- package/lib/routes/f-droid/apprelease.ts +5 -3
- package/lib/routes/fansly/post.ts +5 -3
- package/lib/routes/fansly/tag.ts +5 -3
- package/lib/routes/fansly/utils.ts +3 -2
- package/lib/routes/fantia/user.ts +5 -3
- package/lib/routes/fanxinzhui/index.ts +127 -0
- package/lib/routes/fanxinzhui/namespace.ts +6 -0
- package/lib/routes/fanxinzhui/templates/description.art +13 -0
- package/lib/routes/farmatters/index.ts +7 -5
- package/lib/routes/fastbull/express-news.ts +5 -3
- package/lib/routes/fastbull/news.ts +6 -4
- package/lib/routes/fda/cdrh.ts +6 -4
- package/lib/routes/feng/forum.ts +7 -5
- package/lib/routes/ff14/ff14-global.ts +3 -2
- package/lib/routes/ff14/ff14-zh.ts +7 -5
- package/lib/routes/fffdm/manhua/manhua.ts +7 -5
- package/lib/routes/finology/bullets.ts +5 -3
- package/lib/routes/finology/most-viewed.ts +6 -4
- package/lib/routes/finology/tag.ts +6 -4
- package/lib/routes/finviz/news.ts +7 -4
- package/lib/routes/firefox/addons.ts +6 -4
- package/lib/routes/firefox/breaches.ts +5 -3
- package/lib/routes/fisher-spb/news.ts +6 -4
- package/lib/routes/fishshell/index.ts +6 -4
- package/lib/routes/fjksbm/index.ts +5 -3
- package/lib/routes/flyert/creditcard.ts +5 -3
- package/lib/routes/flyert/preferential.ts +5 -3
- package/lib/routes/focustaiwan/index.ts +1 -1
- package/lib/routes/followin/kol.ts +5 -3
- package/lib/routes/followin/news.ts +5 -3
- package/lib/routes/followin/tag.ts +5 -3
- package/lib/routes/followin/topic.ts +5 -3
- package/lib/routes/followin/utils.ts +1 -1
- package/lib/routes/foresightnews/article.ts +5 -3
- package/lib/routes/foresightnews/column.ts +5 -3
- package/lib/routes/foresightnews/index.ts +6 -4
- package/lib/routes/foresightnews/news.ts +5 -3
- package/lib/routes/foresightnews/util.ts +1 -1
- package/lib/routes/foreverblog/feeds.ts +5 -3
- package/lib/routes/fortunechina/index.ts +5 -3
- package/lib/routes/fosshub/index.ts +1 -1
- package/lib/routes/free/rss.ts +8 -5
- package/lib/routes/freebuf/index.ts +5 -3
- package/lib/routes/freecomputerbooks/index.ts +24 -8
- package/lib/routes/freewechat/profile.ts +7 -5
- package/lib/routes/freexcomic/book.ts +84 -0
- package/lib/routes/freexcomic/namespace.ts +7 -0
- package/lib/routes/ft/channel.ts +5 -8
- package/lib/routes/fuliba/latest.ts +5 -3
- package/lib/routes/furstar/archive.ts +6 -4
- package/lib/routes/furstar/artists.ts +6 -4
- package/lib/routes/furstar/index.ts +6 -4
- package/lib/routes/furstar/utils.ts +1 -1
- package/lib/routes/futunn/main.ts +1 -1
- package/lib/routes/fx678/kx.ts +5 -3
- package/lib/routes/gameapps/index.ts +7 -5
- package/lib/routes/gamegene/news.ts +5 -3
- package/lib/routes/gamer/ani/new-anime.ts +6 -4
- package/lib/routes/gamer/gnn-index.ts +7 -6
- package/lib/routes/gamer/hot.ts +3 -6
- package/lib/routes/gamer520/index.ts +85 -0
- package/lib/routes/gamer520/namespace.ts +6 -0
- package/lib/routes/gamersecret/index.ts +5 -3
- package/lib/routes/gamme/category.ts +2 -1
- package/lib/routes/gamme/tag.ts +2 -1
- package/lib/routes/gcores/category.ts +12 -6
- package/lib/routes/gcores/collection.ts +5 -3
- package/lib/routes/gcores/radio.ts +7 -5
- package/lib/routes/gcores/tag.ts +8 -5
- package/lib/routes/gdut/oa-news.ts +6 -4
- package/lib/routes/gelonghui/hot-article.ts +6 -4
- package/lib/routes/gelonghui/live.ts +6 -4
- package/lib/routes/gelonghui/subject.ts +5 -3
- package/lib/routes/gelonghui/user.ts +5 -3
- package/lib/routes/geocaching/blogs.ts +5 -3
- package/lib/routes/getdr/index.ts +6 -4
- package/lib/routes/gettr/user.ts +6 -4
- package/lib/routes/gf-cn/news.ts +5 -3
- package/lib/routes/gihyo/group.ts +5 -3
- package/lib/routes/gitee/repos/commits.ts +5 -3
- package/lib/routes/gitee/repos/events.ts +5 -3
- package/lib/routes/gitee/repos/releases.ts +5 -3
- package/lib/routes/gitee/users/events.ts +5 -3
- package/lib/routes/github/branches.ts +5 -3
- package/lib/routes/github/comments.ts +38 -30
- package/lib/routes/github/contributors.ts +6 -4
- package/lib/routes/github/file.ts +14 -5
- package/lib/routes/github/follower.ts +7 -4
- package/lib/routes/github/gist.ts +5 -3
- package/lib/routes/github/issue.ts +6 -12
- package/lib/routes/github/notifications.ts +13 -10
- package/lib/routes/github/pulls.ts +6 -4
- package/lib/routes/github/pulse.ts +6 -4
- package/lib/routes/github/repos.ts +5 -3
- package/lib/routes/github/star.ts +13 -10
- package/lib/routes/github/starred-repos.ts +31 -54
- package/lib/routes/github/topic.ts +5 -3
- package/lib/routes/github/trending.ts +9 -6
- package/lib/routes/github/wiki.ts +6 -4
- package/lib/routes/gitpod/blog.ts +9 -12
- package/lib/routes/gitpod/changelog.ts +5 -3
- package/lib/routes/globallawreview/index.ts +6 -4
- package/lib/routes/gocn/jobs.ts +5 -3
- package/lib/routes/gocn/topics.ts +5 -3
- package/lib/routes/gofans/index.ts +1 -1
- package/lib/routes/gogoanimehd/recent-releases.ts +5 -3
- package/lib/routes/google/extension.ts +5 -3
- package/lib/routes/google/fonts.ts +4 -3
- package/lib/routes/google/news.ts +1 -1
- package/lib/routes/google/search.ts +1 -1
- package/lib/routes/gov/beijing/bjedu/gh.ts +6 -4
- package/lib/routes/gov/beijing/jw/tzgg.ts +5 -3
- package/lib/routes/gov/caac/cjwt.ts +7 -5
- package/lib/routes/gov/chinatax/latest.ts +6 -4
- package/lib/routes/gov/chongqing/gzw.ts +15 -2
- package/lib/routes/gov/chongqing/rsks.ts +6 -13
- package/lib/routes/gov/chongqing/sydwgkzp.ts +26 -26
- package/lib/routes/gov/cmse/fxrw.ts +6 -4
- package/lib/routes/gov/csrc/news.ts +1 -1
- package/lib/routes/gov/customs/list.ts +6 -4
- package/lib/routes/gov/forestry/gjlckjdjt.ts +1 -1
- package/lib/routes/gov/guangdong/tqyb/sncsyjxh.ts +6 -4
- package/lib/routes/gov/guangdong/tqyb/tfxtq.ts +6 -4
- package/lib/routes/gov/hunan/changsha/major-email.ts +5 -3
- package/lib/routes/gov/jiangsu/wlt/index.ts +99 -0
- package/lib/routes/gov/jiangsu/wlt/templates/wlt.art +9 -0
- package/lib/routes/gov/jinan/healthcommission/medical-exam-notice.ts +5 -3
- package/lib/routes/gov/mee/ywdt.ts +6 -4
- package/lib/routes/gov/mem/sgcc.ts +6 -4
- package/lib/routes/gov/miit/wjfb.ts +5 -3
- package/lib/routes/gov/miit/yjzj.ts +5 -3
- package/lib/routes/gov/moa/moa.ts +142 -68
- package/lib/routes/gov/moe/s78.ts +5 -3
- package/lib/routes/gov/moj/lfyjzj.ts +5 -3
- package/lib/routes/gov/mot/index.ts +3 -3
- package/lib/routes/gov/nea/ghs.ts +5 -3
- package/lib/routes/gov/npc/index.ts +5 -3
- package/lib/routes/gov/pbc/goutongjiaoliu.ts +5 -3
- package/lib/routes/gov/pbc/gzlw.ts +5 -3
- package/lib/routes/gov/pbc/zcyj.ts +5 -3
- package/lib/routes/gov/safe/business.ts +1 -1
- package/lib/routes/gov/safe/complaint.ts +1 -1
- package/lib/routes/gov/safe/util.ts +1 -1
- package/lib/routes/gov/samr/xgzlyhd.ts +6 -4
- package/lib/routes/gov/shanghai/rsj/ksxm.ts +6 -4
- package/lib/routes/gov/shanghai/wgj/wgj.ts +7 -5
- package/lib/routes/gov/shanghai/wsjkw/yqtb/index.ts +5 -3
- package/lib/routes/gov/shenzhen/hrss/szksy/index.ts +5 -3
- package/lib/routes/gov/shenzhen/xxgk/zfxxgj.ts +2 -1
- package/lib/routes/gov/shenzhen/zjj/index.ts +7 -4
- package/lib/routes/gov/shenzhen/zzb/index.ts +5 -3
- package/lib/routes/gov/sichuan/deyang/govpublicinfo.ts +1 -1
- package/lib/routes/gov/sichuan/deyang/mztoday.ts +7 -5
- package/lib/routes/gov/stats/index.ts +44 -25
- package/lib/routes/gov/suzhou/doc.ts +5 -3
- package/lib/routes/gov/suzhou/news.ts +7 -4
- package/lib/routes/gov/taiyuan/rsj.ts +5 -3
- package/lib/routes/gov/wuhan/whyw.ts +5 -3
- package/lib/routes/gov/zhejiang/gwy.ts +6 -4
- package/lib/routes/gov/zhengce/govall.ts +6 -4
- package/lib/routes/gov/zhengce/index.ts +5 -3
- package/lib/routes/gov/zhengce/wenjian.ts +6 -4
- package/lib/routes/gov/zhengce/zhengceku.ts +15 -18
- package/lib/routes/greasyfork/feedback.ts +5 -3
- package/lib/routes/greasyfork/scripts.ts +5 -3
- package/lib/routes/greasyfork/versions.ts +5 -3
- package/lib/routes/grist/featured.ts +5 -3
- package/lib/routes/grist/index.ts +5 -3
- package/lib/routes/grist/series.ts +5 -3
- package/lib/routes/grist/topic.ts +5 -3
- package/lib/routes/grubstreet/index.ts +7 -5
- package/lib/routes/guancha/headline.ts +5 -3
- package/lib/routes/guancha/index.ts +5 -3
- package/lib/routes/guancha/member.ts +6 -4
- package/lib/routes/guancha/topic.ts +6 -4
- package/lib/routes/guangdiu/rank.ts +5 -3
- package/lib/routes/guanhai/index.ts +6 -4
- package/lib/routes/guduodata/daily.ts +6 -4
- package/lib/routes/gumroad/index.ts +3 -2
- package/lib/routes/guokr/channel.ts +26 -41
- package/lib/routes/guokr/scientific.ts +16 -32
- package/lib/routes/guokr/utils.ts +37 -0
- package/lib/routes/gxmzu/ai.ts +6 -4
- package/lib/routes/gxmzu/lib.ts +14 -29
- package/lib/routes/gxmzu/utils/index.ts +31 -13
- package/lib/routes/gxmzu/yjs.ts +6 -4
- package/lib/routes/gzdaily/app.ts +1 -1
- package/lib/routes/gzhu/yjs.ts +5 -3
- package/lib/routes/hackernews/index.ts +5 -3
- package/lib/routes/hackertalk/index.ts +6 -4
- package/lib/routes/hacking8/index.ts +5 -3
- package/lib/routes/hacking8/search.ts +6 -4
- package/lib/routes/hackyournews/index.ts +6 -4
- package/lib/routes/hafu/utils.ts +3 -2
- package/lib/routes/hakkatv/type.ts +6 -4
- package/lib/routes/hameln/chapter.ts +5 -3
- package/lib/routes/harvard/health/blog.ts +5 -3
- package/lib/routes/hashnode/blog.ts +6 -4
- package/lib/routes/hbooker/chapter.ts +5 -3
- package/lib/routes/hbr/topic.ts +5 -3
- package/lib/routes/hdu/cs/notice.ts +5 -3
- package/lib/routes/hdu/cs/pg.ts +5 -3
- package/lib/routes/hebtv/nong-bo-shi-zai-xing-dong.ts +6 -4
- package/lib/routes/hellobtc/news.ts +5 -3
- package/lib/routes/hellogithub/index.ts +1 -1
- package/lib/routes/hellogithub/report.ts +1 -1
- package/lib/routes/hellogithub/volume.ts +1 -1
- package/lib/routes/hex-rays/index.ts +5 -3
- package/lib/routes/hicairo/rss.ts +8 -5
- package/lib/routes/hinatazaka46/news.ts +5 -3
- package/lib/routes/hit/hitgs.ts +5 -3
- package/lib/routes/hit/jwc.ts +5 -3
- package/lib/routes/hit/namespace.ts +1 -1
- package/lib/routes/hit/today.ts +5 -3
- package/lib/routes/hitcon/namespace.ts +6 -0
- package/lib/routes/hitcon/templates/zeroday.art +8 -0
- package/lib/routes/hitcon/zeroday.ts +109 -0
- package/lib/routes/hitwh/today.ts +5 -3
- package/lib/routes/hizu/index.ts +5 -3
- package/lib/routes/hk01/channel.ts +5 -3
- package/lib/routes/hk01/hot.ts +5 -3
- package/lib/routes/hk01/issue.ts +5 -3
- package/lib/routes/hk01/latest.ts +5 -3
- package/lib/routes/hk01/tag.ts +5 -3
- package/lib/routes/hk01/utils.ts +1 -1
- package/lib/routes/hk01/zone.ts +5 -3
- package/lib/routes/hkej/index.ts +9 -10
- package/lib/routes/hkepc/index.ts +6 -4
- package/lib/routes/hket/index.ts +10 -13
- package/lib/routes/hkjunkcall/index.ts +6 -4
- package/lib/routes/hnrb/index.ts +6 -4
- package/lib/routes/hnu/careers.ts +5 -3
- package/lib/routes/hongkong/chp.ts +5 -3
- package/lib/routes/hongkong/dh.ts +5 -3
- package/lib/routes/hostmonit/cloudflareyes.ts +1 -1
- package/lib/routes/hotukdeals/hottest.ts +5 -3
- package/lib/routes/houxu/events.ts +6 -4
- package/lib/routes/houxu/index.ts +7 -5
- package/lib/routes/houxu/lives.ts +5 -3
- package/lib/routes/houxu/memory.ts +6 -4
- package/lib/routes/howtoforge/rss.ts +8 -5
- package/lib/routes/hoyolab/news.ts +6 -6
- package/lib/routes/hpoi/all.ts +7 -5
- package/lib/routes/hpoi/banner-item.ts +5 -3
- package/lib/routes/hpoi/character.ts +1 -1
- package/lib/routes/hpoi/work.ts +1 -1
- package/lib/routes/hrbeu/job/bigemploy.ts +6 -4
- package/lib/routes/hrbeu/job/calendar.ts +5 -3
- package/lib/routes/hrbeu/job/list.ts +4 -1
- package/lib/routes/hrbeu/uae/news.ts +5 -3
- package/lib/routes/hrbeu/ugs/news.ts +6 -4
- package/lib/routes/hrbeu/yjsy/list.ts +5 -3
- package/lib/routes/hrbust/utils.ts +1 -1
- package/lib/routes/huanqiu/index.ts +13 -9
- package/lib/routes/hubu/index.ts +124 -0
- package/lib/routes/hubu/namespace.ts +8 -0
- package/lib/routes/hubu/zhxy.ts +228 -0
- package/lib/routes/huggingface/blog-zh.ts +5 -3
- package/lib/routes/huggingface/daily-papers.ts +5 -3
- package/lib/routes/hunanpea/rsks.ts +5 -3
- package/lib/routes/hunau/gfxy/index.ts +6 -4
- package/lib/routes/hunau/ied.ts +6 -4
- package/lib/routes/hunau/jwc.ts +6 -4
- package/lib/routes/hunau/xky/index.ts +6 -4
- package/lib/routes/hupu/all.ts +7 -5
- package/lib/routes/hupu/bbs.ts +7 -5
- package/lib/routes/hupu/index.ts +6 -4
- package/lib/routes/hust/aia/news.ts +5 -3
- package/lib/routes/hust/yjs.ts +5 -3
- package/lib/routes/huxiu/channel.ts +5 -3
- package/lib/routes/huxiu/moment.ts +5 -3
- package/lib/routes/huxiu/search.ts +5 -3
- package/lib/routes/huxiu/util.ts +1 -1
- package/lib/routes/ianspriggs/index.ts +1 -1
- package/lib/routes/icac/news.ts +6 -4
- package/lib/routes/icbc/whpj.ts +6 -4
- package/lib/routes/idaily/index.ts +13 -4
- package/lib/routes/idolypride/news.ts +5 -3
- package/lib/routes/ieee/earlyaccess.ts +1 -1
- package/lib/routes/ieee/journal.ts +1 -1
- package/lib/routes/ieee/recent.ts +1 -1
- package/lib/routes/ieee-security/sp.ts +5 -3
- package/lib/routes/ielts/index.ts +6 -4
- package/lib/routes/ifeng/news.ts +1 -1
- package/lib/routes/ifeng/utils.ts +1 -1
- package/lib/routes/iiilab/index.ts +25 -26
- package/lib/routes/ikea/cn/family-offers.ts +5 -3
- package/lib/routes/ikea/cn/low-price.ts +5 -3
- package/lib/routes/ikea/cn/new.ts +5 -3
- package/lib/routes/ikea/cn/utils.ts +1 -1
- package/lib/routes/ikea/gb/new.ts +6 -4
- package/lib/routes/ikea/gb/offer.ts +6 -4
- package/lib/routes/imagemagick/changelog.ts +5 -3
- package/lib/routes/imiker/jinghua.ts +6 -4
- package/lib/routes/indiansinkuwait/latest.ts +5 -3
- package/lib/routes/indienova/article.ts +1 -1
- package/lib/routes/indienova/column.ts +5 -3
- package/lib/routes/indienova/usergames.ts +5 -3
- package/lib/routes/inewsweek/index.ts +5 -3
- package/lib/routes/infoq/recommend.ts +5 -3
- package/lib/routes/infoq/topic.ts +5 -3
- package/lib/routes/informs/index.ts +1 -1
- package/lib/routes/infzm/index.ts +75 -0
- package/lib/routes/infzm/types.ts +17 -0
- package/lib/routes/instagram/common-utils.ts +1 -1
- package/lib/routes/instagram/private-api/index.ts +3 -2
- package/lib/routes/instagram/private-api/utils.ts +2 -1
- package/lib/routes/instagram/web-api/index.ts +5 -3
- package/lib/routes/instagram/web-api/utils.ts +5 -4
- package/lib/routes/instructables/projects.ts +6 -4
- package/lib/routes/ippa/namespace.ts +6 -0
- package/lib/routes/ippa/rss.ts +35 -0
- package/lib/routes/ipsw/index.ts +109 -0
- package/lib/routes/ipsw/namespace.ts +6 -0
- package/lib/routes/iqilu/program.ts +1 -1
- package/lib/routes/iqiyi/album.ts +3 -2
- package/lib/routes/iqiyi/video.ts +6 -4
- package/lib/routes/iqnew/latest.ts +5 -3
- package/lib/routes/iresearch/report.ts +6 -4
- package/lib/routes/iresearch/weekly.ts +1 -1
- package/lib/routes/itc/collection.ts +66 -0
- package/lib/routes/itc/namespace.ts +6 -0
- package/lib/routes/itch/devlog.ts +3 -2
- package/lib/routes/itch/index.ts +1 -1
- package/lib/routes/itch/posts.ts +5 -3
- package/lib/routes/ithome/index.ts +2 -1
- package/lib/routes/ithome/ranking.ts +2 -1
- package/lib/routes/ithome/tag.ts +5 -3
- package/lib/routes/ithome/tw/feeds.ts +5 -3
- package/lib/routes/ithome/zt.ts +5 -3
- package/lib/routes/iwara/subscriptions.ts +9 -6
- package/lib/routes/ixigua/user-video.ts +7 -5
- package/lib/routes/jandan/index.ts +6 -0
- package/lib/routes/jandan/section.ts +4 -1
- package/lib/routes/japanpost/track.ts +1 -1
- package/lib/routes/javbus/index.ts +9 -6
- package/lib/routes/javbus/namespace.ts +1 -1
- package/lib/routes/javdb/actors.ts +14 -7
- package/lib/routes/javdb/index.ts +7 -5
- package/lib/routes/javdb/lists.ts +7 -5
- package/lib/routes/javdb/makers.ts +14 -6
- package/lib/routes/javdb/rankings.ts +14 -6
- package/lib/routes/javdb/search.ts +14 -6
- package/lib/routes/javdb/series.ts +14 -6
- package/lib/routes/javdb/tags.ts +14 -6
- package/lib/routes/javdb/utils.ts +18 -1
- package/lib/routes/javlibrary/bestrated.ts +1 -1
- package/lib/routes/javlibrary/bestreviews.ts +1 -1
- package/lib/routes/javlibrary/genre.ts +1 -1
- package/lib/routes/javlibrary/maker.ts +1 -1
- package/lib/routes/javlibrary/mostwanted.ts +1 -1
- package/lib/routes/javlibrary/newentries.ts +1 -1
- package/lib/routes/javlibrary/newrelease.ts +1 -1
- package/lib/routes/javlibrary/star.ts +1 -1
- package/lib/routes/javlibrary/update.ts +1 -1
- package/lib/routes/javlibrary/user.ts +1 -1
- package/lib/routes/javlibrary/utils.ts +1 -1
- package/lib/routes/jd/price.ts +1 -1
- package/lib/routes/jewishmuseum/exhibitions.ts +11 -14
- package/lib/routes/jianshu/collection.ts +5 -3
- package/lib/routes/jianshu/home.ts +5 -3
- package/lib/routes/jianshu/user.ts +5 -3
- package/lib/routes/jiaoliudao/index.ts +6 -4
- package/lib/routes/jiemian/lists.ts +1 -1
- package/lib/routes/jike/topic-text.ts +7 -5
- package/lib/routes/jike/topic.ts +8 -6
- package/lib/routes/jike/user.ts +6 -4
- package/lib/routes/jike/utils.ts +1 -1
- package/lib/routes/jin10/index.ts +7 -5
- package/lib/routes/jin10/topic.ts +5 -3
- package/lib/routes/jinse/catalogue.ts +1 -1
- package/lib/routes/jinse/lives.ts +1 -1
- package/lib/routes/jinse/timeline.ts +1 -1
- package/lib/routes/jisilu/index.ts +5 -3
- package/lib/routes/jjwxc/author.ts +1 -1
- package/lib/routes/jjwxc/book.ts +1 -1
- package/lib/routes/jou/home.ts +5 -3
- package/lib/routes/jou/utils/index.ts +35 -25
- package/lib/routes/jou/yz.ts +5 -3
- package/lib/routes/jpxgmn/namespace.ts +6 -0
- package/lib/routes/jpxgmn/search.ts +45 -0
- package/lib/routes/jpxgmn/tab.ts +57 -0
- package/lib/routes/jpxgmn/templates/description.art +3 -0
- package/lib/routes/jpxgmn/utils.ts +36 -0
- package/lib/routes/jpxgmn/weekly.ts +54 -0
- package/lib/routes/jseea/news.ts +6 -4
- package/lib/routes/juejin/books.ts +5 -3
- package/lib/routes/juejin/collection.ts +5 -3
- package/lib/routes/juejin/column.ts +5 -3
- package/lib/routes/juejin/favorites.ts +6 -4
- package/lib/routes/juejin/posts.ts +5 -3
- package/lib/routes/juejin/tag.ts +5 -3
- package/lib/routes/jump/discount.ts +1 -1
- package/lib/routes/junhe/legal-updates.ts +98 -0
- package/lib/routes/junhe/namespace.ts +8 -0
- package/lib/routes/kamen-rider-official/news.ts +1 -1
- package/lib/routes/kantarworldpanel/index.ts +1 -1
- package/lib/routes/kanxue/namespace.ts +6 -0
- package/lib/routes/kanxue/topic.ts +153 -0
- package/lib/routes/kaopu/namespace.ts +6 -0
- package/lib/routes/kaopu/news.ts +51 -0
- package/lib/routes/kbs/news.ts +6 -4
- package/lib/routes/kbs/today.ts +6 -4
- package/lib/routes/kcna/news.ts +7 -5
- package/lib/routes/ke/results.ts +5 -3
- package/lib/routes/keep/user.ts +6 -4
- package/lib/routes/kemono/index.ts +79 -74
- package/lib/routes/kemono/templates/source.art +24 -0
- package/lib/routes/kepu/live.ts +6 -4
- package/lib/routes/kimlaw/thesis.ts +5 -3
- package/lib/routes/konghq/blog-posts.ts +5 -3
- package/lib/routes/kuaidi100/supported-company.ts +5 -3
- package/lib/routes/kunchengblog/essay.ts +5 -3
- package/lib/routes/kuwaitlocal/index.ts +6 -4
- package/lib/routes/kyodonews/index.ts +5 -3
- package/lib/routes/laimanhua/index.ts +5 -3
- package/lib/routes/lala/rss.ts +8 -5
- package/lib/routes/lang/room.ts +7 -5
- package/lib/routes/lanqiao/author.ts +5 -3
- package/lib/routes/lanqiao/questions.ts +5 -3
- package/lib/routes/lanqiao/utils.ts +1 -1
- package/lib/routes/laohu8/personal.ts +5 -3
- package/lib/routes/layoffs/index.ts +6 -4
- package/lib/routes/learnku/topic.ts +7 -5
- package/lib/routes/leetcode/articles.ts +5 -3
- package/lib/routes/leetcode/dailyquestion-cn.ts +6 -4
- package/lib/routes/leetcode/dailyquestion-en.ts +6 -4
- package/lib/routes/leetcode/dailyquestion-solution-cn.ts +5 -3
- package/lib/routes/leetcode/dailyquestion-solution-en.ts +6 -4
- package/lib/routes/leiphone/index.ts +6 -4
- package/lib/routes/leiphone/newsflash.ts +5 -3
- package/lib/routes/lemmy/index.ts +4 -2
- package/lib/routes/lfsyd/home.ts +5 -3
- package/lib/routes/lfsyd/old-home.ts +5 -3
- package/lib/routes/lfsyd/tag.ts +6 -4
- package/lib/routes/lfsyd/user.ts +6 -4
- package/lib/routes/lfsyd/utils.ts +1 -1
- package/lib/routes/lifeweek/channel.ts +6 -4
- package/lib/routes/lifeweek/tag.ts +6 -4
- package/lib/routes/lightnovel/light-novel.ts +6 -4
- package/lib/routes/line/publisher.ts +18 -26
- package/lib/routes/line/today.ts +6 -13
- package/lib/routes/line/utils.ts +4 -3
- package/lib/routes/linkedin/cn/utils.ts +1 -1
- package/lib/routes/linovelib/namespace.ts +1 -1
- package/lib/routes/linovelib/volume.ts +36 -0
- package/lib/routes/liquipedia/cs-matches.ts +6 -4
- package/lib/routes/liquipedia/dota2-matches.ts +5 -3
- package/lib/routes/literotica/category.ts +5 -3
- package/lib/routes/literotica/new.ts +5 -3
- package/lib/routes/liveuamap/index.ts +8 -5
- package/lib/routes/lkong/forum.ts +6 -4
- package/lib/routes/lkong/thread.ts +6 -4
- package/lib/routes/lofter/tag.ts +3 -3
- package/lib/routes/lofter/user.ts +5 -4
- package/lib/routes/logclub/index.ts +1 -1
- package/lib/routes/logclub/report.ts +1 -1
- package/lib/routes/logonews/index.ts +6 -4
- package/lib/routes/loltw/news.ts +1 -1
- package/lib/routes/loongarch/namespace.ts +6 -0
- package/lib/routes/loongarch/post.ts +59 -0
- package/lib/routes/lovelive-anime/news.ts +7 -5
- package/lib/routes/lovelive-anime/schedules.ts +1 -1
- package/lib/routes/lovelive-anime/topics.ts +1 -1
- package/lib/routes/lsnu/jiaowc/tzgg.ts +6 -4
- package/lib/routes/luogu/contest.ts +5 -3
- package/lib/routes/luogu/daily.ts +6 -4
- package/lib/routes/luogu/user-blog.ts +5 -3
- package/lib/routes/luogu/user-feed.ts +5 -3
- package/lib/routes/luolei/index.ts +145 -0
- package/lib/routes/luolei/namespace.ts +8 -0
- package/lib/routes/luolei/templates/description.art +19 -0
- package/lib/routes/luxiangdong/archive.ts +5 -3
- package/lib/routes/lvv2/news.ts +1 -1
- package/lib/routes/lvv2/top.ts +1 -1
- package/lib/routes/lxixsxa/discography.ts +6 -4
- package/lib/routes/lxixsxa/information.ts +6 -4
- package/lib/routes/m4/index.ts +3 -2
- package/lib/routes/macfilos/blog.ts +5 -3
- package/lib/routes/macupdate/app.ts +9 -7
- package/lib/routes/magazinelib/latest-magazine.ts +1 -1
- package/lib/routes/mail/imap.ts +2 -1
- package/lib/routes/mangadex/index.ts +6 -4
- package/lib/routes/manhuagui/comic.ts +6 -4
- package/lib/routes/manhuagui/subscribe.ts +8 -5
- package/lib/routes/mastodon/account-id.ts +2 -1
- package/lib/routes/mastodon/namespace.ts +1 -1
- package/lib/routes/mastodon/timeline-local.ts +2 -1
- package/lib/routes/mastodon/timeline-remote.ts +2 -1
- package/lib/routes/mastodon/utils.ts +3 -2
- package/lib/routes/mdpi/journal.ts +6 -4
- package/lib/routes/medieval-china/post.ts +6 -4
- package/lib/routes/medium/following.ts +3 -2
- package/lib/routes/medium/for-you.ts +3 -2
- package/lib/routes/medium/graphql.ts +12 -12
- package/lib/routes/medium/list.ts +4 -2
- package/lib/routes/medium/parse-article.ts +1 -1
- package/lib/routes/medium/tag.ts +3 -2
- package/lib/routes/metacritic/index.ts +1 -1
- package/lib/routes/metacritic/release.ts +2 -1
- package/lib/routes/meteor/boards.ts +5 -3
- package/lib/routes/meteor/utils.ts +1 -1
- package/lib/{routes-deprecated/mi/crowdfunding.js → routes/mi/crowdfunding.ts} +15 -5
- package/lib/{routes-deprecated/mi/golden.js → routes/mi/golden.ts} +14 -4
- package/lib/routes/mi/namespace.ts +6 -0
- package/lib/routes/microsoft/addon.ts +5 -3
- package/lib/routes/mihoyo/bbs/cache.ts +2 -1
- package/lib/routes/mihoyo/bbs/follow-list.ts +2 -2
- package/lib/routes/mihoyo/bbs/img-ranking.ts +7 -5
- package/lib/routes/mihoyo/bbs/official.ts +87 -18
- package/lib/routes/mihoyo/bbs/timeline.ts +8 -5
- package/lib/routes/mihoyo/bbs/user-post.ts +1 -1
- package/lib/routes/mihoyo/bbs/utils.ts +1 -1
- package/lib/routes/mihoyo/sr/news.ts +6 -4
- package/lib/routes/mihoyo/templates/official.art +7 -0
- package/lib/routes/mihoyo/ys/news.ts +7 -5
- package/lib/routes/mindmeister/example.ts +1 -1
- package/lib/routes/minecraft/blockedservers.ts +52 -0
- package/lib/routes/minecraft/java-runtime.ts +127 -0
- package/lib/routes/minecraft/version.ts +100 -20
- package/lib/routes/mingpao/index.ts +1 -1
- package/lib/{routes-deprecated/miniflux/get-entries.js → routes/miniflux/entry.ts} +84 -33
- package/lib/routes/miniflux/namespace.ts +6 -0
- package/lib/routes/miniflux/subscription.ts +129 -0
- package/lib/routes/mirror/index.ts +2 -1
- package/lib/routes/missav/new.ts +6 -4
- package/lib/routes/misskey/featured-notes.ts +2 -1
- package/lib/routes/misskey/utils.ts +1 -1
- package/lib/routes/mittrchina/index.ts +1 -1
- package/lib/routes/miui/community/user.ts +69 -0
- package/lib/{routes-deprecated/mi/miui/index.js → routes/miui/firmware/index.ts} +29 -32
- package/lib/routes/miui/namespace.ts +6 -0
- package/lib/routes/mixcloud/index.ts +27 -6
- package/lib/routes/mixcloud/queries.ts +934 -186
- package/lib/routes/modelscope/community.ts +6 -4
- package/lib/routes/modelscope/datasets.ts +6 -4
- package/lib/routes/modelscope/models.ts +5 -3
- package/lib/routes/modelscope/studios.ts +6 -4
- package/lib/routes/modian/namespace.ts +6 -0
- package/lib/routes/modian/zhongchou.ts +101 -0
- package/lib/routes/modrinth/versions.ts +55 -51
- package/lib/routes/mohw/clarification.ts +5 -3
- package/lib/routes/mox/index.ts +66 -34
- package/lib/routes/mpaypass/main.ts +1 -1
- package/lib/routes/mpaypass/news.ts +5 -3
- package/lib/routes/mrdx/daily.ts +5 -3
- package/lib/routes/mvm/index.ts +5 -3
- package/lib/routes/mydrivers/index.ts +1 -1
- package/lib/routes/mydrivers/rank.ts +6 -4
- package/lib/routes/myfigurecollection/activity.ts +9 -6
- package/lib/routes/myfigurecollection/index.ts +8 -5
- package/lib/routes/mygopen/index.ts +5 -3
- package/lib/routes/mymusicsheet/usersheets.ts +7 -5
- package/lib/routes/nasa/apod-cn.ts +5 -3
- package/lib/routes/nasa/apod-ncku.ts +5 -3
- package/lib/routes/nasa/apod.ts +5 -3
- package/lib/routes/natgeo/dailyphoto.ts +6 -4
- package/lib/routes/natgeo/natgeo.ts +6 -4
- package/lib/routes/nationalgeographic/latest-stories.ts +6 -4
- package/lib/routes/nature/cover.ts +5 -3
- package/lib/routes/nature/highlight.ts +6 -4
- package/lib/routes/nature/news-and-comment.ts +6 -4
- package/lib/routes/nature/news.ts +5 -3
- package/lib/routes/nature/research.ts +6 -4
- package/lib/routes/nature/siteindex.ts +3 -3
- package/lib/routes/nautil/topics.ts +6 -4
- package/lib/routes/nbd/daily.ts +5 -3
- package/lib/routes/nbd/index.ts +5 -3
- package/lib/routes/nber/index.ts +6 -4
- package/lib/routes/ncc-cma/cmdp.ts +1 -1
- package/lib/routes/ncpssd/namespace.ts +6 -0
- package/lib/routes/ncpssd/newlist.ts +98 -0
- package/lib/routes/ncu/jwc.ts +5 -3
- package/lib/routes/ncwu/notice.ts +5 -3
- package/lib/routes/ndss-symposium/ndss.ts +5 -3
- package/lib/routes/neatdownloadmanager/download.ts +5 -3
- package/lib/routes/neea/jlpt.ts +5 -3
- package/lib/routes/netflav/index.ts +7 -5
- package/lib/routes/neu/news.ts +5 -3
- package/lib/routes/newmuseum/exhibitions.ts +11 -14
- package/lib/routes/newrank/douyin.ts +2 -1
- package/lib/routes/newrank/wechat.ts +2 -1
- package/lib/routes/news/xhsxw.ts +6 -4
- package/lib/routes/newsmarket/index.ts +5 -3
- package/lib/routes/newzmz/index.ts +6 -4
- package/lib/routes/newzmz/util.ts +1 -1
- package/lib/routes/nextapple/realtime.ts +5 -3
- package/lib/routes/ngocn2/index.ts +5 -3
- package/lib/routes/nhentai/other.ts +9 -6
- package/lib/routes/nhentai/search.ts +7 -5
- package/lib/routes/nhentai/util.ts +4 -3
- package/lib/routes/nhk/news-web-easy.ts +6 -4
- package/lib/routes/nhk/news.ts +7 -5
- package/lib/routes/niaogebiji/cat.ts +5 -3
- package/lib/routes/niaogebiji/index.ts +6 -4
- package/lib/routes/niaogebiji/today.ts +6 -4
- package/lib/routes/nikkei/asia/index.ts +5 -3
- package/lib/routes/nikkei/news.ts +14 -20
- package/lib/routes/nintendo/direct.ts +6 -4
- package/lib/routes/nintendo/eshop-cn.ts +7 -4
- package/lib/routes/nintendo/eshop-hk.ts +6 -4
- package/lib/routes/nintendo/eshop-jp.ts +6 -4
- package/lib/routes/nintendo/eshop-us.ts +7 -5
- package/lib/routes/nintendo/news-china.ts +7 -4
- package/lib/routes/nintendo/news.ts +5 -3
- package/lib/routes/nintendo/system-update.ts +5 -3
- package/lib/routes/nintendo/utils.ts +1 -1
- package/lib/routes/nippon/index.ts +9 -4
- package/lib/routes/njglyy/ygbjypx.ts +5 -3
- package/lib/routes/njit/tzgg.ts +5 -3
- package/lib/routes/nju/admission.ts +5 -3
- package/lib/routes/nju/dafls.ts +5 -3
- package/lib/routes/nju/gra.ts +5 -3
- package/lib/routes/nju/hosptial.ts +5 -3
- package/lib/routes/nju/hqjt.ts +5 -3
- package/lib/routes/nju/itsc.ts +5 -3
- package/lib/routes/nju/jjc.ts +5 -3
- package/lib/routes/nju/jw.ts +9 -5
- package/lib/routes/nju/rczp.ts +5 -3
- package/lib/routes/nju/zcc.ts +5 -3
- package/lib/routes/njucm/grabs.ts +5 -3
- package/lib/routes/njuferret/blog.ts +41 -0
- package/lib/routes/njuferret/namespace.ts +10 -0
- package/lib/routes/njust/cwc.ts +2 -1
- package/lib/routes/njust/dgxg.ts +2 -1
- package/lib/routes/njust/eoe.ts +2 -1
- package/lib/routes/njust/gs.ts +6 -4
- package/lib/routes/njust/jwc.ts +2 -1
- package/lib/routes/njxzc/home.ts +5 -3
- package/lib/routes/njxzc/lib.ts +5 -3
- package/lib/routes/njxzc/utils/index.ts +31 -13
- package/lib/routes/nlc/read.ts +1 -1
- package/lib/routes/nltimes/news.ts +6 -4
- package/lib/routes/nmc/weatheralarm.ts +8 -7
- package/lib/routes/nmtv/column.ts +1 -1
- package/lib/routes/nodejs/blog.ts +5 -3
- package/lib/routes/nogizaka46/blog.ts +6 -4
- package/lib/routes/nogizaka46/news.ts +5 -3
- package/lib/{routes-deprecated/nosec/index.js → routes/nosec/index.ts} +37 -10
- package/lib/routes/nosec/namespace.ts +6 -0
- package/lib/routes/notateslaapp/update.ts +5 -3
- package/lib/routes/notefolio/search.ts +6 -4
- package/lib/routes/notion/database.ts +11 -7
- package/lib/routes/notion/namespace.ts +2 -2
- package/lib/routes/now/news.ts +5 -3
- package/lib/routes/nowcoder/experience.ts +6 -4
- package/lib/routes/nowcoder/jobcenter.ts +6 -4
- package/lib/routes/nowcoder/recommend.ts +5 -3
- package/lib/routes/nowcoder/schedule.ts +6 -4
- package/lib/routes/npm/package.ts +1 -1
- package/lib/routes/ntdm/namespace.ts +6 -0
- package/lib/routes/ntdm/utils.ts +3 -0
- package/lib/routes/ntdm/video.ts +57 -0
- package/lib/routes/ntdtv/channel.ts +5 -3
- package/lib/routes/nua/dc.ts +7 -4
- package/lib/routes/nua/gra.ts +5 -3
- package/lib/routes/nua/index.ts +5 -3
- package/lib/routes/nua/lib.ts +7 -4
- package/lib/routes/nua/sxw.ts +5 -3
- package/lib/routes/nuist/bulletin.ts +6 -4
- package/lib/routes/nuist/library/lib.ts +5 -3
- package/lib/routes/nuist/scs.ts +6 -4
- package/lib/routes/nuist/xgc.ts +5 -3
- package/lib/routes/nymity/censorbib.ts +51 -0
- package/lib/routes/nymity/namespace.ts +6 -0
- package/lib/routes/nytimes/book.ts +6 -4
- package/lib/routes/nytimes/daily-briefing-chinese.ts +7 -5
- package/lib/routes/nytimes/index.ts +6 -4
- package/lib/routes/oceanengine/arithmetic-index.ts +5 -4
- package/lib/routes/odaily/activity.ts +5 -3
- package/lib/routes/odaily/newsflash.ts +5 -3
- package/lib/routes/odaily/post.ts +5 -3
- package/lib/routes/odaily/search-news.ts +5 -3
- package/lib/routes/odaily/user.ts +5 -3
- package/lib/routes/oeeee/app/channel.ts +1 -1
- package/lib/routes/oeeee/app/reporter.ts +1 -1
- package/lib/routes/oeeee/web.ts +1 -1
- package/lib/routes/oncc/index.ts +1 -1
- package/lib/routes/oncc/money18.ts +1 -1
- package/lib/routes/onet/news.ts +6 -4
- package/lib/routes/onet/utils.ts +1 -1
- package/lib/routes/openai/common.ts +1 -1
- package/lib/routes/openwrt/releases.ts +6 -4
- package/lib/routes/orcid/index.ts +1 -1
- package/lib/routes/oreno3d/main.ts +1 -1
- package/lib/routes/oschina/news.ts +6 -4
- package/lib/routes/oschina/topic.ts +5 -3
- package/lib/routes/oschina/user.ts +5 -3
- package/lib/routes/oshwhub/explore.ts +1 -1
- package/lib/routes/otobanana/cast.ts +10 -8
- package/lib/routes/otobanana/livestream.ts +10 -8
- package/lib/routes/otobanana/timeline.ts +10 -8
- package/lib/routes/otobanana/utils.ts +1 -1
- package/lib/routes/ouc/hqsz.ts +90 -0
- package/lib/routes/ouc/it-postgraduate.ts +5 -3
- package/lib/routes/ouc/it-tx.ts +6 -4
- package/lib/routes/ouc/it.ts +6 -4
- package/lib/routes/ouc/jwc.ts +7 -5
- package/lib/routes/ouc/jwgl.ts +5 -3
- package/lib/routes/ouc/yjs.ts +5 -3
- package/lib/routes/oup/index.ts +6 -4
- package/lib/routes/panewslab/author.ts +5 -3
- package/lib/routes/panewslab/index.ts +5 -3
- package/lib/routes/panewslab/news.ts +5 -3
- package/lib/routes/panewslab/topic.ts +5 -3
- package/lib/routes/papers/index.ts +101 -60
- package/lib/routes/papers/namespace.ts +2 -0
- package/lib/routes/paradigm/writing.ts +5 -3
- package/lib/routes/parliament/section77.ts +1 -1
- package/lib/routes/patagonia/new-arrivals.ts +1 -1
- package/lib/routes/paulgraham/article.ts +5 -3
- package/lib/routes/penguin-random-house/articles.ts +5 -3
- package/lib/routes/penguin-random-house/thereaddown.ts +5 -3
- package/lib/routes/penguin-random-house/utils.ts +1 -1
- package/lib/routes/people/index.ts +2 -1
- package/lib/routes/people/liuyan.ts +5 -3
- package/lib/routes/people/xjpjh.ts +6 -4
- package/lib/routes/peopo/topic.ts +6 -4
- package/lib/routes/phoronix/index.ts +7 -5
- package/lib/routes/pianyivps/namespace.ts +6 -0
- package/lib/routes/pianyivps/rss.ts +35 -0
- package/lib/routes/pianyuan/app.ts +6 -4
- package/lib/routes/pianyuan/search.ts +6 -4
- package/lib/routes/pianyuan/utils.ts +3 -2
- package/lib/routes/picnob/user.ts +23 -8
- package/lib/routes/picuki/profile.ts +7 -5
- package/lib/routes/pikabu/user.ts +5 -3
- package/lib/routes/pikabu/utils.ts +1 -1
- package/lib/routes/pincong/topic.ts +5 -3
- package/lib/routes/pingwest/status.ts +5 -3
- package/lib/routes/pingwest/user.ts +6 -4
- package/lib/routes/pixabay/search.ts +7 -5
- package/lib/routes/pixiv/bookmarks.ts +8 -5
- package/lib/routes/pixiv/illustfollow.ts +8 -5
- package/lib/routes/pixiv/novels.ts +5 -3
- package/lib/routes/pixiv/ranking.ts +3 -2
- package/lib/routes/pixiv/search.ts +3 -2
- package/lib/routes/pixiv/token.ts +14 -21
- package/lib/routes/pixiv/user.ts +8 -5
- package/lib/routes/piyao/jrpy.ts +5 -3
- package/lib/routes/pkmer/recent.ts +5 -3
- package/lib/routes/pku/bbs/hot.ts +5 -3
- package/lib/routes/pku/cls/announcement.ts +5 -3
- package/lib/routes/pku/cls/lecture.ts +5 -3
- package/lib/routes/pku/hr.ts +5 -3
- package/lib/routes/pku/nsd.ts +5 -3
- package/lib/routes/pku/pkuyjs.ts +5 -3
- package/lib/routes/pku/rccp/mzyt.ts +5 -3
- package/lib/routes/pku/ss/admission.ts +5 -3
- package/lib/routes/pku/ss/notice.ts +5 -3
- package/lib/routes/pku/ss/pg-admin.ts +5 -3
- package/lib/routes/playno1/st.ts +6 -4
- package/lib/routes/playpcesor/rss.ts +8 -5
- package/lib/routes/plurk/anonymous.ts +5 -3
- package/lib/routes/plurk/hotlinks.ts +5 -3
- package/lib/routes/plurk/news.ts +6 -4
- package/lib/routes/plurk/top.ts +2 -1
- package/lib/routes/plurk/topic.ts +5 -3
- package/lib/routes/pnas/index.ts +7 -5
- package/lib/routes/pornhub/category-url.ts +2 -1
- package/lib/routes/pornhub/model.ts +8 -5
- package/lib/routes/pornhub/pornstar.ts +8 -5
- package/lib/routes/pornhub/users.ts +8 -5
- package/lib/routes/pornhub/utils.ts +1 -1
- package/lib/routes/postman/release-notes.ts +5 -3
- package/lib/routes/priconne-redive/news.ts +155 -52
- package/lib/routes/producthunt/today.ts +6 -4
- package/lib/routes/ps/monthly-games.ts +6 -4
- package/lib/routes/pts/curations.ts +6 -4
- package/lib/routes/pts/index.ts +2 -2
- package/lib/routes/pts/live.ts +6 -4
- package/lib/routes/pts/projects.ts +6 -4
- package/lib/routes/pubmed/trending.ts +1 -1
- package/lib/routes/pumc/mdadmission.ts +5 -3
- package/lib/routes/putty/changes.ts +5 -3
- package/lib/routes/pwc/sustainability.ts +5 -3
- package/lib/routes/qbitai/category.ts +5 -3
- package/lib/routes/qbitai/tag.ts +5 -3
- package/lib/routes/qbittorrent/news.ts +8 -9
- package/lib/routes/qdu/houqin.ts +5 -3
- package/lib/routes/qdu/jwc.ts +5 -3
- package/lib/routes/qianzhan/rank.ts +6 -4
- package/lib/routes/qidian/author.ts +6 -4
- package/lib/routes/qidian/chapter.ts +5 -3
- package/lib/routes/qidian/forum.ts +5 -3
- package/lib/routes/qidian/free-next.ts +6 -4
- package/lib/routes/qidian/free.ts +6 -4
- package/lib/routes/qingting/podcast.ts +66 -42
- package/lib/routes/qipamaijia/index.ts +7 -5
- package/lib/routes/qlu/notice.ts +5 -3
- package/lib/routes/qm120/news.ts +5 -3
- package/lib/routes/qoo-app/apps/comment.ts +1 -1
- package/lib/routes/qoo-app/notes/note.ts +1 -1
- package/lib/routes/qoo-app/user/app-comment.ts +1 -1
- package/lib/routes/qq/ac/comic.ts +6 -4
- package/lib/routes/qq/ac/rank.ts +6 -4
- package/lib/routes/qq/ac/utils.ts +1 -1
- package/lib/routes/qq/fact/index.ts +6 -4
- package/lib/routes/qqorw/index.ts +5 -3
- package/lib/routes/questmobile/report.ts +1 -1
- package/lib/routes/quicker/share.ts +5 -3
- package/lib/routes/qust/jw.ts +5 -3
- package/lib/routes/qweather/3days.ts +3 -2
- package/lib/routes/qweather/now.ts +1 -1
- package/lib/routes/radio/album.ts +34 -50
- package/lib/routes/radio/index.ts +1 -1
- package/lib/routes/radio/zhibo.ts +10 -3
- package/lib/routes/radio-canada/latest.ts +5 -3
- package/lib/routes/rarehistoricalphotos/index.ts +6 -4
- package/lib/routes/rattibha/user.ts +5 -3
- package/lib/routes/rawkuma/manga.ts +6 -4
- package/lib/routes/reactiflux/namespace.ts +7 -0
- package/lib/routes/reactiflux/transcripts.ts +103 -0
- package/lib/routes/reactnewsletter/reactnewsletter.ts +6 -4
- package/lib/routes/readhub/daily.ts +13 -8
- package/lib/routes/readhub/index.ts +1 -1
- package/lib/routes/readhub/util.ts +1 -1
- package/lib/routes/remnote/changelog.ts +5 -3
- package/lib/routes/researchgate/publications.ts +6 -4
- package/lib/routes/reuters/common.ts +16 -14
- package/lib/routes/rfi/news.ts +6 -4
- package/lib/routes/rodong/news.ts +6 -4
- package/lib/routes/routledge/book-series.ts +6 -4
- package/lib/routes/rsc/journal.ts +1 -1
- package/lib/routes/rsshub/routes.ts +7 -13
- package/lib/routes/rsshub/transform/html.ts +2 -1
- package/lib/routes/rsshub/transform/json.ts +2 -1
- package/lib/routes/rsshub/transform/sitemap.ts +2 -1
- package/lib/routes/ruancan/category.ts +7 -5
- package/lib/routes/ruancan/index.ts +7 -5
- package/lib/routes/ruancan/search.ts +7 -5
- package/lib/routes/ruancan/user.ts +6 -4
- package/lib/routes/ruancan/utils.ts +2 -1
- package/lib/routes/ruc/hr.ts +5 -3
- package/lib/routes/runtrail/posts.ts +6 -4
- package/lib/routes/rustcc/jobs.ts +5 -3
- package/lib/routes/rustcc/news.ts +55 -0
- package/lib/routes/sakurazaka46/news.ts +5 -3
- package/lib/routes/samsung/research/blog.ts +5 -3
- package/lib/routes/sara/index.ts +66 -0
- package/lib/routes/sara/namespace.ts +6 -0
- package/lib/routes/saraba1st/digest.ts +1 -1
- package/lib/routes/sass/gs/index.ts +5 -3
- package/lib/routes/scau/yjs.ts +5 -3
- package/lib/routes/scau/yjsy.ts +5 -3
- package/lib/routes/science/blogs.ts +6 -4
- package/lib/routes/science/cover.ts +6 -4
- package/lib/routes/science/current.ts +6 -4
- package/lib/routes/science/early.ts +6 -4
- package/lib/routes/science/utils.ts +1 -1
- package/lib/routes/sciencedirect/journal.ts +5 -3
- package/lib/routes/sciencenet/user.ts +5 -3
- package/lib/routes/scmp/index.ts +5 -3
- package/lib/routes/scmp/topic.ts +5 -3
- package/lib/routes/scnu/cs/match.ts +5 -3
- package/lib/routes/scnu/jw.ts +5 -3
- package/lib/routes/scnu/library.ts +5 -3
- package/lib/routes/scnu/ss.ts +5 -3
- package/lib/routes/scnu/yjs.ts +5 -3
- package/lib/routes/sctv/programme.ts +1 -1
- package/lib/routes/scut/seie/news-ccenter.ts +5 -3
- package/lib/routes/scut/yjs.ts +5 -3
- package/lib/routes/scvtc/xygg.ts +5 -3
- package/lib/routes/sdu/data.ts +2 -2
- package/lib/routes/sdu/extractor/index.ts +2 -1
- package/lib/routes/sdu/extractor/sdrj.ts +2 -1
- package/lib/routes/sdu/extractor/view.ts +2 -1
- package/lib/routes/sdu/extractor/wh/jwc.ts +2 -1
- package/lib/routes/sdu/extractor/wh/news.ts +2 -1
- package/lib/routes/seekingalpha/index.ts +66 -29
- package/lib/routes/seekingalpha/templates/summary.art +4 -0
- package/lib/routes/sega/maimaidx.ts +64 -0
- package/lib/routes/sega/pjsekai.ts +5 -3
- package/lib/routes/segmentfault/blogs.ts +5 -3
- package/lib/routes/segmentfault/channel.ts +5 -3
- package/lib/routes/segmentfault/user.ts +5 -3
- package/lib/routes/sehuatang/index.ts +1 -5
- package/lib/routes/sehuatang/user.ts +2 -1
- package/lib/routes/sensortower/blog.ts +7 -5
- package/lib/routes/setn/index.ts +6 -4
- package/lib/routes/seu/cse/index.ts +5 -3
- package/lib/routes/seu/radio/academic.ts +5 -3
- package/lib/routes/seu/yjs.ts +5 -3
- package/lib/routes/seu/yzb/index.ts +5 -3
- package/lib/routes/sfacg/novel-chapter.ts +5 -3
- package/lib/routes/shcstheatre/programs.ts +6 -4
- package/lib/routes/shiep/config.ts +1 -1
- package/lib/routes/shiep/index.ts +8 -13
- package/lib/routes/shiep/radar.ts +317 -0
- package/lib/routes/shisu/news.ts +5 -3
- package/lib/routes/shmeea/self-study.ts +5 -3
- package/lib/routes/shmtu/jwc.ts +5 -3
- package/lib/routes/shmtu/portal.ts +6 -4
- package/lib/routes/shmtu/www.ts +5 -3
- package/lib/routes/shoac/recent-show.ts +6 -4
- package/lib/routes/shopback/store.ts +5 -3
- package/lib/routes/shopify/apps/[handle].reviews.ts +78 -0
- package/lib/routes/shopify/apps/const.ts +1 -0
- package/lib/routes/shopify/apps/search.ts +82 -0
- package/lib/routes/shopify/namespace.ts +6 -0
- package/lib/routes/shoppingdesign/posts.ts +5 -3
- package/lib/routes/showstart/artist.ts +5 -3
- package/lib/routes/showstart/brand.ts +5 -3
- package/lib/routes/shu/index.ts +6 -4
- package/lib/routes/shu/jwb.ts +6 -4
- package/lib/routes/shuiguopai/index.ts +7 -5
- package/lib/routes/sicau/dky.ts +5 -3
- package/lib/routes/sicau/yan.ts +5 -3
- package/lib/routes/sicau/zsjy.ts +5 -3
- package/lib/routes/sigsac/ccs.ts +5 -3
- package/lib/routes/simpleinfo/index.ts +7 -5
- package/lib/routes/sina/chuangshiji.ts +5 -3
- package/lib/routes/sina/finance/china.ts +6 -4
- package/lib/routes/sina/finance/stock/usstock.ts +6 -4
- package/lib/routes/sina/utils.ts +1 -1
- package/lib/routes/sinchew/index.ts +7 -5
- package/lib/routes/sjtu/gs.ts +6 -4
- package/lib/routes/sjtu/seiee/utils.ts +1 -1
- package/lib/routes/sjtu/tongqu/activity.ts +1 -1
- package/lib/routes/slowmist/slowmist.ts +5 -3
- package/lib/routes/smashingmagazine/category.ts +6 -4
- package/lib/routes/smzdm/article.ts +7 -5
- package/lib/routes/smzdm/baoliao.ts +5 -3
- package/lib/routes/smzdm/haowen-fenlei.ts +6 -4
- package/lib/routes/snowpeak/us-new-arrivals.ts +6 -4
- package/lib/routes/sobooks/date.ts +7 -5
- package/lib/routes/sobooks/index.ts +7 -5
- package/lib/routes/sobooks/tag.ts +7 -5
- package/lib/routes/sobooks/utils.ts +2 -1
- package/lib/routes/sogou/search.ts +1 -1
- package/lib/routes/sohu/mp.ts +1 -1
- package/lib/routes/solidot/main.ts +2 -1
- package/lib/routes/sony/downloads.ts +5 -3
- package/lib/routes/soundofhope/channel.ts +5 -3
- package/lib/routes/southcn/nfapp/column.ts +1 -1
- package/lib/routes/southcn/nfapp/reporter.ts +1 -1
- package/lib/routes/spotify/artist.ts +5 -3
- package/lib/routes/spotify/artists-top.ts +5 -3
- package/lib/routes/spotify/playlist.ts +5 -3
- package/lib/routes/spotify/saved.ts +6 -4
- package/lib/routes/spotify/show.ts +5 -3
- package/lib/routes/spotify/tracks-top.ts +5 -3
- package/lib/routes/spotify/utils.ts +3 -2
- package/lib/routes/springer/journal.ts +6 -4
- package/lib/routes/sqmc/www.ts +5 -3
- package/lib/routes/sse/inquire.ts +6 -4
- package/lib/routes/sse/renewal.ts +6 -4
- package/lib/routes/ssm/news.ts +6 -4
- package/lib/routes/sspai/activity.ts +6 -4
- package/lib/routes/sspai/author.ts +7 -4
- package/lib/routes/sspai/bookmarks.ts +5 -3
- package/lib/routes/sspai/column.ts +5 -3
- package/lib/routes/sspai/index.ts +5 -3
- package/lib/routes/sspai/matrix.ts +5 -3
- package/lib/routes/sspai/series-update.ts +5 -3
- package/lib/routes/sspai/series.ts +5 -3
- package/lib/routes/sspai/shortcuts-gallery.ts +5 -3
- package/lib/routes/sspai/tag.ts +5 -3
- package/lib/routes/sspai/topic.ts +5 -3
- package/lib/routes/sspai/topics.ts +5 -3
- package/lib/routes/sspu/jwc.ts +5 -3
- package/lib/routes/sspu/pe.ts +6 -4
- package/lib/routes/startuplatte/index.ts +5 -3
- package/lib/routes/stbu/jsjxy.ts +6 -4
- package/lib/routes/stbu/xyxw.ts +5 -3
- package/lib/routes/stdaily/digitalpaper.ts +1 -1
- package/lib/routes/steam/namespace.ts +6 -0
- package/lib/routes/steam/search.ts +64 -0
- package/lib/routes/stockedge/daily-news.ts +5 -3
- package/lib/routes/storm/index.ts +5 -3
- package/lib/routes/storyfm/episodes.ts +6 -4
- package/lib/routes/storyfm/index.ts +5 -3
- package/lib/routes/stratechery/index.ts +15 -18
- package/lib/routes/studygolang/go.ts +6 -4
- package/lib/routes/studygolang/jobs.ts +1 -1
- package/lib/routes/studygolang/weekly.ts +1 -1
- package/lib/routes/supchina/index.ts +6 -4
- package/lib/routes/supchina/podcasts.ts +5 -3
- package/lib/routes/surfshark/blog.ts +1 -1
- package/lib/routes/sustech/bidding.ts +5 -3
- package/lib/routes/sustech/newshub-zh.ts +5 -3
- package/lib/routes/sustech/yjs.ts +5 -3
- package/lib/routes/swissinfo/index.ts +5 -3
- package/lib/routes/swjtu/jwc.ts +5 -3
- package/lib/routes/swjtu/jyzpxx.ts +5 -3
- package/lib/routes/swjtu/utils.ts +1 -1
- package/lib/routes/swjtu/xg.ts +8 -5
- package/lib/routes/swpu/bgw.ts +6 -4
- package/lib/routes/swpu/cjxy.ts +6 -4
- package/lib/routes/swpu/dean.ts +6 -4
- package/lib/routes/swpu/dxy.ts +6 -4
- package/lib/routes/swpu/is.ts +6 -4
- package/lib/routes/swpu/scs.ts +6 -4
- package/lib/routes/syosetu/chapter.ts +5 -3
- package/lib/routes/sysu/cse.ts +5 -3
- package/lib/routes/sysu/ygafz.ts +13 -4
- package/lib/routes/szse/inquire.ts +7 -5
- package/lib/routes/szse/notice.ts +5 -3
- package/lib/routes/szse/projectdynamic.ts +6 -4
- package/lib/routes/szse/rule.ts +5 -3
- package/lib/routes/taiwannews/hot.ts +6 -4
- package/lib/routes/tangshufang/index.ts +5 -3
- package/lib/routes/taobao/zhongchou.ts +1 -1
- package/lib/routes/taoguba/blog.ts +5 -3
- package/lib/routes/taptap/changelog.ts +6 -4
- package/lib/routes/taptap/review.ts +9 -11
- package/lib/routes/taptap/topic.ts +9 -9
- package/lib/routes/taptap/utils.ts +1 -1
- package/lib/routes/tass/news.ts +6 -4
- package/lib/routes/techcrunch/news.ts +5 -3
- package/lib/routes/techflowpost/express.ts +5 -3
- package/lib/routes/techflowpost/index.ts +6 -4
- package/lib/routes/techpowerup/index.ts +6 -4
- package/lib/routes/techpowerup/review.ts +6 -4
- package/lib/routes/telegram/blog.ts +8 -6
- package/lib/routes/telegram/channel.ts +21 -8
- package/lib/routes/telegram/stickerpack.ts +2 -1
- package/lib/routes/telegram/tglib/channel.ts +6 -12
- package/lib/routes/telegram/tglib/client.ts +27 -32
- package/lib/routes/tencent/news/author.ts +6 -4
- package/lib/routes/tencent/news/coronavirus/data.ts +3 -2
- package/lib/routes/tencent/news/coronavirus/total.ts +6 -4
- package/lib/routes/tencent/qq/sdk/changelog.ts +2 -1
- package/lib/routes/tesla/cx.ts +1 -1
- package/lib/routes/tesla/price/index.ts +5 -3
- package/lib/routes/test/index.ts +22 -8
- package/lib/routes/tfc-taiwan/utils.ts +1 -1
- package/lib/routes/tgbus/list.ts +67 -0
- package/lib/routes/tgbus/namespace.ts +6 -0
- package/lib/routes/tgbus/utils.ts +19 -0
- package/lib/routes/theatlantic/news.ts +5 -3
- package/lib/routes/theatlantic/utils.ts +1 -1
- package/lib/routes/thecatcity/index.ts +6 -4
- package/lib/routes/thehindu/topic.ts +5 -3
- package/lib/routes/themoviedb/api-key.ts +2 -1
- package/lib/routes/themoviedb/utils.ts +1 -1
- package/lib/routes/thenewslens/index.ts +1 -1
- package/lib/routes/thepaper/839studio/category.ts +5 -3
- package/lib/routes/thepaper/factpaper.ts +7 -5
- package/lib/routes/thepaper/featured.ts +5 -3
- package/lib/routes/thepaper/sidebar.ts +6 -4
- package/lib/routes/thepaper/utils.ts +1 -1
- package/lib/routes/theverge/index.ts +5 -3
- package/lib/routes/thoughtco/index.ts +1 -1
- package/lib/routes/threads/index.ts +36 -38
- package/lib/routes/threads/utils.ts +44 -12
- package/lib/routes/thwiki/index.ts +6 -4
- package/lib/routes/tiktok/user.ts +7 -5
- package/lib/routes/timednews/news.ts +3 -7
- package/lib/routes/tingshuitz/dalian.ts +5 -3
- package/lib/routes/tingshuitz/hangzhou.ts +5 -3
- package/lib/routes/tingshuitz/nanjing.ts +5 -3
- package/lib/routes/tingshuitz/shenzhen.ts +6 -4
- package/lib/routes/tingshuitz/wuhan.ts +6 -4
- package/lib/routes/tingshuitz/xiaoshan.ts +5 -3
- package/lib/routes/tingshuitz/yangjiang.ts +5 -3
- package/lib/routes/tingtingfm/program.ts +6 -4
- package/lib/routes/tokeninsight/blog.ts +6 -4
- package/lib/routes/tokeninsight/bulletin.ts +6 -4
- package/lib/routes/tokeninsight/report.ts +6 -4
- package/lib/routes/tongji/bks.ts +5 -3
- package/lib/routes/tongji/yjs.ts +5 -3
- package/lib/routes/tophub/index.ts +5 -3
- package/lib/routes/tophub/list.ts +6 -4
- package/lib/routes/topys/index.ts +5 -3
- package/lib/routes/tradingview/blog.ts +1 -1
- package/lib/routes/tradingview/desktop.ts +5 -3
- package/lib/routes/tradingview/pine.ts +6 -4
- package/lib/routes/transcriptforest/index.ts +7 -5
- package/lib/routes/trending/all-trending.ts +3 -2
- package/lib/routes/tribalfootball/latest.ts +7 -5
- package/lib/routes/trow/portal.ts +5 -3
- package/lib/routes/tvb/news.ts +6 -4
- package/lib/routes/tvtropes/featured.ts +1 -1
- package/lib/routes/twitch/schedule.ts +7 -4
- package/lib/routes/twitch/video.ts +10 -7
- package/lib/routes/twitter/{developer-api → api/developer-api}/search.ts +3 -2
- package/lib/routes/twitter/{developer-api → api/developer-api}/user.ts +3 -2
- package/lib/routes/twitter/api/index.ts +42 -0
- package/lib/routes/twitter/{web-api/twitter-api.ts → api/mobile-api/api.ts} +5 -3
- package/lib/routes/twitter/{web-api → api/mobile-api}/login.ts +8 -7
- package/lib/routes/twitter/{web-api → api/mobile-api}/token.ts +2 -1
- package/lib/routes/twitter/api/web-api/api.ts +185 -0
- package/lib/routes/twitter/api/web-api/constants.ts +81 -0
- package/lib/routes/twitter/api/web-api/utils.ts +125 -0
- package/lib/routes/twitter/home.ts +60 -0
- package/lib/routes/twitter/keyword.ts +25 -4
- package/lib/routes/twitter/likes.ts +2 -1
- package/lib/routes/twitter/list.ts +30 -31
- package/lib/routes/twitter/media.ts +33 -5
- package/lib/routes/twitter/namespace.ts +8 -1
- package/lib/routes/twitter/trends.ts +2 -1
- package/lib/routes/twitter/tweet.ts +23 -4
- package/lib/routes/twitter/user.ts +43 -4
- package/lib/routes/twitter/utils.ts +12 -1
- package/lib/routes/twreporter/category.ts +71 -0
- package/lib/routes/twreporter/fetch-article.ts +87 -50
- package/lib/routes/twreporter/newest.ts +14 -15
- package/lib/routes/twreporter/templates/image.art +3 -0
- package/lib/routes/twreporter/templates/youtube.art +1 -0
- package/lib/routes/txrjy/fornumtopic.ts +1 -1
- package/lib/routes/tynu/tynu.ts +6 -4
- package/lib/routes/typora/changelog-dev.ts +6 -4
- package/lib/routes/typora/changelog.ts +5 -3
- package/lib/routes/u9a9/index.ts +6 -4
- package/lib/routes/uber/blog.ts +6 -4
- package/lib/routes/ucas/ai.ts +5 -3
- package/lib/routes/ucas/rader.ts +4 -4
- package/lib/routes/uchicago/current.ts +5 -3
- package/lib/routes/udn/breaking-news.ts +6 -4
- package/lib/routes/udn/global/index.ts +5 -3
- package/lib/routes/udn/global/tag.ts +5 -3
- package/lib/routes/uestc/auto.ts +5 -3
- package/lib/routes/uestc/cqe.ts +8 -5
- package/lib/routes/uestc/gr.ts +5 -3
- package/lib/routes/uestc/jwc.ts +8 -5
- package/lib/routes/uestc/news.ts +8 -5
- package/lib/routes/uestc/scse.ts +5 -3
- package/lib/routes/uestc/sice.ts +5 -3
- package/lib/routes/uestc/sise.ts +8 -5
- package/lib/routes/uibe/hr.ts +5 -3
- package/lib/routes/ulapia/research.ts +5 -3
- package/lib/routes/unraid/community-apps.ts +5 -3
- package/lib/routes/unusualwhales/news.ts +5 -3
- package/lib/routes/upc/yjs.ts +5 -3
- package/lib/routes/uptimerobot/rss.ts +11 -8
- package/lib/routes/uraaka-joshi/uraaka-joshi-user.ts +5 -3
- package/lib/routes/uraaka-joshi/uraaka-joshi.ts +6 -4
- package/lib/routes/urbandictionary/random.ts +6 -4
- package/lib/routes/usenix/loginonline.ts +63 -0
- package/lib/routes/usenix/usenix.ts +5 -3
- package/lib/routes/ustb/tj/news.ts +1 -1
- package/lib/routes/ustb/yjsy/news.ts +5 -3
- package/lib/routes/ustb/yzxc/tzgg.ts +5 -3
- package/lib/routes/ustc/eeis.ts +8 -5
- package/lib/routes/ustc/gs.ts +8 -5
- package/lib/routes/ustc/index.ts +6 -4
- package/lib/routes/ustc/job.ts +6 -4
- package/lib/routes/ustc/jwc.ts +6 -4
- package/lib/routes/ustc/math.ts +94 -0
- package/lib/routes/ustc/sist.ts +8 -5
- package/lib/routes/utgd/category.ts +7 -5
- package/lib/routes/utgd/timeline.ts +6 -4
- package/lib/routes/utgd/topic.ts +9 -6
- package/lib/routes/uw/gix/news.ts +5 -3
- package/lib/routes/v1tx/index.ts +6 -4
- package/lib/routes/v2ex/post.ts +5 -3
- package/lib/routes/v2rayshare/index.ts +6 -4
- package/lib/routes/vcb-s/category.ts +6 -4
- package/lib/routes/vcb-s/index.ts +7 -5
- package/lib/routes/verfghbw/press.ts +6 -4
- package/lib/routes/vimeo/category.ts +1 -1
- package/lib/routes/vimeo/channel.ts +6 -4
- package/lib/routes/vimeo/usr-videos.ts +2 -2
- package/lib/routes/vocus/publication.ts +5 -3
- package/lib/routes/vom/featured.ts +6 -4
- package/lib/routes/wallhaven/index.ts +5 -3
- package/lib/routes/wallpaperhub/index.ts +7 -5
- package/lib/routes/wallstreetcn/hot.ts +5 -3
- package/lib/routes/wallstreetcn/live.ts +7 -5
- package/lib/routes/wallstreetcn/news.ts +5 -3
- package/lib/routes/wanqu/news.ts +5 -3
- package/lib/routes/warthunder/news.ts +6 -4
- package/lib/routes/watasuke/blog.ts +42 -0
- package/lib/routes/watasuke/namespace.ts +7 -0
- package/lib/routes/web/articles.ts +25 -0
- package/lib/routes/web/blog.ts +25 -0
- package/lib/routes/web/namespace.ts +6 -0
- package/lib/routes/web/series.ts +32 -0
- package/lib/routes/web/utils.ts +68 -0
- package/lib/routes/wechat/announce.ts +5 -3
- package/lib/routes/wechat/ce.ts +5 -3
- package/lib/routes/wechat/data258.ts +8 -5
- package/lib/routes/wechat/feeddd.ts +8 -12
- package/lib/routes/wechat/tgchannel.ts +1 -1
- package/lib/routes/weekendhk/posts.ts +6 -4
- package/lib/routes/weibo/friends.ts +8 -5
- package/lib/routes/weibo/group.ts +2 -1
- package/lib/routes/weibo/oasis/user.ts +6 -4
- package/lib/routes/weibo/search/hot.ts +6 -6
- package/lib/routes/weibo/super-index.ts +6 -4
- package/lib/routes/weibo/user.ts +6 -4
- package/lib/routes/wfdf/news.ts +5 -3
- package/lib/routes/wfu/jwc.ts +5 -3
- package/lib/routes/wfu/news.ts +7 -5
- package/lib/routes/whitehouse/briefing-room.ts +6 -4
- package/lib/routes/whitehouse/ostp.ts +5 -3
- package/lib/routes/who/news-room.ts +6 -4
- package/lib/routes/who/news.ts +6 -4
- package/lib/routes/who/speeches.ts +6 -4
- package/lib/routes/whu/gs/index.ts +6 -4
- package/lib/routes/whu/news.ts +1 -1
- package/lib/routes/whu/util.ts +1 -1
- package/lib/routes/wikinews/index.ts +5 -3
- package/lib/routes/winstall/update.ts +6 -4
- package/lib/routes/wise/pair.ts +1 -1
- package/lib/routes/wizfile/index.ts +5 -3
- package/lib/routes/wmc-bj/publish.ts +1 -1
- package/lib/routes/wmpvp/index.ts +28 -15
- package/lib/routes/wnacg/index.ts +9 -6
- package/lib/routes/wordpress/index.ts +172 -0
- package/lib/routes/wordpress/namespace.ts +8 -0
- package/lib/routes/wordpress/util.ts +307 -0
- package/lib/routes/worldjournal/index.ts +6 -4
- package/lib/routes/woshipm/popular.ts +6 -4
- package/lib/routes/woshipm/user-article.ts +5 -3
- package/lib/routes/woshipm/wen.ts +5 -3
- package/lib/routes/wsj/utils.ts +1 -1
- package/lib/routes/wtu/job.ts +5 -3
- package/lib/routes/wyzxwk/article.ts +5 -3
- package/lib/routes/x-mol/news.ts +7 -5
- package/lib/routes/x6d/index.ts +79 -37
- package/lib/routes/xboxfan/news.ts +5 -3
- package/lib/routes/xianbao/index.ts +142 -0
- package/lib/routes/xianbao/namespace.ts +6 -0
- package/lib/routes/xiaoheihe/add2cart.ts +63 -0
- package/lib/routes/xiaoheihe/discount.ts +102 -0
- package/lib/routes/xiaoheihe/namespace.ts +6 -0
- package/lib/routes/xiaoheihe/news.ts +60 -0
- package/lib/routes/xiaoheihe/user.ts +69 -0
- package/lib/routes/xiaoheihe/util.ts +75 -0
- package/lib/routes/xiaohongshu/board.ts +5 -3
- package/lib/routes/xiaohongshu/notes.ts +6 -4
- package/lib/routes/xiaohongshu/user.ts +3 -2
- package/lib/routes/xiaomiyoupin/crowdfunding.ts +6 -4
- package/lib/routes/xiaomiyoupin/latest.ts +5 -3
- package/lib/routes/xiaomiyoupin/utils.ts +1 -1
- package/lib/routes/xiaote/index.ts +5 -3
- package/lib/routes/xiaoyuzhou/pickup.ts +6 -4
- package/lib/routes/xiaoyuzhou/podcast.ts +5 -3
- package/lib/routes/xiaozhuanlan/column.ts +5 -3
- package/lib/routes/xinpianchang/util.ts +1 -1
- package/lib/routes/xjtu/dean.ts +22 -23
- package/lib/routes/xjtu/ee.ts +5 -3
- package/lib/routes/xjtu/gs/tzgg.ts +5 -3
- package/lib/routes/xjtu/job.ts +1 -1
- package/lib/routes/xjtu/std.ts +1 -1
- package/lib/routes/xkb/index.ts +1 -1
- package/lib/routes/xmanhua/index.ts +5 -3
- package/lib/routes/xmnn/epaper.ts +6 -4
- package/lib/routes/xsijishe/forum.ts +1 -1
- package/lib/routes/xsijishe/rank.ts +2 -1
- package/lib/routes/xueqiu/column.ts +5 -3
- package/lib/routes/xueqiu/favorite.ts +5 -3
- package/lib/routes/xueqiu/hots.ts +5 -3
- package/lib/routes/xueqiu/snb.ts +5 -3
- package/lib/routes/xueqiu/stock-comments.ts +6 -4
- package/lib/routes/xueqiu/stock-info.ts +6 -4
- package/lib/routes/xueqiu/timeline.ts +94 -0
- package/lib/routes/xueqiu/today.ts +5 -3
- package/lib/routes/xueqiu/user-stock.ts +19 -20
- package/lib/routes/xueqiu/user.ts +10 -7
- package/lib/routes/xunhupay/index.ts +24 -25
- package/lib/routes/xys/new.ts +6 -4
- package/lib/routes/xyzrank/index.ts +7 -5
- package/lib/routes/yahoo/news/tw/index.ts +7 -4
- package/lib/routes/yahoo/news/tw/provider-helper.ts +2 -1
- package/lib/routes/yahoo/news/tw/provider.ts +2 -1
- package/lib/routes/yahoo/news/tw/utils.ts +1 -1
- package/lib/routes/yahoo/news/us/index.ts +2 -1
- package/lib/routes/yande/namespace.ts +7 -0
- package/lib/{routes-deprecated/yande.re/post-popular-recent.js → routes/yande/post.ts} +27 -6
- package/lib/routes/ycwb/index.ts +1 -1
- package/lib/routes/ygkkk/namespace.ts +6 -0
- package/lib/routes/ygkkk/rss.ts +48 -0
- package/lib/routes/yicai/author.ts +6 -4
- package/lib/routes/yicai/brief.ts +5 -3
- package/lib/routes/yicai/dt.ts +1 -1
- package/lib/routes/yicai/feed.ts +6 -4
- package/lib/routes/yicai/headline.ts +5 -3
- package/lib/routes/yicai/latest.ts +5 -3
- package/lib/routes/yicai/news.ts +6 -4
- package/lib/routes/yicai/utils.ts +1 -1
- package/lib/routes/yicai/video.ts +6 -4
- package/lib/routes/yicai/vip.ts +6 -4
- package/lib/routes/ymgal/game.ts +6 -4
- package/lib/routes/yoasobi-music/info.ts +7 -5
- package/lib/routes/yoasobi-music/live.ts +6 -4
- package/lib/routes/yoasobi-music/media.ts +6 -4
- package/lib/routes/yomiuri/news.ts +5 -3
- package/lib/routes/yomujp/level.ts +6 -4
- package/lib/routes/youku/channel.ts +7 -5
- package/lib/routes/youtube/channel.ts +16 -7
- package/lib/routes/youtube/charts.ts +5 -12
- package/lib/routes/youtube/community.ts +2 -10
- package/lib/routes/youtube/custom.ts +14 -8
- package/lib/routes/youtube/live.ts +2 -1
- package/lib/routes/youtube/playlist.ts +2 -1
- package/lib/routes/youtube/subscriptions.ts +11 -14
- package/lib/routes/youtube/user.ts +8 -5
- package/lib/routes/youtube/utils.ts +112 -102
- package/lib/routes/youzhiyouxing/materials.ts +6 -4
- package/lib/routes/yuque/book.ts +5 -3
- package/lib/routes/yxdown/recommend.ts +5 -3
- package/lib/routes/yxdzqb/index.ts +6 -4
- package/lib/routes/yxrb/home.ts +6 -4
- package/lib/routes/yyets/today.ts +5 -3
- package/lib/routes/yystv/docs.ts +5 -3
- package/lib/routes/zagg/new-arrivals.ts +1 -1
- package/lib/routes/zaker/index.ts +6 -4
- package/lib/routes/zaobao/util.ts +1 -1
- package/lib/routes/zaozao/article.ts +6 -4
- package/lib/routes/zcool/discover.ts +1 -1
- package/lib/routes/zcool/user.ts +14 -6
- package/lib/routes/zcool/utils.ts +1 -1
- package/lib/routes/zhibo8/luxiang.ts +6 -4
- package/lib/routes/zhibo8/more.ts +11 -5
- package/lib/routes/zhihu/activities.ts +10 -7
- package/lib/routes/zhihu/answers.ts +5 -3
- package/lib/routes/zhihu/collection.ts +6 -4
- package/lib/routes/zhihu/daily-section.ts +6 -4
- package/lib/routes/zhihu/daily.ts +9 -7
- package/lib/routes/zhihu/hotlist.ts +5 -3
- package/lib/routes/zhihu/pin/daily.ts +6 -4
- package/lib/routes/zhihu/pin/hotlist.ts +5 -3
- package/lib/routes/zhihu/pin/people.ts +5 -3
- package/lib/routes/zhihu/posts.ts +5 -3
- package/lib/routes/zhihu/question.ts +6 -4
- package/lib/routes/zhihu/timeline.ts +13 -8
- package/lib/routes/zhihu/topic.ts +6 -4
- package/lib/routes/zhihu/utils.ts +6 -2
- package/lib/routes/zhihu/weekly.ts +5 -3
- package/lib/routes/zhihu/xhu/activities.ts +6 -4
- package/lib/routes/zhihu/xhu/answers.ts +6 -4
- package/lib/routes/zhihu/xhu/auth.ts +7 -15
- package/lib/routes/zhihu/xhu/collection.ts +5 -3
- package/lib/routes/zhihu/xhu/question.ts +6 -4
- package/lib/routes/zhihu/xhu/topic.ts +6 -4
- package/lib/routes/zhihu/xhu/zhuanlan.ts +6 -4
- package/lib/routes/zhihu/zhuanlan.ts +5 -3
- package/lib/routes/zhitongcaijing/index.ts +1 -1
- package/lib/routes/zhiy/letter.ts +5 -3
- package/lib/routes/zhiy/post.ts +6 -4
- package/lib/routes/zhonglun/index.ts +135 -0
- package/lib/routes/zhonglun/namespace.ts +8 -0
- package/lib/routes/zhonglun/templates/description.art +7 -0
- package/lib/routes/zhubai/index.ts +4 -3
- package/lib/routes/zhubai/top20.ts +7 -5
- package/lib/routes/zhujiceping/rss.ts +8 -5
- package/lib/routes/zhuwang/index.ts +6 -4
- package/lib/routes/zimuxia/portfolio.ts +5 -3
- package/lib/routes/zjol/paper.ts +2 -1
- package/lib/routes/zju/cst/index.ts +4 -1
- package/lib/routes/zjut/da/index.ts +92 -0
- package/lib/routes/zjut/namespace.ts +6 -0
- package/lib/routes/zjut/news.ts +82 -0
- package/lib/routes/zodgame/forum.ts +3 -2
- package/lib/routes/zotero/versions.ts +5 -3
- package/lib/routes/zrblog/rss.ts +8 -5
- package/lib/routes/zsxq/group.ts +63 -0
- package/lib/routes/zsxq/namespace.ts +6 -0
- package/lib/routes/zsxq/types.ts +149 -0
- package/lib/routes/zsxq/user.ts +58 -0
- package/lib/routes/zsxq/utils.ts +70 -0
- package/lib/routes/zuel/notice.ts +5 -3
- package/lib/routes/zuvio/utils.ts +1 -1
- package/lib/routes/zyshow/index.ts +1 -1
- package/lib/routes-deprecated/disqus/posts.js +1 -1
- package/lib/routes-deprecated/fanfou/favorites.js +1 -1
- package/lib/routes-deprecated/fanfou/home-timeline.js +1 -1
- package/lib/routes-deprecated/fanfou/public-timeline.js +1 -1
- package/lib/routes-deprecated/fanfou/user-timeline.js +1 -1
- package/lib/routes-deprecated/index.js +1 -1
- package/lib/routes-deprecated/lastfm/loved.js +1 -1
- package/lib/routes-deprecated/lastfm/recent.js +1 -1
- package/lib/routes-deprecated/lastfm/top.js +1 -1
- package/lib/routes.test.ts +78 -0
- package/lib/setup.test.ts +248 -0
- package/lib/types.ts +160 -7
- package/lib/utils/common-config.test.ts +0 -18
- package/lib/utils/common-config.ts +6 -6
- package/lib/utils/git-hash.ts +3 -3
- package/lib/utils/got-deprecated.ts +79 -0
- package/lib/utils/got.test.ts +49 -61
- package/lib/utils/got.ts +84 -81
- package/lib/utils/helpers.ts +1 -1
- package/lib/utils/logger.ts +1 -1
- package/lib/utils/ofetch.test.ts +51 -0
- package/lib/utils/ofetch.ts +17 -0
- package/lib/utils/proxy/index.ts +19 -5
- package/lib/utils/puppeteer-utils.test.ts +3 -3
- package/lib/utils/puppeteer.test.ts +2 -2
- package/lib/utils/puppeteer.ts +1 -24
- package/lib/utils/rand-user-agent.test.ts +5 -20
- package/lib/utils/rand-user-agent.ts +2 -1
- package/lib/utils/render.ts +3 -1
- package/lib/utils/request-rewriter/fetch.ts +50 -0
- package/lib/utils/request-rewriter/get.ts +77 -0
- package/lib/utils/request-rewriter/index.ts +19 -0
- package/lib/utils/request-rewriter.test.ts +137 -0
- package/lib/utils/rss-parser.test.ts +4 -12
- package/lib/utils/timezone.ts +1 -1
- package/lib/utils/wechat-mp.test.ts +412 -50
- package/lib/utils/wechat-mp.ts +448 -79
- package/lib/views/atom.tsx +49 -0
- package/lib/views/error.tsx +75 -21
- package/lib/views/index.tsx +2 -2
- package/lib/views/rss.tsx +54 -0
- package/lib/views/{rss3-ums.ts → rss3.ts} +2 -2
- package/package.json +74 -75
- package/lib/errors/not-found.ts +0 -3
- package/lib/errors/reject.ts +0 -3
- package/lib/errors/request-in-progress.ts +0 -3
- package/lib/routes/500px/user.ts +0 -58
- package/lib/routes/douban/other/latest-book.ts +0 -38
- package/lib/routes/twitter/api-fallback-common.ts +0 -17
- package/lib/routes/twitter/collection.ts +0 -86
- package/lib/routes/twitter/followings.ts +0 -75
- package/lib/routes/twitter/web-api/media.ts +0 -25
- package/lib/routes/twitter/web-api/search.ts +0 -18
- package/lib/routes/twitter/web-api/tweet.ts +0 -27
- package/lib/routes/twitter/web-api/user.ts +0 -30
- package/lib/routes/wechat/feeds.ts +0 -23
- package/lib/routes/wechat/wxnmh.ts +0 -45
- package/lib/routes/zhangyoubao/index.ts +0 -70
- package/lib/routes/zhangyoubao/templates/article.art +0 -1
- package/lib/routes-deprecated/005tv/zx.js +0 -24
- package/lib/routes-deprecated/1x/index.js +0 -69
- package/lib/routes-deprecated/blogs/wordpress.js +0 -50
- package/lib/routes-deprecated/fanxinzhui/latest.js +0 -52
- package/lib/routes-deprecated/infzm/news.js +0 -62
- package/lib/routes-deprecated/ipsw/index.js +0 -107
- package/lib/routes-deprecated/kaopunews/index.js +0 -28
- package/lib/routes-deprecated/manxiaosi/book.js +0 -49
- package/lib/routes-deprecated/miniflux/get-feeds.js +0 -90
- package/lib/routes-deprecated/modian/zhongchou.js +0 -57
- package/lib/routes-deprecated/pcr/news-cn.js +0 -28
- package/lib/routes-deprecated/pcr/news-tw.js +0 -67
- package/lib/routes-deprecated/pediy/topic.js +0 -117
- package/lib/routes-deprecated/pediy/utils.js +0 -27
- package/lib/routes-deprecated/steam/search.js +0 -57
- package/lib/routes-deprecated/xiaoheihe/discount.js +0 -71
- package/lib/routes-deprecated/xiaoheihe/news.js +0 -51
- package/lib/routes-deprecated/xiaoheihe/user.js +0 -51
- package/lib/utils/request-wrapper.test.ts +0 -365
- package/lib/utils/request-wrapper.ts +0 -104
- package/lib/views/atom.art +0 -86
- package/lib/views/rss.art +0 -60
- /package/lib/routes/twitter/{web-api → api/mobile-api}/constants.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MiddlewareHandler } from 'hono';
|
|
2
2
|
import { config } from '@/config';
|
|
3
3
|
import md5 from '@/utils/md5';
|
|
4
|
-
import RejectError from '@/errors/reject';
|
|
4
|
+
import RejectError from '@/errors/types/reject';
|
|
5
5
|
|
|
6
6
|
const reject = () => {
|
|
7
7
|
throw new RejectError('Authentication failed. Access denied.');
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import { describe, expect, it, vi, afterEach
|
|
1
|
+
import { describe, expect, it, vi, afterEach } from 'vitest';
|
|
2
2
|
import Parser from 'rss-parser';
|
|
3
3
|
import wait from '@/utils/wait';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
process.env.CACHE_EXPIRE = '1';
|
|
6
|
+
process.env.CACHE_CONTENT_EXPIRE = '2';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
process.env.CACHE_EXPIRE = '1';
|
|
9
|
-
process.env.CACHE_CONTENT_EXPIRE = '3';
|
|
10
|
-
});
|
|
8
|
+
const parser = new Parser();
|
|
11
9
|
|
|
12
10
|
afterEach(() => {
|
|
13
|
-
delete process.env.CACHE_TYPE;
|
|
14
11
|
vi.resetModules();
|
|
15
12
|
});
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
const noCacheTestFunc = async () => {
|
|
15
|
+
const app = (await import('@/app')).default;
|
|
16
|
+
|
|
17
|
+
const response1 = await app.request('/test/cache');
|
|
18
|
+
const response2 = await app.request('/test/cache');
|
|
19
|
+
|
|
20
|
+
const parsed1 = await parser.parseString(await response1.text());
|
|
21
|
+
const parsed2 = await parser.parseString(await response2.text());
|
|
22
|
+
|
|
23
|
+
expect(response2.status).toBe(200);
|
|
24
|
+
expect(response2.headers).not.toHaveProperty('rsshub-cache-status');
|
|
25
|
+
|
|
26
|
+
expect(parsed1.items[0].content).toBe('Cache1');
|
|
27
|
+
expect(parsed2.items[0].content).toBe('Cache2');
|
|
28
|
+
|
|
29
|
+
expect(parsed1.ttl).toEqual('1');
|
|
30
|
+
};
|
|
20
31
|
|
|
21
32
|
describe('cache', () => {
|
|
22
33
|
it('memory', async () => {
|
|
@@ -40,12 +51,14 @@ describe('cache', () => {
|
|
|
40
51
|
expect(response2.status).toBe(200);
|
|
41
52
|
expect(response2.headers.get('rsshub-cache-status')).toBe('HIT');
|
|
42
53
|
|
|
54
|
+
expect(parsed1.ttl).toEqual('1');
|
|
55
|
+
|
|
43
56
|
await wait(1 * 1000 + 100);
|
|
44
57
|
const response3 = await app.request('/test/cache');
|
|
45
58
|
expect(response3.headers).not.toHaveProperty('rsshub-cache-status');
|
|
46
59
|
const parsed3 = await parser.parseString(await response3.text());
|
|
47
60
|
|
|
48
|
-
await wait(
|
|
61
|
+
await wait(2 * 1000 + 100);
|
|
49
62
|
const response4 = await app.request('/test/cache');
|
|
50
63
|
const parsed4 = await parser.parseString(await response4.text());
|
|
51
64
|
|
|
@@ -58,7 +71,7 @@ describe('cache', () => {
|
|
|
58
71
|
await wait(1 * 1000 + 100);
|
|
59
72
|
const response5 = await app.request('/test/refreshCache');
|
|
60
73
|
const parsed5 = await parser.parseString(await response5.text());
|
|
61
|
-
await wait(
|
|
74
|
+
await wait(1 * 1000 + 100);
|
|
62
75
|
const response6 = await app.request('/test/refreshCache');
|
|
63
76
|
const parsed6 = await parser.parseString(await response6.text());
|
|
64
77
|
|
|
@@ -88,12 +101,14 @@ describe('cache', () => {
|
|
|
88
101
|
expect(response2.status).toBe(200);
|
|
89
102
|
expect(response2.headers.get('rsshub-cache-status')).toBe('HIT');
|
|
90
103
|
|
|
104
|
+
expect(parsed1.ttl).toEqual('1');
|
|
105
|
+
|
|
91
106
|
await wait(1 * 1000 + 100);
|
|
92
107
|
const response3 = await app.request('/test/cache');
|
|
93
108
|
expect(response3.headers).not.toHaveProperty('rsshub-cache-status');
|
|
94
109
|
const parsed3 = await parser.parseString(await response3.text());
|
|
95
110
|
|
|
96
|
-
await wait(
|
|
111
|
+
await wait(2 * 1000 + 100);
|
|
97
112
|
const response4 = await app.request('/test/cache');
|
|
98
113
|
const parsed4 = await parser.parseString(await response4.text());
|
|
99
114
|
|
|
@@ -106,7 +121,7 @@ describe('cache', () => {
|
|
|
106
121
|
await wait(1 * 1000 + 100);
|
|
107
122
|
const response5 = await app.request('/test/refreshCache');
|
|
108
123
|
const parsed5 = await parser.parseString(await response5.text());
|
|
109
|
-
await wait(
|
|
124
|
+
await wait(1 * 1000 + 100);
|
|
110
125
|
const response6 = await app.request('/test/refreshCache');
|
|
111
126
|
const parsed6 = await parser.parseString(await response6.text());
|
|
112
127
|
|
|
@@ -121,57 +136,25 @@ describe('cache', () => {
|
|
|
121
136
|
process.env.CACHE_TYPE = 'redis';
|
|
122
137
|
const cache = (await import('@/utils/cache')).default;
|
|
123
138
|
await cache.clients.redisClient!.quit();
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const response1 = await app.request('/test/cache');
|
|
127
|
-
const response2 = await app.request('/test/cache');
|
|
128
|
-
|
|
129
|
-
const parsed1 = await parser.parseString(await response1.text());
|
|
130
|
-
const parsed2 = await parser.parseString(await response2.text());
|
|
131
|
-
|
|
132
|
-
expect(response2.status).toBe(200);
|
|
133
|
-
expect(response2.headers).not.toHaveProperty('rsshub-cache-status');
|
|
134
|
-
|
|
135
|
-
expect(parsed1.items[0].content).toBe('Cache1');
|
|
136
|
-
expect(parsed2.items[0].content).toBe('Cache2');
|
|
139
|
+
await noCacheTestFunc();
|
|
137
140
|
});
|
|
138
141
|
|
|
139
142
|
it('redis with error', async () => {
|
|
140
143
|
process.env.CACHE_TYPE = 'redis';
|
|
141
144
|
process.env.REDIS_URL = 'redis://wrongpath:6379';
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
const response1 = await app.request('/test/cache');
|
|
145
|
-
const response2 = await app.request('/test/cache');
|
|
146
|
-
|
|
147
|
-
const parsed1 = await parser.parseString(await response1.text());
|
|
148
|
-
const parsed2 = await parser.parseString(await response2.text());
|
|
149
|
-
|
|
150
|
-
expect(response2.status).toBe(200);
|
|
151
|
-
expect(response2.headers).not.toHaveProperty('rsshub-cache-status');
|
|
152
|
-
|
|
153
|
-
expect(parsed1.items[0].content).toBe('Cache1');
|
|
154
|
-
expect(parsed2.items[0].content).toBe('Cache2');
|
|
155
|
-
|
|
145
|
+
await noCacheTestFunc();
|
|
156
146
|
const cache = (await import('@/utils/cache')).default;
|
|
157
147
|
await cache.clients.redisClient!.quit();
|
|
158
148
|
});
|
|
159
149
|
|
|
160
150
|
it('no cache', async () => {
|
|
161
151
|
process.env.CACHE_TYPE = 'NO';
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const response1 = await app.request('/test/cache');
|
|
165
|
-
const response2 = await app.request('/test/cache');
|
|
166
|
-
|
|
167
|
-
const parsed1 = await parser.parseString(await response1.text());
|
|
168
|
-
const parsed2 = await parser.parseString(await response2.text());
|
|
169
|
-
|
|
170
|
-
expect(response2.status).toBe(200);
|
|
171
|
-
expect(response2.headers).not.toHaveProperty('rsshub-cache-status');
|
|
152
|
+
await noCacheTestFunc();
|
|
153
|
+
});
|
|
172
154
|
|
|
173
|
-
|
|
174
|
-
|
|
155
|
+
it('no cache (empty string)', async () => {
|
|
156
|
+
process.env.CACHE_TYPE = '';
|
|
157
|
+
await noCacheTestFunc();
|
|
175
158
|
});
|
|
176
159
|
|
|
177
160
|
it('throws URL key', async () => {
|
|
@@ -185,4 +168,22 @@ describe('cache', () => {
|
|
|
185
168
|
expect(error.message).toContain('Cache key must be a string');
|
|
186
169
|
}
|
|
187
170
|
});
|
|
171
|
+
|
|
172
|
+
it('RSS TTL (no cache)', async () => {
|
|
173
|
+
process.env.CACHE_TYPE = '';
|
|
174
|
+
process.env.CACHE_EXPIRE = '600';
|
|
175
|
+
const app = (await import('@/app')).default;
|
|
176
|
+
const response = await app.request('/test/cache');
|
|
177
|
+
const parsed = await parser.parseString(await response.text());
|
|
178
|
+
expect(parsed.ttl).toEqual('1');
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
it('RSS TTL (w/ cache)', async () => {
|
|
182
|
+
process.env.CACHE_TYPE = 'memory';
|
|
183
|
+
process.env.CACHE_EXPIRE = '600';
|
|
184
|
+
const app = (await import('@/app')).default;
|
|
185
|
+
const response = await app.request('/test/cache');
|
|
186
|
+
const parsed = await parser.parseString(await response.text());
|
|
187
|
+
expect(parsed.ttl).toEqual('10');
|
|
188
|
+
});
|
|
188
189
|
});
|
package/lib/middleware/cache.ts
CHANGED
|
@@ -2,7 +2,7 @@ import xxhash from 'xxhash-wasm';
|
|
|
2
2
|
import type { MiddlewareHandler } from 'hono';
|
|
3
3
|
|
|
4
4
|
import { config } from '@/config';
|
|
5
|
-
import RequestInProgressError from '@/errors/request-in-progress';
|
|
5
|
+
import RequestInProgressError from '@/errors/types/request-in-progress';
|
|
6
6
|
import cacheModule from '@/utils/cache/index';
|
|
7
7
|
import { Data } from '@/types';
|
|
8
8
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { describe, expect, it, vi } from 'vitest';
|
|
2
|
-
import app from '@/app';
|
|
3
2
|
import Parser from 'rss-parser';
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
process.env.OPENAI_API_KEY = 'sk-1234567890';
|
|
5
|
+
process.env.OPENAI_API_ENDPOINT = 'https://api.openai.mock/v1';
|
|
6
|
+
|
|
7
|
+
vi.mock('@/utils/request-rewriter', () => ({ default: null }));
|
|
8
|
+
const { config } = await import('@/config');
|
|
9
|
+
const { default: app } = await import('@/app');
|
|
6
10
|
|
|
7
11
|
const parser = new Parser();
|
|
8
12
|
|
|
@@ -320,7 +324,7 @@ describe('wrong_path', () => {
|
|
|
320
324
|
const response = await app.request('/wrong');
|
|
321
325
|
expect(response.status).toBe(404);
|
|
322
326
|
expect(response.headers.get('cache-control')).toBe(`public, max-age=${config.cache.routeExpire}`);
|
|
323
|
-
expect(await response.text()).toMatch('
|
|
327
|
+
expect(await response.text()).toMatch('The route does not exist or has been deleted.');
|
|
324
328
|
});
|
|
325
329
|
});
|
|
326
330
|
|
|
@@ -424,26 +428,6 @@ describe('multi parameter', () => {
|
|
|
424
428
|
|
|
425
429
|
describe('openai', () => {
|
|
426
430
|
it(`chatgpt`, async () => {
|
|
427
|
-
vi.resetModules();
|
|
428
|
-
|
|
429
|
-
process.env.OPENAI_API_KEY = 'sk-1234567890';
|
|
430
|
-
const app = (await import('@/app')).default;
|
|
431
|
-
const { config } = await import('@/config');
|
|
432
|
-
nock(config.openai.endpoint)
|
|
433
|
-
.post('/chat/completions')
|
|
434
|
-
.reply(() => [
|
|
435
|
-
200,
|
|
436
|
-
{
|
|
437
|
-
choices: [
|
|
438
|
-
{
|
|
439
|
-
message: {
|
|
440
|
-
content: 'Summary of the article.',
|
|
441
|
-
},
|
|
442
|
-
},
|
|
443
|
-
],
|
|
444
|
-
},
|
|
445
|
-
]);
|
|
446
|
-
|
|
447
431
|
const responseWithGpt = await app.request('/test/gpt?chatgpt=true');
|
|
448
432
|
const responseNormal = await app.request('/test/gpt');
|
|
449
433
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as entities from 'entities';
|
|
2
2
|
import { load, type CheerioAPI, type Element } from 'cheerio';
|
|
3
3
|
import { simplecc } from 'simplecc-wasm';
|
|
4
|
-
import
|
|
4
|
+
import ofetch from '@/utils/ofetch';
|
|
5
5
|
import { config } from '@/config';
|
|
6
6
|
import { RE2JS } from 're2js';
|
|
7
7
|
import markdownit from 'markdown-it';
|
|
@@ -34,8 +34,9 @@ const resolveRelativeLink = ($: CheerioAPI, elem: Element, attr: string, baseUrl
|
|
|
34
34
|
|
|
35
35
|
const summarizeArticle = async (articleText: string) => {
|
|
36
36
|
const apiUrl = `${config.openai.endpoint}/chat/completions`;
|
|
37
|
-
const response = await
|
|
38
|
-
|
|
37
|
+
const response = await ofetch(apiUrl, {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
body: {
|
|
39
40
|
model: config.openai.model,
|
|
40
41
|
max_tokens: config.openai.maxTokens,
|
|
41
42
|
messages: [
|
|
@@ -49,8 +50,7 @@ const summarizeArticle = async (articleText: string) => {
|
|
|
49
50
|
},
|
|
50
51
|
});
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
return response.data.choices[0].message.content;
|
|
53
|
+
return response.choices[0].message.content;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
const getAuthorString = (item) => {
|
|
@@ -305,8 +305,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
|
305
305
|
if (link) {
|
|
306
306
|
// if parser failed, return default description and not report error
|
|
307
307
|
try {
|
|
308
|
-
|
|
309
|
-
const { data: res } = await got(link);
|
|
308
|
+
const res = await ofetch(link);
|
|
310
309
|
const $ = load(res);
|
|
311
310
|
const result = await Parser.parse(link, {
|
|
312
311
|
html: $.html(),
|
|
@@ -380,7 +379,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
|
380
379
|
}
|
|
381
380
|
}
|
|
382
381
|
} else {
|
|
383
|
-
throw new Error(`Invalid parameter brief. Please check the doc https://docs.rsshub.app/
|
|
382
|
+
throw new Error(`Invalid parameter brief. Please check the doc https://docs.rsshub.app/guide/parameters#shu-chu-jian-xun`);
|
|
384
383
|
}
|
|
385
384
|
}
|
|
386
385
|
// some parameters are processed in `anti-hotlink.js`
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as path from 'node:path';
|
|
1
|
+
import { rss3, json, RSS, Atom } from '@/utils/render';
|
|
3
2
|
import { config } from '@/config';
|
|
4
3
|
import { collapseWhitespace, convertDateToISO8601 } from '@/utils/common-utils';
|
|
5
4
|
import type { MiddlewareHandler } from 'hono';
|
|
6
5
|
import { Data } from '@/types';
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
// Set RSS <ttl> (minute) according to the availability of cache
|
|
8
|
+
// * available: max(config.cache.routeExpire / 60, 1)
|
|
9
|
+
// * unavailable: 1
|
|
10
|
+
// The minimum <ttl> is limited to 1 minute to prevent potential misuse
|
|
11
|
+
import cacheModule from '@/utils/cache/index';
|
|
12
|
+
const ttl = (cacheModule.status.available && Math.trunc(config.cache.routeExpire / 60)) || 1;
|
|
10
13
|
|
|
11
14
|
const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
12
15
|
await next();
|
|
@@ -26,9 +29,6 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
const templateName = outputType === 'atom' ? 'atom.art' : 'rss.art';
|
|
30
|
-
const template = path.resolve(__dirname, `../views/${templateName}`);
|
|
31
|
-
|
|
32
32
|
if (data) {
|
|
33
33
|
data.title = collapseWhitespace(data.title) || '';
|
|
34
34
|
data.description && (data.description = collapseWhitespace(data.description) || '');
|
|
@@ -48,6 +48,14 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
if (item.description) {
|
|
52
|
+
// https://stackoverflow.com/questions/2507608/error-input-is-not-proper-utf-8-indicate-encoding-using-phps-simplexml-lo/40552083#40552083
|
|
53
|
+
// https://stackoverflow.com/questions/1497885/remove-control-characters-from-php-string/1497928#1497928
|
|
54
|
+
// remove unicode control characters
|
|
55
|
+
// see #14940 #14943 #15262
|
|
56
|
+
item.description = item.description.replaceAll(/[\u0000-\u0009\u000B\u000C\u000E-\u001F\u007F]/g, '');
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
if (typeof item.author === 'string') {
|
|
52
60
|
item.author = collapseWhitespace(item.author) || '';
|
|
53
61
|
} else if (typeof item.author === 'object' && item.author !== null) {
|
|
@@ -77,7 +85,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
|
77
85
|
const result = {
|
|
78
86
|
lastBuildDate: currentDate.toUTCString(),
|
|
79
87
|
updated: currentDate.toISOString(),
|
|
80
|
-
ttl
|
|
88
|
+
ttl,
|
|
81
89
|
atomlink: ctx.req.url,
|
|
82
90
|
...data,
|
|
83
91
|
};
|
|
@@ -86,15 +94,18 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|
|
86
94
|
return ctx.json(result);
|
|
87
95
|
}
|
|
88
96
|
|
|
89
|
-
|
|
90
|
-
|
|
97
|
+
// retain .ums for backward compatibility
|
|
98
|
+
if (outputType === 'ums' || outputType === 'rss3') {
|
|
99
|
+
return ctx.json(rss3(result));
|
|
91
100
|
} else if (outputType === 'json') {
|
|
92
101
|
ctx.header('Content-Type', 'application/feed+json; charset=UTF-8');
|
|
93
102
|
return ctx.body(json(result));
|
|
94
103
|
} else if (ctx.get('no-content')) {
|
|
95
104
|
return ctx.body(null);
|
|
105
|
+
} else if (outputType === 'atom') {
|
|
106
|
+
return ctx.render(<Atom data={result} />);
|
|
96
107
|
} else {
|
|
97
|
-
return ctx.
|
|
108
|
+
return ctx.render(<RSS data={result} />);
|
|
98
109
|
}
|
|
99
110
|
};
|
|
100
111
|
|
package/lib/registry.test.ts
CHANGED
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
import { describe, expect, it
|
|
2
|
-
process.env.SOCKET = 'socket';
|
|
3
|
-
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
4
2
|
import app from '@/app';
|
|
5
|
-
import Parser from 'rss-parser';
|
|
6
|
-
const parser = new Parser();
|
|
7
3
|
import { config } from '@/config';
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
delete process.env.SOCKET;
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
async function checkRSS(response) {
|
|
14
|
-
const checkDate = (date) => {
|
|
15
|
-
expect(date).toEqual(expect.any(String));
|
|
16
|
-
expect(Date.parse(date)).toEqual(expect.any(Number));
|
|
17
|
-
expect(Date.now() - +new Date(date)).toBeGreaterThan(-1000 * 60 * 60 * 24 * 5);
|
|
18
|
-
expect(Date.now() - +new Date(date)).toBeLessThan(1000 * 60 * 60 * 24 * 30 * 12 * 10);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const parsed = await parser.parseString(await response.text());
|
|
22
|
-
|
|
23
|
-
expect(parsed).toEqual(expect.any(Object));
|
|
24
|
-
expect(parsed.title).toEqual(expect.any(String));
|
|
25
|
-
expect(parsed.title).not.toBe('RSSHub');
|
|
26
|
-
expect(parsed.description).toEqual(expect.any(String));
|
|
27
|
-
expect(parsed.link).toEqual(expect.any(String));
|
|
28
|
-
expect(parsed.lastBuildDate).toEqual(expect.any(String));
|
|
29
|
-
expect(parsed.ttl).toEqual(Math.trunc(config.cache.routeExpire / 60) + '');
|
|
30
|
-
expect(parsed.items).toEqual(expect.any(Array));
|
|
31
|
-
checkDate(parsed.lastBuildDate);
|
|
32
|
-
|
|
33
|
-
// check items
|
|
34
|
-
const guids: (string | undefined)[] = [];
|
|
35
|
-
for (const item of parsed.items) {
|
|
36
|
-
expect(item).toEqual(expect.any(Object));
|
|
37
|
-
expect(item.title).toEqual(expect.any(String));
|
|
38
|
-
expect(item.link).toEqual(expect.any(String));
|
|
39
|
-
expect(item.content).toEqual(expect.any(String));
|
|
40
|
-
expect(item.guid).toEqual(expect.any(String));
|
|
41
|
-
if (item.pubDate) {
|
|
42
|
-
expect(item.pubDate).toEqual(expect.any(String));
|
|
43
|
-
checkDate(item.pubDate);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// guid must be unique
|
|
47
|
-
expect(guids).not.toContain(item.guid);
|
|
48
|
-
guids.push(item.guid);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
describe('router', () => {
|
|
5
|
+
describe('registry', () => {
|
|
53
6
|
// root
|
|
54
7
|
it(`/`, async () => {
|
|
55
8
|
const response = await app.request('/');
|
|
@@ -58,14 +11,6 @@ describe('router', () => {
|
|
|
58
11
|
expect(response.headers.get('cache-control')).toBe('no-cache');
|
|
59
12
|
});
|
|
60
13
|
|
|
61
|
-
// route
|
|
62
|
-
it(`/test/1`, async () => {
|
|
63
|
-
const response = await app.request('/test/1');
|
|
64
|
-
expect(response.status).toBe(200);
|
|
65
|
-
|
|
66
|
-
await checkRSS(response);
|
|
67
|
-
});
|
|
68
|
-
|
|
69
14
|
// robots.txt
|
|
70
15
|
it('/robots.txt', async () => {
|
|
71
16
|
config.disallowRobot = false;
|
package/lib/registry.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { Namespace, Route } from '@/types';
|
|
2
2
|
import { directoryImport } from 'directory-import';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { Hono, type Handler } from 'hono';
|
|
4
|
+
import path from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
import { serveStatic } from '@hono/node-server/serve-static';
|
|
7
7
|
|
|
8
8
|
import index from '@/routes/index';
|
|
9
9
|
import robotstxt from '@/routes/robots.txt';
|
|
10
|
-
import { namespace as testNamespace } from './routes/test/namespace';
|
|
11
|
-
import { route as testRoute } from '@/routes/test/index';
|
|
12
10
|
|
|
13
11
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
14
12
|
|
|
@@ -27,18 +25,9 @@ let namespaces: Record<
|
|
|
27
25
|
|
|
28
26
|
switch (process.env.NODE_ENV) {
|
|
29
27
|
case 'test':
|
|
30
|
-
modules = {
|
|
31
|
-
'/test/namespace.ts': {
|
|
32
|
-
namespace: testNamespace,
|
|
33
|
-
},
|
|
34
|
-
'/test/index.ts': {
|
|
35
|
-
route: testRoute,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
break;
|
|
39
28
|
case 'production':
|
|
40
|
-
//
|
|
41
|
-
namespaces =
|
|
29
|
+
// @ts-expect-error
|
|
30
|
+
namespaces = await import('../assets/build/routes.json');
|
|
42
31
|
break;
|
|
43
32
|
default:
|
|
44
33
|
modules = directoryImport({
|
|
@@ -56,7 +45,7 @@ if (Object.keys(modules).length) {
|
|
|
56
45
|
| {
|
|
57
46
|
namespace: Namespace;
|
|
58
47
|
};
|
|
59
|
-
const namespace = module.split(
|
|
48
|
+
const namespace = module.split(/[/\\]/)[1];
|
|
60
49
|
if ('namespace' in content) {
|
|
61
50
|
namespaces[namespace] = Object.assign(
|
|
62
51
|
{
|
|
@@ -76,13 +65,13 @@ if (Object.keys(modules).length) {
|
|
|
76
65
|
for (const path of content.route.path) {
|
|
77
66
|
namespaces[namespace].routes[path] = {
|
|
78
67
|
...content.route,
|
|
79
|
-
location: module.split(
|
|
68
|
+
location: module.split(/[/\\]/).slice(2).join('/'),
|
|
80
69
|
};
|
|
81
70
|
}
|
|
82
71
|
} else {
|
|
83
72
|
namespaces[namespace].routes[content.route.path] = {
|
|
84
73
|
...content.route,
|
|
85
|
-
location: module.split(
|
|
74
|
+
location: module.split(/[/\\]/).slice(2).join('/'),
|
|
86
75
|
};
|
|
87
76
|
}
|
|
88
77
|
}
|
|
@@ -91,32 +80,31 @@ if (Object.keys(modules).length) {
|
|
|
91
80
|
|
|
92
81
|
export { namespaces };
|
|
93
82
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
ctx.set('data', await namespaces[namespace].routes[path].handler(ctx));
|
|
83
|
+
const app = new Hono();
|
|
84
|
+
for (const namespace in namespaces) {
|
|
85
|
+
const subApp = app.basePath(`/${namespace}`);
|
|
86
|
+
for (const path in namespaces[namespace].routes) {
|
|
87
|
+
const wrapedHandler: Handler = async (ctx) => {
|
|
88
|
+
if (!ctx.get('data')) {
|
|
89
|
+
if (typeof namespaces[namespace].routes[path].handler !== 'function') {
|
|
90
|
+
const { route } = await import(`./routes/${namespace}/${namespaces[namespace].routes[path].location}`);
|
|
91
|
+
namespaces[namespace].routes[path].handler = route.handler;
|
|
105
92
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
93
|
+
ctx.set('data', await namespaces[namespace].routes[path].handler(ctx));
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
subApp.get(path, wrapedHandler);
|
|
109
97
|
}
|
|
98
|
+
}
|
|
110
99
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
100
|
+
app.get('/', index);
|
|
101
|
+
app.get('/robots.txt', robotstxt);
|
|
102
|
+
app.use(
|
|
103
|
+
'/*',
|
|
104
|
+
serveStatic({
|
|
105
|
+
root: './lib/assets',
|
|
106
|
+
rewriteRequestPath: (path) => (path === '/favicon.ico' ? '/favicon.png' : path),
|
|
107
|
+
})
|
|
108
|
+
);
|
|
114
109
|
|
|
115
|
-
|
|
116
|
-
'/*',
|
|
117
|
-
serveStatic({
|
|
118
|
-
root: './lib/assets',
|
|
119
|
-
rewriteRequestPath: (path) => (path === '/favicon.ico' ? '/favicon.png' : path),
|
|
120
|
-
})
|
|
121
|
-
);
|
|
122
|
-
}
|
|
110
|
+
export default app;
|