RSSHub/lib/utils
Yufan You 5589b89478
fix(cache): call JSON.stringify when storing value in cache.tryGet (#20671)
* fix(cache): call JSON.stringify when storing value in cache.tryGet

The value is returned as-is, so we may assume that it's not JSON
stringified inside `getValueFunc`. Otherwise, the caller already needs
to distinguish between values that are either JSON parsed or not.

* Revert "fix(routes/mastodon): don't refresh account ID cache (#20663)"

This reverts commit c2cff410fa.

* test: add test

* test: lint
2026-05-07 01:26:11 +08:00
..
cache fix(cache): call JSON.stringify when storing value in cache.tryGet (#20671) 2026-05-07 01:26:11 +08:00
otel
proxy refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
request-rewriter refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
cache.test.ts fix(cache): call JSON.stringify when storing value in cache.tryGet (#20671) 2026-05-07 01:26:11 +08:00
camelcase-keys.spec.ts
camelcase-keys.ts
common-config.charset.test.ts
common-config.test.ts
common-config.ts
common-utils.test.ts
common-utils.ts
debug-info.ts
directory-import.test.ts
directory-import.ts
directory-import.worker.ts
git-hash.test.ts
git-hash.ts
got.test.ts
got.ts
header-generator.mock.test.ts
header-generator.test.ts
header-generator.ts
helpers.test.ts
helpers.ts
is-worker.ts
is-worker.worker.ts
logger.test.ts
logger.ts
logger.worker.ts
md5.test.ts
md5.ts
ofetch.test.ts
ofetch.ts
parse-date.test.ts
parse-date.ts
playwright-utils.test.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
playwright-utils.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
playwright.mock.test.ts fix: connect playwright ws endpoint via protocol (#21917) 2026-05-05 22:17:25 +08:00
playwright.test.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
playwright.ts fix: connect playwright ws endpoint via protocol (#21917) 2026-05-05 22:17:25 +08:00
playwright.worker.ts fix: connect playwright ws endpoint via protocol (#21917) 2026-05-05 22:17:25 +08:00
puppeteer-utils.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
puppeteer.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
puppeteer.worker.ts refactor: migrate browser automation to Playwright (#21901) 2026-05-04 21:16:18 +08:00
readable-social.test.ts
readable-social.ts
render.ts
request-rewriter.test.ts
rss-parser.test.ts chore(deps-dev): bump tsdown from 0.21.9 to 0.21.10 (#21810) 2026-04-29 05:09:46 +08:00
rss-parser.ts
timezone.test.ts
timezone.ts
valid-host.test.ts
valid-host.ts
wait.test.ts
wait.ts
wechat-mp.test.ts
wechat-mp.ts