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 }
16078 }
16079 }
16080 },
16081 processResponseEndOfBody(response) {
16082 if (response.aborted) {
16083 responsePromise.reject(new DOMException("aborted", "AbortError"));
16084 return;
16085 }
16086 responsePromise.resolve(response);
16087 }
16088 }));
16089 responsePromises.push(responsePromise.promise);
16090 }
16091 const p = Promise.all(responsePromises);
16092 const responses = yield p;
16093 const operations = [];
16094 let index = 0;
16095 for (const response of responses) {
16096 const operation = {
16097 type: "put",
16098 // 7.3.2
16099 request: requestList[index],
16100 // 7.3.3
16101 response
16102 // 7.3.4
16103 };
16104 operations.push(operation);
16105 index++;
16106 }
16107 const cacheJobPromise = createDeferredPromise();
16108 let errorData = null;
16109 try {
16110 __privateMethod(this, _batchCacheOperations, batchCacheOperations_fn).call(this, operations);
16111 } catch (e) {
16112 errorData = e;
16113 }
16114 queueMicrotask(() => {
16115 if (errorData === null) {
16116 cacheJobPromise.resolve(void 0);
16117 } else {
16118 cacheJobPromise.reject(errorData);
16119 }
16120 });
16121 return cacheJobPromise.promise;
16122 });
16123 }
16124 put(_0, _1) {
16125 return __async(this, arguments, function* (request, response) {
16126 webidl.brandCheck(this, _Cache);

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