Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return;
// Invalidate the cache for the resource
const url = match[1];
ldflex.clearCache(url);
// Notify the subscribers
const update = { timestamp: new Date(), url };
for (const subscriber of subscribers[url] || [])
subscriber(update);
for (const subscriber of subscribers[ALL] || [])
subscriber(update);
}
// Keep track of all fetched resources
auth.on('request', url => {
if (!fetchedUrls.has(url)) {
if (ALL in subscribers)
trackResource(url);
fetchedUrls.add(url);
}
});