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

Method put

github-actions/browserstack/set-browserstack-env.js:15948–16030  ·  view source on GitHub ↗
(_0, _1)

Source from the content-addressed store, hash-verified

15946 constructor() {
15947 /**
15948 * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm
15949 * @param {CacheBatchOperation[]} operations
15950 * @returns {requestResponseList}
15951 */
15952 __privateAdd(this, _batchCacheOperations);
15953 /**
15954 * @see https://w3c.github.io/ServiceWorker/#query-cache
15955 * @param {any} requestQuery
15956 * @param {import('../../types/cache').CacheQueryOptions} options
15957 * @param {requestResponseList} targetStorage
15958 * @returns {requestResponseList}
15959 */
15960 __privateAdd(this, _queryCache);
15961 /**
15962 * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm
15963 * @param {any} requestQuery
15964 * @param {any} request
15965 * @param {any | null} response
15966 * @param {import('../../types/cache').CacheQueryOptions | undefined} options
15967 * @returns {boolean}
15968 */
15969 __privateAdd(this, _requestMatchesCachedItem);
15970 __privateAdd(this, _internalMatchAll);
15971 /**
15972 * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
15973 * @type {requestResponseList}
15974 */
15975 __privateAdd(this, _relevantRequestResponseList, void 0);
15976 if (arguments[0] !== kConstruct) {
15977 webidl.illegalConstructor();
15978 }
15979 webidl.util.markAsUncloneable(this);
15980 __privateSet(this, _relevantRequestResponseList, arguments[1]);
15981 }
15982 match(_0) {
15983 return __async(this, arguments, function* (request, options = {}) {
15984 webidl.brandCheck(this, _Cache);
15985 const prefix = "Cache.match";
15986 webidl.argumentLengthCheck(arguments, 1, prefix);
15987 request = webidl.converters.RequestInfo(request, prefix, "request");
15988 options = webidl.converters.CacheQueryOptions(options, prefix, "options");
15989 const p = __privateMethod(this, _internalMatchAll, internalMatchAll_fn).call(this, request, options, 1);
15990 if (p.length === 0) {
15991 return;
15992 }
15993 return p[0];
15994 });
15995 }
15996 matchAll() {
15997 return __async(this, arguments, function* (request = void 0, options = {}) {
15998 webidl.brandCheck(this, _Cache);
15999 const prefix = "Cache.matchAll";
16000 if (request !== void 0)
16001 request = webidl.converters.RequestInfo(request, prefix, "request");
16002 options = webidl.converters.CacheQueryOptions(options, prefix, "options");
16003 return __privateMethod(this, _internalMatchAll, internalMatchAll_fn).call(this, request, options);
16004 });
16005 }

Callers

nothing calls this directly

Calls 11

__asyncFunction · 0.70
urlIsHttpHttpsSchemeFunction · 0.70
getFieldValuesFunction · 0.70
isDisturbedFunction · 0.70
cloneResponseFunction · 0.70
createDeferredPromiseFunction · 0.70
readAllBytesFunction · 0.70
__privateMethodFunction · 0.70
containsMethod · 0.45
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected