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
+24
View File
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "withPromiseCache", {
enumerable: true,
get: function() {
return withPromiseCache;
}
});
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