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,200 | 838fe361f1bf2674cc6e3806e4244985 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=287-292/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::keys | function | keys() {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
return module.exports.createDefaultIterator(this, "key");
} |
1,287,201 | a79a337f362ab051de634202876b07de | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=308-329/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::forEach | function | forEach(callback) {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
if (arguments.length < 1) {
throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
}
if (typeof callback !== "function") {
... |
1,287,202 | b08d3899f00cc339e6bb2e1d66d84745 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=365-379/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | isImpl | function | isImpl(obj) {
if (obj) {
if (obj instanceof Impl.implementation) {
return true;
}
const wrapper = utils.wrapperForImpl(obj);
for (const isMixedInto of module.exports._mixedIntoPredicates) {
if (isMixedInto(wrapper)) {
return true;
}
}
}
return... |
1,287,203 | 5eb8067d8bb1a1025155ab71ad56e688 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=387-394/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | createDefaultIterator | function | createDefaultIterator(target, kind) {
const iterator = Object.create(IteratorPrototype);
Object.defineProperty(iterator, utils.iterInternalSymbol, {
value: { target, kind, index: 0 },
configurable: true
});
return iterator;
} |
1,287,204 | e6099a6a2b07cc7378109972bf6c3e5e | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=396-400/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | create | function | create(constructorArgs, privateData) {
let obj = Object.create(URLSearchParams.prototype);
obj = this.setup(obj, constructorArgs, privateData);
return obj;
} |
1,287,205 | 1acd91d462956dacacea48dfb5d2efae | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=199-220/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::getAll | function | getAll(name) {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
if (arguments.length < 1) {
throw new TypeError(
"Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present."
... |
1,287,206 | fb7e02c33fe958417dedc7c28d7cef20 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-241/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::has | function | has(name) {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
if (arguments.length < 1) {
throw new TypeError(
"Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present."
);
}
const arg... |
1,287,207 | 99587cefa6bf32ed061a2204a73979f9 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=243-269/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::set | function | set(name, value) {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
if (arguments.length < 2) {
throw new TypeError(
"Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only " + arguments.length + " present."
);
}
c... |
1,287,208 | 22317f43862a9cb779b5f424c777f630 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=352-364/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | is | function | is(obj) {
if (obj) {
if (utils.hasOwn(obj, impl) && obj[impl] instanceof Impl.implementation) {
return true;
}
for (const isMixedInto of module.exports._mixedIntoPredicates) {
if (isMixedInto(obj)) {
return true;
}
}
}
return false;
} |
1,287,209 | 7997fe203466d7d288856e45f346b50e | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=401-405/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | createImpl | function | createImpl(constructorArgs, privateData) {
let obj = Object.create(URLSearchParams.prototype);
obj = this.setup(obj, constructorArgs, privateData);
return utils.implForWrapper(obj);
} |
1,287,210 | 72b3eabf19a771e2c0d73cbf760889bc | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=407-423/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | setup | function | setup(obj, constructorArgs, privateData) {
if (!privateData) privateData = {};
privateData.wrapper = obj;
this._internalSetup(obj);
Object.defineProperty(obj, impl, {
value: new Impl.implementation(constructorArgs, privateData),
configurable: true
});
obj[impl][utils.wrapperSymbol... |
1,287,211 | 1b4d5dcfd0d8f26f367ba961101526a1 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=279-285/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::toString | function | toString() {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
return this[impl].toString();
} |
1,287,212 | f4ef6f51dcfdbe58840da0674e12a454 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=301-306/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::entries | function | entries() {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
return module.exports.createDefaultIterator(this, "key+value");
} |
1,287,213 | 485516249e960752a499fbd03d4e3b33 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=294-299/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | URLSearchParams::values | function | values() {
if (!this || !module.exports.is(this)) {
throw new TypeError("Illegal invocation");
}
return module.exports.createDefaultIterator(this, "value");
} |
1,287,214 | cfaaecf5c1eee07448007b912c854495 | swh:1:cnt:d99a9a4e2b0fea8bec870e0a11ddf69844b09053;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=380-385/ | f0d30a314782d71d919c96bb0630b4d942b642b4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/URLSearchParams.js | convert | function | convert(obj, { context = "The provided value" } = {}) {
if (module.exports.is(obj)) {
return utils.implForWrapper(obj);
}
throw new TypeError(`${context} is not of type 'URLSearchParams'.`);
} |
1,287,215 | 762149f7e594821067b23475c68afe84 | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-6/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | isObject | function | // Returns "Type(value) is Object" in ES terminology.
function isObject(value) {
return typeof value === "object" && value !== null || typeof value === "function";
} |
1,287,216 | a978806ca69f52ee6fb8e1d91636dc19 | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-10/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | hasOwn | function | function hasOwn(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
} |
1,287,217 | 223485ef4190b252316ee3f20055469e | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-52/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | getSameObject | function | function getSameObject(wrapper, prop, creator) {
if (!wrapper[sameObjectCaches]) {
wrapper[sameObjectCaches] = Object.create(null);
}
if (prop in wrapper[sameObjectCaches]) {
return wrapper[sameObjectCaches][prop];
}
wrapper[sameObjectCaches][prop] = creator();
return wrapper[sameObjectCaches][pro... |
1,287,218 | 4220080589726cc7e37c27c20b199d74 | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-56/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | wrapperForImpl | function | function wrapperForImpl(impl) {
return impl ? impl[wrapperSymbol] : null;
} |
1,287,219 | 283e2b73c3ac55ed4517cc31514ea7e5 | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-60/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | implForWrapper | function | function implForWrapper(wrapper) {
return wrapper ? wrapper[implSymbol] : null;
} |
1,287,220 | 640b72ef4463eaa9edb8aa4a405833a2 | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-65/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | tryWrapperForImpl | function | function tryWrapperForImpl(impl) {
const wrapper = wrapperForImpl(impl);
return wrapper ? wrapper : impl;
} |
1,287,221 | d3289a4228d1399bdd0224a24ce6b002 | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-70/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | tryImplForWrapper | function | function tryImplForWrapper(wrapper) {
const impl = implForWrapper(wrapper);
return impl ? impl : wrapper;
} |
1,287,222 | 4732fe0166a32b01bb3339974da637bc | swh:1:cnt:12e23aa33e6bc8e82d26ca676ba1ed5c481d3594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-88/ | f9c1478cc8c6b7cac7481add57cf182465e1d6a7 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/whatwg-url/lib/utils.js | isArrayIndexPropName | function | function isArrayIndexPropName(P) {
if (typeof P !== "string") {
return false;
}
const i = P >>> 0;
if (i === Math.pow(2, 32) - 1) {
return false;
}
const s = `${i}`;
if (P !== s) {
return false;
}
return true;
} |
1,287,223 | 236cc3ba95146d4d5b80e1442537ad58 | swh:1:cnt:85aa576f6c11212649ec9b00523fb6d4b89eb00e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-117/ | 24a408fcc3c0826aa70c061c6fb3f7fd8c5aab09 | wlbdashboard | wmcs | node_modules/workbox-build/src/generate-sw.ts | generateSW | function | async function generateSW(
config: GenerateSWOptions,
): Promise<BuildResult> {
const options = validateGenerateSWOptions(config);
let entriesResult;
if (options.globDirectory) {
// Make sure we leave swDest out of the precache manifest.
options.globIgnores!.push(
rebasePath({
baseDirecto... |
1,287,224 | 612044e8b28502cadcf737992a589c41 | swh:1:cnt:c5361418e4f16727f95549931bca01e099120fd2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-37/ | 31212c88f1b9538ba0e1303397aeb874f40f0d02 | wlbdashboard | wmcs | node_modules/workbox-build/src/get-manifest.ts | getManifest | function | async function getManifest(
config: GetManifestOptions,
): Promise<GetManifestResult> {
const options = validateGetManifestOptions(config);
return await getFileManifestEntries(options);
} |
1,287,225 | ad0a21b27217cedf3898dde9add6bd29 | swh:1:cnt:8795ddcaa77aea7b0356417e4bc4b19e2b3f860c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=53-163/ | 8eace13bee2d6f9eb5e61087e0abee17b1dd7580 | wlbdashboard | wmcs | node_modules/workbox-build/src/inject-manifest.ts | injectManifest | function | async function injectManifest(
config: InjectManifestOptions,
): Promise<BuildResult> {
const options = validateInjectManifestOptions(config);
// Make sure we leave swSrc and swDest out of the precache manifest.
for (const file of [options.swSrc, options.swDest]) {
options.globIgnores!.push(
rebasePa... |
1,287,226 | f303f2bfb9895b07b12a82d9204a5778 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-23/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | StrategyName | type | type StrategyName =
| 'CacheFirst'
| 'CacheOnly'
| 'NetworkFirst'
| 'NetworkOnly'
| 'StaleWhileRevalidate'; |
1,287,227 | 1159eb53ed7b9385a9b7407aeeeb17e5 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-138/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | ManifestTransform | type | type ManifestTransform = (
manifestEntries: Array<ManifestEntry & {size: number}>,
compilation?: unknown,
) => Promise<ManifestTransformResult> | ManifestTransformResult; |
1,287,228 | 96926f6fc957f77aa30b7768e798e26c | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-190/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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 their
* URL, a... |
1,287,229 | f9259127e1a70dd708842d88d38b7696 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=443-482/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | WebpackPartial | type | interface WebpackPartial {
/**
* One or more chunk names whose corresponding output files should be included
* in the precache manifest.
*/
chunks?: Array<string>;
// We can't use the @default annotation here to assign the value via AJV, as
// an Array<RegExp> can't be serialized into JSON.
// The de... |
1,287,230 | ea40ad0f7d3b1710e7a8f6622f3e2c01 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=532-536/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | GenerateSWOptions | type | type GenerateSWOptions = BasePartial &
GlobPartial &
GeneratePartial &
RequiredSWDestPartial &
OptionalGlobDirectoryPartial; |
1,287,231 | 5e5b4d9768760d74689d165112120685 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-441/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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 during
* the b... |
1,287,232 | 1b99b78b0a318051e7707878bc9fefba | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=506-530/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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.
* @default t... |
1,287,233 | 10b9cf177b69e6e0afa78ef49e81a801 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=572-576/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | FileDetails | type | interface FileDetails {
file: string;
hash: string;
size: number;
} |
1,287,234 | e594b5630358bc5ed3b0d81491d596dd | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=586-592/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | WorkboxPackageJSON | type | interface WorkboxPackageJSON extends PackageJson {
workbox?: {
browserNamespace?: string;
packageType?: string;
prodOnly?: boolean;
};
} |
1,287,235 | b6116a6437bf755d891c8f02b72fb125 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=369-375/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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,287,236 | 4cf73630aa4d8f2bf3f84ba6ede2e786 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=377-383/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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,287,237 | ec19a3496bdaa7a24cd3ddc030bf7b87 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=484-491/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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,287,238 | 855f6cc335377e1599f18565cb5d6472 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=565-567/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | BuildResult | type | type BuildResult = Omit<GetManifestResult, 'manifestEntries'> & {
filePaths: Array<string>;
}; |
1,287,239 | eac7b6bcbe39124a4628b056c264a8b7 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=581-581/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | BuildType | type | type BuildType = 'dev' | 'prod'; |
1,287,240 | a2892a7d294992b8f1b405c196685f6a | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-16/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | ManifestEntry | type | interface ManifestEntry {
integrity?: string;
revision: string | null;
url: string;
} |
1,287,241 | c1c48f2d61f1bd2e8ffe408df55993f7 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-133/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | ManifestTransformResult | type | interface ManifestTransformResult {
manifest: Array<ManifestEntry & {size: number}>;
warnings?: Array<string>;
} |
1,287,242 | a3e3f13987687382012f2eca24d8e7f4 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-128/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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 custom response ... |
1,287,243 | 35c72d2b22c0258b6d4de6ec2bafe285 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=493-504/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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 created by this pl... |
1,287,244 | a22086f8ca6900b7e8b56a3ecb2e2f57 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=538-540/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | GetManifestOptions | type | type GetManifestOptions = BasePartial &
GlobPartial &
RequiredGlobDirectoryPartial; |
1,287,245 | be5a399674420122e4bb9dc1905b72c9 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=192-364/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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 to cache names.... |
1,287,246 | 4a48aa9c7ed49e71333e757db41dc993 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=385-427/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.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?: boolean;
/**
*... |
1,287,247 | 36fe83b08a8b7140e24daf25c28ff89d | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=542-546/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | InjectManifestOptions | type | type InjectManifestOptions = BasePartial &
GlobPartial &
InjectPartial &
RequiredSWDestPartial &
RequiredGlobDirectoryPartial; |
1,287,248 | 6e5d8d04120aede9c770b238ec0ab344 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=548-551/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | WebpackGenerateSWOptions | type | type WebpackGenerateSWOptions = BasePartial &
WebpackPartial &
GeneratePartial &
WebpackGenerateSWPartial; |
1,287,249 | fdc70fc7bfe57a3d78ec5cc60f57261f | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=553-556/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | WebpackInjectManifestOptions | type | type WebpackInjectManifestOptions = BasePartial &
WebpackPartial &
InjectPartial &
WebpackInjectManifestPartial; |
1,287,250 | fbf41fee62775e23079886a194994739 | swh:1:cnt:4b6b36b71955029c972785fbaf8bf5e5fe29f891;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=558-563/ | 3b65eecdd23e11b0fdd9456a05c4ee632ce9a46b | wlbdashboard | wmcs | node_modules/workbox-build/src/types.ts | GetManifestResult | type | interface GetManifestResult {
count: number;
manifestEntries: Array<ManifestEntry>;
size: number;
warnings: Array<string>;
} |
1,287,251 | b87105b8e87d2e6c6f7ed839e62a1147 | swh:1:cnt:13fc1a687a1602f00db1a0b4399bcf633cccd352;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-17/ | a38835348c8d43f9159de523ca84290b3f35b2fe | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/additional-manifest-entries-transform.ts | AdditionalManifestEntriesTransform | type | type AdditionalManifestEntriesTransform = {
(manifest: Array<ManifestEntry & {size: number}>): {
manifest: Array<ManifestEntry & {size: number}>;
warnings: string[];
};
}; |
1,287,252 | 38faaf5a0bb0ad5cb47f84486c9dd0b4 | swh:1:cnt:13fc1a687a1602f00db1a0b4399bcf633cccd352;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-58/ | a38835348c8d43f9159de523ca84290b3f35b2fe | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/additional-manifest-entries-transform.ts | additionalManifestEntriesTransform | function | function additionalManifestEntriesTransform(
additionalManifestEntries: Array<ManifestEntry | string>,
): AdditionalManifestEntriesTransform {
return (manifest: Array<ManifestEntry & {size: number}>) => {
const warnings: Array<string> = [];
const stringEntries = new Set<string>();
for (const additional... |
1,287,253 | 2c16e6d25e41dd0c0bb19e1488f19112 | swh:1:cnt:2715fb49bf7bf87e8de787b0e224d0a4b3e349df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-25/ | 4e79e5f62551f92c5e784bcb338224189839a08e | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/bundle.ts | NameAndContents | type | interface NameAndContents {
contents: string | Uint8Array;
name: string;
} |
1,287,254 | 4bbad33340cbc3f181241c6dc46e55be | swh:1:cnt:2715fb49bf7bf87e8de787b0e224d0a4b3e349df;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-152/ | 4e79e5f62551f92c5e784bcb338224189839a08e | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/bundle.ts | bundle | function | async function bundle({
babelPresetEnvTargets,
inlineWorkboxRuntime,
mode,
sourcemap,
swDest,
unbundledCode,
}: Omit<GeneratePartial, 'runtimeCaching'> &
RequiredSWDestPartial & {unbundledCode: string}): Promise<
Array<NameAndContents>
> {
// We need to write this to the "real" file system, as Rollup ... |
1,287,255 | b32942608af427d40ebbe45ef0e92320 | swh:1:cnt:b9b5a53b0f07008a3cec76079572453c0e0feb6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-17/ | 97282045395d2713b99be1cc3ce5994d61f086e3 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/cdn-utils.ts | getVersionedURL | function | function getVersionedURL(): string {
return `${getCDNPrefix()}/${cdn.latestVersion}`;
} |
1,287,256 | e7aa3898ffcfc56299a6a56ab5c0311c | swh:1:cnt:b9b5a53b0f07008a3cec76079572453c0e0feb6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-37/ | 97282045395d2713b99be1cc3ce5994d61f086e3 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/cdn-utils.ts | getModuleURL | function | function getModuleURL(moduleName: string, buildType: BuildType): string {
ok(moduleName, errors['no-module-name']);
if (buildType) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const pkgJson: WorkboxPackageJSON = require(`${moduleName}/package.json`);
if (buildType === 'dev' &&... |
1,287,257 | 36b845b58ba95ea44db5b23ffe73d27d | swh:1:cnt:b9b5a53b0f07008a3cec76079572453c0e0feb6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-21/ | 97282045395d2713b99be1cc3ce5994d61f086e3 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/cdn-utils.ts | getCDNPrefix | function | function getCDNPrefix() {
return `${cdn.origin}/${cdn.bucketName}/${cdn.releasesDir}`;
} |
1,287,258 | 18347e18ddb067c0c85b836dda41d45e | swh:1:cnt:f0dbc2f57e7a268a1da636659da10dbfa7d89250;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-84/ | 68c74d181d50079274668f2c3e9af593bbc7ea62 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/copy-workbox-libraries.ts | copyWorkboxLibraries | function | async function copyWorkboxLibraries(
destDirectory: string,
): Promise<string> {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const thisPkg: WorkboxPackageJSON = require('../../package.json');
// Use the version string from workbox-build in the name of the parent
// directory. This sho... |
1,287,259 | d8d4a7d090a62b72ef2051b0a7a40ea8 | swh:1:cnt:139b12975b7589c2e1c29434be2828e839b1ae63;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-12/ | bdf6bf04eb746f8c511a37f3b01a140f1cc1e042 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/escape-regexp.ts | escapeRegExp | function | function escapeRegExp(str: string): string {
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
} |
1,287,260 | 6ad27e61d75d375884481198e5530041 | swh:1:cnt:011ddcc75022b99f322c32629288a4b9c04f4153;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-34/ | 6cf61ef28fc3b79a47727f98041efe35bb776f22 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-composite-details.ts | getCompositeDetails | function | function getCompositeDetails(
compositeURL: string,
dependencyDetails: Array<FileDetails>,
): FileDetails {
let totalSize = 0;
let compositeHash = '';
for (const fileDetails of dependencyDetails) {
totalSize += fileDetails.size;
compositeHash += fileDetails.hash;
}
const md5 = crypto.createHash(... |
1,287,261 | 10b9cf177b69e6e0afa78ef49e81a801 | swh:1:cnt:0b19ef994f0669571f1ccc133bd52555e128a4d5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-22/ | cc27c424aadff0cf1a845addd8b86bb72acc31fd | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-file-details.ts | FileDetails | type | interface FileDetails {
file: string;
hash: string;
size: number;
} |
1,287,262 | b02e905a82d04415122139185fd245c2 | swh:1:cnt:0b19ef994f0669571f1ccc133bd52555e128a4d5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-77/ | cc27c424aadff0cf1a845addd8b86bb72acc31fd | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-file-details.ts | getFileDetails | function | function getFileDetails({
globDirectory,
globFollow,
globIgnores,
globPattern,
globStrict,
}: Omit<GlobPartial, 'globDirectory' | 'globPatterns' | 'templatedURLs'> & {
// This will only be called when globDirectory is not undefined.
globDirectory: string;
globPattern: string;
}): {
globbedFileDetails:... |
1,287,263 | 11e345ae2ca8cab02078c633fb4a20ce | swh:1:cnt:91c15ec57b5f76a1580ab6a8de81290a1e550081;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-24/ | b4caa525b7642f6e2c173d4d56a9c8a3f1c76b59 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-file-hash.ts | getFileHash | function | function getFileHash(file: string): string {
try {
const buffer = fse.readFileSync(file);
return getStringHash(buffer);
} catch (err) {
throw new Error(
errors['unable-to-get-file-hash'] +
` '${err instanceof Error && err.message ? err.message : ''}'`,
);
}
} |
1,287,264 | f7a2e9c77889ac3c90142001121b3bd5 | swh:1:cnt:432763e3483567ce7a9efd7bbaa4c12d71a7462d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-121/ | a6cef21634bb1ada3936260ad6b45556d3d49386 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-file-manifest-entries.ts | getFileManifestEntries | function | async function getFileManifestEntries({
additionalManifestEntries,
dontCacheBustURLsMatching,
globDirectory,
globFollow,
globIgnores,
globPatterns = [],
globStrict,
manifestTransforms,
maximumFileSizeToCacheInBytes,
modifyURLPrefix,
templatedURLs,
}: GetManifestOptions): Promise<GetManifestResult>... |
1,287,265 | d5b8e4e8dacc6277db66c658235b638d | swh:1:cnt:4368043debe833345a714476191354d097d0f217;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-26/ | 7c9c5a3dfdc68e3fe54b0a70d32bb212a9455e67 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-file-size.ts | getFileSize | function | function getFileSize(file: string): number | null {
try {
const stat = fse.statSync(file);
if (!stat.isFile()) {
return null;
}
return stat.size;
} catch (err) {
throw new Error(
errors['unable-to-get-file-size'] +
` '${err instanceof Error && err.message ? err.message : ''}'... |
1,287,266 | e66787cb395cb02837eadf0bb535c3f3 | swh:1:cnt:6b0aee97bbab17600a79f32af42c9fc51d295a7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-32/ | c10a661cadad84f63ead694cbf83959c8ca017d5 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-source-map-url.ts | getSourceMapURL | function | function getSourceMapURL(srcContents: string): string | null {
const match = srcContents.match(regex);
return match ? match[1] || match[2] || '' : null;
} |
1,287,267 | 241f1a5fb2674d850c2d660b24640479 | swh:1:cnt:141863e8432b84b11a15ddee58937ecdf5b6ca1e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-18/ | 3e00b057a04f09ab767290b98e177f1b6aa73642 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-string-details.ts | getStringDetails | function | function getStringDetails(url: string, str: string): FileDetails {
return {
file: url,
hash: getStringHash(str),
size: str.length,
};
} |
1,287,268 | 338f8c15fa68b2ae7640685246376c48 | swh:1:cnt:5ce1a5c1ca28c2d0d121213b249abc1373aac9eb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-15/ | eb57148de3335273aef4c5956c856b0164bfae90 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/get-string-hash.ts | getStringHash | function | function getStringHash(input: crypto.BinaryLike): string {
const md5 = crypto.createHash('md5');
md5.update(input);
return md5.digest('hex');
} |
1,287,269 | c3ebb15b2c8edfa093824e078dfe0630 | swh:1:cnt:03a7da4e8a1e1a364d9acba3b5d6f7eb59dd470d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-33/ | e9e4a979cccc1c79879c4ff5c374acc58e51c92e | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/maximum-size-transform.ts | maximumSizeTransform | function | function maximumSizeTransform(
maximumFileSizeToCacheInBytes: number,
): ManifestTransform {
return (originalManifest) => {
const warnings: Array<string> = [];
const manifest = originalManifest.filter((entry) => {
if (entry.size <= maximumFileSizeToCacheInBytes) {
return true;
}
w... |
1,287,270 | 80a7d4f41758ffec9a78441848eb5e49 | swh:1:cnt:25b710de83198baafa7483c944c62a663ff743f9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-61/ | e3c25d6e821284fe02a35b16ce3d6c55be4f6667 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/modify-url-prefix-transform.ts | modifyURLPrefixTransform | function | function modifyURLPrefixTransform(modifyURLPrefix: {
[key: string]: string;
}): ManifestTransform {
if (
!modifyURLPrefix ||
typeof modifyURLPrefix !== 'object' ||
Array.isArray(modifyURLPrefix)
) {
throw new Error(errors['modify-url-prefix-bad-prefixes']);
}
// If there are no entries in mod... |
1,287,271 | 22ed8fa5df2ab75cdd1894f21df57256 | swh:1:cnt:b3dbb117402c91c7d7d38e0726fde397d2c6e44f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-73/ | aad0787fc90278bec4e419981af462e2b87d4ee0 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/module-registry.ts | ModuleRegistry | type | class ModuleRegistry {
private readonly _modulesUsed: Map<string, {moduleName: string; pkg: string}>;
/**
* @private
*/
constructor() {
this._modulesUsed = new Map();
}
/**
* @return {Array<string>} A list of all of the import statements that are
* needed for the modules being used.
* @pri... |
1,287,272 | 7e8aa7a8d8586c7ad1bc7ad0aa4aaa0a | swh:1:cnt:b3dbb117402c91c7d7d38e0726fde397d2c6e44f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-25/ | aad0787fc90278bec4e419981af462e2b87d4ee0 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/module-registry.ts | ModuleRegistry::constructor | function | /**
* @private
*/
constructor() {
this._modulesUsed = new Map();
} |
1,287,273 | 2d74436810373d10cdaeaab446e19eef | swh:1:cnt:b3dbb117402c91c7d7d38e0726fde397d2c6e44f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-72/ | aad0787fc90278bec4e419981af462e2b87d4ee0 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/module-registry.ts | 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: string, moduleName: string): string {
const localName = this.ge... |
1,287,274 | 685fee4ab6d7eb1218ebfc75b9361264 | swh:1:cnt:b3dbb117402c91c7d7d38e0726fde397d2c6e44f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-59/ | aad0787fc90278bec4e419981af462e2b87d4ee0 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/module-registry.ts | 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: string, moduleName: string): string {
return `${pkg.re... |
1,287,275 | b38710a9fff23fec9cb0c147301b1a59 | swh:1:cnt:b3dbb117402c91c7d7d38e0726fde397d2c6e44f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-49/ | aad0787fc90278bec4e419981af462e2b87d4ee0 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/module-registry.ts | ModuleRegistry::getImportStatements | function | /**
* @return {Array<string>} A list of all of the import statements that are
* needed for the modules being used.
* @private
*/
getImportStatements(): Array<string> {
const workboxModuleImports: Array<string> = [];
for (const [localName, {moduleName, pkg}] of this._modulesUsed) {
// By def... |
1,287,276 | d6912e2908bda68a8b06985e75e126f3 | swh:1:cnt:0e14d67d2c61c5f3ee3b2ca897df14ba0595dd1c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-34/ | 176fe644b8763ac4e559c8b74d1f4b41f0d5df59 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/no-revision-for-urls-matching-transform.ts | noRevisionForURLsMatchingTransform | function | function noRevisionForURLsMatchingTransform(
regexp: RegExp,
): ManifestTransform {
if (!(regexp instanceof RegExp)) {
throw new Error(errors['invalid-dont-cache-bust']);
}
return (originalManifest) => {
const manifest = originalManifest.map((entry) => {
if (typeof entry.url !== 'string') {
... |
1,287,277 | 5cfe637ffbd4c06fadf50a4d7ec20b69 | swh:1:cnt:0f00e98589bf24e005d2613aa596f1dcec66c37f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-105/ | 0e728f8e4e1117c145a6b0d4a8a8a4afda2b539b | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/populate-sw-template.ts | populateSWTemplate | function | function populateSWTemplate({
cacheId,
cleanupOutdatedCaches,
clientsClaim,
directoryIndex,
disableDevLogs,
ignoreURLParametersMatching,
importScripts,
manifestEntries = [],
navigateFallback,
navigateFallbackDenylist,
navigateFallbackAllowlist,
navigationPreload,
offlineGoogleAnalytics,
runt... |
1,287,278 | ef46ce2af8426453286ad258b3916fe9 | swh:1:cnt:6f36b282c06d08e59b453848491223f5e08b2141;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-28/ | ff0a45af89136704efe38b6d8925f6744e059309 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/rebase-path.ts | rebasePath | function | function rebasePath({
baseDirectory,
file,
}: {
baseDirectory: string;
file: string;
}): string {
// The initial path is relative to the current directory, so make it absolute.
const absolutePath = upath.resolve(file);
// Convert the absolute path so that it's relative to the baseDirectory.
const relat... |
1,287,279 | 93e7d32f275b0c7ed83816d318ff6a73 | swh:1:cnt:3b5a13b4749c786ac13d875cf2df67d5d671bbd7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-122/ | 33a7961959a8d28711d1150b151012601ebeb9b4 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/replace-and-update-source-map.ts | replaceAndUpdateSourceMap | function | async function replaceAndUpdateSourceMap({
jsFilename,
originalMap,
originalSource,
replaceString,
searchString,
}: {
jsFilename: string;
originalMap: RawSourceMap;
originalSource: string;
replaceString: string;
searchString: string;
}): Promise<{map: string; source: string}> {
const generator = n... |
1,287,280 | e7da5cb507e7b122496c792351e37366 | swh:1:cnt:b235e9e293946b2d2b6008cbd739b715ce24ceb5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-164/ | b7830441332539b978e2dd02e28a7c1685c1a9ba | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/runtime-caching-converter.ts | 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,287,281 | f226f09bd2d01040807d452ada509b59 | swh:1:cnt:b235e9e293946b2d2b6008cbd739b715ce24ceb5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=166-215/ | b7830441332539b978e2dd02e28a7c1685c1a9ba | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/runtime-caching-converter.ts | runtimeCachingConverter | function | function runtimeCachingConverter(
moduleRegistry: ModuleRegistry,
runtimeCaching: Array<RuntimeCaching>,
): Array<string> {
return runtimeCaching
.map((entry) => {
const method = entry.method || 'GET';
if (!entry.urlPattern) {
throw new Error(errors['urlPattern-is-required']);
}
... |
1,287,282 | 65216c54af8a6044c4ce51022de95717 | swh:1:cnt:60b803d45835d689ec97211a86c73e8824ce26a7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-23/ | bf2fd9d0ae1c72fcdad4eb48440ace775b2b9d7c | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/stringify-without-comments.ts | stringifyWithoutComments | function | function stringifyWithoutComments(obj: {[key: string]: any}): string {
return objectStringify(obj, {
// See https://github.com/yeoman/stringify-object#transformobject-property-originalresult
transform: (_obj: {[key: string]: any}, _prop, str) => {
if (typeof _prop !== 'symbol' && typeof _obj[_prop] === ... |
1,287,283 | 5fd40b8a238501ae8da2ae4c1e11c2b1 | swh:1:cnt:9ab81029198ea4c9990fe487be570bf3a8b0da22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-78/ | 3fe4d248086293ade0510e4c5f4496831a2f1aa7 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/transform-manifest.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,287,284 | 46c8c9a618a8edb8b4a1166b322938a5 | swh:1:cnt:9ab81029198ea4c9990fe487be570bf3a8b0da22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=79-162/ | 3fe4d248086293ade0510e4c5f4496831a2f1aa7 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/transform-manifest.ts | transformManifest | function | async function transformManifest({
additionalManifestEntries,
dontCacheBustURLsMatching,
fileDetails,
manifestTransforms,
maximumFileSizeToCacheInBytes,
modifyURLPrefix,
transformParam,
}: BasePartial & {
fileDetails: Array<FileDetails>;
// When this is called by the webpack plugin, transformParam wil... |
1,287,285 | 70b66c56f6ac2a010960e5ba83af706f | swh:1:cnt:072eac40d4ef5d095a01cb7f7e392a9e034853bd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-38/ | 3b8afad6d1c357c6bb6d114e1043702c3d936108 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/translate-url-to-sourcemap-paths.ts | translateURLToSourcemapPaths | function | function translateURLToSourcemapPaths(
url: string | null,
swSrc: string,
swDest: string,
): {
destPath: string | undefined;
srcPath: string | undefined;
warning: string | undefined;
} {
let destPath: string | undefined = undefined;
let srcPath: string | undefined = undefined;
let warning: string | un... |
1,287,286 | 9a39d897114cd495ba759a296dbf32e0 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-28/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | MethodNames | type | type MethodNames =
| 'GenerateSW'
| 'GetManifest'
| 'InjectManifest'
| 'WebpackGenerateSW'
| 'WebpackInjectManifest'; |
1,287,287 | b6f35e4573d0fbfbe24ed87390ef6e7f | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-41/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | WorkboxConfigError | type | class WorkboxConfigError extends Error {
constructor(message?: string) {
super(message);
Object.setPrototypeOf(this, new.target.prototype);
}
} |
1,287,288 | 9d1d7435a4c3ccfc7ef35694edb67276 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-40/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | WorkboxConfigError::constructor | function | constructor(message?: string) {
super(message);
Object.setPrototypeOf(this, new.target.prototype);
} |
1,287,289 | 25c892fefd192e3786835825f783e27f | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=95-105/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | ensureValidNavigationPreloadConfig | function | function ensureValidNavigationPreloadConfig(
options: GenerateSWOptions | WebpackGenerateSWOptions,
): void {
if (
options.navigationPreload &&
(!Array.isArray(options.runtimeCaching) ||
options.runtimeCaching.length === 0)
) {
throw new WorkboxConfigError(errors['nav-preload-runtime-caching']);... |
1,287,290 | 1955e258f10acf3e76faea9c6378aeee | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=107-118/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | ensureValidCacheExpiration | function | function ensureValidCacheExpiration(
options: GenerateSWOptions | WebpackGenerateSWOptions,
): void {
for (const runtimeCaching of options.runtimeCaching || []) {
if (
runtimeCaching.options?.expiration &&
!runtimeCaching.options?.cacheName
) {
throw new WorkboxConfigError(errors['cache-na... |
1,287,291 | a1168bac02196ca3d7ae0dbd045c941e | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-74/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | 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<T>(
input: unknown,
methodName: MethodNames,
): [T, JSONSchemaType<T>] {
// Don't mutate input: https://github.com/GoogleChrome/workbox/issues/2158
const inputCopy = ... |
1,287,292 | 439e1db3ff997cb1cbef487d97883a7e | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-93/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | ensureValidManifestTransforms | function | function ensureValidManifestTransforms(
options:
| GenerateSWOptions
| GetManifestOptions
| InjectManifestOptions
| WebpackGenerateSWOptions
| WebpackInjectManifestOptions,
): void {
if (
'manifestTransforms' in options &&
!(
Array.isArray(options.manifestTransforms) &&
optio... |
1,287,293 | 86cba571026af1a7d209d05ef2456583 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-132/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | ensureValidRuntimeCachingOrGlobDirectory | function | function ensureValidRuntimeCachingOrGlobDirectory(
options: GenerateSWOptions,
): void {
if (
!options.globDirectory &&
(!Array.isArray(options.runtimeCaching) ||
options.runtimeCaching.length === 0)
) {
throw new WorkboxConfigError(
errors['no-manifest-entries-or-runtime-caching'],
);... |
1,287,294 | 20486c90cf97e618a4f96aae6f7cab0d | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=134-163/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | 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(
option... |
1,287,295 | cff554dbb32c99613d1f598f20a7d5f8 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=165-176/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | validateGenerateSWOptions | function | function validateGenerateSWOptions(input: unknown): GenerateSWOptions {
const [validatedOptions, jsonSchema] = validate<GenerateSWOptions>(
input,
'GenerateSW',
);
ensureValidNavigationPreloadConfig(validatedOptions);
ensureValidCacheExpiration(validatedOptions);
ensureValidRuntimeCachingOrGlobDirecto... |
1,287,296 | 77cb286e05f55ed4fd3c34b59296acd5 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=178-182/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | validateGetManifestOptions | function | function validateGetManifestOptions(input: unknown): GetManifestOptions {
const [validatedOptions] = validate<GetManifestOptions>(input, 'GetManifest');
return validatedOptions;
} |
1,287,297 | 986482fae064f5403e229bd54eb84d41 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=184-193/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | validateInjectManifestOptions | function | function validateInjectManifestOptions(
input: unknown,
): InjectManifestOptions {
const [validatedOptions] = validate<InjectManifestOptions>(
input,
'InjectManifest',
);
return validatedOptions;
} |
1,287,298 | 790b317b58ca80aecf20dc28ed631203 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=197-217/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | validateWebpackGenerateSWOptions | function | function validateWebpackGenerateSWOptions(
input: unknown,
): WebpackGenerateSWOptions {
const inputWithExcludeDefault = Object.assign(
{
// Make a copy, as exclude can be mutated when used.
exclude: Array.from(DEFAULT_EXCLUDE_VALUE),
},
input,
);
const [validatedOptions, jsonSchema] = v... |
1,287,299 | ca825a5db205d806b6a7ce398bc4ada8 | swh:1:cnt:6b05487b457a9c12da5dad7b9809ec8d23541761;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=219-235/ | aff72c448734d705151af00d9b8f3bf95327a104 | wlbdashboard | wmcs | node_modules/workbox-build/src/lib/validate-options.ts | validateWebpackInjectManifestOptions | function | function validateWebpackInjectManifestOptions(
input: unknown,
): WebpackInjectManifestOptions {
const inputWithExcludeDefault = Object.assign(
{
// Make a copy, as exclude can be mutated when used.
exclude: Array.from(DEFAULT_EXCLUDE_VALUE),
},
input,
);
const [validatedOptions] = valid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.