added fonts

This commit is contained in:
2025-07-02 11:28:41 +02:00
parent 4134e3a234
commit 142d2986b6
9079 changed files with 1498421 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
export function withPromiseCache(cache, fn, getKey) {
return (...values)=>{
const key = getKey ? getKey(...values) : values[0];
let p = cache.get(key);
if (!p) {
p = fn(...values);
p.catch(()=>cache.remove(key));
cache.set(key, p);
}
return p;
};
}
//# sourceMappingURL=with-promise-cache.js.map