Files
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

26 lines
1009 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "prunePrefetchCache", {
enumerable: true,
get: function() {
return prunePrefetchCache;
}
});
const _getprefetchcacheentrystatus = require("../get-prefetch-cache-entry-status");
function prunePrefetchCache(prefetchCache) {
for (const [href, prefetchCacheEntry] of prefetchCache){
if ((0, _getprefetchcacheentrystatus.getPrefetchEntryCacheStatus)(prefetchCacheEntry) === _getprefetchcacheentrystatus.PrefetchCacheEntryStatus.expired) {
prefetchCache.delete(href);
}
}
}
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
Object.defineProperty(exports.default, '__esModule', { value: true });
Object.assign(exports.default, exports);
module.exports = exports.default;
}
//# sourceMappingURL=prune-prefetch-cache.js.map