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,800 | 64a6a2397c17434f88a9af88a3503099 | swh:1:cnt:fb152b9dd3cf3ea62544678c6a1ea8c23f23048a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-14/ | 49295dd1535d9888d731971298197a5e7de23053 | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.d.ts | PrecacheInstallReportPlugin | type | class PrecacheInstallReportPlugin implements WorkboxPlugin {
updatedURLs: string[];
notUpdatedURLs: string[];
handlerWillStart: WorkboxPlugin['handlerWillStart'];
cachedResponseWillBeUsed: WorkboxPlugin['cachedResponseWillBeUsed'];
} |
1,287,801 | 13190145e74f78daa3f717e4223c0433 | swh:1:cnt:3fb1cb696bfdcc29fd9d3ee1e748a5a515af2e41;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-43/ | ebff7671ca2bc2348d963cc2e011d759a71d6778 | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.js | PrecacheInstallReportPlugin | type | /**
* A plugin, designed to be used with PrecacheController, to determine the
* of assets that were updated (or not updated) during the install event.
*
* @private
*/
class PrecacheInstallReportPlugin {
constructor() {
this.updatedURLs = [];
this.notUpdatedURLs = [];
this.handlerWillSta... |
1,287,802 | 7db357dcc0b95072ea5bd75748183a00 | swh:1:cnt:3fb1cb696bfdcc29fd9d3ee1e748a5a515af2e41;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-42/ | ebff7671ca2bc2348d963cc2e011d759a71d6778 | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.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;
}
};
this.cach... |
1,287,803 | 82e4e10303be5f44df5ae3b503f72dc8 | swh:1:cnt:f6da6b3780d15c6424d5324e073101928f993f42;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-38/ | 42c33b2985c8e3821a394961846575fe22ccc87d | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/printCleanupDetails.js | printCleanupDetails | function | function printCleanupDetails(deletedURLs) {
const deletionCount = deletedURLs.length;
if (deletionCount > 0) {
logger.groupCollapsed(`During precaching cleanup, ` +
`${deletionCount} cached ` +
`request${deletionCount === 1 ? ' was' : 's were'} deleted.`);
logGroup('Delet... |
1,287,804 | 9e019130cb0d4d2551df01805233601c | swh:1:cnt:e2c0b90ae37ce798dc9d143c34326bd101e5189c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-25/ | a780aac352ce6105ea5ef0331ad4d4cacdde373b | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/printInstallDetails.js | _nestedGroup | function | /**
* @param {string} groupTitle
* @param {Array<string>} urls
*
* @private
*/
function _nestedGroup(groupTitle, urls) {
if (urls.length === 0) {
return;
}
logger.groupCollapsed(groupTitle);
for (const url of urls) {
logger.log(url);
}
logger.groupEnd();
} |
1,287,805 | 333a5397c0a2527d133b48483dfd394d | swh:1:cnt:e2c0b90ae37ce798dc9d143c34326bd101e5189c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-48/ | a780aac352ce6105ea5ef0331ad4d4cacdde373b | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/printInstallDetails.js | printInstallDetails | function | function printInstallDetails(urlsToPrecache, urlsAlreadyPrecached) {
const precachedCount = urlsToPrecache.length;
const alreadyPrecachedCount = urlsAlreadyPrecached.length;
if (precachedCount || alreadyPrecachedCount) {
let message = `Precaching ${precachedCount} file${precachedCount === 1 ? '' : '... |
1,287,806 | 52b32af75e93a38bbd37aeac754643b3 | swh:1:cnt:d783ba8825bd374cbd3e18238b38751820fd7122;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-30/ | 7c7dd108feb7c66e310b79ed8564670ce6c16c1b | wlbdashboard | wmcs | node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js | removeIgnoredSearchParams | function | function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching = []) {
// Convert the iterable into an array at the start of the loop to make sure
// deletion doesn't mess up iteration.
for (const paramName of [...urlObject.searchParams.keys()]) {
if (ignoreURLParametersMatching.some((reg... |
1,287,807 | 8b81e4bc54f95bded33e32357929b8ed | swh:1:cnt:2bbf3f5c3ed51fc85e862b1c220b47d12e24fb61;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-87/ | 38906341829f5cdb8aacbb0cfe5c309a32407c05 | wlbdashboard | wmcs | node_modules/workbox-range-requests/createPartialResponse.js | createPartialResponse | function | /**
* Given a `Request` and `Response` objects as input, this will return a
* promise for a new `Response`.
*
* If the original `Response` already contains partial content (i.e. it has
* a status of 206), then this assumes it already fulfills the `Range:`
* requirements, and will return it as-is.
*
* @param {Re... |
1,287,808 | 3d91a3358b86e1df46c32507c29cce52 | swh:1:cnt:35e241aa0fd4a50f2357d7aa1f16ff0b18641437;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-25/ | f464bd797d289e2e75d435fab15e3f8e86c23ca4 | wlbdashboard | wmcs | node_modules/workbox-range-requests/RangeRequestsPlugin.d.ts | RangeRequestsPlugin | type | class RangeRequestsPlugin implements WorkboxPlugin {
/**
* @param {Object} options
* @param {Request} options.request The original request, which may or may not
* contain a Range: header.
* @param {Response} options.cachedResponse The complete cached response.
* @return {Promise<Response>} ... |
1,287,809 | 5a3ba432c444669d6b4f36e2bc7cfee5 | swh:1:cnt:35d77877c347c5745577aeae650919de2fb3ad9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-43/ | a0b81f76c6c9bfd722def5d4c4a410fa5c70f528 | wlbdashboard | wmcs | node_modules/workbox-range-requests/RangeRequestsPlugin.js | RangeRequestsPlugin | type | /**
* The range request plugin makes it easy for a request with a 'Range' header to
* be fulfilled by a cached response.
*
* It does this by intercepting the `cachedResponseWillBeUsed` plugin callback
* and returning the appropriate subset of the cached response body.
*
* @memberof workbox-range-requests
*/
cla... |
1,287,810 | 0a611b2116e1cafd0a1d855535b0100b | swh:1:cnt:35d77877c347c5745577aeae650919de2fb3ad9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-42/ | a0b81f76c6c9bfd722def5d4c4a410fa5c70f528 | wlbdashboard | wmcs | node_modules/workbox-range-requests/RangeRequestsPlugin.js | RangeRequestsPlugin::constructor | function | constructor() {
/**
* @param {Object} options
* @param {Request} options.request The original request, which may or may not
* contain a Range: header.
* @param {Response} options.cachedResponse The complete cached response.
* @return {Promise<Response>} If request co... |
1,287,811 | 617c6ea0384d1074c2771631340352e9 | swh:1:cnt:dd808e801acf3589883cbecaf0bc196df537e23e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-65/ | 6ac62a471a08f42bef1bdb6c11d543401f1bcae3 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.dev.js | calculateEffectiveBoundaries | 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 {Blob} blob A source blob.
* @param {number} [start] The offset to use as the start of the
... |
1,287,812 | ffd639e7fe3bd7d764cc1df80b6a1752 | swh:1:cnt:dd808e801acf3589883cbecaf0bc196df537e23e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-121/ | 6ac62a471a08f42bef1bdb6c11d543401f1bcae3 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.dev.js | parseRangeHeader | 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} rangeHeader A Range: header value.
* @return {Object} An object with `start` and `... |
1,287,813 | 0c572d76122f5fdbc12be88c9f5d489f | swh:1:cnt:dd808e801acf3589883cbecaf0bc196df537e23e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=123-206/ | 6ac62a471a08f42bef1bdb6c11d543401f1bcae3 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.dev.js | createPartialResponse | 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.
*/
/**
* Given a `Request` and `Response` objects as input, this will return a
* promise for a new `Respons... |
1,287,814 | 8afc4659337b694018cae838a2f5ac30 | swh:1:cnt:dd808e801acf3589883cbecaf0bc196df537e23e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=226-252/ | 6ac62a471a08f42bef1bdb6c11d543401f1bcae3 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.dev.js | RangeRequestsPlugin::constructor | function | constructor() {
/**
* @param {Object} options
* @param {Request} options.request The original request, which may or may not
* contain a Range: header.
* @param {Response} options.cachedResponse The complete cached response.
* @return {Promise<Response>} If request co... |
1,287,815 | 4f4a20644ac89488478c48e050cbb566 | swh:1:cnt:dd808e801acf3589883cbecaf0bc196df537e23e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=208-254/ | 6ac62a471a08f42bef1bdb6c11d543401f1bcae3 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.dev.js | RangeRequestsPlugin | 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 range request plugin makes it easy for a request with a 'Range' header to
* be fulfilled by a ... |
1,287,816 | 34b988be5680cee3a79f37c3450fc7db | swh:1:cnt:3a3571aba77cc90cdfec06d9bf5c7afa1edb6811;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | 2c315131025dd3077e2222c244b7b192efa9be15 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.prod.js | r | function | async function r(t,n){try{if(206===n.status)return n;const r=t.headers.get("range");if(!r)throw new e.WorkboxError("no-range-header");const s=function(t){const n=t.trim().toLowerCase();if(!n.startsWith("bytes="))throw new e.WorkboxError("unit-must-be-bytes",{normalizedRangeHeader:n});if(n.includes(","))throw new e.Work... |
1,287,817 | e76f90f9c256f899f6d35fcd457ccb1e | swh:1:cnt:3a3571aba77cc90cdfec06d9bf5c7afa1edb6811;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | 2c315131025dd3077e2222c244b7b192efa9be15 | wlbdashboard | wmcs | node_modules/workbox-range-requests/build/workbox-range-requests.prod.js | constructor | function | constructor(){this.cachedResponseWillBeUsed=async({request:t,cachedResponse:e})=>e&&t.headers.has("range")?await r(t,e):e} |
1,287,818 | 742b2aa85372c2effb07807c4ea8512e | swh:1:cnt:e7eca6f28f18954252061ea75b0decfebb42355a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-113/ | d6c604ca89a754a4c1755f49f6e49492e65ac2e2 | wlbdashboard | wmcs | node_modules/workbox-range-requests/src/createPartialResponse.ts | createPartialResponse | function | /**
* Given a `Request` and `Response` objects as input, this will return a
* promise for a new `Response`.
*
* If the original `Response` already contains partial content (i.e. it has
* a status of 206), then this assumes it already fulfills the `Range:`
* requirements, and will return it as-is.
*
* @param {Re... |
1,287,819 | 035e4b4126585d8823ea47015aec2120 | swh:1:cnt:80b06982518ba631769a2cf1f8aa2b1665338de4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-48/ | 0d5f8eb06686a0ca6f6fb98b073dca993fb4a4fc | wlbdashboard | wmcs | node_modules/workbox-range-requests/src/RangeRequestsPlugin.ts | RangeRequestsPlugin | type | /**
* The range request plugin makes it easy for a request with a 'Range' header to
* be fulfilled by a cached response.
*
* It does this by intercepting the `cachedResponseWillBeUsed` plugin callback
* and returning the appropriate subset of the cached response body.
*
* @memberof workbox-range-requests
*/
cla... |
1,287,820 | 0d1c0eeab563870c838eaceca63b8f0e | swh:1:cnt:d4cb72478b657d4a858e5bb936047dec2fd296a6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-65/ | 84d545e48189814365b9ea019f37d304f6bc2d23 | wlbdashboard | wmcs | node_modules/workbox-range-requests/src/utils/calculateEffectiveBoundaries.ts | calculateEffectiveBoundaries | function | /**
* @param {Blob} blob A source blob.
* @param {number} [start] The offset to use as the start of the
* slice.
* @param {number} [end] The offset to use as the end of the slice.
* @return {Object} An object with `start` and `end` properties, reflecting
* the effective boundaries to use given the size of the blo... |
1,287,821 | fda5e04cf6111775057e5cf1c2c5faf6 | swh:1:cnt:c3e1d02ed50d1d1e22b661bf00b5b4e689406034;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-52/ | 05bcdb95fe93d41bbca431b0a0e4db1bda11326f | wlbdashboard | wmcs | node_modules/workbox-range-requests/src/utils/parseRangeHeader.ts | parseRangeHeader | function | /**
* @param {string} rangeHeader A Range: header value.
* @return {Object} An object with `start` and `end` properties, reflecting
* the parsed value of the Range: header. If either the `start` or `end` are
* omitted, then `null` will be returned.
*
* @private
*/
function parseRangeHeader(rangeHeader: string): ... |
1,287,822 | 1b0a0c6ddba7e4e40041cdb352af43c1 | swh:1:cnt:14014b02759bab52b334c1bc9830ec88f550df99;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-56/ | e3d93957d7512120ee9bddfd52526383cd98c7de | wlbdashboard | wmcs | node_modules/workbox-range-requests/utils/calculateEffectiveBoundaries.js | calculateEffectiveBoundaries | function | /**
* @param {Blob} blob A source blob.
* @param {number} [start] The offset to use as the start of the
* slice.
* @param {number} [end] The offset to use as the end of the slice.
* @return {Object} An object with `start` and `end` properties, reflecting
* the effective boundaries to use given the size of the blo... |
1,287,823 | a923df9a076d6a7b3fb80f5bc901114c | swh:1:cnt:2909d27e17e9898b95d63b6eb4a15ce0690da47b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-46/ | fac0b2e9e97a48bd160d73aa49c1701cc166b443 | wlbdashboard | wmcs | node_modules/workbox-range-requests/utils/parseRangeHeader.js | parseRangeHeader | function | /**
* @param {string} rangeHeader A Range: header value.
* @return {Object} An object with `start` and `end` properties, reflecting
* the parsed value of the Range: header. If either the `start` or `end` are
* omitted, then `null` will be returned.
*
* @private
*/
function parseRangeHeader(rangeHeader) {
if ... |
1,287,824 | 20e26ecddc1a26732039aa4fc3da84d0 | swh:1:cnt:c2a15ac757be35e5d83439e1b1285ecd1f399f45;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | d9746a5a42a2fa45da25184a0ca0ac86f39fc457 | wlbdashboard | wmcs | node_modules/workbox-recipes/googleFontsCache.d.ts | GoogleFontCacheOptions | type | interface GoogleFontCacheOptions {
cachePrefix?: string;
maxAgeSeconds?: number;
maxEntries?: number;
} |
1,287,825 | e71487fa19483d8273a29d72524fdffc | swh:1:cnt:137745b2fc0c9b8c0b049f826234d7efc035ad58;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-46/ | eebd8d4ff5f0d63c5bb3fbd4a949e6f11a29dfc3 | wlbdashboard | wmcs | node_modules/workbox-recipes/googleFontsCache.js | googleFontsCache | function | /**
* An implementation of the [Google fonts]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#google_fonts} caching recipe
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cachePrefix] Cache prefix for caching stylesheets and webfonts. Defaults to ... |
1,287,826 | e7ed615386ae7bf5f23ee8e53766d929 | swh:1:cnt:15409253fe4c40f6ebc4685de975e70fcdb19a85;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-10/ | 317c31756c15549919c3a6253262fb4383c768fb | wlbdashboard | wmcs | node_modules/workbox-recipes/imageCache.d.ts | ImageCacheOptions | type | interface ImageCacheOptions {
cacheName?: string;
matchCallback?: RouteMatchCallback;
maxAgeSeconds?: number;
maxEntries?: number;
plugins?: Array<WorkboxPlugin>;
warmCache?: Array<string>;
} |
1,287,827 | d6a98166dcac002932dbbe09ff41b42c | swh:1:cnt:009398e108095414f75d9eb6c7beb9dbf04a846c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-50/ | 7a8cd51d9a7f93d29cee01177a12e676e8412165 | wlbdashboard | wmcs | node_modules/workbox-recipes/imageCache.js | imageCache | function | /**
* An implementation of the [image caching recipe]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#caching_images}
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cacheName] Name for cache. Defaults to images
* @param {RouteMatchCallback} [opt... |
1,287,828 | a2409995cedd185e3a10c1729b630914 | swh:1:cnt:b540b2fa6a3624c9387a3232d3d1e8323e435918;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | 4778d3cc04f6a2d9f2a322aad7c7e0e9c452edc6 | wlbdashboard | wmcs | node_modules/workbox-recipes/offlineFallback.d.ts | OfflineFallbackOptions | type | interface OfflineFallbackOptions {
pageFallback?: string;
imageFallback?: string;
fontFallback?: string;
} |
1,287,829 | 9ef383daca75ea67d7d493116b7827dc | swh:1:cnt:00f7ed86b151b3c98251444defaee08ec3498435;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-58/ | 3b134a0e1b16a2d410f22fe7821591f7aa83c056 | wlbdashboard | wmcs | node_modules/workbox-recipes/offlineFallback.js | offlineFallback | function | /**
* An implementation of the [comprehensive fallbacks recipe]{@link https://developers.google.com/web/tools/workbox/guides/advanced-recipes#comprehensive_fallbacks}. Be sure to include the fallbacks in your precache injection
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options... |
1,287,830 | 4111b8485c9ace8f1bc7bf340914fdd9 | swh:1:cnt:5f38f78caed10837dafc0355df8a53beb5d748bc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-9/ | bb32b88bc68e349e1d734feec8dd655d6f6e0688 | wlbdashboard | wmcs | node_modules/workbox-recipes/pageCache.d.ts | PageCacheOptions | type | interface PageCacheOptions {
cacheName?: string;
matchCallback?: RouteMatchCallback;
networkTimeoutSeconds?: number;
plugins?: Array<WorkboxPlugin>;
warmCache?: Array<string>;
} |
1,287,831 | 676470c72b070b79cd0f4c2c613dbbf3 | swh:1:cnt:3aa4f9c84b4129ba3be923f1cda00be072bc66db;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-45/ | 72c8284679428d25b6c1c978554ce3d0d6ad7147 | wlbdashboard | wmcs | node_modules/workbox-recipes/pageCache.js | pageCache | function | /**
* An implementation of a page caching recipe with a network timeout
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cacheName] Name for cache. Defaults to pages
* @param {RouteMatchCallback} [options.matchCallback] Workbox callback function to call to match to. Defaults... |
1,287,832 | 6e66cbfdee4f9226684fe90305e66354 | swh:1:cnt:64cf27db43fb4e324d90e70e84a81c16e8b05505;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-8/ | 4890d5e1a4cb32d89fabb0a0e5bbddf435e939fe | wlbdashboard | wmcs | node_modules/workbox-recipes/staticResourceCache.d.ts | StaticResourceOptions | type | interface StaticResourceOptions {
cacheName?: string;
matchCallback?: RouteMatchCallback;
plugins?: Array<WorkboxPlugin>;
warmCache?: Array<string>;
} |
1,287,833 | 2f3d7b1888a5ad1423116d13e8dd9878 | swh:1:cnt:1338ce0da4ee0c2b3d9fb3dad07c708b2b5529aa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-43/ | d01a18c146ffd305c0c21f27242a2cdc93b87f67 | wlbdashboard | wmcs | node_modules/workbox-recipes/staticResourceCache.js | staticResourceCache | function | /**
* An implementation of the [CSS and JavaScript files recipe]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#cache_css_and_javascript_files}
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cacheName] Name for cache. Defaults to static-resource... |
1,287,834 | 16f360c255e7eb2cce2dc60732e3982d | swh:1:cnt:2ab9b62975aaecd9d4f7b594d37dbf68b5d449d7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-6/ | 28b8700626555adc1b39a2284e6d69d65ec192f5 | wlbdashboard | wmcs | node_modules/workbox-recipes/warmStrategyCache.d.ts | WarmStrategyCacheOptions | type | interface WarmStrategyCacheOptions {
urls: Array<string>;
strategy: Strategy;
} |
1,287,835 | 1d2e9f5e5f2b79c0896c4b65673de4ec | swh:1:cnt:b34884827a1947e22a76fdf9da0cc976bc4c3a1c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-17/ | cd456a1b3c68edab028837235b3ba68a121a4427 | wlbdashboard | wmcs | node_modules/workbox-recipes/warmStrategyCache.js | warmStrategyCache | function | /**
* @memberof workbox-recipes
* @param {Object} options
* @param {string[]} options.urls Paths to warm the strategy's cache with
* @param {Strategy} options.strategy Strategy to use
*/
function warmStrategyCache(options) {
self.addEventListener('install', (event) => {
const done = options.urls.map(... |
1,287,836 | a4f4dc420f9366086ad3ec68dac4782d | swh:1:cnt:ddadb381821c4ac65c5f9c5814c1dad7ffecddb9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-50/ | 2b6352ed8795161192c6a2ad66fd065eddc9bca3 | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.dev.js | googleFontsCache | function | /*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* An implementation of the [Google fonts]{@link https://developers.google.com/web/tools/workbox/guides/co... |
1,287,837 | 3aa97be61cdcd131a1d42c2ca86c8fe0 | swh:1:cnt:ddadb381821c4ac65c5f9c5814c1dad7ffecddb9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-120/ | 2b6352ed8795161192c6a2ad66fd065eddc9bca3 | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.dev.js | imageCache | function | /*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* An implementation of the [image caching recipe]{@link https://developers.google.com/web/tools/workbox/g... |
1,287,838 | fe5103df28582bd79851eba9902c0d88 | swh:1:cnt:ddadb381821c4ac65c5f9c5814c1dad7ffecddb9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=122-164/ | 2b6352ed8795161192c6a2ad66fd065eddc9bca3 | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.dev.js | staticResourceCache | function | /*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* An implementation of the [CSS and JavaScript files recipe]{@link https://developers.google.com/web/tool... |
1,287,839 | efe04f660758fe8ceeb703e7abe2c2eb | swh:1:cnt:ddadb381821c4ac65c5f9c5814c1dad7ffecddb9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=166-212/ | 2b6352ed8795161192c6a2ad66fd065eddc9bca3 | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.dev.js | pageCache | function | /*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* An implementation of a page caching recipe with a network timeout
*
* @memberof workbox-recip... |
1,287,840 | 99208c406d9bd7ef91ca257bd9a6875c | swh:1:cnt:ddadb381821c4ac65c5f9c5814c1dad7ffecddb9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-68/ | 2b6352ed8795161192c6a2ad66fd065eddc9bca3 | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.dev.js | warmStrategyCache | function | /**
* @memberof workbox-recipes
* @param {Object} options
* @param {string[]} options.urls Paths to warm the strategy's cache with
* @param {Strategy} options.strategy Strategy to use
*/
function warmStrategyCache(options) {
self.addEventListener('install', event => {
c... |
1,287,841 | 13346ce067e15fa46cbcf1a0f33b08da | swh:1:cnt:ddadb381821c4ac65c5f9c5814c1dad7ffecddb9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=214-273/ | 2b6352ed8795161192c6a2ad66fd065eddc9bca3 | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.dev.js | offlineFallback | function | /*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* An implementation of the [comprehensive fallbacks recipe]{@link https://developers.google.com/web/tools... |
1,287,842 | e5fbc5b863d2a648c647e9461ecf8e74 | swh:1:cnt:8ad6130cebfa4a16cd68396db325c0dfe6a37c9d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | 800a83f40cdfab259785e2feaffb39ec54ecda4c | wlbdashboard | wmcs | node_modules/workbox-recipes/build/workbox-recipes.prod.js | u | function | function u(e){self.addEventListener("install",(s=>{const t=e.urls.map((t=>e.strategy.handleAll({event:s,request:new Request(t)})[1]));s.waitUntil(Promise.all(t))}))} |
1,287,843 | 1efb382c6f45316c023d6824fcff6ca1 | swh:1:cnt:6fd48665bb1886cc968fad4a3ca2a6fc2551bae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-20/ | 267212d8ffaacbb0b0ef446fd37cd7b0d9ca7116 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/googleFontsCache.ts | GoogleFontCacheOptions | type | interface GoogleFontCacheOptions {
cachePrefix?: string;
maxAgeSeconds?: number;
maxEntries?: number;
} |
1,287,844 | 37d590ebe7e4eeea1bbfb1ee2fd98395 | swh:1:cnt:6fd48665bb1886cc968fad4a3ca2a6fc2551bae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-62/ | 267212d8ffaacbb0b0ef446fd37cd7b0d9ca7116 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/googleFontsCache.ts | googleFontsCache | function | /**
* An implementation of the [Google fonts]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#google_fonts} caching recipe
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cachePrefix] Cache prefix for caching stylesheets and webfonts. Defaults to ... |
1,287,845 | 1cc59a586d50b04d1e1477aab2371be3 | swh:1:cnt:42be8ccef34e458534ec14c10e68212760823108;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-28/ | 9738b40d27c1c86c9e0d0ec6c2b355be56d56d10 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/imageCache.ts | ImageCacheOptions | type | interface ImageCacheOptions {
cacheName?: string;
matchCallback?: RouteMatchCallback;
maxAgeSeconds?: number;
maxEntries?: number;
plugins?: Array<WorkboxPlugin>;
warmCache?: Array<string>;
} |
1,287,846 | 0adf4c267323918d3664512de69ba88e | swh:1:cnt:42be8ccef34e458534ec14c10e68212760823108;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-75/ | 9738b40d27c1c86c9e0d0ec6c2b355be56d56d10 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/imageCache.ts | imageCache | function | /**
* An implementation of the [image caching recipe]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#caching_images}
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cacheName] Name for cache. Defaults to images
* @param {RouteMatchCallback} [opt... |
1,287,847 | 80f996ea89e035524f3c293a552017bf | swh:1:cnt:0b6572f62ce59b81ab8ca1e089f935422cae1170;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-18/ | 63cb49e2c57b4462f91f4b46f5f96106b0251cf4 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/offlineFallback.ts | OfflineFallbackOptions | type | interface OfflineFallbackOptions {
pageFallback?: string;
imageFallback?: string;
fontFallback?: string;
} |
1,287,848 | 8275731c2a6fc151a23574d5f855e62d | swh:1:cnt:0b6572f62ce59b81ab8ca1e089f935422cae1170;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-85/ | 63cb49e2c57b4462f91f4b46f5f96106b0251cf4 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/offlineFallback.ts | offlineFallback | function | /**
* An implementation of the [comprehensive fallbacks recipe]{@link https://developers.google.com/web/tools/workbox/guides/advanced-recipes#comprehensive_fallbacks}. Be sure to include the fallbacks in your precache injection
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options... |
1,287,849 | 48e4802b9f291b94c99437abfcc158dd | swh:1:cnt:6c6782c058ddf26d8820c4e2d6a455d0ed87e97a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-26/ | 778827628147a46cbe9544ffe5d4512f89892aef | wlbdashboard | wmcs | node_modules/workbox-recipes/src/pageCache.ts | PageCacheOptions | type | interface PageCacheOptions {
cacheName?: string;
matchCallback?: RouteMatchCallback;
networkTimeoutSeconds?: number;
plugins?: Array<WorkboxPlugin>;
warmCache?: Array<string>;
} |
1,287,850 | 0dec618f2c991c6368ea5dd396fb9de7 | swh:1:cnt:6c6782c058ddf26d8820c4e2d6a455d0ed87e97a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-67/ | 778827628147a46cbe9544ffe5d4512f89892aef | wlbdashboard | wmcs | node_modules/workbox-recipes/src/pageCache.ts | pageCache | function | /**
* An implementation of a page caching recipe with a network timeout
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cacheName] Name for cache. Defaults to pages
* @param {RouteMatchCallback} [options.matchCallback] Workbox callback function to call to match to. Defaults... |
1,287,851 | cc79f00819b27744d5272d9eff99ef75 | swh:1:cnt:915866baf562254a02ad6f81ba843885196f5f54;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-25/ | beedf30e2ec879c0e6d012b2d1974e71c2b4fdbe | wlbdashboard | wmcs | node_modules/workbox-recipes/src/staticResourceCache.ts | StaticResourceOptions | type | interface StaticResourceOptions {
cacheName?: string;
matchCallback?: RouteMatchCallback;
plugins?: Array<WorkboxPlugin>;
warmCache?: Array<string>;
} |
1,287,852 | c138d45f7d3bd6d961887b163ef3bce1 | swh:1:cnt:915866baf562254a02ad6f81ba843885196f5f54;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-64/ | beedf30e2ec879c0e6d012b2d1974e71c2b4fdbe | wlbdashboard | wmcs | node_modules/workbox-recipes/src/staticResourceCache.ts | staticResourceCache | function | /**
* An implementation of the [CSS and JavaScript files recipe]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#cache_css_and_javascript_files}
*
* @memberof workbox-recipes
*
* @param {Object} [options]
* @param {string} [options.cacheName] Name for cache. Defaults to static-resource... |
1,287,853 | 6257230a1a138fed7f004cc1ed2280ae | swh:1:cnt:1847a237840e1255775514e62220c3d50f9febbb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-8/ | 7d8724d02d889b8466f019e8f897c7bf2d482086 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/warmStrategyCache.ts | WarmStrategyCacheOptions | type | interface WarmStrategyCacheOptions {
urls: Array<string>;
strategy: Strategy;
} |
1,287,854 | 9e6a4eed88e90c2bc8bedc1a3b466c9b | swh:1:cnt:1847a237840e1255775514e62220c3d50f9febbb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-32/ | 7d8724d02d889b8466f019e8f897c7bf2d482086 | wlbdashboard | wmcs | node_modules/workbox-recipes/src/warmStrategyCache.ts | warmStrategyCache | function | /**
* @memberof workbox-recipes
* @param {Object} options
* @param {string[]} options.urls Paths to warm the strategy's cache with
* @param {Strategy} options.strategy Strategy to use
*/
function warmStrategyCache(options: WarmStrategyCacheOptions): void {
self.addEventListener('install', (event) => {
con... |
1,287,855 | 2b92e73c8db67bf2eb8bab4c4305dce9 | swh:1:cnt:5add7e5803ab8c9c48b1741f30656b076015e0a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-7/ | 21313a51c5f262fc77ccb4335e2fb6b54a2d134f | wlbdashboard | wmcs | node_modules/workbox-routing/NavigationRoute.d.ts | NavigationRouteMatchOptions | type | interface NavigationRouteMatchOptions {
allowlist?: RegExp[];
denylist?: RegExp[];
} |
1,287,856 | e75faa94df7f757dfd74c0790f23c2d0 | swh:1:cnt:5add7e5803ab8c9c48b1741f30656b076015e0a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-62/ | 21313a51c5f262fc77ccb4335e2fb6b54a2d134f | wlbdashboard | wmcs | node_modules/workbox-routing/NavigationRoute.d.ts | NavigationRoute | type | class NavigationRoute extends Route {
private readonly _allowlist;
private readonly _denylist;
/**
* If both `denylist` and `allowlist` are provided, the `denylist` will
* take precedence and the request will not match this route.
*
* The regular expressions in `allowlist` and `denylist`... |
1,287,857 | c5e82da8fbc74bdd3e05abc685e0c8d2 | swh:1:cnt:692ac3a5d43e10f188285f823d9532f4db92f1e7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-109/ | 55d31ca8d910c2515667bce681bf53eec0589cda | wlbdashboard | wmcs | node_modules/workbox-routing/NavigationRoute.js | NavigationRoute | type | /**
* NavigationRoute makes it easy to create a
* {@link workbox-routing.Route} that matches for browser
* [navigation requests]{@link https://developers.google.com/web/fundamentals/primers/service-workers/high-performance-loading#first_what_are_navigation_requests}.
*
* It will only match incoming Requests whose
... |
1,287,858 | ed77d1e1f828c7f84c57f16b9bf6e515 | swh:1:cnt:692ac3a5d43e10f188285f823d9532f4db92f1e7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-70/ | 55d31ca8d910c2515667bce681bf53eec0589cda | wlbdashboard | wmcs | node_modules/workbox-routing/NavigationRoute.js | NavigationRoute::constructor | function | /**
* If both `denylist` and `allowlist` are provided, the `denylist` will
* take precedence and the request will not match this route.
*
* The regular expressions in `allowlist` and `denylist`
* are matched against the concatenated
* [`pathname`]{@link https://developer.mozilla.org/en-US/... |
1,287,859 | 258387f90840b4cee16734827f9575df | swh:1:cnt:692ac3a5d43e10f188285f823d9532f4db92f1e7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=71-108/ | 55d31ca8d910c2515667bce681bf53eec0589cda | wlbdashboard | wmcs | node_modules/workbox-routing/NavigationRoute.js | NavigationRoute::_match | function | /**
* Routes match handler.
*
* @param {Object} options
* @param {URL} options.url
* @param {Request} options.request
* @return {boolean}
*
* @private
*/
_match({ url, request }) {
if (request && request.mode !== 'navigate') {
return false;
}
... |
1,287,860 | a0676a4b6fef07b5f100b8f0d206a57b | swh:1:cnt:77a1d4f356953405e57640d7186cd924bb3143b4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-31/ | 4798466711e8e9abed2441534a0bb43cf8f0d881 | wlbdashboard | wmcs | node_modules/workbox-routing/RegExpRoute.d.ts | RegExpRoute | type | class RegExpRoute extends Route {
/**
* If the regular expression contains
* [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},
* the captured values will be passed to the
* {@link workbox-routing~handlerCallb... |
1,287,861 | b970f11f75bc037974a093ecca8cd6bb | swh:1:cnt:9bf0365b6a7e498aed7bcaf16157c544de0a71d7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-72/ | fe97f02f209394b66e6156b708908eaa2a7df3a9 | wlbdashboard | wmcs | node_modules/workbox-routing/RegExpRoute.js | RegExpRoute | type | /**
* RegExpRoute makes it easy to create a regular expression based
* {@link workbox-routing.Route}.
*
* For same-origin requests the RegExp only needs to match part of the URL. For
* requests against third-party servers, you must define a RegExp that matches
* the start of the URL.
*
* @memberof workbox-routi... |
1,287,862 | 5240ce1f6382ab203d9221db13349813 | swh:1:cnt:9bf0365b6a7e498aed7bcaf16157c544de0a71d7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-71/ | fe97f02f209394b66e6156b708908eaa2a7df3a9 | wlbdashboard | wmcs | node_modules/workbox-routing/RegExpRoute.js | RegExpRoute::constructor | function | /**
* If the regular expression contains
* [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},
* the captured values will be passed to the
* {@link workbox-routing~handlerCallback} `params`
* argument.
*
... |
1,287,863 | 52e70a14eb3d0fd81c84f1c0a21996ed | swh:1:cnt:a766897ffd67380fa7ae8e581bec5d97901705a3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-92/ | 7e1840639d46df81080d76d047e32b5cfd455da0 | wlbdashboard | wmcs | node_modules/workbox-routing/registerRoute.js | registerRoute | function | /**
* Easily register a RegExp, string, or function with a caching
* strategy to a singleton Router instance.
*
* This method will generate a Route for you if needed and
* call {@link workbox-routing.Router#registerRoute}.
*
* @param {RegExp|string|workbox-routing.Route~matchCallback|workbox-routing.Route} captu... |
1,287,864 | 818ff615696bb6ff2d64aa15f561bb17 | swh:1:cnt:39b1ec4d2b5c8169e344a98e9abf8ca9a307f8fd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-36/ | c4f30670b5c4329749ed48023fe2abce82afa9e9 | wlbdashboard | wmcs | node_modules/workbox-routing/Route.d.ts | Route | type | class Route {
handler: RouteHandlerObject;
match: RouteMatchCallback;
method: HTTPMethod;
catchHandler?: RouteHandlerObject;
/**
* Constructor for Route class.
*
* @param {workbox-routing~matchCallback} match
* A callback function that determines whether the route matches a given... |
1,287,865 | fa4d4f9e13f1038291828062df7de591 | swh:1:cnt:c269922b0a0715300e35884a9262292e2bc51a35;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-59/ | 66eff2fd3ce023ce309d7a247974b08cf3b29024 | wlbdashboard | wmcs | node_modules/workbox-routing/Route.js | Route | type | /**
* A `Route` consists of a pair of callback functions, "match" and "handler".
* The "match" callback determine if a route should be used to "handle" a
* request by returning a non-falsy value if it can. The "handler" callback
* is called when there is a match and should return a Promise that resolves
* to a `Re... |
1,287,866 | 4ce31604ddd16b585447529d783e2f28 | swh:1:cnt:c269922b0a0715300e35884a9262292e2bc51a35;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-50/ | 66eff2fd3ce023ce309d7a247974b08cf3b29024 | wlbdashboard | wmcs | node_modules/workbox-routing/Route.js | Route::constructor | function | /**
* Constructor for Route class.
*
* @param {workbox-routing~matchCallback} match
* A callback function that determines whether the route matches a given
* `fetch` event by returning a non-falsy value.
* @param {workbox-routing~handlerCallback} handler A callback
* function that ret... |
1,287,867 | 51c34473ef4c88f58f837322436fccf7 | swh:1:cnt:c269922b0a0715300e35884a9262292e2bc51a35;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-58/ | 66eff2fd3ce023ce309d7a247974b08cf3b29024 | wlbdashboard | wmcs | node_modules/workbox-routing/Route.js | Route::setCatchHandler | function | /**
*
* @param {workbox-routing-handlerCallback} handler A callback
* function that returns a Promise resolving to a Response
*/
setCatchHandler(handler) {
this.catchHandler = normalizeHandler(handler);
} |
1,287,868 | 9c47c2b7bd7115a38450d01d05a1bec4 | swh:1:cnt:a5c21d09dd1cf3a4dc0d4de54f25f26d9ece4845;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-134/ | 749a7c817ca40dbc93a420c2a0fa70567cb1d687 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.d.ts | Router | type | class Router {
private readonly _routes;
private readonly _defaultHandlerMap;
private _catchHandler?;
/**
* Initializes a new Router.
*/
constructor();
/**
* @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP
* method name ('GET', etc.) to an array of ... |
1,287,869 | ce265c10e4b61b9686e719e46e373283 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-392/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router | type | /**
* The Router can be used to process a `FetchEvent` using one or more
* {@link workbox-routing.Route}, responding with a `Response` if
* a matching route exists.
*
* If no route matches a given a request, the Router will use a "default"
* handler if one is defined.
*
* Should the matching Route throw an erro... |
1,287,870 | 2acec1986c036c22263ad481504a789b | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-39/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::constructor | function | /**
* Initializes a new Router.
*/
constructor() {
this._routes = new Map();
this._defaultHandlerMap = new Map();
} |
1,287,871 | befa2ee9a17d25cb6a63843118b1f552 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-61/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::addFetchListener | function | /**
* Adds a fetch event listener to respond to events when a route matches
* the event's request.
*/
addFetchListener() {
// See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705
self.addEventListener('fetch', ((event) => {
const { request } = ev... |
1,287,872 | 8eabcb398d2886caeb9343bc6fab26ee | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=113-243/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::handleRequest | function | /**
* Apply the routing rules to a FetchEvent object to get a Response from an
* appropriate Route's handler.
*
* @param {Object} options
* @param {Request} options.request The request to handle.
* @param {ExtendableEvent} options.event The event that triggered the
* request.
... |
1,287,873 | f5d296643da0d8116e44bb1411aab4b0 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-112/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::addCacheListener | function | /**
* Adds a message event listener for URLs to cache from the window.
* This is useful to cache resources loaded on the page prior to when the
* service worker started controlling it.
*
* The format of the message data sent from the window should be as follows.
* Where the `urlsToCache` a... |
1,287,874 | e51f97c88ba4319e0f15e4e8ebf10d2a | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-47/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::routes | function | /**
* @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP
* method name ('GET', etc.) to an array of all the corresponding `Route`
* instances that are registered.
*/
get routes() {
return this._routes;
} |
1,287,875 | 4c0cea9255f32ec077de46b5e2ad0b50 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=244-300/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::findMatchingRoute | function | /**
* Checks a request and URL (and optionally an event) against the list of
* registered routes, and if there's a match, returns the corresponding
* route along with any params generated by the match.
*
* @param {Object} options
* @param {URL} options.url
* @param {boolean} options.s... |
1,287,876 | 7532f515f1dd953808ea0f4b1cd60762 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=301-317/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::setDefaultHandler | function | /**
* Define a default `handler` that's called when no routes explicitly
* match the incoming request.
*
* Each HTTP method ('GET', 'POST', etc.) gets its own default handler.
*
* Without a default handler, unmatched requests will go against the
* network as if there were no service w... |
1,287,877 | 6f72be11c67a84f9c9e05273091eef66 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=318-327/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::setCatchHandler | function | /**
* If a Route throws an error while handling a request, this `handler`
* will be called and given a chance to provide a response.
*
* @param {workbox-routing~handlerCallback} handler A callback
* function that returns a Promise resulting in a Response.
*/
setCatchHandler(handler) {
... |
1,287,878 | e16b8da4e0492ae8c352c09e365d2e70 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=328-372/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::registerRoute | function | /**
* Registers a route with the router.
*
* @param {workbox-routing.Route} route The route to register.
*/
registerRoute(route) {
if (process.env.NODE_ENV !== 'production') {
assert.isType(route, 'object', {
moduleName: 'workbox-routing',
clas... |
1,287,879 | 189e161edb000e865e809dc9f87b4699 | swh:1:cnt:3e94f088a0f7f6e86a14889633446bf090f3d0ae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=373-391/ | bc6418ba80026d7ff61f096ee9c5687de6a68427 | wlbdashboard | wmcs | node_modules/workbox-routing/Router.js | Router::unregisterRoute | function | /**
* Unregisters a route with the router.
*
* @param {workbox-routing.Route} route The route to unregister.
*/
unregisterRoute(route) {
if (!this._routes.has(route.method)) {
throw new WorkboxError('unregister-route-but-not-found-with-method', {
method: route... |
1,287,880 | bba90660685a9b22715b3288b63ad901 | swh:1:cnt:b39aeb16b21c8a58120a8ec40e1f0e31ecdbc988;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-22/ | b0e8bd0e7b9954057cbccd61aa77d48283d85cfd | wlbdashboard | wmcs | node_modules/workbox-routing/setCatchHandler.js | setCatchHandler | function | /**
* If a Route throws an error while handling a request, this `handler`
* will be called and given a chance to provide a response.
*
* @param {workbox-routing~handlerCallback} handler A callback
* function that returns a Promise resulting in a Response.
*
* @memberof workbox-routing
*/
function setCatchHandle... |
1,287,881 | 7a8fedb2fbba0add94f0a6d87ce5ca82 | swh:1:cnt:5f2892abca8ea8662d8b934d393c1e5f7ec553e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-25/ | 7e3298ddf5bd772e00bab334def9a8e1f08ef633 | wlbdashboard | wmcs | node_modules/workbox-routing/setDefaultHandler.js | setDefaultHandler | function | /**
* Define a default `handler` that's called when no routes explicitly
* match the incoming request.
*
* Without a default handler, unmatched requests will go against the
* network as if there were no service worker present.
*
* @param {workbox-routing~handlerCallback} handler A callback
* function that retur... |
1,287,882 | 20a5900beceda654b647e23bc049f31b | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=79-141/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Route | 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.
*/
/**
* A `Route` consists of a pair of callback functions, "match" and "handler".
* The "match" callback ... |
1,287,883 | 0882f7681f1f1732f5f84bd2c6ad4db2 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=143-261/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | NavigationRoute | 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.
*/
/**
* NavigationRoute makes it easy to create a
* {@link workbox-routing.Route} that matches for browser... |
1,287,884 | 139be4ef3f3b163e284d43984bc014bd | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=339-806/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router | 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 Router can be used to process a `FetchEvent` using one or more
* {@link workbox-routing.Route}... |
1,287,885 | 3b3d244cf4cb40ba4eb95a01bb38d56f | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=263-337/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | RegExpRoute | 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.
*/
/**
* RegExpRoute makes it easy to create a regular expression based
* {@link workbox-routing.Route}.
... |
1,287,886 | 0f4f332dc3934b464c73c12711b49055 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-129/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Route::constructor | function | /**
* Constructor for Route class.
*
* @param {workbox-routing~matchCallback} match
* A callback function that determines whether the route matches a given
* `fetch` event by returning a non-falsy value.
* @param {workbox-routing~handlerCallback} handler A callback
* fun... |
1,287,887 | bc68737857466e16e29c516eaf7a0e54 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-139/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Route::setCatchHandler | function | /**
*
* @param {workbox-routing-handlerCallback} handler A callback
* function that returns a Promise resolving to a Response
*/
setCatchHandler(handler) {
this.catchHandler = normalizeHandler(handler);
} |
1,287,888 | 5487ff6d73c53d517f6229e986620e9d | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=167-213/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | NavigationRoute::constructor | function | /**
* If both `denylist` and `allowlist` are provided, the `denylist` will
* take precedence and the request will not match this route.
*
* The regular expressions in `allowlist` and `denylist`
* are matched against the concatenated
* [`pathname`]{@link https://developer.mozill... |
1,287,889 | 43d2bb15137faaeb26d226d952e07550 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=283-335/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | RegExpRoute::constructor | function | /**
* If the regular expression contains
* [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},
* the captured values will be passed to the
* {@link workbox-routing~handlerCallback} `params`
* argumen... |
1,287,890 | 2e9d4e19a3f456cc1513bf2e0678f1c0 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=214-259/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | NavigationRoute::_match | function | /**
* Routes match handler.
*
* @param {Object} options
* @param {URL} options.url
* @param {Request} options.request
* @return {boolean}
*
* @private
*/
_match({
url,
request
}) {
if (request && request.mode !== 'navig... |
1,287,891 | e52e436a1560cfde165993eb40181d3e | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=365-371/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::constructor | function | /**
* Initializes a new Router.
*/
constructor() {
this._routes = new Map();
this._defaultHandlerMap = new Map();
} |
1,287,892 | d61f8333c423a2c727efc28748bbc830 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=372-381/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::routes | function | /**
* @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP
* method name ('GET', etc.) to an array of all the corresponding `Route`
* instances that are registered.
*/
get routes() {
return this._routes;
} |
1,287,893 | 15bd98d00d62ff17afc1f56d7daa989b | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=382-403/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::addFetchListener | function | /**
* Adds a fetch event listener to respond to events when a route matches
* the event's request.
*/
addFetchListener() {
// See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705
self.addEventListener('fetch', event => {
const {
... |
1,287,894 | 2aab0043b0c154d2a902a721894d8053 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=404-464/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::addCacheListener | function | /**
* Adds a message event listener for URLs to cache from the window.
* This is useful to cache resources loaded on the page prior to when the
* service worker started controlling it.
*
* The format of the message data sent from the window should be as follows.
* Where the `ur... |
1,287,895 | 0e0bf51dbf0ead8af10a07c6aece328b | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=465-628/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::handleRequest | function | /**
* Apply the routing rules to a FetchEvent object to get a Response from an
* appropriate Route's handler.
*
* @param {Object} options
* @param {Request} options.request The request to handle.
* @param {ExtendableEvent} options.event The event that triggered the
* ... |
1,287,896 | c06a7c388df5910977ba3e53128eafef | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=703-721/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::setDefaultHandler | function | /**
* Define a default `handler` that's called when no routes explicitly
* match the incoming request.
*
* Each HTTP method ('GET', 'POST', etc.) gets its own default handler.
*
* Without a default handler, unmatched requests will go against the
* network as if there wer... |
1,287,897 | de8d11c31e3ab09e442c855a2acd9dd9 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=734-782/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::registerRoute | function | /**
* Registers a route with the router.
*
* @param {workbox-routing.Route} route The route to register.
*/
registerRoute(route) {
{
assert_js.assert.isType(route, 'object', {
moduleName: 'workbox-routing',
className: 'Router',
fu... |
1,287,898 | 7d9458ab65e2c265917a7fb4d2c27828 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=835-920/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | registerRoute | 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.
*/
/**
* Easily register a RegExp, string, or function with a caching
* strategy to a singleton Router inst... |
1,287,899 | 718cb26dacf337d919d7a6562aa1ad02 | swh:1:cnt:9e027b007ff5244d6878a6c996b8f4ec3aa179f8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=783-804/ | ad32f86cc016e69237bcd5c23bb7b41127615389 | wlbdashboard | wmcs | node_modules/workbox-routing/build/workbox-routing.dev.js | Router::unregisterRoute | function | /**
* Unregisters a route with the router.
*
* @param {workbox-routing.Route} route The route to unregister.
*/
unregisterRoute(route) {
if (!this._routes.has(route.method)) {
throw new WorkboxError_js.WorkboxError('unregister-route-but-not-found-with-method', {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.