MCPcopy Create free account
hub / github.com/angular/dev-infra / has

Method has

github-actions/saucelabs/set-saucelabs-env.js:16375–16383  ·  view source on GitHub ↗

* @see https://w3c.github.io/ServiceWorker/#cache-storage-has * @param {string} cacheName * @returns {Promise }

(_0)

Source from the content-addressed store, hash-verified

16373 return resultList;
16374 } catch (e) {
16375 __privateGet(this, _relevantRequestResponseList).length = 0;
16376 __privateSet(this, _relevantRequestResponseList, backupCache);
16377 throw e;
16378 }
16379 };
16380 _queryCache = new WeakSet();
16381 queryCache_fn = function(requestQuery, options, targetStorage) {
16382 const resultList = [];
16383 const storage = targetStorage != null ? targetStorage : __privateGet(this, _relevantRequestResponseList);
16384 for (const requestResponse of storage) {
16385 const [cachedRequest, cachedResponse] = requestResponse;
16386 if (__privateMethod(this, _requestMatchesCachedItem, requestMatchesCachedItem_fn).call(this, requestQuery, cachedRequest, cachedResponse, options)) {

Callers

nothing calls this directly

Calls 3

__asyncFunction · 0.70
__privateGetFunction · 0.70
hasMethod · 0.45

Tested by

no test coverage detected