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,500
4fdf096c7abcbf7b3344cd9e048047e5
swh:1:cnt:be8257e3734accd21c7616c18d2f5416c692abc3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-33/
2006627b6929a50e8085924512265199eb981df5
wlbdashboard
wmcs
node_modules/workbox-core/_private/WorkboxError.js
WorkboxError::constructor
function
/** * * @param {string} errorCode The error code that * identifies this particular error. * @param {Object=} details Any relevant arguments * that will help developers identify issues should * be added as a key on the context object. */ constructor(errorCode, details) { co...
1,287,501
c376b577e22d7998393dc1d142d65cc7
swh:1:cnt:f066df5c0b84d9b61d293374f77333fe036780a8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/
d1913de6fba68fa9195f79ae0cb562200b2099f9
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.d.ts
CacheExpirationConfig
type
interface CacheExpirationConfig { maxEntries?: number; maxAgeSeconds?: number; matchOptions?: CacheQueryOptions; }
1,287,502
05470aeb5815069746d37d9c151b64b0
swh:1:cnt:f066df5c0b84d9b61d293374f77333fe036780a8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-65/
d1913de6fba68fa9195f79ae0cb562200b2099f9
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.d.ts
CacheExpiration
type
class CacheExpiration { private _isRunning; private _rerunRequested; private readonly _maxEntries?; private readonly _maxAgeSeconds?; private readonly _matchOptions?; private readonly _cacheName; private readonly _timestampModel; /** * To construct a new CacheExpiration instance you...
1,287,503
0134da28a563b40acdefa8a2451e10ed
swh:1:cnt:45947959a96696f04f7256b7de65ab7e89fb38d1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-168/
13e08c1c6e54884b71d0d4da412ca20567cb8da4
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.js
CacheExpiration
type
/** * The `CacheExpiration` class allows you define an expiration and / or * limit on the number of responses stored in a * [`Cache`](https://developer.mozilla.org/en-US/docs/Web/API/Cache). * * @memberof workbox-expiration */ class CacheExpiration { /** * To construct a new CacheExpiration instance you ...
1,287,504
fa4f4c6f305e1af40c9202864cdc03ff
swh:1:cnt:45947959a96696f04f7256b7de65ab7e89fb38d1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-74/
13e08c1c6e54884b71d0d4da412ca20567cb8da4
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.js
CacheExpiration::constructor
function
/** * To construct a new CacheExpiration instance you must provide at least * one of the `config` properties. * * @param {string} cacheName Name of the cache to apply restrictions to. * @param {Object} config * @param {number} [config.maxEntries] The maximum number of entries to cache. ...
1,287,505
08bec3973e35097088728afb8a978810
swh:1:cnt:45947959a96696f04f7256b7de65ab7e89fb38d1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=131-157/
13e08c1c6e54884b71d0d4da412ca20567cb8da4
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.js
CacheExpiration::isURLExpired
function
/** * Can be used to check if a URL has expired or not before it's used. * * This requires a look up from IndexedDB, so can be slow. * * Note: This method will not remove the cached entry, call * `expireEntries()` to remove indexedDB and Cache entries. * * @param {string} url ...
1,287,506
3f8761163412e26ce4ef2a7bf307f6d6
swh:1:cnt:45947959a96696f04f7256b7de65ab7e89fb38d1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-112/
13e08c1c6e54884b71d0d4da412ca20567cb8da4
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.js
CacheExpiration::expireEntries
function
/** * Expires entries for the given cache and given criteria. */ async expireEntries() { if (this._isRunning) { this._rerunRequested = true; return; } this._isRunning = true; const minTimestamp = this._maxAgeSeconds ? Date.now() - this._m...
1,287,507
4ba35fd1bf3c4dd22a5c33d4cb294159
swh:1:cnt:45947959a96696f04f7256b7de65ab7e89fb38d1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=113-130/
13e08c1c6e54884b71d0d4da412ca20567cb8da4
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.js
CacheExpiration::updateTimestamp
function
/** * Update the timestamp for the given URL. This ensures the when * removing entries based on maximum entries, most recently used * is accurate or when expiring, the timestamp is up-to-date. * * @param {string} url */ async updateTimestamp(url) { if (process.env.NODE_ENV !== ...
1,287,508
84c257cd6293af345a5786904a09fc92
swh:1:cnt:45947959a96696f04f7256b7de65ab7e89fb38d1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=158-167/
13e08c1c6e54884b71d0d4da412ca20567cb8da4
wlbdashboard
wmcs
node_modules/workbox-expiration/CacheExpiration.js
CacheExpiration::delete
function
/** * Removes the IndexedDB object store used to keep track of cache expiration * metadata. */ async delete() { // Make sure we don't attempt another rerun if we're called in the middle of // a cache expiration. this._rerunRequested = false; await this._timestampModel....
1,287,509
ca2e15dacc7bbc717b427ea064f1d63c
swh:1:cnt:4c307639d31b047951c57497b03fc11e992408bc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-8/
cf99c4d0100fdb457b87ccb371660c9d81e9aa0f
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.d.ts
ExpirationPluginOptions
type
interface ExpirationPluginOptions { maxEntries?: number; maxAgeSeconds?: number; matchOptions?: CacheQueryOptions; purgeOnQuotaError?: boolean; }
1,287,510
781d43d155a41f533a118d90e3da4971
swh:1:cnt:4c307639d31b047951c57497b03fc11e992408bc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-121/
cf99c4d0100fdb457b87ccb371660c9d81e9aa0f
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.d.ts
ExpirationPlugin
type
class ExpirationPlugin implements WorkboxPlugin { private readonly _config; private readonly _maxAgeSeconds?; private _cacheExpirations; /** * @param {ExpirationPluginOptions} config * @param {number} [config.maxEntries] The maximum number of entries to cache. * Entries used the least wil...
1,287,511
d952229b32b4d88e6b693d111f1b961b
swh:1:cnt:2d7a46e482679d03fd7d3421b7309c907493760f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-253/
7d865a6ac0b375a48805acd17b13c08efd470f85
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.js
ExpirationPlugin
type
/** * This plugin can be used in a `workbox-strategy` to regularly enforce a * limit on the age and / or the number of cached requests. * * It can only be used with `workbox-strategy` instances that have a * [custom `cacheName` property set](/web/tools/workbox/guides/configure-workbox#custom_cache_names_in_strateg...
1,287,512
1d1e868b44d7908eaa60c74698d6c2a1
swh:1:cnt:2d7a46e482679d03fd7d3421b7309c907493760f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-159/
7d865a6ac0b375a48805acd17b13c08efd470f85
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.js
ExpirationPlugin::constructor
function
/** * @param {ExpirationPluginOptions} config * @param {number} [config.maxEntries] The maximum number of entries to cache. * Entries used the least will be removed as the maximum is reached. * @param {number} [config.maxAgeSeconds] The maximum age of an entry before * it's treated as stale and...
1,287,513
7a175a8345dad95285e294d932267e6b
swh:1:cnt:2d7a46e482679d03fd7d3421b7309c907493760f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=204-226/
7d865a6ac0b375a48805acd17b13c08efd470f85
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.js
ExpirationPlugin::_getDateHeaderTimestamp
function
/** * This method will extract the data header and parse it into a useful * value. * * @param {Response} cachedResponse * @return {number|null} * * @private */ _getDateHeaderTimestamp(cachedResponse) { if (!cachedResponse.headers.has('date')) { return null...
1,287,514
9fbdcee5c4973ce9f29043b1347234a3
swh:1:cnt:2d7a46e482679d03fd7d3421b7309c907493760f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=180-203/
7d865a6ac0b375a48805acd17b13c08efd470f85
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.js
ExpirationPlugin::_isResponseDateFresh
function
/** * @param {Response} cachedResponse * @return {boolean} * * @private */ _isResponseDateFresh(cachedResponse) { if (!this._maxAgeSeconds) { // We aren't expiring by age, so return true, it's fresh return true; } // Check if the 'date' header...
1,287,515
f1e4041c527f3e4c3fd97d77516f0e12
swh:1:cnt:2d7a46e482679d03fd7d3421b7309c907493760f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-252/
7d865a6ac0b375a48805acd17b13c08efd470f85
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.js
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 Cach...
1,287,516
2637db8eb06168c0e8c1ba38938c97df
swh:1:cnt:2d7a46e482679d03fd7d3421b7309c907493760f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=160-179/
7d865a6ac0b375a48805acd17b13c08efd470f85
wlbdashboard
wmcs
node_modules/workbox-expiration/ExpirationPlugin.js
ExpirationPlugin::_getCacheExpiration
function
/** * A simple helper method to return a CacheExpiration instance for a given * cache name. * * @param {string} cacheName * @return {CacheExpiration} * * @private */ _getCacheExpiration(cacheName) { if (cacheName === cacheNames.getRuntimeName()) { throw ne...
1,287,517
4b5abb66a6a611aaebf967b2bf63470a
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-30/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
getIdbProxyableTypes
function
// This is a function to prevent it throwing up in node environments. function getIdbProxyableTypes() { return idbProxyableTypes || (idbProxyableTypes = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction]); } // This is a function to prevent it throwing up in node environments.
1,287,518
16e9d653b6535f481232e56ecbb704d6
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-35/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
getCursorAdvanceMethods
function
function getCursorAdvanceMethods() { return cursorAdvanceMethods || (cursorAdvanceMethods = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey]); }
1,287,519
abcec6a39c5fd43dd7f6ebb49fc6c819
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-250/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
deleteDB
function
/** * Delete a database. * * @param name Name of the database. */ function deleteDB(name, { blocked } = {}) { const request = indexedDB.deleteDatabase(name); if (blocked) request.addEventListener('blocked', () => blocked()); return wrap(request).then(() => undefined); }
1,287,520
fc1869dd5070d2a4b07699e5a677d9f7
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=357-372/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::_upgradeDbAndDeleteOldDbs
function
/** * Performs an upgrade of indexedDB and deletes deprecated DBs. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private */ _upgradeDbAndDeleteOldDbs(db) { this._upgradeDb(db); if (this._cacheName) { void deleteDB(this._cacheName); } }
1,287,521
13bfe2008338aa6fb4606d743ca1e7d7
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=471-486/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::_getId
function
/** * Takes a URL and returns an ID that will be unique in the object store. * * @param {string} url * @return {string} * * @private */ _getId(url) { // Creating an ID from the URL and cache name won't be necessary once // Edge switches to Chromium and all browsers w...
1,287,522
e301757c7f49e000df93334ca05375dc
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=487-502/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::getDb
function
/** * Returns an open connection to the database. * * @private */ async getDb() { if (!this._db) { this._db = await openDB(DB_NAME, 1, { upgrade: this._upgradeDbAndDeleteOldDbs.bind(this) }); } return this._db; }
1,287,523
58cb45a5f4f4bde6c8ea3c210f7150d5
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-21/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
_extends
function
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } ...
1,287,524
4e0f9f8fa1a8ae084918f5e84716f959
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=320-329/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::constructor
function
/** * * @param {string} cacheName * * @private */ constructor(cacheName) { this._db = null; this._cacheName = cacheName; }
1,287,525
a551951e737044886cd7e9d6b2521b5d
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=207-236/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
openDB
function
/** * Open a database. * * @param name Name of the database. * @param version Schema version. * @param callbacks Additional callbacks. */ function openDB(name, version, { blocked, upgrade, blocking, terminated } = {}) { const request = indexedDB.open(name, version); const ...
1,287,526
4391a9968456fd1e61adfc09005f1b3a
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=640-666/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheExpiration::isURLExpired
function
/** * Can be used to check if a URL has expired or not before it's used. * * This requires a look up from IndexedDB, so can be slow. * * Note: This method will not remove the cached entry, call * `expireEntries()` to remove indexedDB and Cache entries. * * @param {string} url ...
1,287,527
bdc72abc56176d6a6da59ba376fc4a8a
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=714-851/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
ExpirationPlugin::constructor
function
/** * @param {ExpirationPluginOptions} config * @param {number} [config.maxEntries] The maximum number of entries to cache. * Entries used the least will be removed as the maximum is reached. * @param {number} [config.maxAgeSeconds] The maximum age of an entry before * it's treated as stale and...
1,287,528
e8342a7fcd80c01dea9cc1f7adf1130a
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=852-877/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
ExpirationPlugin::_getCacheExpiration
function
/** * A simple helper method to return a CacheExpiration instance for a given * cache name. * * @param {string} cacheName * @return {CacheExpiration} * * @private */ _getCacheExpiration(cacheName) { if (cacheName === cacheNames_js.cacheNames.getRuntimeName()) { ...
1,287,529
1a4b8eda5c2dddae0f995568eb7c7477
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=878-906/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
ExpirationPlugin::_isResponseDateFresh
function
/** * @param {Response} cachedResponse * @return {boolean} * * @private */ _isResponseDateFresh(cachedResponse) { if (!this._maxAgeSeconds) { // We aren't expiring by age, so return true, it's fresh return true; } // Check if the 'date' header will suffice a qu...
1,287,530
f8a1035ecec3fef8487da7aadc0fc9f9
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=934-962/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
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 Cach...
1,287,531
ff9bbc40a615c2c2b76847ea37cf943b
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=125-128/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
set
function
set(target, prop, value) { target[prop] = value; return true; }
1,287,532
a0374e5f5ccce76f07746fe73f3a6d35
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-136/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
has
function
has(target, prop) { if (target instanceof IDBTransaction && (prop === 'done' || prop === 'store')) { return true; } return prop in target; }
1,287,533
3175cbd22891bd827029f9d0b0aa4a07
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-123/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
get
function
get(target, prop, receiver) { if (target instanceof IDBTransaction) { // Special handling for transaction.done. if (prop === 'done') return transactionDoneMap.get(target); // Polyfill for objectStoreNames because of Edge. if (prop === 'objectStoreNames') { return target.objectSt...
1,287,534
d89cc134a9361b9e5b75bae0749a7d39
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-103/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
cacheDonePromiseForTransaction
function
function cacheDonePromiseForTransaction(tx) { // Early bail if we've already created a done promise for this transaction. if (transactionDoneMap.has(tx)) return; const done = new Promise((resolve, reject) => { const unlisten = () => { tx.removeEventListener('complete', complete); tx.re...
1,287,535
ae703f6caad664caecebd4e38bcabaf9
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=256-286/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
getMethod
function
function getMethod(target, prop) { if (!(target instanceof IDBDatabase && !(prop in target) && typeof prop === 'string')) { return; } if (cachedMethods.get(prop)) return cachedMethods.get(prop); const targetFuncName = prop.replace(/FromIndex$/, ''); const useIndex = prop !== targetFuncName; ...
1,287,536
7f27ecab0a097bc025fc389ac66649fc
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=330-356/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::_upgradeDb
function
/** * Performs an upgrade of indexedDB. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private */ _upgradeDb(db) { // TODO(philipwalton): EdgeHTML doesn't support arrays as a keyPath, so we // have to use the `id` keyPath here and create our own values (a // conca...
1,287,537
f6e4c04bf84013b4374bcd7a0e5ad181
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=373-398/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::setTimestamp
function
/** * @param {string} url * @param {number} timestamp * * @private */ async setTimestamp(url, timestamp) { url = normalizeURL(url); const entry = { url, timestamp, cacheName: this._cacheName, // Creating an ID from the URL and cache name won't b...
1,287,538
ce4f940781a842d9cf2221944394fa8c
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-203/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
wrap
function
function wrap(value) { // We sometimes generate multiple promises from a single IDBRequest (eg when cursoring), because // IDB is weird and a single IDBRequest can yield many responses, so these can't be cached. if (value instanceof IDBRequest) return promisifyRequest(value); // If we've already transformed...
1,287,539
90badb2512ca02c55b1963984455dc2c
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=522-579/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheExpiration::constructor
function
/** * To construct a new CacheExpiration instance you must provide at least * one of the `config` properties. * * @param {string} cacheName Name of the cache to apply restrictions to. * @param {Object} config * @param {number} [config.maxEntries] The maximum number of entries to cache. ...
1,287,540
0046a30d2379ebfcbe2cce88b9a15732
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=580-618/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheExpiration::expireEntries
function
/** * Expires entries for the given cache and given criteria. */ async expireEntries() { if (this._isRunning) { this._rerunRequested = true; return; } this._isRunning = true; const minTimestamp = this._maxAgeSeconds ? Date.now() - this._maxAgeSeconds * 1000 : 0; ...
1,287,541
5f4ba6c66c8fa3f3750f39f56c0e7c24
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=619-639/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheExpiration::updateTimestamp
function
/** * Update the timestamp for the given URL. This ensures the when * removing entries based on maximum entries, most recently used * is accurate or when expiring, the timestamp is up-to-date. * * @param {string} url */ async updateTimestamp(url) { { assert_js.assert.is...
1,287,542
1e1ccec3d4f762be32ba3155baba1302
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=667-678/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheExpiration::delete
function
/** * Removes the IndexedDB object store used to keep track of cache expiration * metadata. */ async delete() { // Make sure we don't attempt another rerun if we're called in the middle of // a cache expiration. this._rerunRequested = false; await this._timestampModel.expire...
1,287,543
0efa69042bb3040bc3ad2d64b2d0f992
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-75/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
promisifyRequest
function
function promisifyRequest(request) { const promise = new Promise((resolve, reject) => { const unlisten = () => { request.removeEventListener('success', success); request.removeEventListener('error', error); }; const success = () => { resolve(wrap(request.result)); ...
1,287,544
9e4e4bac5b9a668ad87db8a9c30dc8ac
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-142/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
replaceTraps
function
function replaceTraps(callback) { idbProxyTraps = callback(idbProxyTraps); }
1,287,545
8d0771d62c11be0171db1c37aaafcb40
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-175/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
wrapFunction
function
function wrapFunction(func) { // Due to expected object equality (which is enforced by the caching in `wrap`), we // only create one new func per func. // Edge doesn't support objectStoreNames (booo), so we polyfill it here. if (func === IDBDatabase.prototype.transaction && !('objectStoreNames' in IDBTr...
1,287,546
225fecfc13a06ae94945da1a2cc44bf6
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=177-185/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
transformCachableValue
function
function transformCachableValue(value) { if (typeof value === 'function') return wrapFunction(value); // This doesn't return, it just creates a 'done' promise for the transaction, // which is later returned for transaction.done (see idbObjectHandler). if (value instanceof IDBTransaction) cacheDonePromiseFo...
1,287,547
a9db2e751d12b1799a90cdcda58cf44c
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=399-413/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel::getTimestamp
function
/** * Returns the timestamp stored for a given URL. * * @param {string} url * @return {number | undefined} * * @private */ async getTimestamp(url) { const db = await this.getDb(); const entry = await db.get(CACHE_OBJECT_STORE, this._getId(url)); return entry ==...
1,287,548
964c8cbbc16f43bc585b58f7f3642147
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=414-470/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
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>} ...
1,287,549
f3bce8f1fabbbe5cc5057e0418457891
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=907-933/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
ExpirationPlugin::_getDateHeaderTimestamp
function
/** * This method will extract the data header and parse it into a useful * value. * * @param {Response} cachedResponse * @return {number|null} * * @private */ _getDateHeaderTimestamp(cachedResponse) { if (!cachedResponse.headers.has('date')) { return null; ...
1,287,550
ee2ed3b3d1af87438d33cc97fa829bfa
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=312-504/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheTimestampsModel
type
/** * Returns the timestamp model. * * @private */ class CacheTimestampsModel { /** * * @param {string} cacheName * * @private */ constructor(cacheName) { this._db = null; this._cacheName = cacheName; } /** * Performs an upgrade of indexedDB. ...
1,287,551
6dd00a4a8be63854e9de3868280a2f10
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=682-964/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
ExpirationPlugin
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * This plugin can be used in a `workbox-strategy` to regularly enforce a * limit on the age and / or the number of c...
1,287,552
fa0028afe12cce1f0e7074f12723fef2
swh:1:cnt:e4abefd8559e31c547ac2a719bcaea2e624139d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=506-680/
7cfae97504011d949680b73b1234b2df26d8a185
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.dev.js
CacheExpiration
type
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ /** * The `CacheExpiration` class allows you define an expiration and / or * limit on the number of responses stored in ...
1,287,553
79559ff1b1cbde2da31366c9f811ca02
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
r
function
function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r.apply(this,arguments)}
1,287,554
a11064cc06da361f0d9f7363847651b9
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
g
function
function g(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(B.get(e))return B.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,i=I.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!i&&!y.includes(n))return;const r=async function(t,...e){const r=this.transaction(t,i?"readwrite":"rea...
1,287,555
664a422cea2ee87a54851c1d261174f9
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::constructor
function
constructor(t){this.t=null,this.M=t}
1,287,556
e4016932f500aa2d50d6f74a8265850d
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::i
function
i(t){const e=t.createObjectStore(x,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}
1,287,557
57d074ca10a92677225bcf8172d945ae
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
M::expireEntries
function
async expireEntries(){if(this.P)return void(this.W=!0);this.P=!0;const t=this.L?Date.now()-1e3*this.L:0,n=await this.$.expireEntries(t,this.K),s=await self.caches.open(this.M);for(const t of n)await s.delete(t,this.H);this.P=!1,this.W&&(this.W=!1,e.dontWaitFor(this.expireEntries()))}
1,287,558
27710cb84f883105bf9cd2c1f70dc8cf
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
M::isURLExpired
function
async isURLExpired(t){if(this.L){const e=await this.$.getTimestamp(t),n=Date.now()-1e3*this.L;return void 0===e||e<n}return!1}
1,287,559
821810b634f12ca9ffd9cb034daa8694
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
M::constructor
function
constructor(t,e={}){this.P=!1,this.W=!1,this.K=e.maxEntries,this.L=e.maxAgeSeconds,this.H=e.matchOptions,this.M=t,this.$=new v(t)}
1,287,560
d63240a80e76c638fcd396a56cc4dcca
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::N
function
N(t){this.i(t),this.M&&function(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);e&&n.addEventListener("blocked",(()=>e())),m(n).then((()=>{}))}(this.M)}
1,287,561
afe172356d2ba6bcfe2a814243086ea1
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
M::delete
function
async delete(){this.W=!1,await this.$.expireEntries(1/0)}
1,287,562
a304b927bcb4205510be91fda2e32ba9
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
J
function
J(t){if(!this.L)return!0;const e=this.Z(t);if(null===e)return!0;return e>=Date.now()-1e3*this.L}
1,287,563
51de6d5749d85e239f967a06be8a2eb8
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
deleteCacheAndMetadata
function
async deleteCacheAndMetadata(){for(const[t,e]of this.Y)await self.caches.delete(t),await e.delete();this.Y=new Map}
1,287,564
d2debde77217b2717a055ef2712ea048
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
get
function
get(t,e,n){if(t instanceof IDBTransaction){if("done"===e)return h.get(t);if("objectStoreNames"===e)return t.objectStoreNames||f.get(t);if("store"===e)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return m(t[e])}
1,287,565
fcbb68e5c0b8354c3b9ab5067ff17d6b
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
M::updateTimestamp
function
async updateTimestamp(t){await this.$.setTimestamp(t,Date.now())}
1,287,566
33eb76ce5f98af81c1817e14f9c49aa7
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
constructor
function
constructor(t={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:s,cachedResponse:i})=>{if(!i)return null;const r=this.J(i),a=this.V(s);e.dontWaitFor(a.expireEntries());const o=a.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch(t){}return r?i:null},this.cacheDidUpdate=async({cacheName:t,request:e}...
1,287,567
3f0d156507f00149258342b7c7355f6a
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
Z
function
Z(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date"),n=new Date(e).getTime();return isNaN(n)?null:n}
1,287,568
b07be60bbbdb326c1d7c69351e673018
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
m
function
function m(t){if(t instanceof IDBRequest)return function(t){const e=new Promise(((e,n)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",r)},i=()=>{e(m(t.result)),s()},r=()=>{n(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",r)}));return e.then((e=>{e instanceof ID...
1,287,569
8c406997f02a1049a904e5e97fa044e1
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
p
function
function p(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(b(this),e),m(u.get(this))}:function(...e){return m(t.apply(b(this...
1,287,570
7ffae6d801c60e7abb07834958437f4a
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
D
function
function D(t){return"function"==typeof t?p(t):(t instanceof IDBTransaction&&function(t){if(h.has(t))return;const e=new Promise(((e,n)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",r),t.removeEventListener("abort",r)},i=()=>{e(),s()},r=()=>{n(t.error||new DOMException("AbortError","Abo...
1,287,571
def96ea43148c88a2da2143d195121c8
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::setTimestamp
function
async setTimestamp(t,e){const n={url:t=k(t),timestamp:e,cacheName:this.M,id:this.T(t)},s=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await s.store.put(n),await s.done}
1,287,572
68d4854894e20c7bd199b47c6be461f6
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::getTimestamp
function
async getTimestamp(t){const e=await this.getDb(),n=await e.get(x,this.T(t));return null==n?void 0:n.timestamp}
1,287,573
e10e62f1b77488bced9d513b27800e5b
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::expireEntries
function
async expireEntries(t,e){const n=await this.getDb();let s=await n.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let r=0;for(;s;){const n=s.value;n.cacheName===this.M&&(t&&n.timestamp<t||e&&r>=e?i.push(s.value):r++),s=await s.continue()}const a=[];for(const t of i)await n.delete(x,t.id),a.pu...
1,287,574
9e02f0a2ebb81a5ce6492093ef34b1ca
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::getDb
function
async getDb(){return this.t||(this.t=await function(t,e,{blocked:n,upgrade:s,blocking:i,terminated:r}={}){const a=indexedDB.open(t,e),o=m(a);return s&&a.addEventListener("upgradeneeded",(t=>{s(m(a.result),t.oldVersion,t.newVersion,m(a.transaction))})),n&&a.addEventListener("blocked",(()=>n())),o.then((t=>{r&&t.addEvent...
1,287,575
7862199c9979c3e5764868d4a77f867d
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v::T
function
T(t){return this.M+"|"+k(t)}
1,287,576
81b7a4030f78d447598b7a61b1ce1bcc
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
V
function
V(t){if(t===n.cacheNames.getRuntimeName())throw new i.WorkboxError("expire-custom-caches-only");let e=this.Y.get(t);return e||(e=new M(t,this.X),this.Y.set(t,e)),e}
1,287,577
12031268dd76b6449abdf8855756b51b
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
v
type
class v{constructor(t){this.t=null,this.M=t}i(t){const e=t.createObjectStore(x,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}N(t){this.i(t),this.M&&function(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);e&&n.addEventListener("blocked",(()=>...
1,287,578
4a1af09c4176e08cfc5b675c27d4b837
swh:1:cnt:110ca74b3865af4e7cdbedb1375dcccc16f76c25;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/
90b549e215e5964e9619f4df8a5860de19afcaa4
wlbdashboard
wmcs
node_modules/workbox-expiration/build/workbox-expiration.prod.js
M
type
class M{constructor(t,e={}){this.P=!1,this.W=!1,this.K=e.maxEntries,this.L=e.maxAgeSeconds,this.H=e.matchOptions,this.M=t,this.$=new v(t)}async expireEntries(){if(this.P)return void(this.W=!0);this.P=!0;const t=this.L?Date.now()-1e3*this.L:0,n=await this.$.expireEntries(t,this.K),s=await self.caches.open(this.M);for(co...
1,287,579
ec293d7ece9ce418e29ea30d0fc7ea58
swh:1:cnt:a392ee5e8a208d3ce6982e852d06e59a86a36bd4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-76/
05350c1d5e7b9c2f7711af5457f2ffbae27e8762
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.d.ts
CacheTimestampsModel
type
class CacheTimestampsModel { private readonly _cacheName; private _db; /** * * @param {string} cacheName * * @private */ constructor(cacheName: string); /** * Performs an upgrade of indexedDB. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private ...
1,287,580
718c2deca64f6299d4f42223bec11ff8
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-184/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel
type
/** * Returns the timestamp model. * * @private */ class CacheTimestampsModel { /** * * @param {string} cacheName * * @private */ constructor(cacheName) { this._db = null; this._cacheName = cacheName; } /** * Performs an upgrade of indexedDB. * ...
1,287,581
f216d46379f8559e9f01fa3ad6dd712f
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-32/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::constructor
function
/** * * @param {string} cacheName * * @private */ constructor(cacheName) { this._db = null; this._cacheName = cacheName; }
1,287,582
377c6aa2234f189b9e8123ccf31f30b6
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-64/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::_upgradeDbAndDeleteOldDbs
function
/** * Performs an upgrade of indexedDB and deletes deprecated DBs. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private */ _upgradeDbAndDeleteOldDbs(db) { this._upgradeDb(db); if (this._cacheName) { void deleteDB(this._cacheName); } }
1,287,583
b07788eae26b21ae395206883fa7b772
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=89-101/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::getTimestamp
function
/** * Returns the timestamp stored for a given URL. * * @param {string} url * @return {number | undefined} * * @private */ async getTimestamp(url) { const db = await this.getDb(); const entry = await db.get(CACHE_OBJECT_STORE, this._getId(url)); return entr...
1,287,584
60ee61f59e1a5a8933bbd296e958822f
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-51/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::_upgradeDb
function
/** * Performs an upgrade of indexedDB. * * @param {IDBPDatabase<CacheDbSchema>} db * * @private */ _upgradeDb(db) { // TODO(philipwalton): EdgeHTML doesn't support arrays as a keyPath, so we // have to use the `id` keyPath here and create our own values (a // c...
1,287,585
f4fa71d1462ba763cd373660cb88e26d
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-88/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::setTimestamp
function
/** * @param {string} url * @param {number} timestamp * * @private */ async setTimestamp(url, timestamp) { url = normalizeURL(url); const entry = { url, timestamp, cacheName: this._cacheName, // Creating an ID from the URL and ...
1,287,586
61a14ab2eaaa01ef87e524456d11fed9
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=102-156/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
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>} ...
1,287,587
0412d1b0d2974c43468aaa8204850a42
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=157-170/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::_getId
function
/** * Takes a URL and returns an ID that will be unique in the object store. * * @param {string} url * @return {string} * * @private */ _getId(url) { // Creating an ID from the URL and cache name won't be necessary once // Edge switches to Chromium and all browsers...
1,287,588
027be0bb6d7e87f55bd9ca1f79f97604
swh:1:cnt:1206e76b46e8e88d065f3eee3a7c4046a76fc847;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=171-183/
27a693a2913111fea0d02031ec9acd77121f740c
wlbdashboard
wmcs
node_modules/workbox-expiration/models/CacheTimestampsModel.js
CacheTimestampsModel::getDb
function
/** * Returns an open connection to the database. * * @private */ async getDb() { if (!this._db) { this._db = await openDB(DB_NAME, 1, { upgrade: this._upgradeDbAndDeleteOldDbs.bind(this), }); } return this._db; }
1,287,589
488d53950a768da661fe03e0b875e4b1
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-22/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpirationConfig
type
interface CacheExpirationConfig { maxEntries?: number; maxAgeSeconds?: number; matchOptions?: CacheQueryOptions; }
1,287,590
19b5d3d874dbe3532e3c0d113512d7f0
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-203/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpiration
type
/** * The `CacheExpiration` class allows you define an expiration and / or * limit on the number of responses stored in a * [`Cache`](https://developer.mozilla.org/en-US/docs/Web/API/Cache). * * @memberof workbox-expiration */ class CacheExpiration { private _isRunning = false; private _rerunRequested = false...
1,287,591
2c98b5134c749e7f9b4ce77b3e2f6e25
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-94/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpiration::constructor
function
/** * To construct a new CacheExpiration instance you must provide at least * one of the `config` properties. * * @param {string} cacheName Name of the cache to apply restrictions to. * @param {Object} config * @param {number} [config.maxEntries] The maximum number of entries to cache. * Entries us...
1,287,592
3cf2885346158eb32d6524ff32302012
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=193-202/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpiration::delete
function
/** * Removes the IndexedDB object store used to keep track of cache expiration * metadata. */ async delete(): Promise<void> { // Make sure we don't attempt another rerun if we're called in the middle of // a cache expiration. this._rerunRequested = false; await this._timestampModel.expireEnt...
1,287,593
34e3bb3df20d8a0fc111cf193f73b253
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=146-164/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpiration::updateTimestamp
function
/** * Update the timestamp for the given URL. This ensures the when * removing entries based on maximum entries, most recently used * is accurate or when expiring, the timestamp is up-to-date. * * @param {string} url */ async updateTimestamp(url: string): Promise<void> { if (process.env.NODE_ENV...
1,287,594
53f550ff00b00b49c8788b049f830756
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=96-144/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpiration::expireEntries
function
/** * Expires entries for the given cache and given criteria. */ async expireEntries(): Promise<void> { if (this._isRunning) { this._rerunRequested = true; return; } this._isRunning = true; const minTimestamp = this._maxAgeSeconds ? Date.now() - this._maxAgeSeconds * 1000 ...
1,287,595
269e61013993e18b94d9893acf4c9660
swh:1:cnt:954f4305dbb13f4202b5e214db4dcdc91c804b69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=166-191/
e96669c6c193cf5d39736911f6bf5973f5012bca
wlbdashboard
wmcs
node_modules/workbox-expiration/src/CacheExpiration.ts
CacheExpiration::isURLExpired
function
/** * Can be used to check if a URL has expired or not before it's used. * * This requires a look up from IndexedDB, so can be slow. * * Note: This method will not remove the cached entry, call * `expireEntries()` to remove indexedDB and Cache entries. * * @param {string} url * @return {boole...
1,287,596
b0b70f2f02f2f6acafdc734efd68a5d2
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-27/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPluginOptions
type
interface ExpirationPluginOptions { maxEntries?: number; maxAgeSeconds?: number; matchOptions?: CacheQueryOptions; purgeOnQuotaError?: boolean; }
1,287,597
97ca61693ad27b0586e281b2a158691d
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-300/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPlugin
type
/** * This plugin can be used in a `workbox-strategy` to regularly enforce a * limit on the age and / or the number of cached requests. * * It can only be used with `workbox-strategy` instances that have a * [custom `cacheName` property set](/web/tools/workbox/guides/configure-workbox#custom_cache_names_in_strateg...
1,287,598
1a69fe76a2eb732415f554a3632e0861
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-104/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPlugin::constructor
function
/** * @param {ExpirationPluginOptions} config * @param {number} [config.maxEntries] The maximum number of entries to cache. * Entries used the least will be removed as the maximum is reached. * @param {number} [config.maxAgeSeconds] The maximum age of an entry before * it's treated as stale and removed. ...
1,287,599
fa6b69edfd591a8563ca0e6036d1bfad
swh:1:cnt:dd646d96e8f35bd43d9094404544675e53626d3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=212-237/
972a0f4390bd60bd8a9766ae3bcd5d076f468527
wlbdashboard
wmcs
node_modules/workbox-expiration/src/ExpirationPlugin.ts
ExpirationPlugin::_getDateHeaderTimestamp
function
/** * This method will extract the data header and parse it into a useful * value. * * @param {Response} cachedResponse * @return {number|null} * * @private */ private _getDateHeaderTimestamp(cachedResponse: Response): number | null { if (!cachedResponse.headers.has('date')) { return...