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

Method keys

github-actions/browserstack/set-browserstack-env.js:16079–16123  ·  view source on GitHub ↗

* @see https://w3c.github.io/ServiceWorker/#dom-cache-keys * @param {any} request * @param {import('../../types/cache').CacheQueryOptions} options * @returns {Promise }

()

Source from the content-addressed store, hash-verified

16077 clonedResponse.body.source = bytes;
16078 }
16079 const cacheJobPromise = createDeferredPromise();
16080 let errorData = null;
16081 try {
16082 __privateMethod(this, _batchCacheOperations, batchCacheOperations_fn).call(this, operations);
16083 } catch (e) {
16084 errorData = e;
16085 }
16086 queueMicrotask(() => {
16087 if (errorData === null) {
16088 cacheJobPromise.resolve();
16089 } else {
16090 cacheJobPromise.reject(errorData);
16091 }
16092 });
16093 return cacheJobPromise.promise;
16094 });
16095 }
16096 delete(_0) {
16097 return __async(this, arguments, function* (request, options = {}) {
16098 webidl.brandCheck(this, _Cache);
16099 const prefix = "Cache.delete";
16100 webidl.argumentLengthCheck(arguments, 1, prefix);
16101 request = webidl.converters.RequestInfo(request, prefix, "request");
16102 options = webidl.converters.CacheQueryOptions(options, prefix, "options");
16103 let r = null;
16104 if (request instanceof Request) {
16105 r = request[kState];
16106 if (r.method !== "GET" && !options.ignoreMethod) {
16107 return false;
16108 }
16109 } else {
16110 assert(typeof request === "string");
16111 r = new Request(request)[kState];
16112 }
16113 const operations = [];
16114 const operation = {
16115 type: "delete",
16116 request: r,
16117 options
16118 };
16119 operations.push(operation);
16120 const cacheJobPromise = createDeferredPromise();
16121 let errorData = null;
16122 let requestResponses;
16123 try {
16124 requestResponses = __privateMethod(this, _batchCacheOperations, batchCacheOperations_fn).call(this, operations);
16125 } catch (e) {
16126 errorData = e;

Callers 12

mergeOptionsFunction · 0.45
constructorMethod · 0.45
setMethod · 0.45
enumToMapFunction · 0.45
""Function · 0.45
cleanRequestHeadersFunction · 0.45
throwIfProxyAuthIsSentFunction · 0.45
generateKeyValuesFunction · 0.45
fillFunction · 0.45
constructorMethod · 0.45
keysMethod · 0.45
toStringMethod · 0.45

Calls 6

__asyncFunction · 0.70
createDeferredPromiseFunction · 0.70
__privateGetFunction · 0.70
__privateMethodFunction · 0.70
fromInnerRequestFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected