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,600
edae2efb0dae52e9fa410d7ca1f8ee4e
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=273-299/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPlugin::deleteCacheAndMetadata
function
/** * This is a helper method that performs two operations: * * - Deletes *all* the underlying Cache instances associated with this plugin * instance, by calling caches.delete() on your behalf. * - Deletes the metadata from IndexedDB used to keep track of expiration * details for each Cache instance. ...
1,287,601
a59d637c9e468358e4d9a8e3410fc9e1
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=185-210/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPlugin::_isResponseDateFresh
function
/** * @param {Response} cachedResponse * @return {boolean} * * @private */ private _isResponseDateFresh(cachedResponse: Response): boolean { if (!this._maxAgeSeconds) { // We aren't expiring by age, so return true, it's fresh return true; } // Check if the 'date' header will su...
1,287,602
9481597de81994b5fa1ac98282e981ed
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-126/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPlugin::_getCacheExpiration
function
/** * A simple helper method to return a CacheExpiration instance for a given * cache name. * * @param {string} cacheName * @return {CacheExpiration} * * @private */ private _getCacheExpiration(cacheName: string): CacheExpiration { if (cacheName === cacheNames.getRuntimeName()) { thr...
1,287,603
24a22d326d847a428ba8b422a2fbb476
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-27/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModelEntry
type
interface CacheTimestampsModelEntry { id: string; cacheName: string; url: string; timestamp: number; }
1,287,604
64ade94ef49c64bc63febfdac9ba3e7c
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-222/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel
type
/** * Returns the timestamp model. * * @private */ class CacheTimestampsModel { private readonly _cacheName: string; private _db: IDBPDatabase<CacheDbSchema> | null = null; /** * * @param {string} cacheName * * @private */ constructor(cacheName: string) { this._cacheName = cacheName; }...
1,287,605
8d42e2ca01b4efcaa5f277a814d52e0c
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-35/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheDbSchema
type
interface CacheDbSchema extends DBSchema { 'cache-entries': { key: string; value: CacheTimestampsModelEntry; indexes: {cacheName: string; timestamp: number}; }; }
1,287,606
9d2418180e5057968040e0615078d306
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-54/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::constructor
function
/** * * @param {string} cacheName * * @private */ constructor(cacheName: string) { this._cacheName = cacheName; }
1,287,607
ac761fce5828272bf827da6887b575e0
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-89/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::_upgradeDbAndDeleteOldDbs
function
/** * Performs an upgrade of indexedDB and deletes deprecated DBs. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private */ private _upgradeDbAndDeleteOldDbs(db: IDBPDatabase<CacheDbSchema>) { this._upgradeDb(db); if (this._cacheName) { void deleteDB(this._cacheName); } }
1,287,608
cc6c1ce3debc038449df3ff8d54232ae
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=91-115/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::setTimestamp
function
/** * @param {string} url * @param {number} timestamp * * @private */ async setTimestamp(url: string, timestamp: number): Promise<void> { url = normalizeURL(url); const entry: CacheTimestampsModelEntry = { url, timestamp, cacheName: this._cacheName, // Creating an ID fr...
1,287,609
55d8baa850a730de5461f3694961c47e
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=117-129/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::getTimestamp
function
/** * Returns the timestamp stored for a given URL. * * @param {string} url * @return {number | undefined} * * @private */ async getTimestamp(url: string): Promise<number | undefined> { const db = await this.getDb(); const entry = await db.get(CACHE_OBJECT_STORE, this._getId(url)); re...
1,287,610
e1ccabf33895cdafb3b79cf26a808aac
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-75/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::_upgradeDb
function
/** * Performs an upgrade of indexedDB. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private */ private _upgradeDb(db: IDBPDatabase<CacheDbSchema>) { // TODO(philipwalton): EdgeHTML doesn't support arrays as a keyPath, so we // have to use the `id` keyPath here and create our own values ...
1,287,611
ae0cf3a9409861880825b62b8437fec0
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=131-192/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::expireEntries
function
/** * Iterates through all the entries in the object store (from newest to * oldest) and removes entries once either `maxCount` is reached or the * entry's timestamp is less than `minTimestamp`. * * @param {number} minTimestamp * @param {number} maxCount * @return {Array<string>} * * @private...
1,287,612
fa7252729b0dc9c03abebf432716f5b5
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=194-207/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::_getId
function
/** * Takes a URL and returns an ID that will be unique in the object store. * * @param {string} url * @return {string} * * @private */ private _getId(url: string): string { // Creating an ID from the URL and cache name won't be necessary once // Edge switches to Chromium and all browsers...
1,287,613
31d707858d22decb6b8a3ea98f51e689
swh:1:cnt:44229258baac34e8859175a3f44119aa60e3ec0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=209-221/
3fd1a115da0e0cc680818f26e2e6b311adf52791
wlbdashboard
wmcs
node_modules/workbox-expiration/src/models/CacheTimestampsModel.ts
CacheTimestampsModel::getDb
function
/** * Returns an open connection to the database. * * @private */ private async getDb() { if (!this._db) { this._db = await openDB(DB_NAME, 1, { upgrade: this._upgradeDbAndDeleteOldDbs.bind(this), }); } return this._db; }
1,287,614
a69dd2664013d60b2449e830264773c5
swh:1:cnt:019ae487d379fb9b265aba1653b5b8bec5fd6bc1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-8/
4b6b67538e19399930ea2b25a0117f0da6fd4725
wlbdashboard
wmcs
node_modules/workbox-google-analytics/initialize.d.ts
GoogleAnalyticsInitializeOptions
type
interface GoogleAnalyticsInitializeOptions { cacheName?: string; parameterOverrides?: { [paramName: string]: string; }; hitFilter?: (params: URLSearchParams) => void; }
1,287,615
2b58cb19b31c39b9435990ce1c20a35e
swh:1:cnt:89bf5567cf452ad430320802cbe8c890ab83346a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-35/
ca8edd710a2167953463f92e2e6a5a2de683f9e8
wlbdashboard
wmcs
node_modules/workbox-google-analytics/src/initialize.ts
GoogleAnalyticsInitializeOptions
type
interface GoogleAnalyticsInitializeOptions { cacheName?: string; parameterOverrides?: {[paramName: string]: string}; hitFilter?: (params: URLSearchParams) => void; }
1,287,616
ff1a4dacf5aabbfa27a22f966c676ab9
swh:1:cnt:2fd44b4421772186d0bde89649e4b374c365040d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-31/
e640fe877ae7d9d0b33a0842e10a088c4bd629bd
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/disable.js
disable
function
/** * If the browser supports Navigation Preload, then this will disable it. * * @memberof workbox-navigation-preload */ function disable() { if (isSupported()) { self.addEventListener('activate', (event) => { event.waitUntil(self.registration.navigationPreload.disable().then(() => { ...
1,287,617
4034ae28ca644e927ba737ca28e79326
swh:1:cnt:85b3428eafb663b04f8517cf7a824ce1bd7e45a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-40/
c4be62042a856f99b6eede44a0fd96ebeb6b829d
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/enable.js
enable
function
/** * If the browser supports Navigation Preload, then this will enable it. * * @param {string} [headerValue] Optionally, allows developers to * [override](https://developers.google.com/web/updates/2017/02/navigation-preload#changing_the_header) * the value of the `Service-Worker-Navigation-Preload` header which w...
1,287,618
28577cb36733eea7240d5e45371c5ca3
swh:1:cnt:880e643e5d6a953210350701be4532f41e63a00d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-8/
fe6cd1dad16d577149273f1bd223c191a66b42ca
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/index.d.ts
NavigationPreloadState
type
interface NavigationPreloadState { enabled?: boolean; headerValue?: string; }
1,287,619
4a64213c2332de9e5b6cfe1a8a5fcb5d
swh:1:cnt:880e643e5d6a953210350701be4532f41e63a00d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-14/
fe6cd1dad16d577149273f1bd223c191a66b42ca
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/index.d.ts
NavigationPreloadManager
type
interface NavigationPreloadManager { disable(): Promise<void>; enable(): Promise<void>; getState(): Promise<NavigationPreloadState>; setHeaderValue(value: string): Promise<void>; }
1,287,620
a5908b4c2e46d23d4ff816678e2652fb
swh:1:cnt:880e643e5d6a953210350701be4532f41e63a00d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-18/
fe6cd1dad16d577149273f1bd223c191a66b42ca
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/index.d.ts
ServiceWorkerRegistration
type
interface ServiceWorkerRegistration { readonly navigationPreload: NavigationPreloadManager; }
1,287,621
26081c1ef491895c9e654db10a689717
swh:1:cnt:787eb070a98a8fede64571997ff8f87648d4f6c3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-17/
d174063ec9c895f5be306448c315201f81dd96d7
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/isSupported.js
isSupported
function
/** * @return {boolean} Whether or not the current browser supports enabling * navigation preload. * * @memberof workbox-navigation-preload */ function isSupported() { return Boolean(self.registration && self.registration.navigationPreload); }
1,287,622
8d31c06e436f9d1dba1861297516bebd
swh:1:cnt:73fa269a3ef4620563e7eb1b4d97772ff84e6e09;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-25/
21ef5c42f3bacc01a578aaaa268135864c4324d5
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/build/workbox-navigation-preload.dev.js
isSupported
function
/* 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. */ /** * @return {boolean} Whether or not the current browser supports enabling * navigation preload. ...
1,287,623
6b35f77e94ebd13cfb11148a1705fb4f
swh:1:cnt:73fa269a3ef4620563e7eb1b4d97772ff84e6e09;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-93/
21ef5c42f3bacc01a578aaaa268135864c4324d5
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/build/workbox-navigation-preload.dev.js
enable
function
/* 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. */ /** * If the browser supports Navigation Preload, then this will enable it. * * @param {string} [he...
1,287,624
03aac55363fda290f81df3b11b0fcda7
swh:1:cnt:73fa269a3ef4620563e7eb1b4d97772ff84e6e09;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-54/
21ef5c42f3bacc01a578aaaa268135864c4324d5
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/build/workbox-navigation-preload.dev.js
disable
function
/* 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. */ /** * If the browser supports Navigation Preload, then this will disable it. * * @memberof workbox-...
1,287,625
f08831fe7e45cd850c9cbc6243d3a9bf
swh:1:cnt:57e9fd6df28fa67938ccd52ddd8eb4ecae86eb15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
56c90c3f1b2fc0fffb73a19583744b810bc5712f
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/build/workbox-navigation-preload.prod.js
e
function
function e(){return Boolean(self.registration&&self.registration.navigationPreload)}
1,287,626
b8ec7fd5293e0640a21b777f1b79c8ba
swh:1:cnt:2255045802eff499396668d58270af13b828655b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-37/
19ca5f6bc72be54a42783c0de456becedb46b8ae
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/src/disable.ts
disable
function
/** * If the browser supports Navigation Preload, then this will disable it. * * @memberof workbox-navigation-preload */ function disable(): void { if (isSupported()) { self.addEventListener('activate', (event: ExtendableEvent) => { event.waitUntil( self.registration.navigationPreload.disable()....
1,287,627
bc7101b7a5ed797329d52d7ec0e69993
swh:1:cnt:b33cdc6c17b52455680242dd033a1b6962a6ed9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-49/
21976a5e073ce0a618cbd06fdd624f39feff89a2
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/src/enable.ts
enable
function
/** * If the browser supports Navigation Preload, then this will enable it. * * @param {string} [headerValue] Optionally, allows developers to * [override](https://developers.google.com/web/updates/2017/02/navigation-preload#changing_the_header) * the value of the `Service-Worker-Navigation-Preload` header which w...
1,287,628
c941b70428080bfedbba405dda3bb989
swh:1:cnt:18feaa57ba46f638737923b4fd091343e9ba4d4e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-18/
e1d38546eaafbb4803923215bbb075266f0f321f
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/src/index.ts
NavigationPreloadState
type
// See https://github.com/GoogleChrome/workbox/issues/2946 interface NavigationPreloadState { enabled?: boolean; headerValue?: string; }
1,287,629
2dad3d7ede5bf82359522501d7e63f7a
swh:1:cnt:18feaa57ba46f638737923b4fd091343e9ba4d4e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-30/
e1d38546eaafbb4803923215bbb075266f0f321f
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/src/index.ts
ServiceWorkerRegistration
type
interface ServiceWorkerRegistration { readonly navigationPreload: NavigationPreloadManager; }
1,287,630
9b858a736434e8593185a9af5074f7db
swh:1:cnt:18feaa57ba46f638737923b4fd091343e9ba4d4e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-25/
e1d38546eaafbb4803923215bbb075266f0f321f
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/src/index.ts
NavigationPreloadManager
type
interface NavigationPreloadManager { disable(): Promise<void>; enable(): Promise<void>; getState(): Promise<NavigationPreloadState>; setHeaderValue(value: string): Promise<void>; }
1,287,631
d79814dc4741e22a089cc98daabf26ec
swh:1:cnt:9319d68203fedbd193b0c72d5bb4fcd1db7d35ad;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-22/
4be7e4d705635ce28cc6785c90ca3e4371dd110b
wlbdashboard
wmcs
node_modules/workbox-navigation-preload/src/isSupported.ts
isSupported
function
/** * @return {boolean} Whether or not the current browser supports enabling * navigation preload. * * @memberof workbox-navigation-preload */ function isSupported(): boolean { return Boolean(self.registration && self.registration.navigationPreload); }
1,287,632
9b708fa1d015ff4aa43ac3f96717650e
swh:1:cnt:5682cd006e45bf3d6190a829f9c76e05afaf64b2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-20/
2ca318c3c37ed64584d9e16becf37b5c0c707aae
wlbdashboard
wmcs
node_modules/workbox-precaching/addPlugins.js
addPlugins
function
/** * Adds plugins to the precaching strategy. * * @param {Array<Object>} plugins * * @memberof workbox-precaching */ function addPlugins(plugins) { const precacheController = getOrCreatePrecacheController(); precacheController.strategy.plugins.push(...plugins); }
1,287,633
269697b0f819f25812455245484bc9b1
swh:1:cnt:0ac3c5ec9d59e8316d806d04fc26451e4c5c616f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-30/
1de7fc02286e3c1f616941970dd95a7ee8ecdddf
wlbdashboard
wmcs
node_modules/workbox-precaching/addRoute.js
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,634
0e583afbedb0ef8704d3a59250a2efc7
swh:1:cnt:36fc50158d152cca2ae0779084748a9d14fb328c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-31/
fd9483027ce25a82333c6389e4edf189ccd952d3
wlbdashboard
wmcs
node_modules/workbox-precaching/cleanupOutdatedCaches.js
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() { // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705 self.addEventListene...
1,287,635
1230dcc3617a42b96523b63d2969068d
swh:1:cnt:113d503fe0dc1e3861ce92f9268ae8cecb72a0ec;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-30/
63ccf3b2f840d620e855aae1ce94a8f93a28ef13
wlbdashboard
wmcs
node_modules/workbox-precaching/createHandlerBoundToURL.js
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,636
0b52ba3d2125ad1a73add6785366daf1
swh:1:cnt:d2012b3a2ece39d3e6d43052d626ccd53b5d78e7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-32/
caef5c819f10e1a26485bdcf1a62a46d207ce498
wlbdashboard
wmcs
node_modules/workbox-precaching/getCacheKeyForURL.js
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,637
54dfd67dcf61559b9855f5801c6cc14e
swh:1:cnt:c889b90b5e289eb01980942455ccc329dc003a06;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-28/
c4fa7c59b57bd7d9ccfd7894569c36fe24a368e5
wlbdashboard
wmcs
node_modules/workbox-precaching/matchPrecache.js
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,638
b307a12f895d7a6ff9b63a8af87a91cf
swh:1:cnt:b6848f3d455cfdb473d36ea45959724989e895c1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-32/
09ff4dc316ac77b0d126ad8af211cc02508ddcb7
wlbdashboard
wmcs
node_modules/workbox-precaching/precache.js
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,639
8d3ad9566430b4bcd1a35f81d62b0580
swh:1:cnt:258f9e682e793ec2e18c9ffabb190d18ace71ad4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-28/
47ad818f8ad159c1c6a1cfb1035d68a3584ba5aa
wlbdashboard
wmcs
node_modules/workbox-precaching/precacheAndRoute.js
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,640
257612f4672a4f22eeacc6ac248d1f9b
swh:1:cnt:bc48e4b14fdd39552e3d2573f1e8a9f5d2ba0cdb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-8/
76bced2744b4c5cce86edecd4df4d4ac2d18a976
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.d.ts
ServiceWorkerGlobalScope
type
interface ServiceWorkerGlobalScope { __WB_MANIFEST: Array<PrecacheEntry | string>; }
1,287,641
f37b8c871670f3ff8ca62d7507c3992a
swh:1:cnt:bc48e4b14fdd39552e3d2573f1e8a9f5d2ba0cdb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-14/
76bced2744b4c5cce86edecd4df4d4ac2d18a976
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.d.ts
PrecacheControllerOptions
type
interface PrecacheControllerOptions { cacheName?: string; plugins?: WorkboxPlugin[]; fallbackToNetwork?: boolean; }
1,287,642
4fa344c17966a2bcd5b2ee7e8428efb4
swh:1:cnt:bc48e4b14fdd39552e3d2573f1e8a9f5d2ba0cdb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-141/
76bced2744b4c5cce86edecd4df4d4ac2d18a976
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.d.ts
PrecacheController
type
class PrecacheController { private _installAndActiveListenersAdded?; private readonly _strategy; private readonly _urlsToCacheKeys; private readonly _urlsToCacheModes; private readonly _cacheKeysToIntegrities; /** * Create a new PrecacheController. * * @param {Object} [options] ...
1,287,643
f835cd173a85c06733b5f5961ce7104c
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-291/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
PrecacheController
type
/** * Performs efficient precaching of assets. * * @memberof workbox-precaching */ class PrecacheController { /** * Create a new PrecacheController. * * @param {Object} [options] * @param {string} [options.cacheName] The cache to use for precaching. * @param {string} [options.plugins] P...
1,287,644
6f3cc5ad3f9e4d7758f5642c1e1f0ac7
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-51/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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 {boolea...
1,287,645
6e9f678aa491950205046b375e6dee2a
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-136/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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) { if (proces...
1,287,646
df2a3d307fd1665842bebb753c5fe138
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-175/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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<workbo...
1,287,647
e48513edc910c63e00eb9b41ffa53ac4
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=59-76/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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 o...
1,287,648
429655549b0492ea50a78d7e1f99d5f4
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-58/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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() { return this._strategy; }
1,287,649
c456a1b066c034c02e94bd1b8466c3e8
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=176-205/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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 {Extendable...
1,287,650
952ae3f6d5665cf950837605abe3db6b
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=206-214/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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() { return this._urlsToCacheKeys; }
1,287,651
edf698e967bcd19677edbcb14576da80
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=215-223/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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() { return [...this._urlsToCacheKeys.keys()]; }
1,287,652
18bf78a50b8657a8f2cccfc9a2ba5a01
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=224-236/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.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} The versio...
1,287,653
7e971ab378524a80e3484e285c0e8113
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-244/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.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,654
54a8524bb1d857a2f9eff376aa0b4490
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=272-290/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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} */ ...
1,287,655
24e9bfe5ce3d35ba8c12552b98d9fa2b
swh:1:cnt:e00975e3762dc6382c39bebee04a89a651aae3d0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=245-271/
a513f074daf497ab9c573e458a2e4ac12ed6ab57
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheController.js
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 wi...
1,287,656
3066d7e79aadefb9987d737cec3e5629
swh:1:cnt:5f7eeb4d02282a69d795def5562e9a3b990422ea;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-41/
23a7f37f9742030e0153a8f0f8bc496295c7ad96
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheFallbackPlugin.d.ts
PrecacheFallbackPlugin
type
class PrecacheFallbackPlugin implements WorkboxPlugin { private readonly _fallbackURL; private readonly _precacheController; /** * Constructs a new PrecacheFallbackPlugin with the associated fallbackURL. * * @param {Object} config * @param {string} config.fallbackURL A precached URL to u...
1,287,657
4e55b52e6d3a1cb4645cdd2e129fba2a
swh:1:cnt:e3a9dedaa3b6768c9f16e61230787e6ebb1c7722;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-46/
f9e4721d045c940a10360a5f4a57937f7a2c7f70
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheFallbackPlugin.js
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,658
7ff52736bea8dbc0ef5d9252be989a60
swh:1:cnt:e3a9dedaa3b6768c9f16e61230787e6ebb1c7722;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-45/
f9e4721d045c940a10360a5f4a57937f7a2c7f70
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheFallbackPlugin.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} [config.precacheCo...
1,287,659
52ad9a202203f425a010ed8cd56af2bb
swh:1:cnt:01a43c10221a66992e63ddcbba069f8a22ebf63c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-32/
dc145aa7b02ea9f584f1c23c1d97c477cd6bdc62
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheRoute.d.ts
PrecacheRoute
type
class PrecacheRoute extends Route { /** * @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. *...
1,287,660
4229085c4ac8e4269a82145417195ee8
swh:1:cnt:bf2e9caee51af773af0b85966311a3be8f70cb1b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-56/
e63f8346b9b2fdc775638a60c638c888643f7461
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheRoute.js
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,661
78d2971384d216bfa460d536f9bd9b4e
swh:1:cnt:bf2e9caee51af773af0b85966311a3be8f70cb1b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-55/
e63f8346b9b2fdc775638a60c638c888643f7461
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheRoute.js
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...
1,287,662
264f5d9cec4d072130d042bca9a2478e
swh:1:cnt:000e177ef7d04cc89f9d94f9efb00adfc7122df1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-7/
b6ce5633752f04cedb7a596db064fe8065eff584
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.d.ts
PrecacheStrategyOptions
type
interface PrecacheStrategyOptions extends StrategyOptions { fallbackToNetwork?: boolean; }
1,287,663
08fdaacb1dff0e91e1967cbc6295c110
swh:1:cnt:000e177ef7d04cc89f9d94f9efb00adfc7122df1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-80/
b6ce5633752f04cedb7a596db064fe8065eff584
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.d.ts
PrecacheStrategy
type
class PrecacheStrategy extends Strategy { private readonly _fallbackToNetwork; static readonly defaultPrecacheCacheabilityPlugin: WorkboxPlugin; static readonly copyRedirectedCacheableResponsesPlugin: WorkboxPlugin; /** * * @param {Object} [options] * @param {string} [options.cacheName] C...
1,287,664
a637eded672c74b1d84dc9016f596a4f
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-209/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.js
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,665
d2a79dd81ca39f76c69d4465931c4b3a
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-55/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.js
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/...
1,287,666
3cc496f8e500f6c9ae4a0e13306354b1
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-140/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.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) { if (process.env.NODE_ENV !== 'production') { logger.warn(`The precached respons...
1,287,667
0b2aa6be0b1cd664b8d362c698cfa2e5
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=157-208/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.js
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 ...
1,287,668
14a45df4d94c785cd335494ddc1c5708
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=141-156/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.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 con...
1,287,669
e00e680678e381b11ac8e9f0535f23dc
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-76/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.js
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, handler) { const response = await handl...
1,287,670
5ebeea294cec4b03c792db812e80712b
swh:1:cnt:736853a631ae41f39c8db36f550f75fe779b07df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=211-216/
0bd78cca114e2c5f25d02795b3b7ef3b317c7724
wlbdashboard
wmcs
node_modules/workbox-precaching/PrecacheStrategy.js
cacheWillUpdate
function
async cacheWillUpdate({ response }) { if (!response || response.status >= 400) { return null; } return response; }
1,287,671
3354003613640348ab57f332486bebc0
swh:1:cnt:f2b765e2f79b935c306ed1094b25fbae2ad23acd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-5/
26eabea7ede758bfb832d968950593b35379cab6
wlbdashboard
wmcs
node_modules/workbox-precaching/_types.d.ts
InstallResult
type
interface InstallResult { updatedURLs: string[]; notUpdatedURLs: string[]; }
1,287,672
2fcf96be94946a38be684119f2ae3bdd
swh:1:cnt:f2b765e2f79b935c306ed1094b25fbae2ad23acd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-8/
26eabea7ede758bfb832d968950593b35379cab6
wlbdashboard
wmcs
node_modules/workbox-precaching/_types.d.ts
CleanupResult
type
interface CleanupResult { deletedCacheRequests: string[]; }
1,287,673
00a56ddce25a8246d7c61a824674e179
swh:1:cnt:f2b765e2f79b935c306ed1094b25fbae2ad23acd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-13/
26eabea7ede758bfb832d968950593b35379cab6
wlbdashboard
wmcs
node_modules/workbox-precaching/_types.d.ts
PrecacheEntry
type
interface PrecacheEntry { integrity?: string; url: string; revision?: string | null; }
1,287,674
e717404d3e4c0cf15cdcb677f628408d
swh:1:cnt:f2b765e2f79b935c306ed1094b25fbae2ad23acd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-19/
26eabea7ede758bfb832d968950593b35379cab6
wlbdashboard
wmcs
node_modules/workbox-precaching/_types.d.ts
PrecacheRouteOptions
type
interface PrecacheRouteOptions { directoryIndex?: string; ignoreURLParametersMatching?: RegExp[]; cleanURLs?: boolean; urlManipulation?: urlManipulation; }
1,287,675
8b0c448eaf023c3612fea8d6de6abddf
swh:1:cnt:f2b765e2f79b935c306ed1094b25fbae2ad23acd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-22/
26eabea7ede758bfb832d968950593b35379cab6
wlbdashboard
wmcs
node_modules/workbox-precaching/_types.d.ts
urlManipulation
type
type urlManipulation = ({ url }: { url: URL; }) => URL[];
1,287,676
d1a146125475b36d99418c179a0b1b47
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-75/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
createCacheKey
function
/** * Converts a manifest entry into a versioned URL suitable for precaching. * * @param {Object|string} entry * @return {string} A URL with versioning info. * * @private * @memberof workbox-precaching */ function createCacheKey(entry) { if (!entry) { throw new...
1,287,677
4c068a7848e967309c680b5db5b9dfed
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-126/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
PrecacheInstallReportPlugin::constructor
function
constructor() { this.updatedURLs = []; this.notUpdatedURLs = []; this.handlerWillStart = async ({ request, state }) => { // TODO: `state` should never be undefined... if (state) { state.originalRequest = request; } };...
1,287,678
066215af7cb541e9f3e43c2047ff8210
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=315-340/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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, handler) { const respon...
1,287,679
91f42221771d502d0ef08ac6347398f1
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=556-576/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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>} [ent...
1,287,680
04491ed354515d4daecc0c9ed810ec4d
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=696-732/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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. * * @par...
1,287,681
295aa8a6e3c43595a4d36c68af9e8ab4
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=547-555/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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() { return this._strategy; }
1,287,682
36a7696b8d5c7196da8ccfe71363152e
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=423-479/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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 ...
1,287,683
4f06b79b3d4a893fd4c8e078d87425f0
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=780-810/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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 "orig...
1,287,684
b7d1dfdfa37742b8cd1d0ef0dade54da
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1153-1183/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
getCacheKeyForURL
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. */ /** * Takes in a URL, and returns the corresponding URL that could be used to * lookup the entry in the ...
1,287,685
e015bbea622673bef5b167e533adaa91
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=145-165/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.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.c...
1,287,686
4c312305271f4c440b2a5c08730febd8
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=192-208/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
printCleanupDetails
function
/** * @param {Array<string>} deletedURLs * * @private * @memberof workbox-precaching */ function printCleanupDetails(deletedURLs) { const deletionCount = deletedURLs.length; if (deletionCount > 0) { logger_js.logger.groupCollapsed(`During precaching cleanup, ` + `${de...
1,287,687
041bae13115b0266717e680618b6216a
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-265/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
printInstallDetails
function
/** * @param {Array<string>} urlsToPrecache * @param {Array<string>} urlsAlreadyPrecached * * @private * @memberof workbox-precaching */ function printInstallDetails(urlsToPrecache, urlsAlreadyPrecached) { const precachedCount = urlsToPrecache.length; const alreadyPrecach...
1,287,688
4e770972dba71921ce80e9941ed89592
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=288-314/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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/to...
1,287,689
1f2875473f6be618d82005d47c9676b9
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=518-546/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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. * ...
1,287,690
e02cd4cdf534bb0b2771276bb0400c79
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=733-743/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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() { return this._urlsToCacheKeys; }
1,287,691
f86b370a79771b209d85106019e0921e
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=744-754/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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() { return [...this._urlsToCacheKeys.keys()]; }
1,287,692
374135eb1beeb0f6036be0eae16d7aff
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=882-912/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
removeIgnoredSearchParams
function
/* 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. */ /** * Removes any URL search parameters that should be ignored. * * @param {URL} urlObject The orig...
1,287,693
7dc646f1fb22563cefb51db6e58b4a19
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=985-1027/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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.dire...
1,287,694
4734ac3068bbd67f2bb3fcc7ff444f7c
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1031-1057/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
addRoute
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. */ /** * Add a `fetch` listener to the service worker that will * respond to * [network requests]{@link...
1,287,695
bd7bb8ef15c913d494e3e8feae3418f0
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=484-492/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
cacheWillUpdate
function
async cacheWillUpdate({ response }) { if (!response || response.status >= 400) { return null; } return response; }
1,287,696
bf505a092e6719358d5c6b70c29a2eda
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=210-236/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
_nestedGroup
function
/* 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. */ /** * @param {string} groupTitle * @param {Array<string>} urls * * @private */ funct...
1,287,697
b56ee49f188cd8446cf2169b02122b9b
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=642-695/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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...
1,287,698
1f703d829a51d5baacddba03d102e2b2
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=577-641/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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) { ...
1,287,699
1f0679f015717347de74c2d06426f130
swh:1:cnt:a82738cf3b874dacc54476f82f7127971b046007;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=811-837/
f9fb1addf81e704f967ba6b832bb3867e93fbbd5
wlbdashboard
wmcs
node_modules/workbox-precaching/build/workbox-precaching.dev.js
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~handlerCallba...