RSSHub/lib
Rongrong f3cf86cd72
fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294)
* fix(core/utils/wechat-mp): empty description when request blocked by WAF

Silently falling back to the fallback method would generate empty
description. Fixed by throwing an error when failed to extract
item_show_type from the page.

Some misc warnings are also added to make bug reporting easier.

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): err msg for unknown page

Signed-off-by: Rongrong <i@rong.moe>

* test(core/utils/wechat-mp): fix coverage

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): ESLint no-await-in-loop

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): normalizeUrl: &amp; -> &

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): do not prompt raising an issue when blocked
by WAF

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): recognize deleted page

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): log when error

Prevent errors from being completely suppressed if the caller catches
them.

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2024-04-22 02:19:33 +08:00
..
api
assets
errors feat(core/utils/wechat-mp): major rewrite (#15276) 2024-04-18 22:05:32 +08:00
middleware feat: support .rss3 output type (#15258) 2024-04-18 02:10:33 +08:00
routes feat(route): 知识星球 (#15320) 2024-04-22 01:05:59 +08:00
routes-deprecated fix(route): freexcomic (#15240) 2024-04-16 05:35:33 +08:00
utils fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294) 2024-04-22 02:19:33 +08:00
views feat: support .rss3 output type (#15258) 2024-04-18 02:10:33 +08:00
app.test.ts
app.tsx feat: better error message 2024-04-07 13:07:09 +08:00
config.test.ts
config.ts feat(route): 知识星球 (#15320) 2024-04-22 01:05:59 +08:00
index.ts
pkg.test.ts
pkg.ts
registry.test.ts
registry.ts style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
router.js fix(route): 迁移看雪路由 (#15064) 2024-04-05 19:27:42 +08:00
routes.test.ts
setup.test.ts fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294) 2024-04-22 02:19:33 +08:00
types.ts fix(route): rsshub new docs link (#15123) 2024-04-06 01:28:55 +08:00