id
int64
0
1.29M
original_id
stringlengths
32
32
swhid
stringlengths
100
170
sha1
stringlengths
40
40
repo_name
stringlengths
2
45
repo_group
stringclasses
12 values
filepath
stringlengths
5
153
name
stringlengths
1
14.9k
type
stringclasses
3 values
code
stringlengths
7
2.12M
1,288,000
3b3103d5721e8843b10aab2160d419d8
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1067-1106/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkFirst::constructor
function
/** * @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to cache names provided by * {@link workbox-core.cacheNames}. * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/...
1,288,001
f26550cc126bf283203af93c3ac8424b
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1295-1309/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkOnly::constructor
function
/** * @param {Object} [options] * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} * to use in conjunction with this caching strategy. * @param {Object} [options.fetchOptions] Values passed along to the * [`...
1,288,002
1b2c70bb68c19a3aae5d62a7f3b92a3c
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1310-1372/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkOnly::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request, handler) { { ...
1,288,003
cb038cbdbc1be708f541895300b8c269
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=116-210/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::fetch
function
/** * Fetches a given request (and invokes any applicable plugin callback * methods) using the `fetchOptions` (for non-navigation requests) and * `plugins` defined on the `Strategy` object. * * The following plugin lifecycle methods are invoked when using this method: * - `requ...
1,288,004
12724a3fa1082106be474e21c18aeeb5
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=483-502/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::waitUntil
function
/** * Adds a promise to the * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises} * of the event event associated with the request being handled (usually a * `FetchEvent`). * * Note: you can await * {@link workb...
1,288,005
d1718def653cfa2f87e3b34883ec1e51
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=656-680/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
Strategy::handle
function
/** * Perform a request strategy and returns a `Promise` that will resolve with * a `Response`, invoking all relevant plugin callbacks. * * When a strategy instance is registered with a Workbox * {@link workbox-routing.Route}, this method is automatically * called when the rout...
1,288,006
23d82a6268e77fb6e6352afb198ffbf3
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=731-779/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
Strategy::_getResponse
function
async _getResponse(handler, request, event) { await handler.runCallbacks('handlerWillStart', { event, request }); let response = undefined; try { response = await this._handle(request, handler); // The "official" Strategy subclasses all throw this error aut...
1,288,007
8456b9b0e7aee7b788fafc3cbea271d9
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=970-1009/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
CacheOnly::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request, handler) { { as...
1,288,008
e4f465cb12e7b7c376c9327cdb5cc81e
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1215-1269/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkFirst::_getNetworkPromise
function
/** * @param {Object} options * @param {number|undefined} options.timeoutId * @param {Request} options.request * @param {Array} options.logs A reference to the logs Array. * @param {Event} options.event * @return {Promise<Response>} * * @private */ ...
1,288,009
a9ea57f4f70eab5ce7dcab0bae0a09e8
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1427-1494/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StaleWhileRevalidate::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request, handler) { const logs =...
1,288,010
ea7f99300c54e3e90113f66d994bb344
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-19/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
toRequest
function
/* Copyright 2020 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ function toRequest(input) { return typeof input === 'string' ? new Request(input) : input; }
1,288,011
067c58e59e95a67e697be31039651ad8
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=211-228/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::fetchAndCachePut
function
/** * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on * the response generated by `this.fetch()`. * * The call to `this.cachePut()` automatically invokes `this.waitUntil()`, * so you do not have to manually call `waitUntil()` on the event. * * @par...
1,288,012
fd8bfb8225cede6d304e7d8507582200
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=376-410/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::getCacheKey
function
/** * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and * executes any of those callbacks found in sequence. The final `Request` * object returned by the last plugin is treated as the cache key for cache * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks h...
1,288,013
ec017c14c4f0a2bd859b137e881db2c1
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=454-482/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::iterateCallbacks
function
/** * Accepts a callback and returns an iterable of matching plugin callbacks, * where each callback is wrapped with the current handler state (i.e. when * you call each callback, whatever object parameter you pass it will * be merged with the plugin's current state). * * @para...
1,288,014
4263d4325387ac12d6fc618076e2cae4
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=878-945/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
CacheFirst::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request, handler) { const logs = [...
1,288,015
f19c405ed93a1d52f67568835795a52a
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1107-1181/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkFirst::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request, handler) { const logs =...
1,288,016
d6e76fe7ad88ebd060e3bfb9ed199557
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-115/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::constructor
function
/** * Creates a new instance associated with the passed strategy and event * that's handling the request. * * The constructor also initializes the state that will be passed to each of * the plugins handling this request. * * @param {workbox-strategies.Strategy} strategy ...
1,288,017
98f0b28bdee0c1ef177e5a0d53bad550
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=276-375/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::cachePut
function
/** * Puts a request/response pair in the cache (and invokes any applicable * plugin callback methods) using the `cacheName` and `plugins` defined on * the strategy object. * * The following plugin lifecycle methods are invoked when using this method: * - cacheKeyWillByUsed() ...
1,288,018
e2983f357eb5bc595c55794de62c417f
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-453/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::runCallbacks
function
/** * Runs all plugin callbacks matching the given name, in order, passing the * given param object (merged ith the current plugin state) as the only * argument. * * Note: since this method runs all plugins, it's not suitable for cases * where the return value of a callback nee...
1,288,019
69653f9873113a1a78cc7ba8b1ec5d6d
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=522-530/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::destroy
function
/** * Stops running the strategy and immediately resolves any pending * `waitUntil()` promises. */ destroy() { this._handlerDeferred.resolve(null); }
1,288,020
8bd200c9f0f8a9c36eac8785bb87ebe6
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=597-655/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
Strategy::constructor
function
/** * Creates a new instance of the strategy and sets all documented option * properties as public instance properties. * * Note: if a custom strategy class extends the base Strategy class and does * not need more than these properties, it does not need to define its own * cons...
1,288,021
a83fe0a83af9786a26764e7bdf85c273
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=503-521/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler::doneWaiting
function
/** * Returns a promise that resolves once all promises passed to * {@link workbox-strategies.StrategyHandler~waitUntil} * have settled. * * Note: any work done after `doneWaiting()` settles should be manually * passed to an event's `waitUntil()` method (not this handler's ...
1,288,022
c8a6a70b7e59a890343271320c61a27d
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1182-1214/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkFirst::_getTimeoutPromise
function
/** * @param {Object} options * @param {Request} options.request * @param {Array} options.logs A reference to the logs array * @param {Event} options.event * @return {Promise<Response>} * * @private */ _getTimeoutPromise({ request, logs, ...
1,288,023
5bbe4f94ac81243f034febcc8c86ffac
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1406-1426/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StaleWhileRevalidate::constructor
function
/** * @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to cache names provided by * {@link workbox-core.cacheNames}. * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/...
1,288,024
d97240831c627011b101c20ca04bccf7
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-581/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StrategyHandler
type
/** * A class created every time a Strategy instance instance calls * {@link workbox-strategies.Strategy~handle} or * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and * cache actions around plugin callbacks and keeps track of when the strategy * is "done" (i.e. all added `...
1,288,025
be77631463cc432fb4c9523c2e2469aa
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=583-818/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
Strategy
type
/* Copyright 2020 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * An abstract base class that all other strategy classes must extend from: * * @memberof workbo...
1,288,026
51c6504057a0b0848cfdb2dc10dd208c
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=949-1011/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
CacheOnly
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * An implementation of a [cache-only](https://developer.chrome.com/docs/workbox/caching-strategies-overvi...
1,288,027
bbccd8c31c1b40676e23d71d2b146a0c
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1042-1271/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkFirst
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * An implementation of a * [network first](https://developer.chrome.com/docs/workbox/caching-strateg...
1,288,028
75e4f96acf728c7ca5e4353150af86c7
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=855-947/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
CacheFirst
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * An implementation of a [cache-first](https://developer.chrome.com/docs/workbox/caching-strategies-overv...
1,288,029
c1c2b80b93b5f3f2c7812bbef4f4b8d1
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1273-1374/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
NetworkOnly
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * An implementation of a * [network-only](https://developer.chrome.com/docs/workbox/caching-strategi...
1,288,030
3cca704808a73784b50d1fefdc8c5914
swh:1:cnt:9576a12c1915de5fb921cae0fc3a64503671ea75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1376-1496/
6074840948921b372f03a1e89fe49661913926eb
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.dev.js
StaleWhileRevalidate
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * An implementation of a * [stale-while-revalidate](https://developer.chrome.com/docs/workbox/cachin...
1,288,031
c27cb6a5255eabc1716510b32370e278
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::fetch
function
async fetch(t){const{event:s}=this;let r=h(t);if("navigate"===r.mode&&s instanceof FetchEvent&&s.preloadResponse){const t=await s.preloadResponse;if(t)return t}const n=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))r=await t({request:r.clone(),event:s})}catc...
1,288,032
e41eb1c864302b2c8b60696af47b63da
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::fetchAndCachePut
function
async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}
1,288,033
85c0eb39438a23ff7587f908da226b46
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::cacheMatch
function
async cacheMatch(t){const e=h(t);let s;const{cacheName:r,matchOptions:n}=this.ht,a=await this.getCacheKey(e,"read"),i=Object.assign(Object.assign({},n),{cacheName:r});s=await caches.match(a,i);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:r,matchOptions:n,cachedResponse:s,request...
1,288,034
f02d7ab69dd7f438d13db00689f5296e
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::cachePut
function
async cachePut(t,s){const n=h(t);await c.timeout(0);const o=await this.getCacheKey(n,"write");if(!s)throw new e.WorkboxError("cache-put-with-no-response",{url:i.getFriendlyURL(o.url)});const l=await this.xt(s);if(!l)return!1;const{cacheName:w,matchOptions:u}=this.ht,f=await self.caches.open(w),d=this.hasCallback("cache...
1,288,035
a2f4faaaf6b5e6189f6bb2a0f29e4e55
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::hasCallback
function
hasCallback(t){for(const e of this.ht.plugins)if(t in e)return!0;return!1}
1,288,036
59de1dba55600e6de5c7ddff627f022d
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::waitUntil
function
waitUntil(t){return this.Et.push(t),t}
1,288,037
9f8af02cb3c7251227502950ce969589
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::doneWaiting
function
async doneWaiting(){let t;for(;t=this.Et.shift();)await t}
1,288,038
10f6f2a4ad9ce6d4308358a395d54f32
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::destroy
function
destroy(){this.bt.resolve(null)}
1,288,039
f6eae39d454f1621120139534512cd81
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
w::constructor
function
constructor(t={}){this.cacheName=s.cacheNames.getRuntimeName(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}
1,288,040
04ab3d1562946d61a0fa8f42c877834c
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
_handle
function
async _handle(t,s){const r=[],n=[];let a;if(this.Ot){const{id:e,promise:i}=this.Ut({request:t,logs:r,handler:s});a=e,n.push(i)}const i=this.Ct({timeoutId:a,request:t,logs:r,handler:s});n.push(i);const o=await s.waitUntil((async()=>await s.waitUntil(Promise.race(n))||await i)());if(!o)throw new e.WorkboxError("no-respon...
1,288,041
0daed89d0c60c060c5436ebd9b2f3310
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
h
function
function h(t){return"string"==typeof t?new Request(t):t}
1,288,042
a90c9030e26c2576b4eb6f9e73c496b7
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
w::Wt
function
async Wt(t,e,s,r){let n,a;try{n=await t}catch(a){}try{await e.runCallbacks("handlerDidRespond",{event:r,request:s,response:n}),await e.doneWaiting()}catch(t){t instanceof Error&&(a=t)}if(await e.runCallbacks("handlerDidComplete",{event:r,request:s,response:n,error:a}),e.destroy(),a)throw a}
1,288,043
c921baa79798c62f708266356aa0bce8
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::xt
function
async xt(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}
1,288,044
46c0ede2824322a6cea25f9a5158115d
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
Ut
function
Ut({request:t,logs:e,handler:s}){let r;return{promise:new Promise((e=>{r=setTimeout((async()=>{e(await s.cacheMatch(t))}),1e3*this.Ot)})),id:r}}
1,288,045
dec05103226dd6122f5a114ed034e342
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
constructor
function
constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u),this.Ot=t.networkTimeoutSeconds||0}
1,288,046
42eb8ab449c5fb90b8caeb8fcffd5d79
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::constructor
function
constructor(t,e){this.vt={},Object.assign(this,e),this.event=e.event,this.ht=t,this.bt=new n.Deferred,this.Et=[],this._t=[...t.plugins],this.kt=new Map;for(const t of this._t)this.kt.set(t,{});this.event.waitUntil(this.bt.promise)}
1,288,047
1c7a6cc514611d5ce7755add3ba01881
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::getCacheKey
function
async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.vt[s]){let r=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))r=h(await t({mode:e,request:r,event:this.event,params:this.params}));this.vt[s]=r}return this.vt[s]}
1,288,048
0a17b749efec6d895f9d905bc9265c43
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::runCallbacks
function
async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}
1,288,049
787c1a29dabb5077be43a53a23ecc610
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
w::handleAll
function
handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,r="params"in t?t.params:void 0,n=new l(this,{event:e,request:s,params:r}),a=this.Rt(n,s,e);return[a,this.Wt(a,n,s,e)]}
1,288,050
a193073e8b6857dfe3ac9d400457c1bd
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l::iterateCallbacks
function
*iterateCallbacks(t){for(const e of this.ht.plugins)if("function"==typeof e[t]){const s=this.kt.get(e),r=r=>{const n=Object.assign(Object.assign({},r),{state:s});return e[t](n)};yield r}}
1,288,051
858e0a38215a5cadde6f6ba3f42df092
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
w::Rt
function
async Rt(t,s,r){let n;await t.runCallbacks("handlerWillStart",{event:r,request:s});try{if(n=await this._handle(s,t),!n||"error"===n.type)throw new e.WorkboxError("no-response",{url:s.url})}catch(e){if(e instanceof Error)for(const a of t.iterateCallbacks("handlerDidError"))if(n=await a({error:e,event:r,request:s}),n)bre...
1,288,052
c21697207cd114c7e2ae6b7a79c571ef
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
w::handle
function
handle(t){const[e]=this.handleAll(t);return e}
1,288,053
f8ee6ddce45a4ba5861a13182286af7c
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
Ct
function
async Ct({timeoutId:t,request:e,logs:s,handler:r}){let n,a;try{a=await r.fetchAndCachePut(e)}catch(t){t instanceof Error&&(n=t)}return t&&clearTimeout(t),!n&&a||(a=await r.cacheMatch(e)),a}
1,288,054
d5c57e61f20253004072b43102ef3a31
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
l
type
class l{constructor(t,e){this.vt={},Object.assign(this,e),this.event=e.event,this.ht=t,this.bt=new n.Deferred,this.Et=[],this._t=[...t.plugins],this.kt=new Map;for(const t of this._t)this.kt.set(t,{});this.event.waitUntil(this.bt.promise)}async fetch(t){const{event:s}=this;let r=h(t);if("navigate"===r.mode&&s instanceo...
1,288,055
2a07269620616649aba9978f74b5e295
swh:1:cnt:00e41d2549ff3e827faf6f7bf264d56e5a42ac22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
fdf9b32405f0bd7c501aa916afe717cc189304d3
wlbdashboard
wmcs
node_modules/workbox-strategies/build/workbox-strategies.prod.js
w
type
class w{constructor(t={}){this.cacheName=s.cacheNames.getRuntimeName(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==t...
1,288,056
941fb34571d0aba8d41af35ac3b70984
swh:1:cnt:963da690a0c1783294bc059b6ac45c24e710edd4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-99/
1e3f8d199c203c77b0065cdd9506f320db7f57b9
wlbdashboard
wmcs
node_modules/workbox-strategies/src/CacheFirst.ts
CacheFirst
type
/** * An implementation of a [cache-first](https://developer.chrome.com/docs/workbox/caching-strategies-overview/#cache-first-falling-back-to-network) * request strategy. * * A cache first strategy is useful for assets that have been revisioned, * such as URLs like `/styles/example.a8f5f1.css`, since they * can b...
1,288,057
5ebec75841a1d000aaeca43c32ec55d4
swh:1:cnt:963da690a0c1783294bc059b6ac45c24e710edd4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-98/
1e3f8d199c203c77b0065cdd9506f320db7f57b9
wlbdashboard
wmcs
node_modules/workbox-strategies/src/CacheFirst.ts
CacheFirst::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request: Request, handler: StrategyHandler): Promise<Response> { c...
1,288,058
aae77fc0717d2f5bd942e6036a1e06b8
swh:1:cnt:12714bcc6aa6ee1115991af8593e2249f23d5177;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-70/
f119cb659065ab4135ded1a6131070d80c3f3729
wlbdashboard
wmcs
node_modules/workbox-strategies/src/CacheOnly.ts
CacheOnly
type
/** * An implementation of a [cache-only](https://developer.chrome.com/docs/workbox/caching-strategies-overview/#cache-only) * request strategy. * * This class is useful if you want to take advantage of any * [Workbox plugins](https://developer.chrome.com/docs/workbox/using-plugins/). * * If there is no cache ma...
1,288,059
00e972520e48b89b3f79544bbe60d1c0
swh:1:cnt:12714bcc6aa6ee1115991af8593e2249f23d5177;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-69/
f119cb659065ab4135ded1a6131070d80c3f3729
wlbdashboard
wmcs
node_modules/workbox-strategies/src/CacheOnly.ts
CacheOnly::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request: Request, handler: StrategyHandler): Promise<Response> { i...
1,288,060
371fa5596f6ad0c808101c292af70585
swh:1:cnt:2ad7dbc91139c1c4ae4685638510eaa65c0c1bc1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-23/
10c1cd8f8987517f12cd681f2662f4c91e075855
wlbdashboard
wmcs
node_modules/workbox-strategies/src/index.ts
FetchEvent
type
interface FetchEvent { // See https://github.com/GoogleChrome/workbox/issues/2974 readonly preloadResponse: Promise<any>; }
1,288,061
a92ed12189736e022124d43b7031a7ff
swh:1:cnt:2495dd623c47f13262f0e99f47989c1464452775;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-21/
6c2ef9ad4611f78a53d9fc9c20945396c2879768
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkFirst.ts
NetworkFirstOptions
type
interface NetworkFirstOptions extends StrategyOptions { networkTimeoutSeconds?: number; }
1,288,062
6e5c1e6c495989f0fbeff5d6d237d16e
swh:1:cnt:2495dd623c47f13262f0e99f47989c1464452775;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-257/
6c2ef9ad4611f78a53d9fc9c20945396c2879768
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkFirst.ts
NetworkFirst
type
/** * An implementation of a * [network first](https://developer.chrome.com/docs/workbox/caching-strategies-overview/#network-first-falling-back-to-cache) * request strategy. * * By default, this strategy will cache responses with a 200 status code as * well as [opaque responses](https://developer.chrome.com/docs...
1,288,063
d4fa24455ecf42d28a96f2fe4f659673
swh:1:cnt:2495dd623c47f13262f0e99f47989c1464452775;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-81/
6c2ef9ad4611f78a53d9fc9c20945396c2879768
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkFirst.ts
NetworkFirst::constructor
function
/** * @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to cache names provided by * {@link workbox-core.cacheNames}. * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using...
1,288,064
1498474f1e47d39b9a54f48e79d88d52
swh:1:cnt:2495dd623c47f13262f0e99f47989c1464452775;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=83-150/
6c2ef9ad4611f78a53d9fc9c20945396c2879768
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkFirst.ts
NetworkFirst::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request: Request, handler: StrategyHandler): Promise<Response> { c...
1,288,065
8876e7401877b18e50225b10e845ec66
swh:1:cnt:2495dd623c47f13262f0e99f47989c1464452775;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=152-193/
6c2ef9ad4611f78a53d9fc9c20945396c2879768
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkFirst.ts
NetworkFirst::_getTimeoutPromise
function
/** * @param {Object} options * @param {Request} options.request * @param {Array} options.logs A reference to the logs array * @param {Event} options.event * @return {Promise<Response>} * * @private */ private _getTimeoutPromise({ request, logs, handler, }: { request: Request...
1,288,066
35fc71062e481748b87f53a6206d7c22
swh:1:cnt:2495dd623c47f13262f0e99f47989c1464452775;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-256/
6c2ef9ad4611f78a53d9fc9c20945396c2879768
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkFirst.ts
NetworkFirst::_getNetworkPromise
function
/** * @param {Object} options * @param {number|undefined} options.timeoutId * @param {Request} options.request * @param {Array} options.logs A reference to the logs Array. * @param {Event} options.event * @return {Promise<Response>} * * @private */ async _getNetworkPromise({ timeoutId, ...
1,288,067
f39c79bf4308944bb648c478ddadcee9
swh:1:cnt:b129555eeaf87255258b8410f86ba89f33bfeed0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-22/
27c0efe782272cdb9924ded18a0e64cabafd6207
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkOnly.ts
NetworkOnlyOptions
type
interface NetworkOnlyOptions extends Omit<StrategyOptions, 'cacheName' | 'matchOptions'> { networkTimeoutSeconds?: number; }
1,288,068
8b812535ec74bd0bf8f682acac3943c4
swh:1:cnt:b129555eeaf87255258b8410f86ba89f33bfeed0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-120/
27c0efe782272cdb9924ded18a0e64cabafd6207
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkOnly.ts
NetworkOnly
type
/** * An implementation of a * [network-only](https://developer.chrome.com/docs/workbox/caching-strategies-overview/#network-only) * request strategy. * * This class is useful if you want to take advantage of any * [Workbox plugins](https://developer.chrome.com/docs/workbox/using-plugins/). * * If the network r...
1,288,069
b34e4e94cd67557199ad05a3bd27d9f1
swh:1:cnt:b129555eeaf87255258b8410f86ba89f33bfeed0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-55/
27c0efe782272cdb9924ded18a0e64cabafd6207
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkOnly.ts
NetworkOnly::constructor
function
/** * @param {Object} [options] * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} * to use in conjunction with this caching strategy. * @param {Object} [options.fetchOptions] Values passed along to the * [`init`](https://devel...
1,288,070
a15759ee4408d2f58b0b0c7860c06010
swh:1:cnt:b129555eeaf87255258b8410f86ba89f33bfeed0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-119/
27c0efe782272cdb9924ded18a0e64cabafd6207
wlbdashboard
wmcs
node_modules/workbox-strategies/src/NetworkOnly.ts
NetworkOnly::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request: Request, handler: StrategyHandler): Promise<Response> { i...
1,288,071
284b09c8a173fe0c6038fd51a4f1aaeb
swh:1:cnt:4594941cc24f724708b9c6d536c4f7e1ae83937d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-133/
f2f934d6c15900fe3ca9f7f61a63d3b4f5dee7dc
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StaleWhileRevalidate.ts
StaleWhileRevalidate
type
/** * An implementation of a * [stale-while-revalidate](https://developer.chrome.com/docs/workbox/caching-strategies-overview/#stale-while-revalidate) * request strategy. * * Resources are requested from both the cache and the network in parallel. * The strategy will respond with the cached version if available, ...
1,288,072
a352ba9b3246f76989276c86caaab631
swh:1:cnt:4594941cc24f724708b9c6d536c4f7e1ae83937d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-62/
f2f934d6c15900fe3ca9f7f61a63d3b4f5dee7dc
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StaleWhileRevalidate.ts
StaleWhileRevalidate::constructor
function
/** * @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to cache names provided by * {@link workbox-core.cacheNames}. * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using...
1,288,073
b3434a92f9c063fe813a57c9b072c419
swh:1:cnt:4594941cc24f724708b9c6d536c4f7e1ae83937d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-132/
f2f934d6c15900fe3ca9f7f61a63d3b4f5dee7dc
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StaleWhileRevalidate.ts
StaleWhileRevalidate::_handle
function
/** * @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler The event that * triggered the request. * @return {Promise<Response>} */ async _handle(request: Request, handler: StrategyHandler): Promise<Response> { c...
1,288,074
127bc8e26d22d0aaf7f9afb4dda4071e
swh:1:cnt:5ab8614551d2610b801bb02ca79b115456b20f23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-28/
65a1e61650bc84192c654e39fb410a3858eaad96
wlbdashboard
wmcs
node_modules/workbox-strategies/src/Strategy.ts
StrategyOptions
type
interface StrategyOptions { cacheName?: string; plugins?: WorkboxPlugin[]; fetchOptions?: RequestInit; matchOptions?: CacheQueryOptions; }
1,288,075
22de14966f87a5759698c51f7be3a3ac
swh:1:cnt:5ab8614551d2610b801bb02ca79b115456b20f23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-101/
65a1e61650bc84192c654e39fb410a3858eaad96
wlbdashboard
wmcs
node_modules/workbox-strategies/src/Strategy.ts
constructor
function
/** * Creates a new instance of the strategy and sets all documented option * properties as public instance properties. * * Note: if a custom strategy class extends the base Strategy class and does * not need more than these properties, it does not need to define its own * constructor. * * @para...
1,288,076
d44d1b8d38393e9d332db80a0ef55445
swh:1:cnt:5ab8614551d2610b801bb02ca79b115456b20f23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=127-179/
65a1e61650bc84192c654e39fb410a3858eaad96
wlbdashboard
wmcs
node_modules/workbox-strategies/src/Strategy.ts
handleAll
function
/** * Similar to {@link workbox-strategies.Strategy~handle}, but * instead of just returning a `Promise` that resolves to a `Response` it * it will return an tuple of `[response, done]` promises, where the former * (`response`) is equivalent to what `handle()` returns, and the latter is a * Promise that ...
1,288,077
04a299f597972cbdd7e246244fa55981
swh:1:cnt:5ab8614551d2610b801bb02ca79b115456b20f23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-268/
65a1e61650bc84192c654e39fb410a3858eaad96
wlbdashboard
wmcs
node_modules/workbox-strategies/src/Strategy.ts
_awaitComplete
function
async _awaitComplete( responseDone: Promise<Response>, handler: StrategyHandler, request: Request, event: ExtendableEvent, ): Promise<void> { let response; let error; try { response = await responseDone; } catch (error) { // Ignore errors, as response errors should be caug...
1,288,078
0ce41e0f40e3b1d84e77c94167b06980
swh:1:cnt:5ab8614551d2610b801bb02ca79b115456b20f23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=103-125/
65a1e61650bc84192c654e39fb410a3858eaad96
wlbdashboard
wmcs
node_modules/workbox-strategies/src/Strategy.ts
handle
function
/** * Perform a request strategy and returns a `Promise` that will resolve with * a `Response`, invoking all relevant plugin callbacks. * * When a strategy instance is registered with a Workbox * {@link workbox-routing.Route}, this method is automatically * called when the route matches. * * Alt...
1,288,079
04f65864d78ffad287f3585341281e87
swh:1:cnt:5ab8614551d2610b801bb02ca79b115456b20f23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=181-225/
65a1e61650bc84192c654e39fb410a3858eaad96
wlbdashboard
wmcs
node_modules/workbox-strategies/src/Strategy.ts
_getResponse
function
async _getResponse( handler: StrategyHandler, request: Request, event: ExtendableEvent, ): Promise<Response> { await handler.runCallbacks('handlerWillStart', {event, request}); let response: Response | undefined = undefined; try { response = await this._handle(request, handler); /...
1,288,080
a9d09e99fb834eff8554952da9ec5614
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-29/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
toRequest
function
function toRequest(input: RequestInfo) { return typeof input === 'string' ? new Request(input) : input; }
1,288,081
cc222cc746aaafae0e5d7a013e010e51
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-241/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::fetch
function
/** * Fetches a given request (and invokes any applicable plugin callback * methods) using the `fetchOptions` (for non-navigation requests) and * `plugins` defined on the `Strategy` object. * * The following plugin lifecycle methods are invoked when using this method: * - `requestWillFetch()` * - `...
1,288,082
ff6524c1fc50788491203d2babaeb885
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=243-260/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::fetchAndCachePut
function
/** * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on * the response generated by `this.fetch()`. * * The call to `this.cachePut()` automatically invokes `this.waitUntil()`, * so you do not have to manually call `waitUntil()` on the event. * * @param {Request|string} input Th...
1,288,083
652d78873cd797b9c017c2c28ab4e65d
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=262-303/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::cacheMatch
function
/** * Matches a request from the cache (and invokes any applicable plugin * callback methods) using the `cacheName`, `matchOptions`, and `plugins` * defined on the strategy object. * * The following plugin lifecycle methods are invoked when using this method: * - cacheKeyWillByUsed() * - cachedResp...
1,288,084
ba53c2d7f07bc56dd41a9c545d9d6dc9
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-133/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::constructor
function
/** * Creates a new instance associated with the passed strategy and event * that's handling the request. * * The constructor also initializes the state that will be passed to each of * the plugins handling this request. * * @param {workbox-strategies.Strategy} strategy * @param {Object} options...
1,288,085
e92aba60b7f075190b751a6ffc36d6e1
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=305-424/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::cachePut
function
/** * Puts a request/response pair in the cache (and invokes any applicable * plugin callback methods) using the `cacheName` and `plugins` defined on * the strategy object. * * The following plugin lifecycle methods are invoked when using this method: * - cacheKeyWillByUsed() * - cacheWillUpdate() ...
1,288,086
34e7eba0d04b1d6549133176e6afc477
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=426-460/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::getCacheKey
function
/** * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and * executes any of those callbacks found in sequence. The final `Request` * object returned by the last plugin is treated as the cache key for cache * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have * been re...
1,288,087
a73a0841d5f3a1d25908e5f9f26f351c
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=462-476/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::hasCallback
function
/** * Returns true if the strategy has at least one plugin with the given * callback. * * @param {string} name The name of the callback to check for. * @return {boolean} */ hasCallback<C extends keyof WorkboxPlugin>(name: C): boolean { for (const plugin of this._strategy.plugins) { if (nam...
1,288,088
50ac580f2fbb57c57fd39bc7db8f3e38
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=478-503/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::runCallbacks
function
/** * Runs all plugin callbacks matching the given name, in order, passing the * given param object (merged ith the current plugin state) as the only * argument. * * Note: since this method runs all plugins, it's not suitable for cases * where the return value of a callback needs to be applied prior t...
1,288,089
54713a49305b1530cbb5826531791d61
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=505-532/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::iterateCallbacks
function
/** * Accepts a callback and returns an iterable of matching plugin callbacks, * where each callback is wrapped with the current handler state (i.e. when * you call each callback, whatever object parameter you pass it will * be merged with the plugin's current state). * * @param {string} name The name...
1,288,090
9964512ab024d35e313654e823f08518
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=569-575/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::destroy
function
/** * Stops running the strategy and immediately resolves any pending * `waitUntil()` promises. */ destroy(): void { this._handlerDeferred.resolve(null); }
1,288,091
9ee27cce246efe2e41de4527d3a30d05
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=577-633/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::_ensureResponseSafeToCache
function
/** * This method will call cacheWillUpdate on the available plugins (or use * status === 200) to determine if the Response is safe and valid to cache. * * @param {Request} options.request * @param {Response} options.response * @return {Promise<Response|undefined>} * * @private */ async _en...
1,288,092
85958e48f6a9c5a498fa9c7f14ac89f8
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=534-550/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::waitUntil
function
/** * Adds a promise to the * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises} * of the event event associated with the request being handled (usually a * `FetchEvent`). * * Note: you can await * {@link workbox-strategies.StrategyHandle...
1,288,093
69867ae34e9fc7994a98e5c235332532
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=552-567/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler::doneWaiting
function
/** * Returns a promise that resolves once all promises passed to * {@link workbox-strategies.StrategyHandler~waitUntil} * have settled. * * Note: any work done after `doneWaiting()` settles should be manually * passed to an event's `waitUntil()` method (not this handler's * `waitUntil()` method), ...
1,288,094
c8e19feb15316ad4fe4040fba6a818b9
swh:1:cnt:ad2787652a02cbf27a0ea963d9b40d1a8bea0822;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-634/
ac08f491a4e3f96989ffaa32c83ff31f98868dfa
wlbdashboard
wmcs
node_modules/workbox-strategies/src/StrategyHandler.ts
StrategyHandler
type
/** * A class created every time a Strategy instance instance calls * {@link workbox-strategies.Strategy~handle} or * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and * cache actions around plugin callbacks and keeps track of when the strategy * is "done" (i.e. all added `event.waitUntil()` p...
1,288,095
5a9a98d1181e32d6a5a269fb78096168
swh:1:cnt:5d34f2301083c59f5e946a95d4e3cec2d746aaf8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-34/
bc519fe391e34b5b8098a7925879bf743d12c9c3
wlbdashboard
wmcs
node_modules/workbox-streams/concatenate.js
_getReaderFromSource
function
/** * Takes either a Response, a ReadableStream, or a * [BodyInit](https://fetch.spec.whatwg.org/#bodyinit) and returns the * ReadableStreamReader object associated with it. * * @param {workbox-streams.StreamSource} source * @return {ReadableStreamReader} * @private */ function _getReaderFromSource(source) { ...
1,288,096
34e7923c2a3aa95db2b34e3ddac9c650
swh:1:cnt:5d34f2301083c59f5e946a95d4e3cec2d746aaf8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-126/
bc519fe391e34b5b8098a7925879bf743d12c9c3
wlbdashboard
wmcs
node_modules/workbox-streams/concatenate.js
concatenate
function
/** * Takes multiple source Promises, each of which could resolve to a Response, a * ReadableStream, or a [BodyInit](https://fetch.spec.whatwg.org/#bodyinit). * * Returns an object exposing a ReadableStream with each individual stream's * data returned in sequence, along with a Promise which signals when the * st...
1,288,097
0831316cdb6099a95c8dea5825872939
swh:1:cnt:5d34f2301083c59f5e946a95d4e3cec2d746aaf8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=118-123/
bc519fe391e34b5b8098a7925879bf743d12c9c3
wlbdashboard
wmcs
node_modules/workbox-streams/concatenate.js
concatenate::cancel
function
cancel() { if (process.env.NODE_ENV !== 'production') { logger.warn('The ReadableStream was cancelled.'); } streamDeferred.resolve(); }
1,288,098
928428721c4ec92cf660676dfbc305e9
swh:1:cnt:5d34f2301083c59f5e946a95d4e3cec2d746aaf8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-117/
bc519fe391e34b5b8098a7925879bf743d12c9c3
wlbdashboard
wmcs
node_modules/workbox-streams/concatenate.js
concatenate::pull
function
pull(controller) { return readerPromises[i] .then((reader) => { if (reader instanceof ReadableStreamDefaultReader) { return reader.read(); } else { return; } }) ...
1,288,099
960d6bda799a9b03fcdd95586671914c
swh:1:cnt:8eb81a19c3288c1acab051b5c4e14479b13f2921;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-33/
bd12a3c065bce105ea3f65f826cea3806adf3407
wlbdashboard
wmcs
node_modules/workbox-streams/concatenateToResponse.js
concatenateToResponse
function
/** * Takes multiple source Promises, each of which could resolve to a Response, a * ReadableStream, or a [BodyInit](https://fetch.spec.whatwg.org/#bodyinit), * along with a * [HeadersInit](https://fetch.spec.whatwg.org/#typedefdef-headersinit). * * Returns an object exposing a Response whose body consists of eac...