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,288,300
be562ab3f9e613daab6d039983fc9ece
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-25/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::constructor
function
constructor() { super(); this.children = []; for(var i = 0; i < arguments.length; i++) { var item = arguments[i]; if(item instanceof ConcatSource) { var children = item.children; for(var j = 0; j < children.length; j++) this.children.push(children[j]); } else { this.children.push(item); ...
1,288,301
9d036c356bf1e0a663f0791ba7c8cb8c
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-45/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::source
function
source() { let source = ""; const children = this.children; for(let i = 0; i < children.length; i++) { const child = children[i]; source += typeof child === "string" ? child : child.source(); } return source; }
1,288,302
05abee5f0aa51f4bb3420a1a8b547fca
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-55/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::size
function
size() { let size = 0; const children = this.children; for(let i = 0; i < children.length; i++) { const child = children[i]; size += typeof child === "string" ? child.length : child.size(); } return size; }
1,288,303
419eaa0d2c7eecb1a57b9e82f512fe48
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-62/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::node
function
node(options) { const node = new SourceNode(null, null, null, this.children.map(function(item) { return typeof item === "string" ? item : item.node(options); })); return node; }
1,288,304
28875a7775d296950780087cf029abb3
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-35/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::add
function
add(item) { if(item instanceof ConcatSource) { var children = item.children; for(var j = 0; j < children.length; j++) this.children.push(children[j]); } else { this.children.push(item); } }
1,288,305
2b3537e49c53f59b3ab3bf5de08459a2
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-75/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::listMap
function
listMap(options) { const map = new SourceListMap(); var children = this.children; for(var i = 0; i < children.length; i++) { var item = children[i]; if(typeof item === "string") map.add(item); else map.add(item.listMap(options)); } return map; }
1,288,306
b819107faa311659d6dbdc8da1650c91
swh:1:cnt:25167d6e4122b29d4112daaf75a6ad75e1bf54dc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-86/
8935d8bbc7ce081ec8b881f6218bc8b52b5ccbd6
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ConcatSource.js
ConcatSource::updateHash
function
updateHash(hash) { var children = this.children; for(var i = 0; i < children.length; i++) { var item = children[i]; if(typeof item === "string") hash.update(item); else item.updateHash(hash); } }
1,288,307
02b8546564c758c902448229912a6bae
swh:1:cnt:a1a17bb4ae5f7a16a4482990bf7340db0ade0e6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-45/
5d4deeaca818b005f67a496b813a2bb31e18c6a4
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/LineToLineMappedSource.js
LineToLineMappedSource
type
class LineToLineMappedSource extends Source { constructor(value, name, originalSource) { super(); this._value = value; this._name = name; this._originalSource = originalSource; } source() { return this._value; } node(options) { var value = this._value; var name = this._name; var lines = value.spl...
1,288,308
b4f42c6d62e783f35ae02129d1791333
swh:1:cnt:a1a17bb4ae5f7a16a4482990bf7340db0ade0e6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-18/
5d4deeaca818b005f67a496b813a2bb31e18c6a4
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/LineToLineMappedSource.js
LineToLineMappedSource::constructor
function
constructor(value, name, originalSource) { super(); this._value = value; this._name = name; this._originalSource = originalSource; }
1,288,309
b84e67bc224d699d08a3c86470a33eaf
swh:1:cnt:a1a17bb4ae5f7a16a4482990bf7340db0ade0e6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-22/
5d4deeaca818b005f67a496b813a2bb31e18c6a4
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/LineToLineMappedSource.js
LineToLineMappedSource::source
function
source() { return this._value; }
1,288,310
6db7b2cb851b0e563d930197e2fe754e
swh:1:cnt:a1a17bb4ae5f7a16a4482990bf7340db0ade0e6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-39/
5d4deeaca818b005f67a496b813a2bb31e18c6a4
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/LineToLineMappedSource.js
LineToLineMappedSource::listMap
function
listMap(options) { return new SourceListMap(this._value, this._name, this._originalSource) }
1,288,311
0c5b63d888bf21fa7decab81d9e3f5c3
swh:1:cnt:a1a17bb4ae5f7a16a4482990bf7340db0ade0e6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-44/
5d4deeaca818b005f67a496b813a2bb31e18c6a4
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/LineToLineMappedSource.js
LineToLineMappedSource::updateHash
function
updateHash(hash) { hash.update(this._value); hash.update(this._originalSource); }
1,288,312
9697cb495e8ceb7f2a9546c10cd92944
swh:1:cnt:a1a17bb4ae5f7a16a4482990bf7340db0ade0e6d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-35/
5d4deeaca818b005f67a496b813a2bb31e18c6a4
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/LineToLineMappedSource.js
LineToLineMappedSource::node
function
node(options) { var value = this._value; var name = this._name; var lines = value.split("\n"); var node = new SourceNode(null, null, null, lines.map(function(line, idx) { return new SourceNode(idx + 1, 0, name, (line + (idx != lines.length - 1 ? "\n" : ""))); }) ); node.setSourceContent(name, this...
1,288,313
8d436c8a2a5ae08f0bba34296fbf553d
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-16/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
_splitCode
function
function _splitCode(code) { return code.match(SPLIT_REGEX) || []; }
1,288,314
9ef4386998aa22fc977c08268a051b18
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-57/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
OriginalSource::node
function
node(options) { options = options || {}; var sourceMap = this._sourceMap; var value = this._value; var name = this._name; var lines = value.split("\n"); var node = new SourceNode(null, null, null, lines.map(function(line, idx) { var pos = 0; if(options.columns === false) { var content = line...
1,288,315
89d5f3388fc7e95b38512295005af55a
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-23/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
OriginalSource::constructor
function
constructor(value, name) { super(); this._value = value; this._name = name; }
1,288,316
bf2efa7e17b558a17897545e26bfe28b
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=59-61/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
OriginalSource::listMap
function
listMap(options) { return new SourceListMap(this._value, this._name, this._value) }
1,288,317
b84e67bc224d699d08a3c86470a33eaf
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-27/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
OriginalSource::source
function
source() { return this._value; }
1,288,318
ae8f3638e1ab504c16220d3b02237ba4
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-65/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
OriginalSource::updateHash
function
updateHash(hash) { hash.update(this._value); }
1,288,319
0b02f59d6ddc6a4ad6f74a06fe65d995
swh:1:cnt:f3b5227315f7629d4835e19bd9550a741ae2cef1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-66/
3a72752ce7191ee39756c437f8d2e8efb7a51fdc
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/OriginalSource.js
OriginalSource
type
class OriginalSource extends Source { constructor(value, name) { super(); this._value = value; this._name = name; } source() { return this._value; } node(options) { options = options || {}; var sourceMap = this._sourceMap; var value = this._value; var name = this._name; var lines = value.split(...
1,288,320
da7b1dabfcb5acc8c0c9e2c79f999b22
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-31/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
cloneAndPrefix
function
function cloneAndPrefix(node, prefix, append) { if(typeof node === "string") { var result = node.replace(REPLACE_REGEX, "\n" + prefix); if(append.length > 0) result = append.pop() + result; if(/\n$/.test(node)) append.push(prefix); return result; } else { var newNode = new SourceNode( node.line, node....
1,288,321
f3fb16f76f24b38e7b25fddef3df92a1
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-44/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
PrefixSource::source
function
source() { var node = typeof this._source === "string" ? this._source : this._source.source(); var prefix = this._prefix; return prefix + node.replace(REPLACE_REGEX, "\n" + prefix); }
1,288,322
b1a1f2a230c55ee7da19a1440275de59
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-79/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
PrefixSource::listMap
function
listMap(options) { var prefix = this._prefix; var map = this._source.listMap(options); return map.mapGeneratedCode(function(code) { return prefix + code.replace(REPLACE_REGEX, "\n" + prefix); }); }
1,288,323
f3973ed800773ac7c24912af1fd7feb6
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-71/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
PrefixSource::node
function
node(options) { var node = this._source.node(options); var prefix = this._prefix; var output = []; var result = new SourceNode(); node.walkSourceContents(function(source, content) { result.setSourceContent(source, content); }); var needPrefix = true; node.walk(function(chunk, mapping) { var parts ...
1,288,324
673c594e7bcfc29c7804deee0b2fe088
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-38/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
PrefixSource::constructor
function
constructor(prefix, source) { super(); this._source = source; this._prefix = prefix; }
1,288,325
4a295e7cc0af98c8ea12780107f2c866
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-90/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
PrefixSource::updateHash
function
updateHash(hash) { if(typeof this._source === "string") hash.update(this._source); else this._source.updateHash(hash); if(typeof this._prefix === "string") hash.update(this._prefix); else this._prefix.updateHash(hash); }
1,288,326
cf54970ed8c927135760132503024fa9
swh:1:cnt:50fabbe2d999a081a823ae172ee0634fed8a2e32;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-91/
3efb4a9ec8306328b2ea6c12fed4fc318db125cf
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/PrefixSource.js
PrefixSource
type
class PrefixSource extends Source { constructor(prefix, source) { super(); this._source = source; this._prefix = prefix; } source() { var node = typeof this._source === "string" ? this._source : this._source.source(); var prefix = this._prefix; return prefix + node.replace(REPLACE_REGEX, "\n" + prefix);...
1,288,327
10e04890f142096bcded0bbfa303f926
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-36/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource
type
class RawSource extends Source { constructor(value) { super(); this._value = value; } source() { return this._value; } map(options) { return null; } node(options) { return new SourceNode(null, null, null, this._value); } listMap(options) { return new SourceListMap(this._value); } updateHash(...
1,288,328
9140c1ad086dd203170b7d252de87e37
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-15/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource::constructor
function
constructor(value) { super(); this._value = value; }
1,288,329
097f31346a565d87ce5870ba7d4ab41f
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-27/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource::node
function
node(options) { return new SourceNode(null, null, null, this._value); }
1,288,330
b84e67bc224d699d08a3c86470a33eaf
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-19/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource::source
function
source() { return this._value; }
1,288,331
b9c88b44cadfdb255085cb952fb04930
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-31/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource::listMap
function
listMap(options) { return new SourceListMap(this._value); }
1,288,332
301f997e427922ad3f869f1a759d6a54
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-23/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource::map
function
map(options) { return null; }
1,288,333
ae8f3638e1ab504c16220d3b02237ba4
swh:1:cnt:c09b1cd9f71337a5c82b5af201b62222ed486c65;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-35/
64e558334408fa7c5108ecc599b049b3b2b021be
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/RawSource.js
RawSource::updateHash
function
updateHash(hash) { hash.update(this._value); }
1,288,334
2d2edab7d91fb81f5edda84ae2dee2d0
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-18/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
Replacement
type
class Replacement { constructor(start, end, content, insertIndex, name) { this.start = start; this.end = end; this.content = content; this.insertIndex = insertIndex; this.name = name; } }
1,288,335
cc8a3a69dbee4beebee5ed0e78ae30d8
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-268/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource
type
class ReplaceSource extends Source { constructor(source, name) { super(); this._source = source; this._name = name; /** @type {Replacement[]} */ this.replacements = []; } replace(start, end, newValue, name) { if(typeof newValue !== "string") throw new Error("insertion must be a string, but is a " + t...
1,288,336
8f6c3cae36f6995a2aba0e996ea78459
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=270-326/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplacementEnumerator
type
class ReplacementEnumerator { /** * @param {Replacement[]} replacements list of replacements */ constructor(replacements) { this.replacements = replacements || []; this.index = this.replacements.length; this.done = false; this.emit = false; // Set initial start position this.next(); } next() { if...
1,288,337
598bb20b796095937ef3479fc58e9fbf
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-17/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
Replacement::constructor
function
constructor(start, end, content, insertIndex, name) { this.start = start; this.end = end; this.content = content; this.insertIndex = insertIndex; this.name = name; }
1,288,338
d57a40cd338c28f21d54b7c3068d71f1
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-27/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::constructor
function
constructor(source, name) { super(); this._source = source; this._name = name; /** @type {Replacement[]} */ this.replacements = []; }
1,288,339
097efa06a7b2637660da598935282859
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-43/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::source
function
source(options) { return this._replaceString(this._source.source()); }
1,288,340
48d452384f4df18a8d67712ea1ae60c8
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-39/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::insert
function
insert(pos, newValue, name) { if(typeof newValue !== "string") throw new Error("insertion must be a string, but is a " + typeof newValue + ": " + newValue); this.replacements.push(new Replacement(pos, pos - 1, newValue, this.replacements.length, name)); }
1,288,341
b79797cc3f7b08c92120728ed7c9e426
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-33/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::replace
function
replace(start, end, newValue, name) { if(typeof newValue !== "string") throw new Error("insertion must be a string, but is a " + typeof newValue); this.replacements.push(new Replacement(start, end, newValue, this.replacements.length, name)); }
1,288,342
4179cc033f7295db45c826adcb8db172
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=45-47/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::original
function
original() { return this._source; }
1,288,343
e6b87752cd581ca3353de6199b239837
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-59/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::_sortReplacements
function
_sortReplacements() { this.replacements.sort(function(a, b) { var diff = b.end - a.end; if(diff !== 0) return diff; diff = b.start - a.start; if(diff !== 0) return diff; return b.insertIndex - a.insertIndex; }); }
1,288,344
38e750a08387652c0ffd471639edd4b7
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-79/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::_replaceString
function
_replaceString(str) { if(typeof str !== "string") throw new Error("str must be a string, but is a " + typeof str + ": " + str); this._sortReplacements(); var result = [str]; this.replacements.forEach(function(repl) { var remSource = result.pop(); var splitted1 = this._splitString(remSource, Math.floor(...
1,288,345
92b15dea8242da6263d5b07e7066da60
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-136/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::node
function
node(options) { var node = this._source.node(options); if(this.replacements.length === 0) { return node; } this._sortReplacements(); var replace = new ReplacementEnumerator(this.replacements); var output = []; var position = 0; var sources = Object.create(null); var sourcesInLines = Object.create(n...
1,288,346
68c4da176f3a3c39de3f51a06e4e8931
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=138-188/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::listMap
function
listMap(options) { this._sortReplacements(); var map = this._source.listMap(options); var currentIndex = 0; var replacements = this.replacements; var idxReplacement = replacements.length - 1; var removeChars = 0; map = map.mapGeneratedCode(function(str) { var newCurrentIndex = currentIndex + str.length...
1,288,347
0a50c832fe64e4fca0f2706384f9da37
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=194-267/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::_replaceInStringNode
function
_replaceInStringNode(output, replace, getOriginalSource, node, position, mapping) { var original = undefined; do { var splitPosition = replace.position - position; // If multiple replaces occur in the same location then the splitPosition may be // before the current position for the subsequent splits. Ens...
1,288,348
c8385917da87f948d0a63648c977b0fe
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=310-325/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplacementEnumerator::footer
function
footer() { if(!this.done && !this.emit) this.next(); // If we finished _replaceInNode mid emit we advance to next entry if(this.done) { return []; } else { var resultStr = ""; for(var i = this.index; i >= 0; i--) { var repl = this.replacements[i]; // this doesn't need to handle repl.name, beca...
1,288,349
471f2daf9755ae293524c78c8260fecc
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=190-192/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplaceSource::_splitString
function
_splitString(str, position) { return position <= 0 ? ["", str] : [str.substr(0, position), str.substr(position)]; }
1,288,350
8c1efae7d805bc65a61e4e2ecbc8ff4d
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=271-281/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplacementEnumerator::constructor
function
/** * @param {Replacement[]} replacements list of replacements */ constructor(replacements) { this.replacements = replacements || []; this.index = this.replacements.length; this.done = false; this.emit = false; // Set initial start position this.next(); }
1,288,351
ffafff4ae36a3182159669ee623e303d
swh:1:cnt:d7a7f2a40d0c56b410961ff270c654773ed0b4d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=283-308/
8f625eee08164ba721d75255a601931614e66d3f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/ReplaceSource.js
ReplacementEnumerator::next
function
next() { if(this.done) return true; if(this.emit) { // Start point found. stop emitting. set position to find end var repl = this.replacements[this.index]; var end = Math.floor(repl.end + 1); this.position = end; this.value = repl.content; this.name = repl.name; } else { // End point found...
1,288,352
b9f16f26559226856a5d708207893ace
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-44/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source
type
class Source { source() { throw new Error("Abstract"); } size() { if(Buffer.from.length === 1) return new Buffer(this.source()).length; return Buffer.byteLength(this.source()) } map(options) { return null; } sourceAndMap(options) { return { source: this.source(), map: this.map() }; } nod...
1,288,353
c7381dab7b5e9263cd291cf25ee05717
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-14/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::source
function
source() { throw new Error("Abstract"); }
1,288,354
c0d286f7c38ff0fc226c371349f134ef
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-34/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::node
function
node() { throw new Error("Abstract"); }
1,288,355
301f997e427922ad3f869f1a759d6a54
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-23/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::map
function
map(options) { return null; }
1,288,356
1731d7851ba6ff99e72e240ac0d8d240
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-30/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::sourceAndMap
function
sourceAndMap(options) { return { source: this.source(), map: this.map() }; }
1,288,357
22775097126db8ce8b71ad9a3fe0e5ec
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-19/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::size
function
size() { if(Buffer.from.length === 1) return new Buffer(this.source()).length; return Buffer.byteLength(this.source()) }
1,288,358
96daa4353943ea2a07dc3a4203a7b2d2
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-38/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::listNode
function
listNode() { throw new Error("Abstract"); }
1,288,359
8de9a5ee01f21f42e5c2edd7eac81d6f
swh:1:cnt:f9b8f6b5a6492011ae1acae5ffadaf6b2d6360a0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-43/
f48349f5df632c92e6f42901741f97f4a5f24a20
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/Source.js
Source::updateHash
function
updateHash(hash) { var source = this.source(); hash.update(source || ""); }
1,288,360
2241fb7df500102f1ea93095e4598b25
swh:1:cnt:cabf7c8afd5bd3e606847011c9bc6bb0ff8e7090;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-53/
57ee7cf16ef95170127de0cd3107ec0953fd3661
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js
SourceMapSource
type
class SourceMapSource extends Source { constructor(value, name, sourceMap, originalSource, innerSourceMap, removeOriginalSource) { super(); this._value = value; this._name = name; this._sourceMap = sourceMap; this._originalSource = originalSource; this._innerSourceMap = innerSourceMap; this._removeOrigin...
1,288,361
0ecd410c03cf3d7eb68968c9d9f648c8
swh:1:cnt:cabf7c8afd5bd3e606847011c9bc6bb0ff8e7090;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-24/
57ee7cf16ef95170127de0cd3107ec0953fd3661
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js
SourceMapSource::constructor
function
constructor(value, name, sourceMap, originalSource, innerSourceMap, removeOriginalSource) { super(); this._value = value; this._name = name; this._sourceMap = sourceMap; this._originalSource = originalSource; this._innerSourceMap = innerSourceMap; this._removeOriginalSource = removeOriginalSource; }
1,288,362
ed10319d7a11ad4dfb505d68b885278d
swh:1:cnt:cabf7c8afd5bd3e606847011c9bc6bb0ff8e7090;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-39/
57ee7cf16ef95170127de0cd3107ec0953fd3661
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js
SourceMapSource::node
function
node(options) { var sourceMap = this._sourceMap; var node = SourceNode.fromStringWithSourceMap(this._value, new SourceMapConsumer(sourceMap)); node.setSourceContent(this._name, this._originalSource); var innerSourceMap = this._innerSourceMap; if(innerSourceMap) { node = applySourceMap(node, new SourceMapCo...
1,288,363
b84e67bc224d699d08a3c86470a33eaf
swh:1:cnt:cabf7c8afd5bd3e606847011c9bc6bb0ff8e7090;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-28/
57ee7cf16ef95170127de0cd3107ec0953fd3661
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js
SourceMapSource::source
function
source() { return this._value; }
1,288,364
fe4ffc0b9a2c64998e14754818f1db04
swh:1:cnt:cabf7c8afd5bd3e606847011c9bc6bb0ff8e7090;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-46/
57ee7cf16ef95170127de0cd3107ec0953fd3661
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js
SourceMapSource::listMap
function
listMap(options) { options = options || {}; if(options.module === false) return new SourceListMap(this._value, this._name, this._value); return fromStringWithSourceMap(this._value, typeof this._sourceMap === "string" ? JSON.parse(this._sourceMap) : this._sourceMap); }
1,288,365
d55854294a8106a8dda0ece77f1481ed
swh:1:cnt:cabf7c8afd5bd3e606847011c9bc6bb0ff8e7090;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-52/
57ee7cf16ef95170127de0cd3107ec0953fd3661
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/node_modules/webpack-sources/lib/SourceMapSource.js
SourceMapSource::updateHash
function
updateHash(hash) { hash.update(this._value); if(this._originalSource) hash.update(this._originalSource); }
1,288,366
8f73cc3f772506db6aa65fa227a8f032
swh:1:cnt:0f125c82f9111a3a2de36e8569b2bfcdee6942f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-29/
73481886f1f94153a885c7afcb7ed22f24f70782
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/generate-sw.ts
GenerateSWConfig
type
interface GenerateSWConfig extends WebpackGenerateSWOptions { manifestEntries?: Array<ManifestEntry>; }
1,288,367
cc1c12a86a962b102a294a8320efb84f
swh:1:cnt:0f125c82f9111a3a2de36e8569b2bfcdee6942f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-241/
73481886f1f94153a885c7afcb7ed22f24f70782
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/generate-sw.ts
GenerateSW
type
/** * This class supports creating a new, ready-to-use service worker file as * part of the webpack compilation process. * * Use an instance of `GenerateSW` in the * [`plugins` array](https://webpack.js.org/concepts/plugins/#usage) of a * webpack config. * * ``` * // The following lists some common options; se...
1,288,368
696176b450575fc81901336d7a658e6c
swh:1:cnt:0f125c82f9111a3a2de36e8569b2bfcdee6942f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-81/
73481886f1f94153a885c7afcb7ed22f24f70782
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/generate-sw.ts
GenerateSW::constructor
function
/** * Creates an instance of GenerateSW. */ constructor(config: GenerateSWConfig = {}) { this.config = config; this.alreadyCalled = false; }
1,288,369
dc84497aa1876245dbd828793d4953b1
swh:1:cnt:0f125c82f9111a3a2de36e8569b2bfcdee6942f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-140/
73481886f1f94153a885c7afcb7ed22f24f70782
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/generate-sw.ts
GenerateSW::apply
function
/** * @param {Object} [compiler] default compiler object passed from webpack * * @private */ apply(compiler: webpack.Compiler): void { this.propagateWebpackConfig(compiler); // webpack v4/v5 compatibility: // https://github.com/webpack/webpack/issues/11425#issuecomment-690387207 if (webpa...
1,288,370
59271374d7308288031349b36f9cca69
swh:1:cnt:0f125c82f9111a3a2de36e8569b2bfcdee6942f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=83-98/
73481886f1f94153a885c7afcb7ed22f24f70782
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/generate-sw.ts
GenerateSW::propagateWebpackConfig
function
/** * @param {Object} [compiler] default compiler object passed from webpack * * @private */ propagateWebpackConfig(compiler: webpack.Compiler): void { // Because this.config is listed last, properties that are already set // there take precedence over derived properties from the compiler. thi...
1,288,371
686446755890e8ae179feebdba1b9739
swh:1:cnt:0f125c82f9111a3a2de36e8569b2bfcdee6942f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=142-240/
73481886f1f94153a885c7afcb7ed22f24f70782
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/generate-sw.ts
GenerateSW::addAssets
function
/** * @param {Object} compilation The webpack compilation. * * @private */ async addAssets(compilation: webpack.Compilation): Promise<void> { // See https://github.com/GoogleChrome/workbox/issues/1790 if (this.alreadyCalled) { const warningMessage = `${this.constructor.name} has been...
1,288,372
d169689bf288449179d3079a61fd4489
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-369/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest
type
/** * This class supports compiling a service worker file provided via `swSrc`, * and injecting into that service worker a list of URLs and revision * information for precaching based on the webpack asset pipeline. * * Use an instance of `InjectManifest` in the * [`plugins` array](https://webpack.js.org/concepts/...
1,288,373
224af80b37a6cfad203e65dc9520c4ec
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=60-66/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::constructor
function
/** * Creates an instance of InjectManifest. */ constructor(config: WebpackInjectManifestOptions) { this.config = config; this.alreadyCalled = false; }
1,288,374
d0d6762c11283108a0a8a51ff937fafb
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-84/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::propagateWebpackConfig
function
/** * @param {Object} [compiler] default compiler object passed from webpack * * @private */ propagateWebpackConfig(compiler: webpack.Compiler): void { // Because this.config is listed last, properties that are already set // there take precedence over derived properties from the compiler. thi...
1,288,375
fee6c9b0a7cd9a9d4005d9bef8b8f9da
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=136-192/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::performChildCompilation
function
/** * @param {Object} compilation The webpack compilation. * @param {Object} parentCompiler The webpack parent compiler. * * @private */ async performChildCompilation( compilation: webpack.Compilation, parentCompiler: webpack.Compiler, ): Promise<void> { const outputOptions = { path...
1,288,376
4adfe3ad29f72f4921c275f0d54d0fc6
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=194-209/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::addSrcToAssets
function
/** * @param {Object} compilation The webpack compilation. * @param {Object} parentCompiler The webpack parent compiler. * * @private */ addSrcToAssets( compilation: webpack.Compilation, parentCompiler: webpack.Compiler, ): void { // eslint-disable-next-line const source = (parentComp...
1,288,377
536c6b095a06d36e524e9df939d83d06
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-134/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::apply
function
/** * @param {Object} [compiler] default compiler object passed from webpack * * @private */ apply(compiler: webpack.Compiler): void { this.propagateWebpackConfig(compiler); compiler.hooks.make.tapPromise(this.constructor.name, (compilation) => this.handleMake(compilation, compiler).catch( ...
1,288,378
a91d9bbb81a2c2812a914e30ac8cb7a4
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=211-253/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::handleMake
function
/** * @param {Object} compilation The webpack compilation. * @param {Object} parentCompiler The webpack parent compiler. * * @private */ async handleMake( compilation: webpack.Compilation, parentCompiler: webpack.Compiler, ): Promise<void> { try { this.config = validateWebpackInject...
1,288,379
8d3aabf5c17790f64ed49ad6b86f0c90
swh:1:cnt:bba10344c93c5a1959e9a822524817af0a0d041c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=255-368/
b02c98f36d29651795bef5cde33b538af6095995
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/inject-manifest.ts
InjectManifest::addAssets
function
/** * @param {Object} compilation The webpack compilation. * * @private */ async addAssets(compilation: webpack.Compilation): Promise<void> { // See https://github.com/GoogleChrome/workbox/issues/1790 if (this.alreadyCalled) { const warningMessage = `${this.constructor.name} has been...
1,288,380
2d841822eb1dee95f121718460c5b6b3
swh:1:cnt:db78c850fb1dcd9bf2393fccd39506419beaa748;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-29/
288595e5b4ea0f291c37a50d83edfdd1b146a74f
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-asset-hash.ts
getAssetHash
function
function getAssetHash(asset: Asset): string | null { // If webpack has the asset marked as immutable, then we don't need to // use an out-of-band revision for it. // See https://github.com/webpack/webpack/issues/9038 if (asset.info && asset.info.immutable) { return null; } return crypto.createHash('md5...
1,288,381
168d56f6f470d821ab2080dcc62d6dc1
swh:1:cnt:ee50a4366487194bc79a2cb586b6b6dd7715a87e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-60/
5b593a4a9a66c31e0e2cca257a244dc507295e73
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-manifest-entries-from-compilation.ts
checkConditions
function
/** * For a given asset, checks whether at least one of the conditions matches. * * @param {Asset} asset The webpack asset in question. This will be passed * to any functions that are listed as conditions. * @param {Compilation} compilation The webpack compilation. This will be passed * to any functions that are ...
1,288,382
2ec19f7d3cb17042843dbe0dcffd75c3
swh:1:cnt:ee50a4366487194bc79a2cb586b6b6dd7715a87e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=98-116/
5b593a4a9a66c31e0e2cca257a244dc507295e73
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-manifest-entries-from-compilation.ts
getNamesOfAssetsInChunk
function
/** * Returns the names of all the assets in a chunk. * * @param {Chunk} chunk * @return {Array<string>} * @private */ function getNamesOfAssetsInChunk(chunk: Chunk): Array<string> { const assetNames: Array<string> = []; assetNames.push(...chunk.files); // This only appears to be set in webpack v5. if (...
1,288,383
a687c6e84ede36a54fd59488d679039d
swh:1:cnt:ee50a4366487194bc79a2cb586b6b6dd7715a87e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-96/
5b593a4a9a66c31e0e2cca257a244dc507295e73
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-manifest-entries-from-compilation.ts
getNamesOfAssetsInChunkOrGroup
function
/** * Returns the names of all the assets in all the chunks in a chunk group, * if provided a chunk group name. * Otherwise, if provided a chunk name, return all the assets in that chunk. * Otherwise, if there isn't a chunk group or chunk with that name, return null. * * @param {Compilation} compilation * @param...
1,288,384
c918314fb9bcc03caca586d16b190da4
swh:1:cnt:ee50a4366487194bc79a2cb586b6b6dd7715a87e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=215-252/
5b593a4a9a66c31e0e2cca257a244dc507295e73
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-manifest-entries-from-compilation.ts
getManifestEntriesFromCompilation
function
async function getManifestEntriesFromCompilation( compilation: Compilation, config: WebpackGenerateSWOptions | WebpackInjectManifestOptions, ): Promise<{size: number; sortedEntries: ManifestEntry[]}> { const filteredAssets = filterAssets(compilation, config); const {publicPath} = compilation.options.output; ...
1,288,385
56f0d9293ff8bc930a8d9f9d45d5dae7
swh:1:cnt:ee50a4366487194bc79a2cb586b6b6dd7715a87e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=118-213/
5b593a4a9a66c31e0e2cca257a244dc507295e73
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-manifest-entries-from-compilation.ts
filterAssets
function
/** * Filters the set of assets out, based on the configuration options provided: * - chunks and excludeChunks, for chunkName-based criteria. * - include and exclude, for more general criteria. * * @param {Compilation} compilation The webpack compilation. * @param {Object} config The validated configuration, obta...
1,288,386
db0ec556ebdbf75d556c65c525b64599
swh:1:cnt:211dddf3307dfa34a6552a7c186bf0c36bc7c7b6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-51/
65a852ac443d61706a39279c86b20c0502b994f9
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-script-files-for-chunks.ts
getScriptFilesForChunks
function
function getScriptFilesForChunks( compilation: Compilation, chunkNames: Array<string>, ): Array<string> { const {chunks} = compilation.getStats().toJson({chunks: true}); const {publicPath} = compilation.options.output; const scriptFiles = new Set<string>(); for (const chunkName of chunkNames) { const c...
1,288,387
6becafcc7c872b00eaac634c6af33dab
swh:1:cnt:2a5e9006d84b7d374e38080c0d46542c3b311124;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-54/
ae6d86fa583236177521e3bb6fa867d521710bbd
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/get-sourcemap-asset-name.ts
getSourcemapAssetName
function
function getSourcemapAssetName( compilation: Compilation, swContents: string, swDest: string, ): string | undefined { const url = getSourceMapURL(swContents); if (url) { // Translate the relative URL to what the presumed name for the webpack // asset should be. // This *might* not be a valid asset...
1,288,388
1aa9ca8cc2a2bb13e2d28b55f0f67fdb
swh:1:cnt:5f59c7f0c22ebc75dd8d7159aab67e6b9ec2af4f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-29/
e3f914b50d71fe0873cc61cb2bd1b85bbb0c9e10
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/relative-to-output-path.ts
relativeToOutputPath
function
function relativeToOutputPath(compilation: Compilation, swDest: string): string { // See https://github.com/jantimon/html-webpack-plugin/pull/266/files#diff-168726dbe96b3ce427e7fedce31bb0bcR38 if (upath.resolve(swDest) === upath.normalize(swDest)) { return upath.relative(compilation.options.output.path!, swDest...
1,288,389
c21db622f0c63fcc9bddf17d9894f2bf
swh:1:cnt:7eba9e3a1d3e4971c41e5720adbc154f59843482;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-30/
53b6d8720c2101a26a534c9b327b5b08ee4b7b9e
wlbdashboard
wmcs
node_modules/workbox-webpack-plugin/src/lib/resolve-webpack-url.ts
resolveWebpackURL
function
function resolveWebpackURL(publicPath: string, ...paths: Array<string>): string { // This is a change in webpack v5. // See https://github.com/jantimon/html-webpack-plugin/pull/1516 if (publicPath === 'auto') { return paths.join(''); } else { return [publicPath, ...paths].join(''); } }
1,288,390
8449074edc64a586fc4877ada99d2c9d
swh:1:cnt:1d627bc5ade08357739838bee0fe475a635d7b6b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-33/
b4ec8a3e8d2a7ce12e51d30322e5a9350cbec11c
wlbdashboard
wmcs
node_modules/workbox-window/messageSW.js
messageSW
function
/** * Sends a data object to a service worker via `postMessage` and resolves with * a response (if any). * * A response can be set in a message handler in the service worker by * calling `event.ports[0].postMessage(...)`, which will resolve the promise * returned by `messageSW()`. If no response is set, the promi...
1,288,391
439ecfac91f96bd9f227554b47872284
swh:1:cnt:3fafc77e9e70b9f9b286f01bca7edf53459b7340;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-155/
571f11a43b7d5cef18c5d242a06f941c3ca7a61e
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.d.ts
Workbox
type
class Workbox extends WorkboxEventTarget { private readonly _scriptURL; private readonly _registerOptions; private _updateFoundCount; private readonly _swDeferred; private readonly _activeDeferred; private readonly _controllingDeferred; private _registrationTime; private _isUpdate?; ...
1,288,392
79fe7630a6ed4edb52ac9e9d80b65dd4
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-501/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox
type
/** * A class to aid in handling service worker registration, updates, and * reacting to service worker lifecycle events. * * @fires {@link workbox-window.Workbox#message} * @fires {@link workbox-window.Workbox#installed} * @fires {@link workbox-window.Workbox#waiting} * @fires {@link workbox-window.Workbox#cont...
1,288,393
b6f5eb1ab87da0bf942593bb616add7c
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-270/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::constructor
function
/** * Creates a new Workbox instance with a script URL and service worker * options. The script URL and options are the same as those used when * calling [navigator.serviceWorker.register(scriptURL, options)](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register). * *...
1,288,394
77fc58e4e4a3e735bc159dd915b83dbb
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=271-363/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::register
function
/** * Registers a service worker for this instances script URL and service * worker options. By default this method delays registration until after * the window has loaded. * * @param {Object} [options] * @param {Function} [options.immediate=false] Setting this to true will * regi...
1,288,395
d290f9841ec0886f01f66418b148be83
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=378-389/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::active
function
/** * Resolves to the service worker registered by this instance as soon as it * is active. If a service worker was already controlling at registration * time then it will resolve to that if the script URLs (and optionally * script versions) match, otherwise it will wait until an update is found ...
1,288,396
b7e1692f8a3d9d199d9f75657a7824b7
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=390-404/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::controlling
function
/** * Resolves to the service worker registered by this instance as soon as it * is controlling the page. If a service worker was already controlling at * registration time then it will resolve to that if the script URLs (and * optionally script versions) match, otherwise it will wait until an updat...
1,288,397
53aad3bae2bab799354adef154075586
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=364-377/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::update
function
/** * Checks for updates of the registered service worker. */ async update() { if (!this._registration) { if (process.env.NODE_ENV !== 'production') { logger.error('Cannot update a Workbox instance without ' + 'being registered. Register the Workbox ...
1,288,398
4d4eea34c405ae14d2c320e81d7c3549
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=405-426/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::getSW
function
/** * Resolves with a reference to a service worker that matches the script URL * of this instance, as soon as it's available. * * If, at registration time, there's already an active or waiting service * worker with a matching script URL, it will be used (with the waiting * service worker ...
1,288,399
63ce29536ce2e4233815d35e739dd3ba
swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=427-445/
0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f
wlbdashboard
wmcs
node_modules/workbox-window/Workbox.js
Workbox::messageSW
function
/** * Sends the passed data object to the service worker registered by this * instance (via {@link workbox-window.Workbox#getSW}) and resolves * with a response (if any). * * A response can be set in a message handler in the service worker by * calling `event.ports[0].postMessage(...)`, wh...