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,283,000 | 824476bb9e4764b77426b7401986dff3 | swh:1:cnt:66811b87d160ffd18f7f0a048c8a17bfd4529e00;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-37/ | 911f400c15071313c6ad9742a9ea0fcd390cf6ca | wlbdashboard | wmcs | node_modules/webpack/lib/serialization/SetObjectSerializer.js | SetObjectSerializer::deserialize | function | /**
* @template T
* @param {ObjectDeserializerContext} context context
* @returns {Set<T>} date
*/
deserialize(context) {
/** @type {number} */
const size = context.read();
/** @type {Set<T>} */
const set = new Set();
for (let i = 0; i < size; i++) {
set.add(context.read());
}
return set;
} |
1,283,001 | 83daf2bb3d2e9d2d74a22d19b364cee1 | swh:1:cnt:134d09b5d427ede345656094b85f6405d3effedc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-34/ | 652ef03d3ed197f5822d7d2de9d6f985b689b585 | wlbdashboard | wmcs | node_modules/webpack/lib/serialization/SingleItemMiddleware.js | SingleItemMiddleware | type | /** @typedef {EXPECTED_ANY} DeserializedType */
/** @typedef {EXPECTED_ANY[]} SerializedType */
/** @typedef {EXPECTED_OBJECT} Context */
/**
* @extends {SerializerMiddleware<DeserializedType, SerializedType, Context>}
*/
class SingleItemMiddleware extends SerializerMiddleware {
/**
* @param {DeserializedType} da... |
1,283,002 | 7704ee9ecd8946b8fc4b3eb38595636d | swh:1:cnt:134d09b5d427ede345656094b85f6405d3effedc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-24/ | 652ef03d3ed197f5822d7d2de9d6f985b689b585 | wlbdashboard | wmcs | node_modules/webpack/lib/serialization/SingleItemMiddleware.js | SingleItemMiddleware::serialize | function | /**
* @param {DeserializedType} data data
* @param {Context} context context object
* @returns {SerializedType | Promise<SerializedType> | null} serialized data
*/
serialize(data, context) {
return [data];
} |
1,283,003 | 2d10dcc1a475885d1e119e4213b6410e | swh:1:cnt:134d09b5d427ede345656094b85f6405d3effedc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-33/ | 652ef03d3ed197f5822d7d2de9d6f985b689b585 | wlbdashboard | wmcs | node_modules/webpack/lib/serialization/SingleItemMiddleware.js | SingleItemMiddleware::deserialize | function | /**
* @param {SerializedType} data data
* @param {Context} context context object
* @returns {DeserializedType | Promise<DeserializedType>} deserialized data
*/
deserialize(data, context) {
return data[0];
} |
1,283,004 | 44aab7ea9fdafb25734bc4ba665a29e1 | swh:1:cnt:bd6eefef13f2c6f68571b06e150374dcfdc40bb0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-26/ | 392f0481b948bf28bd1f4e9f14fe58a238e046e1 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedFallbackDependency.js | ConsumeSharedFallbackDependency | type | class ConsumeSharedFallbackDependency extends ModuleDependency {
/**
* @param {string} request the request
*/
constructor(request) {
super(request);
}
get type() {
return "consume shared fallback";
}
get category() {
return "esm";
}
} |
1,283,005 | 9e37b7d8457899d8c0484f180ba1aedf | swh:1:cnt:bd6eefef13f2c6f68571b06e150374dcfdc40bb0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-17/ | 392f0481b948bf28bd1f4e9f14fe58a238e046e1 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedFallbackDependency.js | ConsumeSharedFallbackDependency::constructor | function | /**
* @param {string} request the request
*/
constructor(request) {
super(request);
} |
1,283,006 | c8601a7a916fd3af2b65887b1f119871 | swh:1:cnt:bd6eefef13f2c6f68571b06e150374dcfdc40bb0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-25/ | 392f0481b948bf28bd1f4e9f14fe58a238e046e1 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedFallbackDependency.js | ConsumeSharedFallbackDependency::category | function | get category() {
return "esm";
} |
1,283,007 | f1bfce2e171eabedb9f2c644458d11e8 | swh:1:cnt:bd6eefef13f2c6f68571b06e150374dcfdc40bb0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-21/ | 392f0481b948bf28bd1f4e9f14fe58a238e046e1 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedFallbackDependency.js | ConsumeSharedFallbackDependency::type | function | get type() {
return "consume shared fallback";
} |
1,283,008 | 3369bf8a8a87f4f73ce4485ab8a14bed | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-337/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule | type | /** @typedef {import("../config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Dependency").UpdateHashContext} UpdateHashContext */
/** @typedef {import("../Module").BuildCallback} BuildCallback */
/** @typedef {import("... |
1,283,009 | efd0e1b7e182fa0ac7777f2446df9d1d | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-70/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::constructor | function | /**
* @param {string} context context
* @param {ConsumeOptions} options consume options
*/
constructor(context, options) {
super(WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE, context);
this.options = options;
} |
1,283,010 | 5cf18d3f915e0bfc3ae09f77cabc983f | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=72-88/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::identifier | function | /**
* @returns {string} a unique identifier of the module
*/
identifier() {
const {
shareKey,
shareScope,
importResolved,
requiredVersion,
strictVersion,
singleton,
eager
} = this.options;
return `${WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE}|${shareScope}|${shareKey}|${
requiredVersio... |
1,283,011 | 9f384107121098546e00902ae93ce1be | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=113-124/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::libIdent | function | /**
* @param {LibIdentOptions} options options
* @returns {LibIdent | null} an identifier for library inclusion
*/
libIdent(options) {
const { shareKey, shareScope, import: request } = this.options;
return `${
this.layer ? `(${this.layer})/` : ""
}webpack/sharing/consume/${shareScope}/${shareKey}${
r... |
1,283,012 | 4aaf5ceba3ecac48d869d513a2cb467c | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-111/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::readableIdentifier | function | /**
* @param {RequestShortener} requestShortener the request shortener
* @returns {string} a user readable identifier of the module
*/
readableIdentifier(requestShortener) {
const {
shareKey,
shareScope,
importResolved,
requiredVersion,
strictVersion,
singleton,
eager
} = this.options;
... |
1,283,013 | 00eab77165375ea58602655fb722009c | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=126-133/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::needBuild | function | /**
* @param {NeedBuildContext} context context info
* @param {NeedBuildCallback} callback callback function, returns true, if the module needs a rebuild
* @returns {void}
*/
needBuild(context, callback) {
callback(null, !this.buildInfo);
} |
1,283,014 | 9a5d131bd6806568bd77a8b7661e68f4 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-157/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::build | function | /**
* @param {WebpackOptions} options webpack options
* @param {Compilation} compilation the compilation
* @param {ResolverWithOptions} resolver the resolver
* @param {InputFileSystem} fs the file system
* @param {BuildCallback} callback callback function
* @returns {void}
*/
build(options, compilation, ... |
1,283,015 | 2a6c05b6ceccf4bc33a0898b56b67af7 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=159-164/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::getSourceTypes | function | /**
* @returns {SourceTypes} types available (do not mutate)
*/
getSourceTypes() {
return CONSUME_SHARED_TYPES;
} |
1,283,016 | 7b2681bf3a06eb31a5b4573567d1d924 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=166-177/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::getSourceBasicTypes | function | /**
* Basic source types are high-level categories like javascript, css, webassembly, etc.
* We only have built-in knowledge about the javascript basic type here; other basic types may be
* added or changed over time by generators and do not need to be handled or detected here.
*
* Some modules, e.g. RemoteMo... |
1,283,017 | 71909a1d5e1419259ff93a49e6a8a862 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=179-213/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::_getFallbackModule | function | /**
* @param {ModuleGraph} moduleGraph the module graph
* @returns {Module | null} fallback module
*/
_getFallbackModule(moduleGraph) {
let moduleCache = fallbackModuleCache.get(moduleGraph);
if (!moduleCache) {
moduleCache = new WeakMap();
fallbackModuleCache.set(moduleGraph, moduleCache);
}
const... |
1,283,018 | 1f209f0d20bced906839c1d01210a19a | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=215-228/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::getExportsType | function | /**
* @param {ModuleGraph} moduleGraph the module graph
* @param {boolean | undefined} strict the importing module is strict
* @returns {ExportsType} export type
* "namespace": Exports is already a namespace object. namespace = exports.
* "dynamic": Check at runtime if __esModule is set. When set: namespace =... |
1,283,019 | 1e7e2782eb2c6c1ff5707d12c23700bd | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=248-318/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::codeGeneration | function | /**
* @param {CodeGenerationContext} context context for code generation
* @returns {CodeGenerationResult} result
*/
codeGeneration({ chunkGraph, runtimeTemplate }) {
const runtimeRequirements = new Set([RuntimeGlobals.shareScopeMap]);
const {
shareScope,
shareKey,
strictVersion,
requiredVersion,... |
1,283,020 | 95e578a8668706eea6ca3d51ad7b4a30 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=230-236/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::size | function | /**
* @param {string=} type the source type for which the size should be estimated
* @returns {number} the estimated size of the module (must be non-zero)
*/
size(type) {
return 42;
} |
1,283,021 | beee22b64aafcbb0d769b116be9e44bf | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=320-327/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::serialize | function | /**
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
const { write } = context;
write(this.options);
super.serialize(context);
} |
1,283,022 | 6461cb46eff66b446ad20161bd9f6f62 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=238-246/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::updateHash | function | /**
* @param {Hash} hash the hash used to track dependencies
* @param {UpdateHashContext} context context
* @returns {void}
*/
updateHash(hash, context) {
hash.update(JSON.stringify(this.options));
super.updateHash(hash, context);
} |
1,283,023 | 1825feec78ae581772f953b07f25dce8 | swh:1:cnt:4caacaab39939dfb34887e95c0f556982d5831c0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=329-336/ | ed18cf1f5a91611556fd5d0bf5f987b46d0c1302 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedModule.js | ConsumeSharedModule::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
const { read } = context;
this.options = read();
super.deserialize(context);
} |
1,283,024 | 0c923469854ff958742157f2ab24dd9f | swh:1:cnt:a09e23c5059f38eb4a257c94af493738395bdccb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-385/ | eb07db883bdb73a8dc05916eaef33c75524bb417 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedPlugin.js | ConsumeSharedPlugin | type | class ConsumeSharedPlugin {
/**
* @param {ConsumeSharedPluginOptions} options options
*/
constructor(options) {
this.options = options;
}
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
// TODO webpack 6 remove string support
if (t... |
1,283,025 | b361709207008e1e2752ea8c8a1fdb86 | swh:1:cnt:a09e23c5059f38eb4a257c94af493738395bdccb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-44/ | eb07db883bdb73a8dc05916eaef33c75524bb417 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedPlugin.js | ConsumeSharedPlugin::constructor | function | /**
* @param {ConsumeSharedPluginOptions} options options
*/
constructor(options) {
this.options = options;
} |
1,283,026 | 61288c09e8152cf5de3779a62537c5eb | swh:1:cnt:a09e23c5059f38eb4a257c94af493738395bdccb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-384/ | eb07db883bdb73a8dc05916eaef33c75524bb417 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedPlugin.js | ConsumeSharedPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
// TODO webpack 6 remove string support
if (typeof this.options !== "string") {
compiler.hooks.validate.tap(PLUGIN_NAME, () => {
compiler.validate(
() =>
require("../../schemas... |
1,283,027 | f99375a5be17915a1e6bf60811727e65 | swh:1:cnt:1da174b62d1833c4732f09d63bb761d43e888ef2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-356/ | 8e059224d12600d70a0404347d4bab7f3b9424e5 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedRuntimeModule.js | ConsumeSharedRuntimeModule | type | /** @typedef {import("webpack-sources").Source} Source */
/** @typedef {import("../Chunk")} Chunk */
/** @typedef {import("../Chunk").ChunkId} ChunkId */
/** @typedef {import("../ChunkGraph")} ChunkGraph */
/** @typedef {import("../ChunkGraph").ModuleId} ModuleId */
/** @typedef {import("../Compilation")} Compilation *... |
1,283,028 | 6b0b0eba25f124a156963637fd91cb97 | swh:1:cnt:1da174b62d1833c4732f09d63bb761d43e888ef2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-35/ | 8e059224d12600d70a0404347d4bab7f3b9424e5 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedRuntimeModule.js | ConsumeSharedRuntimeModule::constructor | function | /**
* @param {ReadOnlyRuntimeRequirements} runtimeRequirements runtime requirements
*/
constructor(runtimeRequirements) {
super("consumes", RuntimeModule.STAGE_ATTACH);
this._runtimeRequirements = runtimeRequirements;
} |
1,283,029 | f6fc479c452be456acd0a4e42c818cf0 | swh:1:cnt:1da174b62d1833c4732f09d63bb761d43e888ef2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-355/ | 8e059224d12600d70a0404347d4bab7f3b9424e5 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ConsumeSharedRuntimeModule.js | ConsumeSharedRuntimeModule::generate | function | /**
* @returns {string | null} runtime code
*/
generate() {
const compilation = /** @type {Compilation} */ (this.compilation);
const chunkGraph = /** @type {ChunkGraph} */ (this.chunkGraph);
const codeGenerationResults =
/** @type {CodeGenerationResults} */
(compilation.codeGenerationResults);
const ... |
1,283,030 | f0070122dce59f15b3ad582b9cbe6b31 | swh:1:cnt:4de679a6a745872bccb8594d38c1dc44e0f30c82;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-26/ | 8e32295aed5b4c2e9081cffeb2c37309f06ba035 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideForSharedDependency.js | ProvideForSharedDependency | type | class ProvideForSharedDependency extends ModuleDependency {
/**
* @param {string} request request string
*/
constructor(request) {
super(request);
}
get type() {
return "provide module for shared";
}
get category() {
return "esm";
}
} |
1,283,031 | 44700fc7c872d14a76d00b62efd2dbe9 | swh:1:cnt:4de679a6a745872bccb8594d38c1dc44e0f30c82;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-17/ | 8e32295aed5b4c2e9081cffeb2c37309f06ba035 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideForSharedDependency.js | ProvideForSharedDependency::constructor | function | /**
* @param {string} request request string
*/
constructor(request) {
super(request);
} |
1,283,032 | c8601a7a916fd3af2b65887b1f119871 | swh:1:cnt:4de679a6a745872bccb8594d38c1dc44e0f30c82;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-25/ | 8e32295aed5b4c2e9081cffeb2c37309f06ba035 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideForSharedDependency.js | ProvideForSharedDependency::category | function | get category() {
return "esm";
} |
1,283,033 | b61a6835bb50e37b9fc25385a4518690 | swh:1:cnt:4de679a6a745872bccb8594d38c1dc44e0f30c82;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-21/ | 8e32295aed5b4c2e9081cffeb2c37309f06ba035 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideForSharedDependency.js | ProvideForSharedDependency::type | function | get type() {
return "provide module for shared";
} |
1,283,034 | 313c57982135d89e7722e26fdce9ea09 | swh:1:cnt:2df18a618ed7bcc03582d9ec7f2142285433972a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-73/ | c394eb1a05e18c3ac9c168b6b11e21d79349ab42 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedDependency.js | ProvideSharedDependency | type | /** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
class ProvideSharedDependency extends Dependency {
/**
* @param {string} shareScope share sc... |
1,283,035 | ffdb64edb306dc2f8a90db4f73377ef7 | swh:1:cnt:2df18a618ed7bcc03582d9ec7f2142285433972a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-29/ | c394eb1a05e18c3ac9c168b6b11e21d79349ab42 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedDependency.js | ProvideSharedDependency::constructor | function | /**
* @param {string} shareScope share scope
* @param {string} name module name
* @param {string | false} version version
* @param {string} request request
* @param {boolean} eager true, if this is an eager dependency
*/
constructor(shareScope, name, version, request, eager) {
super();
this.shareScope ... |
1,283,036 | 71ca564daa4423d0d12c4d9d712c7c0d | swh:1:cnt:2df18a618ed7bcc03582d9ec7f2142285433972a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-33/ | c394eb1a05e18c3ac9c168b6b11e21d79349ab42 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedDependency.js | ProvideSharedDependency::type | function | get type() {
return "provide shared module";
} |
1,283,037 | 8bb2f3dd4fbfb0cda95c6356a207bbe1 | swh:1:cnt:2df18a618ed7bcc03582d9ec7f2142285433972a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-42/ | c394eb1a05e18c3ac9c168b6b11e21d79349ab42 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedDependency.js | ProvideSharedDependency::getResourceIdentifier | function | /**
* @returns {string | null} an identifier to merge equal requests
*/
getResourceIdentifier() {
return `provide module (${this.shareScope}) ${this.request} as ${
this.name
} @ ${this.version}${this.eager ? " (eager)" : ""}`;
} |
1,283,038 | 2ad18cd8415ac74a72564378ca7bfeaf | swh:1:cnt:2df18a618ed7bcc03582d9ec7f2142285433972a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-54/ | c394eb1a05e18c3ac9c168b6b11e21d79349ab42 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedDependency.js | ProvideSharedDependency::serialize | function | /**
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
context.write(this.shareScope);
context.write(this.name);
context.write(this.request);
context.write(this.version);
context.write(this.eager);
super.serialize(context);
} |
1,283,039 | a7e8fb469be7151ac3595f259d1f41e3 | swh:1:cnt:2df18a618ed7bcc03582d9ec7f2142285433972a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-72/ | c394eb1a05e18c3ac9c168b6b11e21d79349ab42 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedDependency.js | ProvideSharedDependency::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {ProvideSharedDependency} deserialize fallback dependency
*/
static deserialize(context) {
const { read } = context;
const obj = new ProvideSharedDependency(
read(),
read(),
read(),
read(),
read()
);
this.shareScope = cont... |
1,283,040 | 345e4f95edf118a8ecb97f8be6a220eb | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-189/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule | type | /** @typedef {import("../config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Module").BuildCallback} BuildCallback */
/** @typedef {import("../Module").CodeGenerationContext} CodeGenerationContext */
/** @typedef {impo... |
1,283,041 | 3e29e0917c2038da20cd6bb7f457638c | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-49/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::constructor | function | /**
* @param {string} shareScope shared scope name
* @param {string} name shared key
* @param {string | false} version version
* @param {string} request request to the provided module
* @param {boolean} eager include the module in sync way
*/
constructor(shareScope, name, version, request, eager) {
super... |
1,283,042 | a86fdb1b786423d2822f0d2489a180c1 | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-56/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::identifier | function | /**
* @returns {string} a unique identifier of the module
*/
identifier() {
return `provide module (${this._shareScope}) ${this._name}@${this._version} = ${this._request}`;
} |
1,283,043 | 00eab77165375ea58602655fb722009c | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-85/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::needBuild | function | /**
* @param {NeedBuildContext} context context info
* @param {NeedBuildCallback} callback callback function, returns true, if the module needs a rebuild
* @returns {void}
*/
needBuild(context, callback) {
callback(null, !this.buildInfo);
} |
1,283,044 | e38a120bbe84bea02448698c149ee99c | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-66/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::readableIdentifier | function | /**
* @param {RequestShortener} requestShortener the request shortener
* @returns {string} a user readable identifier of the module
*/
readableIdentifier(requestShortener) {
return `provide shared module (${this._shareScope}) ${this._name}@${
this._version
} = ${requestShortener.shorten(this._request)}`;
... |
1,283,045 | 11c3a3aaf39a1907ed830b80d6fdddf0 | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-76/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::libIdent | function | /**
* @param {LibIdentOptions} options options
* @returns {LibIdent | null} an identifier for library inclusion
*/
libIdent(options) {
return `${this.layer ? `(${this.layer})/` : ""}webpack/sharing/provide/${
this._shareScope
}/${this._name}`;
} |
1,283,046 | 7a94490506cc817ac3f6cad8df9386db | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=87-112/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::build | function | /**
* @param {WebpackOptions} options webpack options
* @param {Compilation} compilation the compilation
* @param {ResolverWithOptions} resolver the resolver
* @param {InputFileSystem} fs the file system
* @param {BuildCallback} callback callback function
* @returns {void}
*/
build(options, compilation, ... |
1,283,047 | 95e578a8668706eea6ca3d51ad7b4a30 | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=114-120/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::size | function | /**
* @param {string=} type the source type for which the size should be estimated
* @returns {number} the estimated size of the module (must be non-zero)
*/
size(type) {
return 42;
} |
1,283,048 | 90e1b78b19b3e3caf7266db6387f19f5 | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=122-127/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::getSourceTypes | function | /**
* @returns {SourceTypes} types available (do not mutate)
*/
getSourceTypes() {
return SHARED_INIT_TYPES;
} |
1,283,049 | 9b3e536253ac5d87c9ce108b7dd95ba4 | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=129-164/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::codeGeneration | function | /**
* @param {CodeGenerationContext} context context for code generation
* @returns {CodeGenerationResult} result
*/
codeGeneration({ runtimeTemplate, chunkGraph }) {
const runtimeRequirements = new Set([RuntimeGlobals.initializeSharing]);
const code = `register(${JSON.stringify(this._name)}, ${JSON.stringif... |
1,283,050 | 1584a2de32811af3007786263ca4fed7 | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=166-177/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::serialize | function | /**
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
const { write } = context;
write(this._shareScope);
write(this._name);
write(this._version);
write(this._request);
write(this._eager);
super.serialize(context);
} |
1,283,051 | b819584b3bcd4825fdedaa2b2897db4e | swh:1:cnt:6b302b58f3c8fe3704544bc15b61273632f8dd28;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=179-188/ | 38661e00f607c9e92a87b709d3764042b02cd08e | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModule.js | ProvideSharedModule::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {ProvideSharedModule} deserialize fallback dependency
*/
static deserialize(context) {
const { read } = context;
const obj = new ProvideSharedModule(read(), read(), read(), read(), read());
obj.deserialize(context);
return obj;
} |
1,283,052 | 94d4e2bb26485df09e2e2f30f8904f05 | swh:1:cnt:b10b8f3996e7a1d4ae8a2adb2d4391910bac89fd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-35/ | 6ad1ca22f29d30ea9e9c92b2a3b7e250f28f5123 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModuleFactory.js | ProvideSharedModuleFactory | type | /** @typedef {import("../ModuleFactory").ModuleFactoryCallback} ModuleFactoryCallback */
/** @typedef {import("../ModuleFactory").ModuleFactoryCreateData} ModuleFactoryCreateData */
/** @typedef {import("./ProvideSharedDependency")} ProvideSharedDependency */
class ProvideSharedModuleFactory extends ModuleFactory {
/... |
1,283,053 | 151990633452743488e58aacdd8bef56 | swh:1:cnt:b10b8f3996e7a1d4ae8a2adb2d4391910bac89fd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-34/ | 6ad1ca22f29d30ea9e9c92b2a3b7e250f28f5123 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedModuleFactory.js | ProvideSharedModuleFactory::create | function | /**
* @param {ModuleFactoryCreateData} data data object
* @param {ModuleFactoryCallback} callback callback
* @returns {void}
*/
create(data, callback) {
const dep =
/** @type {ProvideSharedDependency} */
(data.dependencies[0]);
callback(null, {
module: new ProvideSharedModule(
dep.shareScope,
... |
1,283,054 | d5fcc96a617563d59dc3c966a9cc817c | swh:1:cnt:0024e9e599f63e71fe2013bdc8c43278c6a2fde9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-250/ | f0e92829c8bdca58beae55d3b0780b090a6a59a0 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedPlugin.js | ProvideSharedPlugin | type | class ProvideSharedPlugin {
/**
* @param {ProvideSharedPluginOptions} options options
*/
constructor(options) {
this.options = options;
}
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.validate.tap(PLUGIN_NAME, () => ... |
1,283,055 | de657874973b748e8f7b3b5e821a62c0 | swh:1:cnt:0024e9e599f63e71fe2013bdc8c43278c6a2fde9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-37/ | f0e92829c8bdca58beae55d3b0780b090a6a59a0 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedPlugin.js | ProvideSharedPlugin::constructor | function | /**
* @param {ProvideSharedPluginOptions} options options
*/
constructor(options) {
this.options = options;
} |
1,283,056 | 18f096ba8871b76db1fb24191e328dd8 | swh:1:cnt:0024e9e599f63e71fe2013bdc8c43278c6a2fde9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-249/ | f0e92829c8bdca58beae55d3b0780b090a6a59a0 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ProvideSharedPlugin.js | ProvideSharedPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.validate.tap(PLUGIN_NAME, () => {
compiler.validate(
() => require("../../schemas/plugins/sharing/ProvideSharedPlugin.json"),
this.options,
{
name: "Provide Shar... |
1,283,057 | bf2cfa608addf77d60581b89cc2ead9c | swh:1:cnt:c9ce32f9ec7a23ce1cbc5922bf17024c57dd83d2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-89/ | 5228ded0188a59cd684bc6f106b856f620b5e96a | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/SharePlugin.js | SharePlugin | type | /** @typedef {import("../../declarations/plugins/sharing/ConsumeSharedPlugin").ConsumesConfig} ConsumesConfig */
/** @typedef {import("../../declarations/plugins/sharing/ProvideSharedPlugin").ProvidesConfig} ProvidesConfig */
/** @typedef {import("../../declarations/plugins/sharing/SharePlugin").SharePluginOptions} Sha... |
1,283,058 | af78dd4f32783c55790b15c13f89f46d | swh:1:cnt:c9ce32f9ec7a23ce1cbc5922bf17024c57dd83d2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-72/ | 5228ded0188a59cd684bc6f106b856f620b5e96a | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/SharePlugin.js | SharePlugin::constructor | function | /**
* @param {SharePluginOptions} options options
*/
constructor(options) {
/** @type {[string, SharedConfig][]} */
const sharedOptions = parseOptions(
options.shared,
(item, key) => {
if (typeof item !== "string") {
throw new Error("Unexpected array in shared");
}
/** @type {SharedConfi... |
1,283,059 | 8179f3f36bcdc849238581e703ce8265 | swh:1:cnt:c9ce32f9ec7a23ce1cbc5922bf17024c57dd83d2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-88/ | 5228ded0188a59cd684bc6f106b856f620b5e96a | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/SharePlugin.js | SharePlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
new ConsumeSharedPlugin({
shareScope: this._shareScope,
consumes: this._consumes
}).apply(compiler);
new ProvideSharedPlugin({
shareScope: this._shareScope,
provides: this._provide... |
1,283,060 | bb4ed51e2cd7c609137a565768e9d956 | swh:1:cnt:3e8d524d32cd762d3da3a1be45c2a6d55cca5a65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-150/ | 6e8d9649e918eb008fd4dd9fc5439e0cb7abcac5 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ShareRuntimeModule.js | ShareRuntimeModule | type | /** @typedef {import("../Chunk")} Chunk */
/** @typedef {import("../ChunkGraph")} ChunkGraph */
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../CodeGenerationResults")} CodeGenerationResults */
class ShareRuntimeModule extends RuntimeModule {
constructor() {
super("sharing");
}
/*... |
1,283,061 | 644df1595dbd3e0beb8551017ddff9f6 | swh:1:cnt:3e8d524d32cd762d3da3a1be45c2a6d55cca5a65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-24/ | 6e8d9649e918eb008fd4dd9fc5439e0cb7abcac5 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ShareRuntimeModule.js | ShareRuntimeModule::constructor | function | constructor() {
super("sharing");
} |
1,283,062 | 6ae9aefd102a06c53b4ff6d1fd1baf63 | swh:1:cnt:3e8d524d32cd762d3da3a1be45c2a6d55cca5a65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-149/ | 6e8d9649e918eb008fd4dd9fc5439e0cb7abcac5 | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/ShareRuntimeModule.js | ShareRuntimeModule::generate | function | /**
* @returns {string | null} runtime code
*/
generate() {
const compilation = /** @type {Compilation} */ (this.compilation);
const {
runtimeTemplate,
outputOptions: { uniqueName, ignoreBrowserWarnings }
} = compilation;
const codeGenerationResults =
/** @type {CodeGenerationResults} */
(compi... |
1,283,063 | 3740e817fb4a4a3b4a801382539b77da | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=152-179/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | getCommithash | function | /**
* extract commit hash from parsed url
* @param {URL} urlParsed parsed url
* @returns {string} commithash
*/
function getCommithash(urlParsed) {
let { hostname, pathname, hash } = urlParsed;
hostname = hostname.replace(/^www\./, "");
try {
hash = decodeURIComponent(hash);
// eslint-disable-next-line no-e... |
1,283,064 | 7700c310cd91d10ec01971ca332e499f | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=181-190/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | correctUrl | function | /**
* make url right for URL parse
* @param {string} gitUrl git url
* @returns {string} fixed url
*/
function correctUrl(gitUrl) {
// like:
// proto://hostname.com:user/repo -> proto://hostname.com/user/repo
return gitUrl.replace(RE_HOSTNAME_WITH_COLON, "$1/$2");
} |
1,283,065 | 1d2d9e9735f2ac509e2ed43708727e02 | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-235/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | canBeDecoded | function | /**
* if string can be decoded
* @param {string} str str to be checked
* @returns {boolean} if can be decoded
*/
function canBeDecoded(str) {
try {
decodeURIComponent(str);
} catch (_err) {
return false;
}
return true;
} |
1,283,066 | d5c00de3fa659d9e0518ee6a6d32b538 | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=192-209/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | correctProtocol | function | /**
* make url protocol right for URL parse
* @param {string} gitUrl git url
* @returns {string} fixed url
*/
function correctProtocol(gitUrl) {
// eg: github:foo/bar#v1.0. Should not add double slash, in case of error parsed `pathname`
if (RE_GIT_URL_SHORT.test(gitUrl)) {
return gitUrl;
}
// eg: user@github... |
1,283,067 | de27594b4bb2fc6dedba8e11e173f5f8 | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=211-220/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | getVersionFromHash | function | /**
* extract git dep version from hash
* @param {string} hash hash
* @returns {string} git dep version
*/
function getVersionFromHash(hash) {
const matched = hash.match(RE_URL_HASH_VERSION);
return (matched && matched[1]) || "";
} |
1,283,068 | 8a284bce2ee1b5890bed27727d9c96ad | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-289/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | getGitUrlVersion | function | /**
* get right dep version from git url
* @param {string} gitUrl git url
* @returns {string} dep version
*/
function getGitUrlVersion(gitUrl) {
const oriGitUrl = gitUrl;
// github extreme shorthand
gitUrl = RE_URL_GITHUB_EXTREME_SHORT.test(gitUrl)
? `github:${gitUrl}`
: correctProtocol(gitUrl);
gitUrl = c... |
1,283,069 | 43ab95eb18ae04cb20a9274fba0c6dd9 | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=395-401/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | isRequiredVersion | function | /**
* @param {string} str maybe required version
* @returns {boolean} true, if it looks like a version
*/
function isRequiredVersion(str) {
return VERSION_PATTERN_REGEXP.test(str);
} |
1,283,070 | 556797368d8c5881fc6483db39b808e1 | swh:1:cnt:96cca58b3c9d4196ba112aa50e139d9bd865069d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=405-419/ | fd08e783cc4b413cf093c15c5fa18c14d9a542dd | wlbdashboard | wmcs | node_modules/webpack/lib/sharing/utils.js | normalizeVersion | function | /**
* @see https://docs.npmjs.com/cli/v7/configuring-npm/package-json#urls-as-dependencies
* @param {string} versionDesc version to be normalized
* @returns {string} normalized version
*/
function normalizeVersion(versionDesc) {
versionDesc = (versionDesc && versionDesc.trim()) || "";
if (isRequiredVersion(versi... |
1,283,071 | 2bfde5b0508d66b9b6bdb33068995f0e | swh:1:cnt:289a2b886cb4bb363cfb32d1d3979626fde23cc0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2689-2789/ | 8381eea1ad3ff1cb493e10eb2908c5f07d4c3665 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/DefaultStatsFactoryPlugin.js | DefaultStatsFactoryPlugin | type | class DefaultStatsFactoryPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.statsFactory.tap(
PLUGIN_NAME,
/**
* @param {StatsFactory} stats... |
1,283,072 | 08725418e2d104b61fe0cce9c87c7865 | swh:1:cnt:289a2b886cb4bb363cfb32d1d3979626fde23cc0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2690-2788/ | 8381eea1ad3ff1cb493e10eb2908c5f07d4c3665 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/DefaultStatsFactoryPlugin.js | DefaultStatsFactoryPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.statsFactory.tap(
PLUGIN_NAME,
/**
* @param {StatsFactory} stats stats factory
* @param {Norma... |
1,283,073 | 014f2ed3a67bc5ff9ee1641620119c93 | swh:1:cnt:781a541af8705342d40be1b66d19e98e8004d50a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=381-415/ | 05dcc76d50bbffec1a954182e3c6a93afd61fff0 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/DefaultStatsPresetPlugin.js | DefaultStatsPresetPlugin | type | class DefaultStatsPresetPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
for (const key of Object.keys(NAMED_PRESETS)) {
const defaults = NAMED_PRESETS[/** @type {ke... |
1,283,074 | 3b39253270ec3e3bcba6d7605d706080 | swh:1:cnt:781a541af8705342d40be1b66d19e98e8004d50a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=382-414/ | 05dcc76d50bbffec1a954182e3c6a93afd61fff0 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/DefaultStatsPresetPlugin.js | DefaultStatsPresetPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
for (const key of Object.keys(NAMED_PRESETS)) {
const defaults = NAMED_PRESETS[/** @type {keyof NamedPresets} */ (key)];
c... |
1,283,075 | 31ccde1bcbe90694a9d9a62cb79ef8bb | swh:1:cnt:942d12ad261fac41f9d4208582a422260bc0d887;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1586-1858/ | 762bebbe545cc7f8b2ea316a15ec5295b6f34008 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/DefaultStatsPrinterPlugin.js | DefaultStatsPrinterPlugin | type | class DefaultStatsPrinterPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.statsPrinter.tap(PLUGIN_NAME, (stats, options) => {
// Put colors into co... |
1,283,076 | 39b7c9d6c6e9167c98711539ee965c51 | swh:1:cnt:942d12ad261fac41f9d4208582a422260bc0d887;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1587-1857/ | 762bebbe545cc7f8b2ea316a15ec5295b6f34008 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/DefaultStatsPrinterPlugin.js | DefaultStatsPrinterPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.statsPrinter.tap(PLUGIN_NAME, (stats, options) => {
// Put colors into context
stats.hooks.print
.f... |
1,283,077 | ac0c0c3048fa6ea7572402bfb1ea9915 | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-404/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory | type | /** @typedef {import("../Chunk")} Chunk */
/** @typedef {import("../ChunkGroup").OriginRecord} OriginRecord */
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Compilation").Asset} Asset */
/** @typedef {import("../Compilation").NormalizedStatsOptions} NormalizedStatsOptions */
/** @typed... |
1,283,078 | 7c890ba61c9780b9c71c9994526c1916 | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=99-133/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::constructor | function | constructor() {
/** @type {StatsFactoryHooks} */
this.hooks = Object.freeze({
extract: new HookMap(
() => new SyncBailHook(["object", "data", "context"])
),
filter: new HookMap(
() => new SyncBailHook(["item", "context", "index", "unfilteredIndex"])
),
sort: new HookMap(() => new SyncBailHook... |
1,283,079 | e01d792f851cc73d49620225b342f78c | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=161-177/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::_forEachLevel | function | /**
* @template {StatsFactoryHooks[keyof StatsFactoryHooks]} HM
* @template {HM extends HookMap<infer H> ? H : never} H
* @template {H extends import("tapable").Hook<EXPECTED_ANY, infer R> ? R : never} R
* @param {HM} hookMap hook map
* @param {Caches<H>} cache cache
* @param {string} type type
* @param {... |
1,283,080 | 4e2dd95260995537cdf68632b39685ad | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-159/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::_getAllLevelHooks | function | /**
* @template {StatsFactoryHooks[keyof StatsFactoryHooks]} HM
* @template {HM extends HookMap<infer H> ? H : never} H
* @param {HM} hookMap hook map
* @param {Caches<H>} cache cache
* @param {string} type type
* @returns {H[]} hooks
* @private
*/
_getAllLevelHooks(hookMap, cache, type) {
const cach... |
1,283,081 | ad07e652f5ef886cd80d46ff54752c0f | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=179-195/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::_forEachLevelWaterfall | function | /**
* @template {StatsFactoryHooks[keyof StatsFactoryHooks]} HM
* @template {HM extends HookMap<infer H> ? H : never} H
* @param {HM} hookMap hook map
* @param {Caches<H>} cache cache
* @param {string} type type
* @param {FactoryData} data data
* @param {(hook: H, factoryData: FactoryData) => FactoryData}... |
1,283,082 | cc9c0cc00848d302ef7f6ebbe27740fc | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=197-225/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::_forEachLevelFilter | function | /**
* @template {StatsFactoryHooks[keyof StatsFactoryHooks]} T
* @template {T extends HookMap<infer H> ? H : never} H
* @template {H extends import("tapable").Hook<EXPECTED_ANY, infer R> ? R : never} R
* @param {T} hookMap hook map
* @param {Caches<H>} cache cache
* @param {string} type type
* @param {Fac... |
1,283,083 | 5c3ba4af8718103823e0d5ce44bcea4f | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-248/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::create | function | /**
* @template FactoryData
* @template FallbackCreatedObject
* @param {string} type type
* @param {FactoryData} data factory data
* @param {Omit<StatsFactoryContext, "type">} baseContext context used as base
* @returns {CreatedObject<FactoryData, FallbackCreatedObject>} created object
*/
create(type, da... |
1,283,084 | a8d633d10b954762a59bba12a328a008 | swh:1:cnt:2e5b282a17043f4ff806ed474f48a295befc3c7c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=250-403/ | afea0bf21de7cfc4976ca97be346b14deb940a6f | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsFactory.js | StatsFactory::_create | function | /**
* @private
* @template FactoryData
* @template FallbackCreatedObject
* @param {string} type type
* @param {FactoryData} data factory data
* @param {Omit<StatsFactoryContext, "type">} baseContext context used as base
* @returns {CreatedObject<FactoryData, FallbackCreatedObject>} created object
*/
_c... |
1,283,085 | 76093f9de619c9bebfc1c8990ec78fdd | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-298/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter | type | /** @typedef {import("./DefaultStatsFactoryPlugin").StatsAsset} StatsAsset */
/** @typedef {import("./DefaultStatsFactoryPlugin").StatsChunk} StatsChunk */
/** @typedef {import("./DefaultStatsFactoryPlugin").StatsChunkGroup} StatsChunkGroup */
/** @typedef {import("./DefaultStatsFactoryPlugin").StatsCompilation} StatsC... |
1,283,086 | d101bb8a4775fcaef5310d2418a0032e | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-108/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter::constructor | function | constructor() {
/** @type {StatsPrintHooks} */
this.hooks = Object.freeze({
sortElements: new HookMap(
() => new SyncBailHook(["elements", "context"])
),
printElements: new HookMap(
() => new SyncBailHook(["printedElements", "context"])
),
sortItems: new HookMap(() => new SyncBailHook(["items... |
1,283,087 | b0ecb62986ff6c0ed3faf0c5d89e26db | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=160-176/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter::_forEachLevelWaterfall | function | /**
* Run `fn` for each level
* @private
* @template {StatsPrintHooks[keyof StatsPrintHooks]} HM
* @template {HM extends HookMap<infer H> ? H : never} H
* @param {HM} hookMap hook map
* @param {string} type type
* @param {string} data data
* @param {(hook: H, data: string) => string} fn fn
* @returns ... |
1,283,088 | a2b498512f3c622d8eca6981d297ad68 | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=178-195/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter::print | function | /**
* @param {string} type The type
* @param {PrintObject} object Object to print
* @param {StatsPrinterContext=} baseContext The base context
* @returns {string | undefined} printed result
*/
print(type, object, baseContext) {
if (this._inPrint) {
return this._print(type, object, baseContext);
}
tr... |
1,283,089 | f69103358c6fa8d5da24bb0be2f9f3dd | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=142-158/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter::_forEachLevel | function | /**
* Run `fn` for each level
* @private
* @template {StatsPrintHooks[keyof StatsPrintHooks]} HM
* @template {HM extends HookMap<infer H> ? H : never} H
* @template {H extends import("tapable").Hook<EXPECTED_ANY, infer R> ? R : never} R
* @param {HM} hookMap hook map
* @param {string} type type
* @param... |
1,283,090 | 88eb399378dfd7ff9887f4530a9ce423 | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-140/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter::_getAllLevelHooks | function | /**
* get all level hooks
* @private
* @template {StatsPrintHooks[keyof StatsPrintHooks]} HM
* @template {HM extends HookMap<infer H> ? H : never} H
* @param {HM} hookMap hook map
* @param {string} type type
* @returns {H[]} hooks
*/
_getAllLevelHooks(hookMap, type) {
let cache = this._levelHookCache... |
1,283,091 | 2367bf362331f297bf24cc55eedc13ec | swh:1:cnt:621dd9a2d77b3db57e74dc7c9cc04d76db5a6e6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=197-297/ | 8c8bc773c23da3c73bfff492f9f08070adb28722 | wlbdashboard | wmcs | node_modules/webpack/lib/stats/StatsPrinter.js | StatsPrinter::_print | function | /**
* @private
* @param {string} type type
* @param {PrintObject} object object
* @param {StatsPrinterContext=} baseContext context
* @returns {string | undefined} printed result
*/
_print(type, object, baseContext) {
/** @type {StatsPrinterContext} */
const context = {
...baseContext,
type,
[... |
1,283,092 | a174cdf21b8b6dcad5be259eed12c294 | swh:1:cnt:59ca484369eecf4b14972ee586134fabfc38936c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=91-264/ | cef665e3847a5252040076c0bb6ea0d59d86b0fc | wlbdashboard | wmcs | node_modules/webpack/lib/url/URLParserPlugin.js | URLParserPlugin | type | class URLParserPlugin {
/**
* @param {JavascriptParserOptions} options options
*/
constructor(options) {
/** @type {JavascriptParserOptions} */
this.options = options;
}
/**
* @param {JavascriptParser} parser the parser
* @returns {void}
*/
apply(parser) {
const relative = this.options.url === "re... |
1,283,093 | 1deb557bc14d5e8314572fea37c6518e | swh:1:cnt:59ca484369eecf4b14972ee586134fabfc38936c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-98/ | cef665e3847a5252040076c0bb6ea0d59d86b0fc | wlbdashboard | wmcs | node_modules/webpack/lib/url/URLParserPlugin.js | URLParserPlugin::constructor | function | /**
* @param {JavascriptParserOptions} options options
*/
constructor(options) {
/** @type {JavascriptParserOptions} */
this.options = options;
} |
1,283,094 | 5cb9dbae0b9ae9bb8599c114086abebb | swh:1:cnt:59ca484369eecf4b14972ee586134fabfc38936c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-263/ | cef665e3847a5252040076c0bb6ea0d59d86b0fc | wlbdashboard | wmcs | node_modules/webpack/lib/url/URLParserPlugin.js | URLParserPlugin::apply | function | /**
* @param {JavascriptParser} parser the parser
* @returns {void}
*/
apply(parser) {
const relative = this.options.url === "relative";
parser.hooks.canRename.for("URL").tap(PLUGIN_NAME, approve);
parser.hooks.evaluateNewExpression.for("URL").tap(PLUGIN_NAME, (expr) => {
const evaluatedExpr = getEvalu... |
1,283,095 | a3dd2a2dcf68d2a6c0a972acca7cda10 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-76/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet | type | /**
* @template T
*/
class AppendOnlyStackedSet {
/**
* @param {Set<T>[]} sets an optional array of sets
*/
constructor(sets = []) {
/** @type {Set<T>[]} */
this._sets = sets;
/** @type {Set<T> | undefined} */
this._current = undefined;
}
/**
* @param {T} el element
*/
add(el) {
if (!this._cur... |
1,283,096 | 9a62f6177816b763cec675daf5174d45 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-20/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::constructor | function | /**
* @param {Set<T>[]} sets an optional array of sets
*/
constructor(sets = []) {
/** @type {Set<T>[]} */
this._sets = sets;
/** @type {Set<T> | undefined} */
this._current = undefined;
} |
1,283,097 | 279db819512f34cd88988dbdcc938d06 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-31/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::add | function | /**
* @param {T} el element
*/
add(el) {
if (!this._current) {
this._current = new Set();
this._sets.push(this._current);
}
this._current.add(el);
} |
1,283,098 | 74a24427c2c48396480a0a1ecb9ac789 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-56/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::createChild | function | /**
* @returns {AppendOnlyStackedSet<T>} child
*/
createChild() {
return new AppendOnlyStackedSet(this._sets.length ? [...this._sets] : []);
} |
1,283,099 | b81886bc748542f4a9705c3bb1db5fe2 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-42/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::has | function | /**
* @param {T} el element
* @returns {boolean} result
*/
has(el) {
for (const set of this._sets) {
if (set.has(el)) return true;
}
return false;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.