(_0)
| 15839 | * @returns {requestResponseList} |
| 15840 | */ |
| 15841 | __privateAdd(this, _batchCacheOperations); |
| 15842 | /** |
| 15843 | * @see https://w3c.github.io/ServiceWorker/#query-cache |
| 15844 | * @param {any} requestQuery |
| 15845 | * @param {import('../../types/cache').CacheQueryOptions} options |
| 15846 | * @param {requestResponseList} targetStorage |
| 15847 | * @returns {requestResponseList} |
| 15848 | */ |
| 15849 | __privateAdd(this, _queryCache); |
| 15850 | /** |
| 15851 | * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm |
| 15852 | * @param {any} requestQuery |
| 15853 | * @param {any} request |
| 15854 | * @param {any | null} response |
| 15855 | * @param {import('../../types/cache').CacheQueryOptions | undefined} options |
| 15856 | * @returns {boolean} |
| 15857 | */ |
| 15858 | __privateAdd(this, _requestMatchesCachedItem); |
| 15859 | __privateAdd(this, _internalMatchAll); |
| 15860 | /** |
| 15861 | * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list |
| 15862 | * @type {requestResponseList} |
| 15863 | */ |
| 15864 | __privateAdd(this, _relevantRequestResponseList, void 0); |
| 15865 | if (arguments[0] !== kConstruct) { |
| 15866 | webidl.illegalConstructor(); |
| 15867 | } |
| 15868 | webidl.util.markAsUncloneable(this); |
| 15869 | __privateSet(this, _relevantRequestResponseList, arguments[1]); |
| 15870 | } |
| 15871 | match(_0) { |
| 15872 | return __async(this, arguments, function* (request, options = {}) { |
| 15873 | webidl.brandCheck(this, _Cache); |
| 15874 | const prefix = "Cache.match"; |
| 15875 | webidl.argumentLengthCheck(arguments, 1, prefix); |
| 15876 | request = webidl.converters.RequestInfo(request, prefix, "request"); |
| 15877 | options = webidl.converters.CacheQueryOptions(options, prefix, "options"); |
| 15878 | const p = __privateMethod(this, _internalMatchAll, internalMatchAll_fn).call(this, request, options, 1); |
| 15879 | if (p.length === 0) { |
| 15880 | return; |
| 15881 | } |
| 15882 | return p[0]; |
| 15883 | }); |
| 15884 | } |
| 15885 | matchAll() { |
| 15886 | return __async(this, arguments, function* (request = void 0, options = {}) { |
| 15887 | webidl.brandCheck(this, _Cache); |
| 15888 | const prefix = "Cache.matchAll"; |
| 15889 | if (request !== void 0) |
| 15890 | request = webidl.converters.RequestInfo(request, prefix, "request"); |
| 15891 | options = webidl.converters.CacheQueryOptions(options, prefix, "options"); |
| 15892 | return __privateMethod(this, _internalMatchAll, internalMatchAll_fn).call(this, request, options); |
| 15893 | }); |
| 15894 | } |
| 15895 | add(_0) { |
| 15896 | return __async(this, arguments, function* (request) { |
| 15897 | webidl.brandCheck(this, _Cache); |
| 15898 | const prefix = "Cache.add"; |
no test coverage detected