0.10.0-2 Upload test

This commit is contained in:
2026-03-14 18:47:25 +00:00
parent f628fdac50
commit 652731ae98
10 changed files with 14 additions and 12 deletions

View File

@@ -58,12 +58,12 @@ async function requestCachedGet(path, options = {}) {
if (!forceRefresh && current && current.value !== undefined) {
if (current.expiresAt > now) {
return current.value;
return Promise.resolve(current.value);
}
if (!current.promise) {
void refreshCachedGet(path, ttlMs);
}
return current.value;
return Promise.resolve(current.value);
}
if (!forceRefresh && current?.promise) {