packages/dynamic-import/cache.js
Function checkMany
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.checkMany = function (versions) {
var ids = Object.keys(versions);
var sourcesById = Object.create(null);
// Initialize sourcesById with null values to indicate all sources are
Function flushSetMany
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function flushSetMany() {
if (checkCount > 0) {
// If checkMany is currently underway, postpone the flush until later,
// since updating the cache is less important than reading from it.
return flushSetMany.timer = setTimeout(flushSetMany, 100);
Avoid too many return
statements within this function. Open
Open
if (typeof msIndexedDB !== "undefined") return msIndexedDB;