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,287,700
f9ef174052537f6de91e8e8499bfa2a2
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=862-880/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
addPlugins
function
/* Copyright 2019 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. */ /** * Adds plugins to the precaching strategy. * * @param {Array<Object>} plugins * * @me...
1,287,701
589f1020b25382f1153836d3d36c4245
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1123-1151/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
createHandlerBoundToURL
function
/* Copyright 2019 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. */ /** * Helper function that calls * {@link PrecacheController#createHandlerBoundToURL} on the default ...
1,287,702
6a2c3213e22cbe176e2d733cbcdf899d
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1185-1211/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
matchPrecache
function
/* Copyright 2019 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. */ /** * Helper function that calls * {@link PrecacheController#matchPrecache} on the default * {@link...
1,287,703
c72db6ae8e1461357ef957861ab070a1
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1095-1121/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
cleanupOutdatedCaches
function
/* Copyright 2019 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. */ /** * Adds an `activate` event listener which will clean up incompatible * precaches that were created b...
1,287,704
ed1bbe2dadaca3784bb29b1406e81e87
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=342-402/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheStrategy::_handleFetch
function
async _handleFetch(request, handler) { let response; const params = handler.params || {}; // Fall back to the network if we're configured to do so. if (this._fallbackToNetwork) { { logger_js.logger.warn(`The precached response for ` + `${getFriendlyURL_js.getFriendlyURL(re...
1,287,705
40020257aea014e3cc53f595d8a44290
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=404-422/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheStrategy::_handleInstall
function
async _handleInstall(request, handler) { this._useDefaultCacheabilityPluginIfNeeded(); const response = await handler.fetch(request); // Make sure we defer cachePut() until after we know the response // should be cached; see https://github.com/GoogleChrome/workbox/issues/2737 const was...
1,287,706
0dde60c4a1a149ba2f5dd8e5391483e8
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=755-769/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheController::getCacheKeyForURL
function
/** * Returns the cache key used for storing a given URL. If that URL is * unversioned, like `/index.html', then the cache key will be the original * URL with a search parameter appended to it. * * @param {string} url A URL whose cache key you want to look up. * @return {string...
1,287,707
797e0a0148d2eae32d8a8e46bdb81a5b
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=770-779/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheController::getIntegrityForCacheKey
function
/** * @param {string} url A cache key whose SRI you want to look up. * @return {string} The subresource integrity associated with the cache key, * or undefined if it's not set. */ getIntegrityForCacheKey(cacheKey) { return this._cacheKeysToIntegrities.get(cacheKey); }
1,287,708
a5e3f0c2ebd9838bb7a169e8d75df5c8
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1213-1243/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
precache
function
/* Copyright 2019 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. */ /** * Adds items to the precache list, removing any duplicates and * stores the files in the * {@li...
1,287,709
095151806848efaf469646184f174bab
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1245-1270/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
precacheAndRoute
function
/* Copyright 2019 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. */ /** * This method will add entries to the precache list and add a route to * respond to fetch events. ...
1,287,710
79b9b43920c532d454cc61e963c7bee4
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1295-1318/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheFallbackPlugin::constructor
function
/** * Constructs a new PrecacheFallbackPlugin with the associated fallbackURL. * * @param {Object} config * @param {string} config.fallbackURL A precached URL to use as the fallback * if the associated strategy can't generate a response. * @param {PrecacheController} [confi...
1,287,711
63840e5f88d7194e13c22fd690191ad2
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-128/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheInstallReportPlugin
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. */ /** * A plugin, designed to be used with PrecacheController, to determine the * of assets that were upda...
1,287,712
27528a35b3100ac402777f709ea57fd5
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=967-1029/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheRoute
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. */ /** * A subclass of {@link workbox-routing.Route} that takes a * {@link workbox-precaching.PrecacheContr...
1,287,713
51662c67b59a5515c6e3e5c293f298ef
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=267-481/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheStrategy
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. */ /** * A {@link workbox-strategies.Strategy} implementation * specifically designed to work with * {...
1,287,714
e1229e3bc85f808d9106db20c9e9e3c7
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=504-839/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheController
type
/* Copyright 2019 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. */ /** * Performs efficient precaching of assets. * * @memberof workbox-precaching */ class ...
1,287,715
a370a6ec17aa4d60c60263488ca7d946
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-167/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheCacheKeyPlugin
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. */ /** * A plugin, designed to be used with PrecacheController, to translate URLs into * the corresponding ...
1,287,716
c3fbc5e4cde57b8243ac0aca65518453
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1272-1320/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheFallbackPlugin
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. */ /** * `PrecacheFallbackPlugin` allows you to specify an "offline fallback" * response to be used when a ...
1,287,717
c181886bc34eab6cbf3d031159ab9b28
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
l::constructor
function
constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.tt.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.tt=t}
1,287,718
b919427c6b7d417ab82b3b8ba2254b8b
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::activate
function
activate(t){return n.waitUntil(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.ct.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}
1,287,719
b30c724b314724fb03c76a372bb7d10c
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
a
function
function a(t){if(!t)throw new s.WorkboxError("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s.WorkboxError("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location...
1,287,720
f022b52073585b821bfed097a3589331
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
h::constructor
function
constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url...
1,287,721
dfac36b4dafe5d22268ba0845d6f98ff
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
u::nt
function
async nt(t,e){let n;const i=e.params||{};if(!this.et)throw new s.WorkboxError("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,c=t.integrity,r=!c||c===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?c||s:void 0})),s&&r&&"no-cors"!==t.mode&&(this.it(),await e.cachePut(t,n...
1,287,722
d18e14c9e5142d2532df0edccad18dca
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
u::st
function
async st(t,e){this.it();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s.WorkboxError("bad-precaching-response",{url:t.url,status:n.status});return n}
1,287,723
6a7a64f751b7cde774574814530e24e7
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
u::it
function
it(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==u.copyRedirectedCacheableResponsesPlugin&&(n===u.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(u.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}
1,287,724
99f7659f3d9a3bfead316834e520ed76
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::getCachedURLs
function
getCachedURLs(){return[...this.ct.keys()]}
1,287,725
4066ca00961896f8d727ef001e0001ac
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
p
function
function p(t){const e=d(),s=new y(e,t);r.registerRoute(s)}
1,287,726
4f6d24a717cd9aebe9d1aa6e60ceb7ac
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::install
function
install(t){return n.waitUntil(t,(async()=>{const e=new h;this.strategy.plugins.push(e);for(const[e,s]of this.ct){const n=this.ot.get(s),i=this.rt.get(e),c=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:c,event:t}))}const{updatedURLs:...
1,287,727
e7824b097cee0abfc440073fd6b3d862
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::matchPrecache
function
async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}
1,287,728
8b23b46aa94f4162933773727c8f2f24
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::getIntegrityForCacheKey
function
getIntegrityForCacheKey(t){return this.ot.get(t)}
1,287,729
64c6427f50d603c483ada10c2df85313
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::addToCacheList
function
addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=a(n),c="string"!=typeof n&&n.revision?"reload":"default";if(this.ct.has(i)&&this.ct.get(i)!==t)throw new s.WorkboxError("add-to-cache-list-conflicting-entries",{firstEntry:this.ct.ge...
1,287,730
cdec6d4d8d012c7ae84142e1cf2cc90e
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::precache
function
precache(t){this.addToCacheList(t),this.lt||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.lt=!0)}
1,287,731
ead6969afe03a3a043cc0100e6f3e594
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
constructor
function
constructor({fallbackURL:t,precacheController:e}){this.handlerDidError=()=>this.tt.matchPrecache(this.ut),this.ut=t,this.tt=e||d()}
1,287,732
b29cf8578731866ef77d7f221fe88c3a
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
u::constructor
function
constructor(t={}){t.cacheName=e.cacheNames.getPrecacheName(t.cacheName),super(t),this.et=!1!==t.fallbackToNetwork,this.plugins.push(u.copyRedirectedCacheableResponsesPlugin)}
1,287,733
fd96318c203bb3ac97c2d641e885356f
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
u::_handle
function
async _handle(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.st(t,e):await this.nt(t,e))}
1,287,734
4cb01372bec68dd722e651aeb69cb7de
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::constructor
function
constructor({cacheName:t,plugins:s=[],fallbackToNetwork:n=!0}={}){this.ct=new Map,this.rt=new Map,this.ot=new Map,this.ht=new u({cacheName:e.cacheNames.getPrecacheName(t),plugins:[...s,new l({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}
1,287,735
18fef5f94ee13770f20242828c70354f
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::strategy
function
get strategy(){return this.ht}
1,287,736
a43fe87f1a6e85a1e1b8b903cf42a2d1
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::getCacheKeyForURL
function
getCacheKeyForURL(t){const e=new URL(t,location.href);return this.ct.get(e.href)}
1,287,737
cff52f9975b456e210d4c0427f285b3a
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::getURLsToCacheKeys
function
getURLsToCacheKeys(){return this.ct}
1,287,738
357a959864703b560c42f154f6021de1
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f::createHandlerBoundToURL
function
createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s.WorkboxError("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}
1,287,739
741a08c6bc95615978ebb8950487e7e4
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
y::constructor
function
constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const c=new URL(t,location.href);c.hash="",yield c.href;const r=function(t,e=[]){for(const s of[...t.s...
1,287,740
9dfac5de0697a7facab3c6ccfa26eb77
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
R
function
function R(t){d().precache(t)}
1,287,741
cefe7c5f5f42887c328ad225ad1c6e61
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
h
type
class h{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalReq...
1,287,742
0d19fe810721aeccbf1a5b2b1524df5d
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
f
type
class f{constructor({cacheName:t,plugins:s=[],fallbackToNetwork:n=!0}={}){this.ct=new Map,this.rt=new Map,this.ot=new Map,this.ht=new u({cacheName:e.cacheNames.getPrecacheName(t),plugins:[...s,new l({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(t...
1,287,743
8eca3b7794fdd267b68935ef6687dc66
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
y
type
class y extends o.Route{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const c=new URL(t,location.href);c.hash="",yield c.href;const r=function(t,e=[...
1,287,744
7ba58d01c33571fc655b73f94fa76f4d
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
u
type
class u extends c.Strategy{constructor(t={}){t.cacheName=e.cacheNames.getPrecacheName(t.cacheName),super(t),this.et=!1!==t.fallbackToNetwork,this.plugins.push(u.copyRedirectedCacheableResponsesPlugin)}async _handle(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.st(t,e):await ...
1,287,745
3acd1417a9b5900b62b467281cc1d12c
swh:1:cnt:47479df17281f9eb7af912fdbb8d118707cf79f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
c18358e215fb45167cf4004970269ea8f9e1b70c
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.prod.js
l
type
class l{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.tt.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.tt=t}}
1,287,746
efea1213b1b31b6edf73769a4ec8f9c2
swh:1:cnt:f4651a6003a688977e9d20c0fa264fae2d1860dd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-23/
1968ca1e93404b283de950bff94a6d2beac1eace
wlbdashboard
wmcs
node_modules/workbox-precaching/src/addPlugins.ts
addPlugins
function
/** * Adds plugins to the precaching strategy. * * @param {Array<Object>} plugins * * @memberof workbox-precaching */ function addPlugins(plugins: WorkboxPlugin[]): void { const precacheController = getOrCreatePrecacheController(); precacheController.strategy.plugins.push(...plugins); }
1,287,747
f98e70ce77afa7c013667bd2c3376f36
swh:1:cnt:a3899c5bbe2c74623939d5b202efbce36058ba77;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-36/
a9222a8b0b2de3a92251759f025edbc2257ab39d
wlbdashboard
wmcs
node_modules/workbox-precaching/src/addRoute.ts
addRoute
function
/** * Add a `fetch` listener to the service worker that will * respond to * [network requests]{@link https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests} * with precached assets. * * Requests for assets that aren't precached, the `FetchEvent` will...
1,287,748
99548b623577ff17738aaebfc8a388c4
swh:1:cnt:319cc75a70e24f0b162bcd4ed0755334391ee40c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-39/
da9a086b4a707d2602ecf1b957c4d9c12dbbdcfc
wlbdashboard
wmcs
node_modules/workbox-precaching/src/cleanupOutdatedCaches.ts
cleanupOutdatedCaches
function
/** * Adds an `activate` event listener which will clean up incompatible * precaches that were created by older versions of Workbox. * * @memberof workbox-precaching */ function cleanupOutdatedCaches(): void { // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705 self.addEventListe...
1,287,749
cf7b725e04cf9140933add1a4edb35f9
swh:1:cnt:a5694c22424e75c51bf35712138af1dd1eaed0e7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-33/
caed9f8111ecd7d2af212f0cb5ef8bafbe75de12
wlbdashboard
wmcs
node_modules/workbox-precaching/src/createHandlerBoundToURL.ts
createHandlerBoundToURL
function
/** * Helper function that calls * {@link PrecacheController#createHandlerBoundToURL} on the default * {@link PrecacheController} instance. * * If you are creating your own {@link PrecacheController}, then call the * {@link PrecacheController#createHandlerBoundToURL} on that instance, * instead of using this fun...
1,287,750
064735965bf07d077cbc631842577672
swh:1:cnt:1a73806c5f8fd0290162517c221152116711e3bf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-34/
43a29c45dde4347882315e2dee5e507b0ec23f06
wlbdashboard
wmcs
node_modules/workbox-precaching/src/getCacheKeyForURL.ts
getCacheKeyForURL
function
/** * Takes in a URL, and returns the corresponding URL that could be used to * lookup the entry in the precache. * * If a relative URL is provided, the location of the service worker file will * be used as the base. * * For precached entries without revision information, the cache key will be the * same as the...
1,287,751
61295dbb0844311b8fd72db9298ef6bf
swh:1:cnt:3c64cce3912a3ab4bbe48b6fa5523389b2a311ff;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-33/
bd332dfd498d71253a20efcd9be113831a4b8fb9
wlbdashboard
wmcs
node_modules/workbox-precaching/src/matchPrecache.ts
matchPrecache
function
/** * Helper function that calls * {@link PrecacheController#matchPrecache} on the default * {@link PrecacheController} instance. * * If you are creating your own {@link PrecacheController}, then call * {@link PrecacheController#matchPrecache} on that instance, * instead of using this function. * * @param {str...
1,287,752
81b8dc8a825162dcbbc1856d87a5d241
swh:1:cnt:45c8d7e8220c06a5dde498a2181e00dedff049a7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-35/
15cb5b2ac600cce8d4ededec3420ead0d586c596
wlbdashboard
wmcs
node_modules/workbox-precaching/src/precache.ts
precache
function
/** * Adds items to the precache list, removing any duplicates and * stores the files in the * {@link workbox-core.cacheNames|"precache cache"} when the service * worker installs. * * This method can be called multiple times. * * Please note: This method **will not** serve any of the cached files for you. * It...
1,287,753
46757f3aa84eb83442402377f4925d1a
swh:1:cnt:7167a01cdccf6b57b5dafc1d3c6f1f601a07fafb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-34/
2241e2798e32f4ea12694e72c6c44c8839c4c51e
wlbdashboard
wmcs
node_modules/workbox-precaching/src/precacheAndRoute.ts
precacheAndRoute
function
/** * This method will add entries to the precache list and add a route to * respond to fetch events. * * This is a convenience method that will call * {@link workbox-precaching.precache} and * {@link workbox-precaching.addRoute} in a single call. * * @param {Array<Object|string>} entries Array of entries to pr...
1,287,754
03f60f9b08cdc7d3cb483750200522d6
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-32/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
ServiceWorkerGlobalScope
type
interface ServiceWorkerGlobalScope { __WB_MANIFEST: Array<PrecacheEntry | string>; }
1,287,755
b985bc33671cb52afe3ea5350af69a0b
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-39/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheControllerOptions
type
interface PrecacheControllerOptions { cacheName?: string; plugins?: WorkboxPlugin[]; fallbackToNetwork?: boolean; }
1,287,756
b92039403207b1ac9820ff0e3d9f96c1
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-364/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController
type
/** * Performs efficient precaching of assets. * * @memberof workbox-precaching */ class PrecacheController { private _installAndActiveListenersAdded?: boolean; private readonly _strategy: Strategy; private readonly _urlsToCacheKeys: Map<string, string> = new Map(); private readonly _urlsToCacheModes: Map< ...
1,287,757
139e6357b1b06e1463c7ae23a02616ed
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-88/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::constructor
function
/** * Create a new PrecacheController. * * @param {Object} [options] * @param {string} [options.cacheName] The cache to use for precaching. * @param {string} [options.plugins] Plugins to use when precaching as well * as responding to fetch events for precached assets. * @param {boolean} [options.fa...
1,287,758
21b5aa48bf9ebc038e405ece687159ae
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=189-235/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::install
function
/** * Precaches new and updated assets. Call this method from the service worker * install event. * * Note: this method calls `event.waitUntil()` for you, so you do not need * to call it yourself in your event handlers. * * @param {ExtendableEvent} event * @return {Promise<workbox-precaching.Ins...
1,287,759
f901efe290b8a94050b838bfd9fd38fe
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=98-116/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::precache
function
/** * Adds items to the precache list, removing any duplicates and * stores the files in the * {@link workbox-core.cacheNames|"precache cache"} when the service * worker installs. * * This method can be called multiple times. * * @param {Array<Object|string>} [entries=[]] Array of entries to pre...
1,287,760
bfb5b3ecf01949d200ee94397a77c2cb
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-96/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::strategy
function
/** * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and * used to cache assets and respond to fetch events. */ get strategy(): Strategy { return this._strategy; }
1,287,761
89460ade8b70f5fb22876d6829e5a9f0
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=118-187/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::addToCacheList
function
/** * This method will add items to the precache list, removing duplicates * and ensuring the information is valid. * * @param {Array<workbox-precaching.PrecacheController.PrecacheEntry|string>} entries * Array of entries to precache. */ addToCacheList(entries: Array<PrecacheEntry | string>): vo...
1,287,762
7eb90ba97a55a86a511c84f19cf1366f
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-269/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::activate
function
/** * Deletes assets that are no longer present in the current precache manifest. * Call this method from the service worker activate event. * * Note: this method calls `event.waitUntil()` for you, so you do not need * to call it yourself in your event handlers. * * @param {ExtendableEvent} event ...
1,287,763
a7bf190a6ad7fc210660e709d5c4f0ee
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=271-279/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::getURLsToCacheKeys
function
/** * Returns a mapping of a precached URL to the corresponding cache key, taking * into account the revision information for the URL. * * @return {Map<string, string>} A URL to cache key mapping. */ getURLsToCacheKeys(): Map<string, string> { return this._urlsToCacheKeys; }
1,287,764
ba7ab410b69fe1c716ca2f635323c97d
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=281-289/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::getCachedURLs
function
/** * Returns a list of all the URLs that have been precached by the current * service worker. * * @return {Array<string>} The precached URLs. */ getCachedURLs(): Array<string> { return [...this._urlsToCacheKeys.keys()]; }
1,287,765
9fbd1f786a4fce0f46fbc76806481d73
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=291-303/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::getCacheKeyForURL
function
/** * Returns the cache key used for storing a given URL. If that URL is * unversioned, like `/index.html', then the cache key will be the original * URL with a search parameter appended to it. * * @param {string} url A URL whose cache key you want to look up. * @return {string} The versioned URL that...
1,287,766
8b346828fb7c8f3a6387a5384e664e59
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=305-312/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::getIntegrityForCacheKey
function
/** * @param {string} url A cache key whose SRI you want to look up. * @return {string} The subresource integrity associated with the cache key, * or undefined if it's not set. */ getIntegrityForCacheKey(cacheKey: string): string | undefined { return this._cacheKeysToIntegrities.get(cacheKey); }
1,287,767
518b0bed2301a2ff8fef98adcc177b27
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=314-342/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::matchPrecache
function
/** * This acts as a drop-in replacement for * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match) * with the following differences: * * - It knows what the name of the precache is, and only checks in that cache. * - It allows you to pass in an "original" URL without versio...
1,287,768
f83617f04dd6187c8d626451e74db17e
swh:1:cnt:bb7f97e59926dc60b528a8f5fbd61f21a42414f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=344-363/
7aa528133369548fa227afefc367195422b6f1b2
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheController.ts
PrecacheController::createHandlerBoundToURL
function
/** * Returns a function that looks up `url` in the precache (taking into * account revision information), and returns the corresponding `Response`. * * @param {string} url The precached URL which will be used to lookup the * `Response`. * @return {workbox-routing~handlerCallback} */ createHandle...
1,287,769
62a04eb3b8a3970e364058224cbdf6b3
swh:1:cnt:0c3dfa12e05445d380235293968068574b795dbb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-63/
9ac3a79ac958db9d315a64938818d4f24b396325
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheFallbackPlugin.ts
PrecacheFallbackPlugin
type
/** * `PrecacheFallbackPlugin` allows you to specify an "offline fallback" * response to be used when a given strategy is unable to generate a response. * * It does this by intercepting the `handlerDidError` plugin callback * and returning a precached response, taking the expected revision parameter * into accoun...
1,287,770
c3538ad5296d219aaa4d8fe05a4d8e53
swh:1:cnt:0c3dfa12e05445d380235293968068574b795dbb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-54/
9ac3a79ac958db9d315a64938818d4f24b396325
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheFallbackPlugin.ts
PrecacheFallbackPlugin::constructor
function
/** * Constructs a new PrecacheFallbackPlugin with the associated fallbackURL. * * @param {Object} config * @param {string} config.fallbackURL A precached URL to use as the fallback * if the associated strategy can't generate a response. * @param {PrecacheController} [config.precacheController] An...
1,287,771
42eb850ea19f56734cec53ac10d183d3
swh:1:cnt:63c31720dd763d519de2e3f4d3836e90fbae200d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-75/
8eb03fc4cf3a5204fb51926702c4917b97197b1d
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheRoute.ts
PrecacheRoute
type
/** * A subclass of {@link workbox-routing.Route} that takes a * {@link workbox-precaching.PrecacheController} * instance and uses it to match incoming requests and handle fetching * responses from the precache. * * @memberof workbox-precaching * @extends workbox-routing.Route */ class PrecacheRoute extends Rou...
1,287,772
b1668922a083de851f677be5341e9c37
swh:1:cnt:63c31720dd763d519de2e3f4d3836e90fbae200d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-74/
8eb03fc4cf3a5204fb51926702c4917b97197b1d
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheRoute.ts
PrecacheRoute::constructor
function
/** * @param {PrecacheController} precacheController A `PrecacheController` * instance used to both match requests and respond to fetch events. * @param {Object} [options] Options to control how requests are matched * against the list of precached URLs. * @param {string} [options.directoryIndex=index.htm...
1,287,773
e290649645b053652f966040335906ef
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-22/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategyOptions
type
interface PrecacheStrategyOptions extends StrategyOptions { fallbackToNetwork?: boolean; }
1,287,774
b445bb0d68fb06c434eebe952cc12325
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-285/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy
type
/** * A {@link workbox-strategies.Strategy} implementation * specifically designed to work with * {@link workbox-precaching.PrecacheController} * to both cache and fetch precached assets. * * Note: an instance of this class is created automatically when creating a * `PrecacheController`; it's generally not neces...
1,287,775
81e86c466abe2d48d232258e6b50126b
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=55-84/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy::constructor
function
/** * * @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to the cache names provided by * {@link workbox-core.cacheNames}. * @param {Array<Object>} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using...
1,287,776
e2cf4e7c6a3a594ef2b6f3f8806e2eb8
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-46/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy::cacheWillUpdate
function
async cacheWillUpdate({response}) { if (!response || response.status >= 400) { return null; } return response; }
1,287,777
eb0caff8c0442921fa12a4caf2cbbb73
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-108/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy::_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,287,778
41e9378e0e496de366c3056ea1b160c5
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-205/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy::_handleFetch
function
async _handleFetch( request: Request, handler: StrategyHandler, ): Promise<Response> { let response; const params = (handler.params || {}) as { cacheKey?: string; integrity?: string; }; // Fall back to the network if we're configured to do so. if (this._fallbackToNetwork) { ...
1,287,779
a85b5999d40a1457b0b3c32a1c7462a8
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=207-228/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy::_handleInstall
function
async _handleInstall( request: Request, handler: StrategyHandler, ): Promise<Response> { this._useDefaultCacheabilityPluginIfNeeded(); const response = await handler.fetch(request); // Make sure we defer cachePut() until after we know the response // should be cached; see https://github.com/...
1,287,780
404444126a1d5208d2f9d6001a2125a5
swh:1:cnt:a5e2173f2a832edfd628d86b9b1bedf1e731bb75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=230-284/
6126e26d6f3c83fb90ae52d783e87f047a75a221
wlbdashboard
wmcs
node_modules/workbox-precaching/src/PrecacheStrategy.ts
PrecacheStrategy::_useDefaultCacheabilityPluginIfNeeded
function
/** * This method is complex, as there a number of things to account for: * * The `plugins` array can be set at construction, and/or it might be added to * to at any time before the strategy is used. * * At the time the strategy is used (i.e. during an `install` event), there * needs to be at least...
1,287,781
cc73ffb7923ee89083904f46249eeb22
swh:1:cnt:506d1bc2387e8a24c72df71c8cac74ae1fdabb65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-14/
672894537f9a4856a63e36471876d029cc0b93ed
wlbdashboard
wmcs
node_modules/workbox-precaching/src/_types.ts
InstallResult
type
interface InstallResult { updatedURLs: string[]; notUpdatedURLs: string[]; }
1,287,782
cbd76e9f333abcbcd4c071e2e907976f
swh:1:cnt:506d1bc2387e8a24c72df71c8cac74ae1fdabb65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-33/
672894537f9a4856a63e36471876d029cc0b93ed
wlbdashboard
wmcs
node_modules/workbox-precaching/src/_types.ts
urlManipulation
type
type urlManipulation = ({url}: {url: URL}) => URL[];
1,287,783
1f8091df2840791812622b65207952c1
swh:1:cnt:506d1bc2387e8a24c72df71c8cac74ae1fdabb65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-24/
672894537f9a4856a63e36471876d029cc0b93ed
wlbdashboard
wmcs
node_modules/workbox-precaching/src/_types.ts
PrecacheEntry
type
interface PrecacheEntry { integrity?: string; url: string; revision?: string | null; }
1,287,784
cb58fc7f03f9383fed60d357c619cf4b
swh:1:cnt:506d1bc2387e8a24c72df71c8cac74ae1fdabb65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-31/
672894537f9a4856a63e36471876d029cc0b93ed
wlbdashboard
wmcs
node_modules/workbox-precaching/src/_types.ts
PrecacheRouteOptions
type
interface PrecacheRouteOptions { directoryIndex?: string; ignoreURLParametersMatching?: RegExp[]; cleanURLs?: boolean; urlManipulation?: urlManipulation; }
1,287,785
8edddeafcb2d0771afd77b63e46ee3d1
swh:1:cnt:506d1bc2387e8a24c72df71c8cac74ae1fdabb65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-18/
672894537f9a4856a63e36471876d029cc0b93ed
wlbdashboard
wmcs
node_modules/workbox-precaching/src/_types.ts
CleanupResult
type
interface CleanupResult { deletedCacheRequests: string[]; }
1,287,786
76de184335a8a329663516d70260377b
swh:1:cnt:b0045b90564bbd7e2bd716ebf37410ff1f404faa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-16/
550a0cabb40bf89e9d8d2715d08aaeb2fa1f09c9
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/createCacheKey.ts
CacheKey
type
interface CacheKey { cacheKey: string; url: string; }
1,287,787
f52192ea93c7edcea458e6062e7073c7
swh:1:cnt:b0045b90564bbd7e2bd716ebf37410ff1f404faa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-69/
550a0cabb40bf89e9d8d2715d08aaeb2fa1f09c9
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/createCacheKey.ts
createCacheKey
function
function createCacheKey(entry: PrecacheEntry | string): CacheKey { if (!entry) { throw new WorkboxError('add-to-cache-list-unexpected-type', {entry}); } // If a precache manifest entry is a string, it's assumed to be a versioned // URL, like '/app.abcd1234.js'. Return as-is. if (typeof entry === 'string'...
1,287,788
e0a1ed1bc4ee5ed4435e0a19fa4ea123
swh:1:cnt:d6c4e4ae19db44d33a12bdf71b8972232d63187a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-43/
02d71e48a88d2381eb7ee5f144d2b3a5f1e883c7
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/PrecacheCacheKeyPlugin.ts
PrecacheCacheKeyPlugin
type
/** * A plugin, designed to be used with PrecacheController, to translate URLs into * the corresponding cache key, based on the current revision info. * * @private */ class PrecacheCacheKeyPlugin implements WorkboxPlugin { private readonly _precacheController: PrecacheController; constructor({precacheControll...
1,287,789
0fbe512a0e6ff5204b9846c78faeeeac
swh:1:cnt:d6c4e4ae19db44d33a12bdf71b8972232d63187a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-26/
02d71e48a88d2381eb7ee5f144d2b3a5f1e883c7
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/PrecacheCacheKeyPlugin.ts
PrecacheCacheKeyPlugin::constructor
function
constructor({precacheController}: {precacheController: PrecacheController}) { this._precacheController = precacheController; }
1,287,790
c463dd443681b892dd45323fc147dca0
swh:1:cnt:97970c58a3478cd0f094c9d2627493cc8b58962e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-56/
aa7ff7e2d2598355741fe79a644b7ac43339edf4
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/PrecacheInstallReportPlugin.ts
PrecacheInstallReportPlugin
type
/** * A plugin, designed to be used with PrecacheController, to determine the * of assets that were updated (or not updated) during the install event. * * @private */ class PrecacheInstallReportPlugin implements WorkboxPlugin { updatedURLs: string[] = []; notUpdatedURLs: string[] = []; handlerWillStart: Wor...
1,287,791
2eb423cafdfe4284acccfc30a90cff97
swh:1:cnt:68df0feeb7cb968d23e523cd615eafd6620eed28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-45/
19787207cc299bbe7732efeecd5339d5c1111163
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/printCleanupDetails.ts
printCleanupDetails
function
function printCleanupDetails(deletedURLs: string[]): void { const deletionCount = deletedURLs.length; if (deletionCount > 0) { logger.groupCollapsed( `During precaching cleanup, ` + `${deletionCount} cached ` + `request${deletionCount === 1 ? ' was' : 's were'} deleted.`, ); logGro...
1,287,792
f3d65a09999e0ddce663ac9ae2430a15
swh:1:cnt:8f74c58a320bafc87cf12e840f312ffa15632ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-30/
4aea8d4b1a0b6cfa1cf693592d711d832d6508a5
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/printInstallDetails.ts
_nestedGroup
function
/** * @param {string} groupTitle * @param {Array<string>} urls * * @private */ function _nestedGroup(groupTitle: string, urls: string[]): void { if (urls.length === 0) { return; } logger.groupCollapsed(groupTitle); for (const url of urls) { logger.log(url); } logger.groupEnd(); }
1,287,793
46f8b261cf62f99ba6d3e357b4f50fe9
swh:1:cnt:8f74c58a320bafc87cf12e840f312ffa15632ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-63/
4aea8d4b1a0b6cfa1cf693592d711d832d6508a5
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/printInstallDetails.ts
printInstallDetails
function
function printInstallDetails( urlsToPrecache: string[], urlsAlreadyPrecached: string[], ): void { const precachedCount = urlsToPrecache.length; const alreadyPrecachedCount = urlsAlreadyPrecached.length; if (precachedCount || alreadyPrecachedCount) { let message = `Precaching ${precachedCount} file${ ...
1,287,794
6192f9711c685a73542b04cfde383a7a
swh:1:cnt:1b02dfe7041d6b7b87bcf640e1edea828bb782f7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-36/
d6036e4c85ab141e6dd718f9a24fcf64529795fc
wlbdashboard
wmcs
node_modules/workbox-precaching/src/utils/removeIgnoredSearchParams.ts
removeIgnoredSearchParams
function
function removeIgnoredSearchParams( urlObject: URL, ignoreURLParametersMatching: RegExp[] = [], ): URL { // Convert the iterable into an array at the start of the loop to make sure // deletion doesn't mess up iteration. for (const paramName of [...urlObject.searchParams.keys()]) { if (ignoreURLParametersM...
1,287,795
c5509ac46855def25050fc7518911a0b
swh:1:cnt:4b9596c77a23e38724cea75a89cdc4e983b2cfac;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-6/
e4b5d4b0bb13f7f1a3a0140d124d4c63f71f289f
wlbdashboard
wmcs
node_modules/workbox-precaching/utils/createCacheKey.d.ts
CacheKey
type
interface CacheKey { cacheKey: string; url: string; }
1,287,796
fff8c0ccd046cd308090d44e97a01c3a
swh:1:cnt:a4f20cdcafd00a1bfddd55ae3690f3cd67d3eb62;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-56/
d8c55b8e4c2b04d2c8be1cb6aadf1fe926d7bfe7
wlbdashboard
wmcs
node_modules/workbox-precaching/utils/createCacheKey.js
createCacheKey
function
function createCacheKey(entry) { if (!entry) { throw new WorkboxError('add-to-cache-list-unexpected-type', { entry }); } // If a precache manifest entry is a string, it's assumed to be a versioned // URL, like '/app.abcd1234.js'. Return as-is. if (typeof entry === 'string') { const u...
1,287,797
a4909cb46137436d406d4274854eaa26
swh:1:cnt:4159082c6d7e7b40590802a0e669feb38f8fb070;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-16/
08b56b70c8847e16ab4f2094841ec8ed9bf7af52
wlbdashboard
wmcs
node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.d.ts
PrecacheCacheKeyPlugin
type
class PrecacheCacheKeyPlugin implements WorkboxPlugin { private readonly _precacheController; constructor({ precacheController }: { precacheController: PrecacheController; }); cacheKeyWillBeUsed: WorkboxPlugin['cacheKeyWillBeUsed']; }
1,287,798
1cae535577894af1f527f35f008b9629
swh:1:cnt:70007446012f48874ebd8924c82af8f6acdec94b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-29/
4eddb37bbe7c8a9754fee56cc8069d6faddbcaed
wlbdashboard
wmcs
node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.js
PrecacheCacheKeyPlugin
type
/** * A plugin, designed to be used with PrecacheController, to translate URLs into * the corresponding cache key, based on the current revision info. * * @private */ class PrecacheCacheKeyPlugin { constructor({ precacheController }) { this.cacheKeyWillBeUsed = async ({ request, params, }) => { ...
1,287,799
13f901c8472a4d4b407bcf63b81e1206
swh:1:cnt:70007446012f48874ebd8924c82af8f6acdec94b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-28/
4eddb37bbe7c8a9754fee56cc8069d6faddbcaed
wlbdashboard
wmcs
node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.js
PrecacheCacheKeyPlugin::constructor
function
constructor({ precacheController }) { this.cacheKeyWillBeUsed = async ({ request, params, }) => { // Params is type any, can't change right now. /* eslint-disable */ const cacheKey = (params === null || params === void 0 ? void 0 : params.cacheKey) || this._pr...