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,285,100 | 79cb4ca8465116fa27295c7b4dcd3360 | swh:1:cnt:7f356b34d1dc3cd22d80d73ebada155e62b4d89b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-7/ | 0ee7b0bb8e6faa10110cfd856758186aef637b25 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastCacheUpdate.d.ts | BroadcastCacheUpdateOptions | type | interface BroadcastCacheUpdateOptions {
headersToCheck?: string[];
generatePayload?: (options: CacheDidUpdateCallbackParam) => Record<string, any>;
notifyAllClients?: boolean;
} |
1,285,101 | 1a88627385431daedbd0396cc001b247 | swh:1:cnt:7f356b34d1dc3cd22d80d73ebada155e62b4d89b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-69/ | 0ee7b0bb8e6faa10110cfd856758186aef637b25 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastCacheUpdate.d.ts | BroadcastCacheUpdate | type | class BroadcastCacheUpdate {
private readonly _headersToCheck;
private readonly _generatePayload;
private readonly _notifyAllClients;
/**
* Construct a BroadcastCacheUpdate instance with a specific `channelName` to
* broadcast messages on
*
* @param {Object} [options]
* @param {... |
1,285,102 | 4bc6538aca9c35a1e2a1504282d7fa8d | swh:1:cnt:fe96ede69207f6becb58df307c75af66af57ff0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-31/ | 1240add1307a29f9c5f1aaa0b4d2b8cf1ff4f58f | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastCacheUpdate.js | defaultPayloadGenerator | function | /**
* Generates the default payload used in update messages. By default the
* payload includes the `cacheName` and `updatedURL` fields.
*
* @return Object
* @private
*/
function defaultPayloadGenerator(data) {
return {
cacheName: data.cacheName,
updatedURL: data.request.url,
};
} |
1,285,103 | 70fe9661100c457b3260e6e1650f6692 | swh:1:cnt:fe96ede69207f6becb58df307c75af66af57ff0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-61/ | 1240add1307a29f9c5f1aaa0b4d2b8cf1ff4f58f | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastCacheUpdate.js | BroadcastCacheUpdate::constructor | function | /**
* Construct a BroadcastCacheUpdate instance with a specific `channelName` to
* broadcast messages on
*
* @param {Object} [options]
* @param {Array<string>} [options.headersToCheck=['content-length', 'etag', 'last-modified']]
* A list of headers that will be used to determine whethe... |
1,285,104 | 7d66a01328b3bbcad240514c82e1acb6 | swh:1:cnt:fe96ede69207f6becb58df307c75af66af57ff0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-162/ | 1240add1307a29f9c5f1aaa0b4d2b8cf1ff4f58f | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastCacheUpdate.js | BroadcastCacheUpdate::notifyIfUpdated | function | /**
* Compares two [Responses](https://developer.mozilla.org/en-US/docs/Web/API/Response)
* and sends a message (via `postMessage()`) to all window clients if the
* responses differ. Neither of the Responses can be
* [opaque](https://developer.chrome.com/docs/workbox/caching-resources-during-runtime... |
1,285,105 | 3127dc79833b93718a2114b4ede67982 | swh:1:cnt:fe96ede69207f6becb58df307c75af66af57ff0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-163/ | 1240add1307a29f9c5f1aaa0b4d2b8cf1ff4f58f | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastCacheUpdate.js | BroadcastCacheUpdate | type | /**
* Uses the `postMessage()` API to inform any open windows/tabs when a cached
* response has been updated.
*
* For efficiency's sake, the underlying response bodies are not compared;
* only specific response headers are checked.
*
* @memberof workbox-broadcast-update
*/
class BroadcastCacheUpdate {
/**
... |
1,285,106 | d956a2bd1cb0fb1ec86addea28d5eebb | swh:1:cnt:5a00f52d6a7431e16da3d5a4ed62e47eebb96320;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-40/ | 4a46530a1e96cd3a2a39181ae63cee88df37a076 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastUpdatePlugin.d.ts | BroadcastUpdatePlugin | type | class BroadcastUpdatePlugin implements WorkboxPlugin {
private readonly _broadcastUpdate;
/**
* Construct a {@link workbox-broadcast-update.BroadcastUpdate} instance with
* the passed options and calls its `notifyIfUpdated` method whenever the
* plugin's `cacheDidUpdate` callback is invoked.
... |
1,285,107 | 3fef0cd533c477810c13c5ccd5155379 | swh:1:cnt:95337fcea72a6971ae4969ae43749dde6bfd71aa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-50/ | c54c4bf6258834785f61a297b3d1780e726cfb10 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastUpdatePlugin.js | BroadcastUpdatePlugin | type | /**
* This plugin will automatically broadcast a message whenever a cached response
* is updated.
*
* @memberof workbox-broadcast-update
*/
class BroadcastUpdatePlugin {
/**
* Construct a {@link workbox-broadcast-update.BroadcastUpdate} instance with
* the passed options and calls its `notifyIfUpdate... |
1,285,108 | 5d1cfe55071779bf4a50ac457539c351 | swh:1:cnt:95337fcea72a6971ae4969ae43749dde6bfd71aa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-49/ | c54c4bf6258834785f61a297b3d1780e726cfb10 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/BroadcastUpdatePlugin.js | BroadcastUpdatePlugin::constructor | function | /**
* Construct a {@link workbox-broadcast-update.BroadcastUpdate} instance with
* the passed options and calls its `notifyIfUpdated` method whenever the
* plugin's `cacheDidUpdate` callback is invoked.
*
* @param {Object} [options]
* @param {Array<string>} [options.headersToCheck=['conten... |
1,285,109 | 8b815d709afb0e480ac8195168058a0f | swh:1:cnt:04d06bf1a4dc7d37e4a3dec3cc2da459cf40d501;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-93/ | 6b80262a95f7832c137a68a2ccf1d9f5d9285961 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.dev.js | defaultPayloadGenerator | function | /**
* Generates the default payload used in update messages. By default the
* payload includes the `cacheName` and `updatedURL` fields.
*
* @return Object
* @private
*/
function defaultPayloadGenerator(data) {
return {
cacheName: data.cacheName,
updatedURL: data.... |
1,285,110 | e14a96b101ac93f8ac43e92cf61e8361 | swh:1:cnt:04d06bf1a4dc7d37e4a3dec3cc2da459cf40d501;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-129/ | 6b80262a95f7832c137a68a2ccf1d9f5d9285961 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.dev.js | BroadcastCacheUpdate::constructor | function | /**
* Construct a BroadcastCacheUpdate instance with a specific `channelName` to
* broadcast messages on
*
* @param {Object} [options]
* @param {Array<string>} [options.headersToCheck=['content-length', 'etag', 'last-modified']]
* A list of headers that will be used to dete... |
1,285,111 | 65df269dc9f6400b63258e4df126ab56 | swh:1:cnt:04d06bf1a4dc7d37e4a3dec3cc2da459cf40d501;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=259-291/ | 6b80262a95f7832c137a68a2ccf1d9f5d9285961 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.dev.js | BroadcastUpdatePlugin::constructor | function | /**
* Construct a {@link workbox-broadcast-update.BroadcastUpdate} instance with
* the passed options and calls its `notifyIfUpdated` method whenever the
* plugin's `cacheDidUpdate` callback is invoked.
*
* @param {Object} [options]
* @param {Array<string>} [options.headersToCh... |
1,285,112 | 50aafd994e5416685a0c161e24e06f54 | swh:1:cnt:04d06bf1a4dc7d37e4a3dec3cc2da459cf40d501;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-240/ | 6b80262a95f7832c137a68a2ccf1d9f5d9285961 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.dev.js | BroadcastCacheUpdate::notifyIfUpdated | function | /**
* Compares two [Responses](https://developer.mozilla.org/en-US/docs/Web/API/Response)
* and sends a message (via `postMessage()`) to all window clients if the
* responses differ. Neither of the Responses can be
* [opaque](https://developer.chrome.com/docs/workbox/caching-resources-during... |
1,285,113 | 394cab3405b95a93d72facd140d145db | swh:1:cnt:04d06bf1a4dc7d37e4a3dec3cc2da459cf40d501;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-242/ | 6b80262a95f7832c137a68a2ccf1d9f5d9285961 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.dev.js | BroadcastCacheUpdate | type | /**
* Uses the `postMessage()` API to inform any open windows/tabs when a cached
* response has been updated.
*
* For efficiency's sake, the underlying response bodies are not compared;
* only specific response headers are checked.
*
* @memberof workbox-broadcast-update
*/
... |
1,285,114 | 3d27b76123b9475270704959727096c8 | swh:1:cnt:04d06bf1a4dc7d37e4a3dec3cc2da459cf40d501;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=244-293/ | 6b80262a95f7832c137a68a2ccf1d9f5d9285961 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.dev.js | BroadcastUpdatePlugin | 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 will automatically broadcast a message whenever a cached response
* is updated.
*... |
1,285,115 | 794577e1aafc2939ee1de1215623f29b | swh:1:cnt:615aeb0d17247000a70e1aaece707435556085b3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | cdb6bb0ab0241020cfa90d175db019bbf7b0b301 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.prod.js | c | function | function c(t){return{cacheName:t.cacheName,updatedURL:t.request.url}} |
1,285,116 | 575c372a75c07d038ed50ba6eb945ed9 | swh:1:cnt:615aeb0d17247000a70e1aaece707435556085b3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | cdb6bb0ab0241020cfa90d175db019bbf7b0b301 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.prod.js | r::notifyIfUpdated | function | async notifyIfUpdated(t){if(t.oldResponse&&!n(t.oldResponse,t.newResponse,this.C)){const e={type:"CACHE_UPDATED",meta:"workbox-broadcast-update",payload:this.A(t)};if("navigate"===t.request.mode){let e;t.event instanceof FetchEvent&&(e=t.event.resultingClientId);await a.resultingClientExists(e)&&!o||await s.timeout(350... |
1,285,117 | e7bc737ca2d8937b2cb075cb9b9c0389 | swh:1:cnt:615aeb0d17247000a70e1aaece707435556085b3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | cdb6bb0ab0241020cfa90d175db019bbf7b0b301 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.prod.js | r::constructor | function | constructor({generatePayload:t,headersToCheck:s,notifyAllClients:a}={}){this.C=s||i,this.A=t||c,this.U=null==a||a} |
1,285,118 | bbb49b63bd4a311ae9d9d5c02acb2094 | swh:1:cnt:615aeb0d17247000a70e1aaece707435556085b3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | cdb6bb0ab0241020cfa90d175db019bbf7b0b301 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.prod.js | constructor | function | constructor(t){this.cacheDidUpdate=async t=>{e.dontWaitFor(this.F.notifyIfUpdated(t))},this.F=new r(t)} |
1,285,119 | 404a0449d205aa8e6782ed56341be5a3 | swh:1:cnt:615aeb0d17247000a70e1aaece707435556085b3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | cdb6bb0ab0241020cfa90d175db019bbf7b0b301 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/build/workbox-broadcast-update.prod.js | r | type | class r{constructor({generatePayload:t,headersToCheck:s,notifyAllClients:a}={}){this.C=s||i,this.A=t||c,this.U=null==a||a}async notifyIfUpdated(t){if(t.oldResponse&&!n(t.oldResponse,t.newResponse,this.C)){const e={type:"CACHE_UPDATED",meta:"workbox-broadcast-update",payload:this.A(t)};if("navigate"===t.request.mode){le... |
1,285,120 | 603bbb6bcd515da8ec94abb19180a0c1 | swh:1:cnt:8f708d4b73f68191906546e786cdbf707233fe86;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-38/ | 3902f8bd4dbeea849d163c314523593a9a68b659 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastCacheUpdate.ts | BroadcastCacheUpdateOptions | type | interface BroadcastCacheUpdateOptions {
headersToCheck?: string[];
generatePayload?: (
options: CacheDidUpdateCallbackParam,
) => Record<string, any>;
notifyAllClients?: boolean;
} |
1,285,121 | 430a04c38c36155e921b2d054b7e7ff1 | swh:1:cnt:8f708d4b73f68191906546e786cdbf707233fe86;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-213/ | 3902f8bd4dbeea849d163c314523593a9a68b659 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastCacheUpdate.ts | BroadcastCacheUpdate | type | /**
* Uses the `postMessage()` API to inform any open windows/tabs when a cached
* response has been updated.
*
* For efficiency's sake, the underlying response bodies are not compared;
* only specific response headers are checked.
*
* @memberof workbox-broadcast-update
*/
class BroadcastCacheUpdate {
private... |
1,285,122 | 80dc269979c7f884b083de10cdcccd33 | swh:1:cnt:8f708d4b73f68191906546e786cdbf707233fe86;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-54/ | 3902f8bd4dbeea849d163c314523593a9a68b659 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastCacheUpdate.ts | defaultPayloadGenerator | function | /**
* Generates the default payload used in update messages. By default the
* payload includes the `cacheName` and `updatedURL` fields.
*
* @return Object
* @private
*/
function defaultPayloadGenerator(
data: CacheDidUpdateCallbackParam,
): Record<string, any> {
return {
cacheName: data.cacheName,
upd... |
1,285,123 | f81c07366f74d40e9ec32c35c9c2dd17 | swh:1:cnt:8f708d4b73f68191906546e786cdbf707233fe86;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-212/ | 3902f8bd4dbeea849d163c314523593a9a68b659 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastCacheUpdate.ts | BroadcastCacheUpdate::notifyIfUpdated | function | /**
* Compares two [Responses](https://developer.mozilla.org/en-US/docs/Web/API/Response)
* and sends a message (via `postMessage()`) to all window clients if the
* responses differ. Neither of the Responses can be
* [opaque](https://developer.chrome.com/docs/workbox/caching-resources-during-runtime/#opaque... |
1,285,124 | 0036c72935f8160528a2eaae242dc0d8 | swh:1:cnt:8f708d4b73f68191906546e786cdbf707233fe86;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=72-95/ | 3902f8bd4dbeea849d163c314523593a9a68b659 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastCacheUpdate.ts | BroadcastCacheUpdate::constructor | function | /**
* Construct a BroadcastCacheUpdate instance with a specific `channelName` to
* broadcast messages on
*
* @param {Object} [options]
* @param {Array<string>} [options.headersToCheck=['content-length', 'etag', 'last-modified']]
* A list of headers that will be used to determine whether the respon... |
1,285,125 | 1429e15423c8d9b4938e33782bcc9aec | swh:1:cnt:886bf2ed16949c993625719c9eebcff6e71a50f7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-61/ | ba9bee13614bff0d6fc0cb36eb236b7709a55092 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastUpdatePlugin.ts | BroadcastUpdatePlugin | type | /**
* This plugin will automatically broadcast a message whenever a cached response
* is updated.
*
* @memberof workbox-broadcast-update
*/
class BroadcastUpdatePlugin implements WorkboxPlugin {
private readonly _broadcastUpdate: BroadcastCacheUpdate;
/**
* Construct a {@link workbox-broadcast-update.Broad... |
1,285,126 | ffedd3864d8fb036f65098fe721bdf0d | swh:1:cnt:886bf2ed16949c993625719c9eebcff6e71a50f7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-43/ | ba9bee13614bff0d6fc0cb36eb236b7709a55092 | wlbdashboard | wmcs | node_modules/workbox-broadcast-update/src/BroadcastUpdatePlugin.ts | BroadcastUpdatePlugin::constructor | function | /**
* Construct a {@link workbox-broadcast-update.BroadcastUpdate} instance with
* the passed options and calls its `notifyIfUpdated` method whenever the
* plugin's `cacheDidUpdate` callback is invoked.
*
* @param {Object} [options]
* @param {Array<string>} [options.headersToCheck=['content-length', '... |
1,285,127 | 293f7b59237b322c95e0ae4c904bd451 | swh:1:cnt:87c5248f06950b512808433cc2f913c13a151ec8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-104/ | 2bb2d67b4d45ceca1b5eeb9e9a20cb3bc87e5d1c | wlbdashboard | wmcs | node_modules/workbox-build/build/generate-sw.js | generateSW | function | /**
* This method creates a list of URLs to precache, referred to as a "precache
* manifest", based on the options you provide.
*
* It also takes in additional options that configures the service worker's
* behavior, like any `runtimeCaching` rules it should use.
*
* Based on the precache manifest and the additi... |
1,285,128 | 2c447858ed0be70182e820accdc29ccc | swh:1:cnt:ebf65ceb9715bb40466122081d51da45412c9b1e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-34/ | 41817739db7c6fafd32cc8c381795c08b075ad7b | wlbdashboard | wmcs | node_modules/workbox-build/build/get-manifest.js | getManifest | function | /**
* This method returns a list of URLs to precache, referred to as a "precache
* manifest", along with details about the number of entries and their size,
* based on the options you provide.
*
* ```
* // The following lists some common options; see the rest of the documentation
* // for the full set of options... |
1,285,129 | 732a7adc7a16caeecbc72d4a4f25581a | swh:1:cnt:60e3d2bb51c11a19fbbedbad65e101082ec41c36;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-132/ | f8b2ca70b779b3f0020d53b560e3afaea9f7c559 | wlbdashboard | wmcs | node_modules/workbox-build/build/inject-manifest.js | injectManifest | function | /**
* This method creates a list of URLs to precache, referred to as a "precache
* manifest", based on the options you provide.
*
* The manifest is injected into the `swSrc` file, and the placeholder string
* `injectionPoint` determines where in the file the manifest should go.
*
* The final service worker file,... |
1,285,130 | 57d6ee807581fb1c187d28154392b19c | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-15/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | StrategyName | type | type StrategyName = 'CacheFirst' | 'CacheOnly' | 'NetworkFirst' | 'NetworkOnly' | 'StaleWhileRevalidate'; |
1,285,131 | d642ccfef415ae9e0bbd43e065a67c79 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=461-472/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | WebpackGenerateSWPartial | type | interface WebpackGenerateSWPartial {
/**
* One or more names of webpack chunks. The content of those chunks will be
* included in the generated service worker, via a call to `importScripts()`.
*/
importScriptsViaChunks?: Array<string>;
/**
* The asset name of the service worker file crea... |
1,285,132 | 4002604e0860b64edaca72ed76e00913 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=510-514/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | FileDetails | type | interface FileDetails {
file: string;
hash: string;
size: number;
} |
1,285,133 | 76dc7bb026f25b7c79ece870649c8bb9 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=124-126/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | ManifestTransform | type | type ManifestTransform = (manifestEntries: Array<ManifestEntry & {
size: number;
}>, compilation?: unknown) => Promise<ManifestTransformResult> | ManifestTransformResult; |
1,285,134 | fec06f77c2cfb42bd4aedcd59ea7ee69 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=349-355/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | RequiredGlobDirectoryPartial | type | interface RequiredGlobDirectoryPartial {
/**
* The local directory you wish to match `globPatterns` against. The path is
* relative to the current directory.
*/
globDirectory: string;
} |
1,285,135 | 88a08848abd030840aa04595ad594658 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=419-452/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | WebpackPartial | type | interface WebpackPartial {
/**
* One or more chunk names whose corresponding output files should be included
* in the precache manifest.
*/
chunks?: Array<string>;
/**
* One or more specifiers used to exclude assets from the precache manifest.
* This is interpreted following
* ... |
1,285,136 | a5f73463ca3c5fcded2831766c664aee | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=504-506/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | BuildResult | type | type BuildResult = Omit<GetManifestResult, 'manifestEntries'> & {
filePaths: Array<string>;
}; |
1,285,137 | eac7b6bcbe39124a4628b056c264a8b7 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=518-518/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | BuildType | type | type BuildType = 'dev' | 'prod'; |
1,285,138 | 518434e4cecb0fe12d10c45166485fed | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-14/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | ManifestEntry | type | interface ManifestEntry {
integrity?: string;
revision: string | null;
url: string;
} |
1,285,139 | a5abdc803a475bb99beb684ebbfc7019 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-117/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | RuntimeCaching | type | interface RuntimeCaching {
/**
* This determines how the runtime route will generate a response.
* To use one of the built-in {@link workbox-strategies}, provide its name,
* like `'NetworkFirst'`.
* Alternatively, this can be a {@link workbox-core.RouteHandler} callback
* function with cust... |
1,285,140 | 0601da0c2e799a0ef0a1a36dfdb6b0a4 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=127-177/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | BasePartial | type | interface BasePartial {
/**
* A list of entries to be precached, in addition to any entries that are
* generated as part of the build configuration.
*/
additionalManifestEntries?: Array<string | ManifestEntry>;
/**
* Assets that match this will be assumed to be uniquely versioned via the... |
1,285,141 | ecfd29333f91fedcdb95c2b9a1a3bb3f | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=178-348/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | GeneratePartial | type | interface GeneratePartial {
/**
* The [targets](https://babeljs.io/docs/en/babel-preset-env#targets) to pass
* to `babel-preset-env` when transpiling the service worker bundle.
* @default ["chrome >= 56"]
*/
babelPresetEnvTargets?: Array<string>;
/**
* An optional ID to be prepended... |
1,285,142 | c0e63746fb4c090b98529372672b6ab3 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=356-362/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | OptionalGlobDirectoryPartial | type | interface OptionalGlobDirectoryPartial {
/**
* The local directory you wish to match `globPatterns` against. The path is
* relative to the current directory.
*/
globDirectory?: string;
} |
1,285,143 | 375d7482ddfe393aef45ca03e9239495 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=363-405/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | GlobPartial | type | interface GlobPartial {
/**
* Determines whether or not symlinks are followed when generating the
* precache manifest. For more information, see the definition of `follow` in
* the `glob` [documentation](https://github.com/isaacs/node-glob#options).
* @default true
*/
globFollow?: boole... |
1,285,144 | 50e5a4a59014162c1691f94d6f677edc | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=494-494/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | GetManifestOptions | type | type GetManifestOptions = BasePartial & GlobPartial & RequiredGlobDirectoryPartial; |
1,285,145 | 1733f41d8724499ccf05e306de9e1968 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=495-495/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | InjectManifestOptions | type | type InjectManifestOptions = BasePartial & GlobPartial & InjectPartial & RequiredSWDestPartial & RequiredGlobDirectoryPartial; |
1,285,146 | c788af4f8a2ee4bd15da6f9dcbaf970b | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=473-492/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | WebpackInjectManifestPartial | type | interface WebpackInjectManifestPartial {
/**
* When `true` (the default), the `swSrc` file will be compiled by webpack.
* When `false`, compilation will not occur (and `webpackCompilationPlugins`
* can't be used.) Set to `false` if you want to inject the manifest into,
* e.g., a JSON file.
... |
1,285,147 | b6d5b96c88f7f261debe084441d5f1fd | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=493-493/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | GenerateSWOptions | type | type GenerateSWOptions = BasePartial & GlobPartial & GeneratePartial & RequiredSWDestPartial & OptionalGlobDirectoryPartial; |
1,285,148 | 0316effe74346c9a8a3c4827e8f1da27 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=497-497/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | WebpackInjectManifestOptions | type | type WebpackInjectManifestOptions = BasePartial & WebpackPartial & InjectPartial & WebpackInjectManifestPartial; |
1,285,149 | bd22524e9cfa88192efed7f1f823b3bf | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=118-123/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | ManifestTransformResult | type | interface ManifestTransformResult {
manifest: Array<ManifestEntry & {
size: number;
}>;
warnings?: Array<string>;
} |
1,285,150 | efb8c26e2e49010026acfce585af4631 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=496-496/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | WebpackGenerateSWOptions | type | type WebpackGenerateSWOptions = BasePartial & WebpackPartial & GeneratePartial & WebpackGenerateSWPartial; |
1,285,151 | 746e427422094489d77e56c5248ca34e | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=406-418/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | InjectPartial | type | interface InjectPartial {
/**
* The string to find inside of the `swSrc` file. Once found, it will be
* replaced by the generated precache manifest.
* @default "self.__WB_MANIFEST"
*/
injectionPoint?: string;
/**
* The path and filename of the service worker file that will be read d... |
1,285,152 | 2ea2cfc7e3b5ce1c358919880b8a1b1a | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=453-460/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | RequiredSWDestPartial | type | interface RequiredSWDestPartial {
/**
* The path and filename of the service worker file that will be created by
* the build process, relative to the current working directory. It must end
* in '.js'.
*/
swDest: string;
} |
1,285,153 | 708764ed5b539ec75fa1252a3d623d70 | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=498-503/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | GetManifestResult | type | interface GetManifestResult {
count: number;
manifestEntries: Array<ManifestEntry>;
size: number;
warnings: Array<string>;
} |
1,285,154 | 1ad49233ac6151a886b0698f940fd9dd | swh:1:cnt:b8dc3c71ef7e5239fc1569d6e4149e0ef07ff3af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=522-528/ | 87012908bca2afa618643721dbcce24e1622126a | wlbdashboard | wmcs | node_modules/workbox-build/build/types.d.ts | WorkboxPackageJSON | type | interface WorkboxPackageJSON extends PackageJson {
workbox?: {
browserNamespace?: string;
packageType?: string;
prodOnly?: boolean;
};
} |
1,285,155 | 1d169616cac9de44eaaa51a2603758db | swh:1:cnt:566c70ac0b4edca6460acdd3d6dde8205a78c3a8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-11/ | 6ae5ea645059309706389b318756c081dd573d76 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/additional-manifest-entries-transform.d.ts | AdditionalManifestEntriesTransform | type | type AdditionalManifestEntriesTransform = {
(manifest: Array<ManifestEntry & {
size: number;
}>): {
manifest: Array<ManifestEntry & {
size: number;
}>;
warnings: string[];
};
}; |
1,285,156 | 40983db00404340888799f2efafcb209 | swh:1:cnt:454025ba22c10967ad44d647a880dda862786742;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-46/ | 5974fe025f63896e74a54789ff78c7ba58b6d3e4 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/additional-manifest-entries-transform.js | additionalManifestEntriesTransform | function | function additionalManifestEntriesTransform(additionalManifestEntries) {
return (manifest) => {
const warnings = [];
const stringEntries = new Set();
for (const additionalEntry of additionalManifestEntries) {
// Warn about either a string or an object that lacks a revision proper... |
1,285,157 | 1d9d94d0dfc1bdb01653d9f9d1eab24a | swh:1:cnt:6f336f6eb154dd26b15ee063e418aba0ab715ce1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-5/ | 18ec6b4fdded4c6dc6a865108821b457162343a0 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/bundle.d.ts | NameAndContents | type | interface NameAndContents {
contents: string | Uint8Array;
name: string;
} |
1,285,158 | a78c28b8f9864b28a56820ffd94be5fa | swh:1:cnt:d9fcf22a80224c0e10606fde5738d7de5fa57358;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-122/ | 2e79aa37316b085be395a66e3e6e807ef497bc5b | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/bundle.js | bundle | function | async function bundle({ babelPresetEnvTargets, inlineWorkboxRuntime, mode, sourcemap, swDest, unbundledCode, }) {
// We need to write this to the "real" file system, as Rollup won't read from
// a custom file system.
const { dir, base } = upath_1.default.parse(swDest);
const temporaryFile = tempy_1.defa... |
1,285,159 | 1809712b0ed38b7d0359b5b5395b76e8 | swh:1:cnt:80ddc97f990545328fc46173f92bb09dd9f7aa56;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-39/ | 530f68cf90e3c6d45ff7bd40bae3ba0eb7a5805d | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/cdn-utils.js | getVersionedURL | function | function getVersionedURL() {
return `${getCDNPrefix()}/${cdn.latestVersion}`;
} |
1,285,160 | e17f3891700b25f8b938cdad56d9d12c | swh:1:cnt:80ddc97f990545328fc46173f92bb09dd9f7aa56;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-56/ | 530f68cf90e3c6d45ff7bd40bae3ba0eb7a5805d | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/cdn-utils.js | getModuleURL | function | function getModuleURL(moduleName, buildType) {
(0, assert_1.ok)(moduleName, errors_1.errors['no-module-name']);
if (buildType) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const pkgJson = require(`${moduleName}/package.json`);
if (buildType === 'dev' && pkgJson.... |
1,285,161 | 01f1e5a466feec96134fb412f53da2b2 | swh:1:cnt:80ddc97f990545328fc46173f92bb09dd9f7aa56;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-42/ | 530f68cf90e3c6d45ff7bd40bae3ba0eb7a5805d | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/cdn-utils.js | getCDNPrefix | function | function getCDNPrefix() {
return `${cdn.origin}/${cdn.bucketName}/${cdn.releasesDir}`;
} |
1,285,162 | 85fcf6b003588d55f300bcf9cd167b12 | swh:1:cnt:5d58a9efe75c67a63df51cac66bd896e32ada1ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-68/ | 2316e8651471ba225b3dc0e026dc745374805a03 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/copy-workbox-libraries.js | copyWorkboxLibraries | function | /**
* This copies over a set of runtime libraries used by Workbox into a
* local directory, which should be deployed alongside your service worker file.
*
* As an alternative to deploying these local copies, you could instead use
* Workbox from its official CDN URL.
*
* This method is exposed for the benefit of ... |
1,285,163 | 4971d01dd52a9053c193401546f7dc9f | swh:1:cnt:c7291ac92825b3a2cff98b51b99be92bfa416f5d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-14/ | 0dcaaf9b8a2ef162c29dcc6b43ccfc67eb40c024 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/escape-regexp.js | escapeRegExp | function | // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
function escapeRegExp(str) {
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
} |
1,285,164 | def718810c9cea9277cf7dd437a815ff | swh:1:cnt:17f4e877748b76889a4ea443b884b964e1cb498a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-30/ | 722f6763cdea42dbd7f393945d2e3e1c94db0fb0 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-composite-details.js | getCompositeDetails | function | function getCompositeDetails(compositeURL, dependencyDetails) {
let totalSize = 0;
let compositeHash = '';
for (const fileDetails of dependencyDetails) {
totalSize += fileDetails.size;
compositeHash += fileDetails.hash;
}
const md5 = crypto_1.default.createHash('md5');
md5.update... |
1,285,165 | 4002604e0860b64edaca72ed76e00913 | swh:1:cnt:d5ea2507769f9f4ba295fab2e3d9b16ccc8077e6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | 0576c4a3fee7d8dcd496182abe0669517d49d93d | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-file-details.d.ts | FileDetails | type | interface FileDetails {
file: string;
hash: string;
size: number;
} |
1,285,166 | 939f2d7d96074ed8bafbec1326a6cfe3 | swh:1:cnt:0bee39d5daf5d7efdad46453609b7b90e44809e2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-54/ | 389c9a0112be79e66cba6317c244e2cbcc1ec681 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-file-details.js | getFileDetails | function | function getFileDetails({ globDirectory, globFollow, globIgnores, globPattern, globStrict, }) {
let globbedFiles;
let warning = '';
try {
globbedFiles = glob_1.default.sync(globPattern, {
cwd: globDirectory,
follow: globFollow,
ignore: globIgnores,
str... |
1,285,167 | b926afe258329af83b166445ab2537e8 | swh:1:cnt:4371484bfd72dee8604656d66c4bb4b5cebe65e2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-26/ | 71533f157fb310f972934b33c85a0f2cd440a5e2 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-file-hash.js | getFileHash | function | function getFileHash(file) {
try {
const buffer = fs_extra_1.default.readFileSync(file);
return (0, get_string_hash_1.getStringHash)(buffer);
}
catch (err) {
throw new Error(errors_1.errors['unable-to-get-file-hash'] +
` '${err instanceof Error && err.message ? err.messag... |
1,285,168 | 30077567f43f5049034422b233955e2f | swh:1:cnt:b5e9f06b8659965baeeed7746ea6be3746bb40f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-97/ | 95ca72e34ad1ba4dc557fe5032c22494dbc95dca | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-file-manifest-entries.js | getFileManifestEntries | function | async function getFileManifestEntries({ additionalManifestEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns = [], globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs, }) {
const warnings = [];
const allFileDetails = new Map();
... |
1,285,169 | 9fefcf9e9fdfa5af36dc2afcf42d746a | swh:1:cnt:cb9dd1e19d55e34f3fc4cd8bfae61928e93915d7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-28/ | 93c152dc9ed68478c023aeb21e2407ff6c90dd7c | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-file-size.js | getFileSize | function | function getFileSize(file) {
try {
const stat = fs_extra_1.default.statSync(file);
if (!stat.isFile()) {
return null;
}
return stat.size;
}
catch (err) {
throw new Error(errors_1.errors['unable-to-get-file-size'] +
` '${err instanceof Error && ... |
1,285,170 | 57501d3f4cad149c70de5fb6a5f7da0a | swh:1:cnt:f62fea9b7c68f6f1b68d28529fd3b4142c7c986c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-31/ | e76b1e013b97bf3bb6bced0a905f9c5ce67dd308 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-source-map-url.js | getSourceMapURL | function | function getSourceMapURL(srcContents) {
const match = srcContents.match(regex);
return match ? match[1] || match[2] || '' : null;
} |
1,285,171 | fef539d7744b9d1e4ff43a55bb6a5599 | swh:1:cnt:8d1a86ff74b9d8bc7f785e40c93d18d7b07c4a13;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-18/ | fd2d58f13ef670c2e47b980cd0e90028fc149428 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-string-details.js | getStringDetails | function | function getStringDetails(url, str) {
return {
file: url,
hash: (0, get_string_hash_1.getStringHash)(str),
size: str.length,
};
} |
1,285,172 | 4388e48cdc8240eda749eeef75e91fe9 | swh:1:cnt:645e285b75864de6261826a138fda4cd3c5fe3ca;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-19/ | 8dd2f3c30423ee3dadab9e925a81c2c71f62dd73 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/get-string-hash.js | getStringHash | function | function getStringHash(input) {
const md5 = crypto_1.default.createHash('md5');
md5.update(input);
return md5.digest('hex');
} |
1,285,173 | 644a0297db25af9ad8fbcd2336ec45ac | swh:1:cnt:f0ee5c91c957cf527b819698fbac000fe07d66c7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-29/ | 58a7aa7801ea8d5e9dc42099d1b426a72f32bd1b | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/maximum-size-transform.js | maximumSizeTransform | function | function maximumSizeTransform(maximumFileSizeToCacheInBytes) {
return (originalManifest) => {
const warnings = [];
const manifest = originalManifest.filter((entry) => {
if (entry.size <= maximumFileSizeToCacheInBytes) {
return true;
}
warnings.push... |
1,285,174 | ac461609f81486fd7150785f7711764c | swh:1:cnt:714d8a963595bfed30ebea9404a42758091f15e1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-50/ | 65b4fffd0077b39be00410470753fc9c81f9d53f | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/modify-url-prefix-transform.js | modifyURLPrefixTransform | function | function modifyURLPrefixTransform(modifyURLPrefix) {
if (!modifyURLPrefix ||
typeof modifyURLPrefix !== 'object' ||
Array.isArray(modifyURLPrefix)) {
throw new Error(errors_1.errors['modify-url-prefix-bad-prefixes']);
}
// If there are no entries in modifyURLPrefix, just return an id... |
1,285,175 | d5d89aa84286231208a037bb0ecf6e00 | swh:1:cnt:52fd0c1b29c51a0bca22ba5def3bbc88dcd87f69;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-33/ | 5151e6df24140762be99178c21923b2ad9c5114d | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/module-registry.d.ts | ModuleRegistry | type | class ModuleRegistry {
private readonly _modulesUsed;
/**
* @private
*/
constructor();
/**
* @return {Array<string>} A list of all of the import statements that are
* needed for the modules being used.
* @private
*/
getImportStatements(): Array<string>;
/**
* @... |
1,285,176 | 033f90d0ad3ddd6eb5c3559be187f689 | swh:1:cnt:9a34dd9d97965ad89e95da4af6ae74042b7fccaf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-69/ | 4d3ed6f8d4ef388099e94e07d14c5cb3b0a2a21e | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/module-registry.js | ModuleRegistry | type | /**
* Class for keeping track of which Workbox modules are used by the generated
* service worker script.
*
* @private
*/
class ModuleRegistry {
/**
* @private
*/
constructor() {
this._modulesUsed = new Map();
}
/**
* @return {Array<string>} A list of all of the import statem... |
1,285,177 | a4737b0e266e9f47291478b90c14f3c7 | swh:1:cnt:9a34dd9d97965ad89e95da4af6ae74042b7fccaf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-28/ | 4d3ed6f8d4ef388099e94e07d14c5cb3b0a2a21e | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/module-registry.js | ModuleRegistry::constructor | function | /**
* @private
*/
constructor() {
this._modulesUsed = new Map();
} |
1,285,178 | 2c4bef8e3114e6c783db9e1c922420d4 | swh:1:cnt:9a34dd9d97965ad89e95da4af6ae74042b7fccaf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-57/ | 4d3ed6f8d4ef388099e94e07d14c5cb3b0a2a21e | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/module-registry.js | ModuleRegistry::getLocalName | function | /**
* @param {string} pkg The workbox package that the module belongs to.
* @param {string} moduleName The name of the module to import.
* @return {string} The local variable name that corresponds to that module.
* @private
*/
getLocalName(pkg, moduleName) {
return `${pkg.replace(/-... |
1,285,179 | 2016c93bd8911252a25bd9cf4a58f6bf | swh:1:cnt:9a34dd9d97965ad89e95da4af6ae74042b7fccaf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-68/ | 4d3ed6f8d4ef388099e94e07d14c5cb3b0a2a21e | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/module-registry.js | ModuleRegistry::use | function | /**
* @param {string} pkg The workbox package that the module belongs to.
* @param {string} moduleName The name of the module to import.
* @return {string} The local variable name that corresponds to that module.
* @private
*/
use(pkg, moduleName) {
const localName = this.getLocalNa... |
1,285,180 | c5480d0c9707b56d2ad88fa06ec289a8 | swh:1:cnt:9a34dd9d97965ad89e95da4af6ae74042b7fccaf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-48/ | 4d3ed6f8d4ef388099e94e07d14c5cb3b0a2a21e | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/module-registry.js | ModuleRegistry::getImportStatements | function | /**
* @return {Array<string>} A list of all of the import statements that are
* needed for the modules being used.
* @private
*/
getImportStatements() {
const workboxModuleImports = [];
for (const [localName, { moduleName, pkg }] of this._modulesUsed) {
// By default ... |
1,285,181 | 3d56136e89995daa057c4495fb5735b5 | swh:1:cnt:46a3eead9a4e800f92511a979c5a9855c86d2bb1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-28/ | b5c1e9c73db149d354ef2a5cc94ff7e213a0a378 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/no-revision-for-urls-matching-transform.js | noRevisionForURLsMatchingTransform | function | function noRevisionForURLsMatchingTransform(regexp) {
if (!(regexp instanceof RegExp)) {
throw new Error(errors_1.errors['invalid-dont-cache-bust']);
}
return (originalManifest) => {
const manifest = originalManifest.map((entry) => {
if (typeof entry.url !== 'string') {
... |
1,285,182 | 9a63923cbf29a12a3fae82657ebf990a | swh:1:cnt:c142f5945f7d06c16a1c009568e15e1c10233888;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-78/ | 4962af6c20eb46aa19ca894827db8740fa80dfac | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/populate-sw-template.js | populateSWTemplate | function | function populateSWTemplate({ cacheId, cleanupOutdatedCaches, clientsClaim, directoryIndex, disableDevLogs, ignoreURLParametersMatching, importScripts, manifestEntries = [], navigateFallback, navigateFallbackDenylist, navigateFallbackAllowlist, navigationPreload, offlineGoogleAnalytics, runtimeCaching = [], skipWaiting... |
1,285,183 | 98a40f32db56a9ccbb15dbb592afdd83 | swh:1:cnt:dd55c1c588a45828512f58df80ac8ca2b8a74eec;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-23/ | 636dca1c9f9b6b3756ce436b09707dc3e53c9e10 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/rebase-path.js | rebasePath | function | function rebasePath({ baseDirectory, file, }) {
// The initial path is relative to the current directory, so make it absolute.
const absolutePath = upath_1.default.resolve(file);
// Convert the absolute path so that it's relative to the baseDirectory.
const relativePath = upath_1.default.relative(baseDi... |
1,285,184 | 1eb2c2eba1be923f162236a5cf2f6059 | swh:1:cnt:80f15bc6b7264515baa5d55be23d5036b157a3f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-97/ | b4af87bbeb27d46e247a03500db5c2169e4b5fab | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/replace-and-update-source-map.js | replaceAndUpdateSourceMap | function | /**
* Adapted from https://github.com/nsams/sourcemap-aware-replace, with modern
* JavaScript updates, along with additional properties copied from originalMap.
*
* @param {Object} options
* @param {string} options.jsFilename The name for the file whose contents
* correspond to originalSource.
* @param {Object} ... |
1,285,185 | 2117eb631f477bf36e90b3e13de8e0ff | swh:1:cnt:76d78924a5604fbcdf5de19286cb4443b3ac8e29;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-106/ | 6972aed0906b7749c6a3359863ab379f6f0c60a9 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/runtime-caching-converter.js | getOptionsString | function | /**
* Given a set of options that configures runtime caching behavior, convert it
* to the equivalent Workbox method calls.
*
* @param {ModuleRegistry} moduleRegistry
* @param {Object} options See
* https://developers.google.com/web/tools/workbox/modules/workbox-build#generateSW-runtimeCaching
* @return {... |
1,285,186 | a4280298be9f4272d72267d600c24ed7 | swh:1:cnt:76d78924a5604fbcdf5de19286cb4443b3ac8e29;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=107-141/ | 6972aed0906b7749c6a3359863ab379f6f0c60a9 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/runtime-caching-converter.js | runtimeCachingConverter | function | function runtimeCachingConverter(moduleRegistry, runtimeCaching) {
return runtimeCaching
.map((entry) => {
const method = entry.method || 'GET';
if (!entry.urlPattern) {
throw new Error(errors_1.errors['urlPattern-is-required']);
}
if (!entry.handler) {
... |
1,285,187 | e6a988246ae0d1f62afd0cb57954a0bb | swh:1:cnt:4c7e393e89448b058814bb56d7802ff1c17e6f86;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-27/ | 7c4d96399464636a7b7f3c0c2a1c4749a6f06dc6 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/stringify-without-comments.js | stringifyWithoutComments | function | function stringifyWithoutComments(obj) {
return (0, stringify_object_1.default)(obj, {
// See https://github.com/yeoman/stringify-object#transformobject-property-originalresult
transform: (_obj, _prop, str) => {
if (typeof _prop !== 'symbol' && typeof _obj[_prop] === 'function') {
... |
1,285,188 | 0815c64a0ba73f9368d8e5d26b58e58e | swh:1:cnt:48343a233015fda375337d348a13c464e8a8581d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-58/ | 8c1e108374342ffaa62b65ecabbcb402f250f01c | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/transform-manifest.d.ts | ManifestTransformResultWithWarnings | type | /**
* A `ManifestTransform` function can be used to modify the modify the `url` or
* `revision` properties of some or all of the
* {@link workbox-build.ManifestEntry} in the manifest.
*
* Deleting the `revision` property of an entry will cause
* the corresponding `url` to be precached without cache-busting parame... |
1,285,189 | ac1fa54d7a2afbb7c2cdfdf022b36e77 | swh:1:cnt:82baf46d532e4738f20155f5482b695ba0e7fe23;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-68/ | 72ef2ae93a34e907b2626bcc4c80c5fe848bcd46 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/transform-manifest.js | transformManifest | function | async function transformManifest({ additionalManifestEntries, dontCacheBustURLsMatching, fileDetails, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, transformParam, }) {
const allWarnings = [];
// Take the array of fileDetail objects and convert it into an array of
// {url, revision, si... |
1,285,190 | 0fd09bae738947936c284bd1c92e8483 | swh:1:cnt:3220c5474eeac6e8a56ca9b2ac2bd9be48529e43;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-32/ | f5efad0625b1910d0b7fe0ee59526f173af5af0f | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/translate-url-to-sourcemap-paths.js | translateURLToSourcemapPaths | function | function translateURLToSourcemapPaths(url, swSrc, swDest) {
let destPath = undefined;
let srcPath = undefined;
let warning = undefined;
if (url && !url.startsWith('data:')) {
const possibleSrcPath = upath_1.default.resolve(upath_1.default.dirname(swSrc), url);
if (fs_extra_1.default.exis... |
1,285,191 | bdc66adb845f6bcdaa5c3ba8109c84c0 | swh:1:cnt:bf4b549f06b500cde1e29b132607508886269bcf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/ | ee80ab26aaa98539c481a2ae407dd2105ee4b98f | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.d.ts | WorkboxConfigError | type | class WorkboxConfigError extends Error {
constructor(message?: string);
} |
1,285,192 | e0813b2682038d93cebc55add0e1dd5c | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-27/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | WorkboxConfigError | type | class WorkboxConfigError extends Error {
constructor(message) {
super(message);
Object.setPrototypeOf(this, new.target.prototype);
}
} |
1,285,193 | f38948fe1f1a95d9099bb4f77da4fef0 | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-26/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | WorkboxConfigError::constructor | function | constructor(message) {
super(message);
Object.setPrototypeOf(this, new.target.prototype);
} |
1,285,194 | 9f6e27b044b562f971f86e4010c3e8c3 | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-53/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | validate | function | // Some methods need to do follow-up validation using the JSON schema,
// so return both the validated options and then schema.
function validate(input, methodName) {
// Don't mutate input: https://github.com/GoogleChrome/workbox/issues/2158
const inputCopy = Object.assign({}, input);
// eslint-disable-next... |
1,285,195 | bb5e4a88b4ac88f0a48f11b568036d44 | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-76/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | ensureValidCacheExpiration | function | function ensureValidCacheExpiration(options) {
var _a, _b;
for (const runtimeCaching of options.runtimeCaching || []) {
if (((_a = runtimeCaching.options) === null || _a === void 0 ? void 0 : _a.expiration) &&
!((_b = runtimeCaching.options) === null || _b === void 0 ? void 0 : _b.cacheName)... |
1,285,196 | d102130ccddc417676e7fc35dd9038ca | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-67/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | ensureValidNavigationPreloadConfig | function | function ensureValidNavigationPreloadConfig(options) {
if (options.navigationPreload &&
(!Array.isArray(options.runtimeCaching) ||
options.runtimeCaching.length === 0)) {
throw new WorkboxConfigError(errors_1.errors['nav-preload-runtime-caching']);
}
} |
1,285,197 | 6e4e94df97e3231c0013dfd2e90d893a | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-60/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | ensureValidManifestTransforms | function | function ensureValidManifestTransforms(options) {
if ('manifestTransforms' in options &&
!(Array.isArray(options.manifestTransforms) &&
options.manifestTransforms.every((item) => typeof item === 'function'))) {
throw new WorkboxConfigError(errors_1.errors['manifest-transforms']);
}
} |
1,285,198 | d9e31e7f988b3a9e17671184f162bb9c | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-83/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | ensureValidRuntimeCachingOrGlobDirectory | function | function ensureValidRuntimeCachingOrGlobDirectory(options) {
if (!options.globDirectory &&
(!Array.isArray(options.runtimeCaching) ||
options.runtimeCaching.length === 0)) {
throw new WorkboxConfigError(errors_1.errors['no-manifest-entries-or-runtime-caching']);
}
} |
1,285,199 | 247d00e5498598383d9fdc99035ddc17 | swh:1:cnt:1266c75aa8323760dd821cfe7835b6ce0e311422;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-105/ | ffc8583f6222bc10e16fc59e0fd21eb748b51490 | wlbdashboard | wmcs | node_modules/workbox-build/build/lib/validate-options.js | ensureValidStringHandler | function | // This is... messy, because we can't rely on the built-in ajv validation for
// runtimeCaching.handler, as it needs to accept {} (i.e. any) due to
// https://github.com/GoogleChrome/workbox/pull/2899
// So we need to perform validation when a string (not a function) is used.
function ensureValidStringHandler(options, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.