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,400 | 339275b3cec7d72336e2d165850fe26f | swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=446-457/ | 0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f | wlbdashboard | wmcs | node_modules/workbox-window/Workbox.js | Workbox::messageSkipWaiting | function | /**
* Sends a `{type: 'SKIP_WAITING'}` message to the service worker that's
* currently in the `waiting` state associated with the current registration.
*
* If there is no current registration or no service worker is `waiting`,
* calling this will have no effect.
*/
messageSkipWaiting(... |
1,288,401 | 138f950174ee0dc4f49f6dd82d5f758b | swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=458-474/ | 0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f | wlbdashboard | wmcs | node_modules/workbox-window/Workbox.js | Workbox::_getControllingSWIfCompatible | function | /**
* Checks for a service worker already controlling the page and returns
* it if its script URL matches.
*
* @private
* @return {ServiceWorker|undefined}
*/
_getControllingSWIfCompatible() {
const controller = navigator.serviceWorker.controller;
if (controller &&
... |
1,288,402 | f319f11dd7359f58267b5b5bb579c5b5 | swh:1:cnt:06fb687e23a18a6152de9c7d51b19ad055375102;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=475-500/ | 0fbfcedc4ee9213d06d7fae6dc6ce8279caf519f | wlbdashboard | wmcs | node_modules/workbox-window/Workbox.js | Workbox::_registerScript | function | /**
* Registers a service worker for this instances script URL and register
* options and tracks the time registration was complete.
*
* @private
*/
async _registerScript() {
try {
// this._scriptURL may be a TrustedScriptURL, but there's no support for
// pa... |
1,288,403 | 393a9993f2c655b4068589a8cecb50ad | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-45/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | messageSW | function | /*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* Sends a data object to a service worker via `postMessage` and resolves with
* a response (if any).... |
1,288,404 | 52a4df423e2151b047c09a3fe673a987 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-61/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _createClass | function | function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
} |
1,288,405 | 0068a08adc45df5ab3fe6b2a26e289aa | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-67/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _inheritsLoose | function | function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
} |
1,288,406 | 72bcb78fa6a6d6dd60f3b5318ac6aea4 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-76/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _unsupportedIterableToArray | function | function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Arra... |
1,288,407 | 0dc1a9782959217ff8bb4ea43d7a3a03 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-55/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _defineProperties | function | function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProper... |
1,288,408 | c0a3781507346b0729a82344b4b987f1 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-84/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _arrayLikeToArray | function | function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
} |
1,288,409 | fc8317abe7bfe5d18669dbf9654c69e8 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-109/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _createForOfIteratorHelperLoose | function | function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it;
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i ... |
1,288,410 | 56f442b7a255f4e5c8ad7b482ba2cc40 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-159/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | dontWaitFor | function | /*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* A helper function that prevents a promise from being flagged as unused.
*
* @private
**/
... |
1,288,411 | ac5b92807bcb5f10a62a02fff09106c9 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=258-260/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | WorkboxEventTarget | function | function WorkboxEventTarget() {
this._eventListenerRegistry = new Map();
} |
1,288,412 | e0225efd1d114166d04d9b0c4a6fc4e3 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=322-343/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | urlsMatch | function | /*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* Returns true if two URLs have the same `.href` property. The URLS can be
* relative, and if they a... |
1,288,413 | e1e66351cdbe9d441ab23e1a440f224e | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=426-675/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | Workbox | 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,414 | 613a11280b150e5e76bfbeabcb3bb62e | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=379-394/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _async | function | // The amount of time after a registration that we can reasonably conclude
// that the registration didn't trigger an update.
function _async(f) {
return function () {
for (var args = [], i = 0; i < arguments.length; i++) {
args[i] = arguments[i];
}
try {
retu... |
1,288,415 | 39cab496bc2e58bc0f14b1eb9f529b1e | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=978-986/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _invoke | function | function _invoke(body, then) {
var result = body();
if (result && result.then) {
return result.then(then);
}
return then(result);
} |
1,288,416 | a05786e6f98c8359c20bac1b14918bf8 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=396-399/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _empty | function | // The de facto standard message that a service worker should be listening for
// to trigger a call to skipWaiting().
function _empty() {} |
1,288,417 | 003d5d1ee179fc93e3017831856bc6ae | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=404-421/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _awaitIgnored | function | /**
* 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... |
1,288,418 | fd4a80a89efa49ed09ecd5b1b1c7c3d2 | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=364-377/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _await | function | // `skipWaiting()` wasn't called. This 200 amount wasn't scientifically
// chosen, but it seems to avoid false positives in my testing.
function _await(value, then, direct) {
if (direct) {
return then ? then(value) : value;
}
if (!value || !value.then) {
value = Promise.resol... |
1,288,419 | b7ba2e1cd9dc7a192c7450cdeaf7f31d | swh:1:cnt:3962f3676c57f5deecf177f3c74b2095793b2068;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=986-1124/ | 26eff21f43f8ad43827f720e6c783e18aeba7dbf | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.dev.umd.js | _catch | function | // The jsdoc comments below outline the events this instance may dispatch:
// -----------------------------------------------------------------------
/**
* The `message` event is dispatched any time a `postMessage` is received.
*
* @event workbox-window.Workbox#message
* @type {WorkboxEvent... |
1,288,420 | 46f028e2f69666f39ce145dd68959194 | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | t | function | function t(n,t){return new Promise((function(r){var e=new MessageChannel;e.port1.onmessage=function(n){r(n.data)},n.postMessage(t,[e.port2])}))} |
1,288,421 | 34844f0278661a54aa5cd32a42b3ca74 | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | i | function | function i(n,t){var r;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(r=function(n,t){if(n){if("string"==typeof n)return e(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r|... |
1,288,422 | 84cb764f6a2ff7f4c09dbf80931dd69e | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | e | function | function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e} |
1,288,423 | d64f90784873621cd38985292f71266f | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | u | function | function u(n,t){var r=location.href;return new URL(n,r).href===new URL(t,r).href} |
1,288,424 | 31d9e5bc3698d15b496b8d433813a919 | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | r | function | function r(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}} |
1,288,425 | 9f1d676038b66dc94f49268a2d923177 | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | c | function | function c(n,t,r){return r?t?t(n):n:(n&&n.then||(n=Promise.resolve(n)),t?n.then(t):n)} |
1,288,426 | b56d1acd1e0eeb97766ad972a02ca428 | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | f | function | function f(t,r){var e,i;return void 0===r&&(r={}),(e=n.call(this)||this).nn={},e.tn=0,e.rn=new o,e.en=new o,e.on=new o,e.un=0,e.an=new Set,e.cn=function(){var n=e.fn,t=n.installing;e.tn>0||!u(t.scriptURL,e.sn.toString())||performance.now()>e.un+6e4?(e.vn=t,n.removeEventListener("updatefound",e.cn)):(e.hn=t,e.an.add(t),... |
1,288,427 | c0452d8a8ff98e97cebc245fe6fc2dbc | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | v | function | function v(n,t){if(!t)return n&&n.then?n.then(f):Promise.resolve()} |
1,288,428 | d2014e2f73d803940743018655b3db7c | swh:1:cnt:42945f083c59914c17a8a7264c762bd1ad1046e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | f0c129e294abf31f3ba6a6eaaf9b7e473b3d51cb | wlbdashboard | wmcs | node_modules/workbox-window/build/workbox-window.prod.umd.js | n | function | function n(){this.Pn=new Map} |
1,288,429 | 0449b9f9fab18f93b0fa17a656730142 | swh:1:cnt:c4146e21c11434a75466a31263f94bd7798c82e6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-35/ | 8e69186903f5678793c526dbed3c31bd9d52252f | wlbdashboard | wmcs | node_modules/workbox-window/src/messageSW.ts | 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,430 | 4b93d2cda70962c14307a7cbaea01110 | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-613/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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,431 | 01fa46de46725e651ba1a1e2a29cc886 | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-88/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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).
*
* @param {s... |
1,288,432 | f3efb56a984f138bb436c1fc9b0a78d0 | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=259-273/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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 update
* i... |
1,288,433 | 27c17d4e63519e44354b212f9ec0430d | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-226/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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
* register the servi... |
1,288,434 | 698df5846016c8b5a211ccb5552e40dc | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=246-257/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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
* and ac... |
1,288,435 | 6e20612e8fd9ba6f9e43cb26ed191ec7 | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=228-244/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | Workbox::update | function | /**
* Checks for updates of the registered service worker.
*/
async update(): Promise<void> {
if (!this._registration) {
if (process.env.NODE_ENV !== 'production') {
logger.error(
'Cannot update a Workbox instance without ' +
'being registered. Register the Workbox instan... |
1,288,436 | ed66b408579a900da5678acba21724bf | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=275-296/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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 taking prece... |
1,288,437 | a179d22950e590dabf01c8db7c4391dd | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=298-316/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | 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(...)`, which will res... |
1,288,438 | 0e704d21037c04b1d31b87d48d06d90c | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=318-329/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | Workbox::messageSkipWaiting | function | /**
* Sends a `{type: 'SKIP_WAITING'}` message to the service worker that's
* currently in the `waiting` state associated with the current registration.
*
* If there is no current registration or no service worker is `waiting`,
* calling this will have no effect.
*/
messageSkipWaiting(): void {
... |
1,288,439 | 4de58171f87520be3303e922ce4ad6d2 | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=331-348/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | Workbox::_getControllingSWIfCompatible | function | /**
* Checks for a service worker already controlling the page and returns
* it if its script URL matches.
*
* @private
* @return {ServiceWorker|undefined}
*/
private _getControllingSWIfCompatible() {
const controller = navigator.serviceWorker.controller;
if (
controller &&
urlsM... |
1,288,440 | 70bbc2ede706eee69a129955408b3dfd | swh:1:cnt:b43baeef3221763e5aa5e304f8a9147db7d52ca4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=350-379/ | 917fc5e43174552944233b4f2b02ab5da83192c1 | wlbdashboard | wmcs | node_modules/workbox-window/src/Workbox.ts | Workbox::_registerScript | function | /**
* Registers a service worker for this instances script URL and register
* options and tracks the time registration was complete.
*
* @private
*/
private async _registerScript() {
try {
// this._scriptURL may be a TrustedScriptURL, but there's no support for
// passing that to regist... |
1,288,441 | c52eade3d38b52bdf47aa19eaad1d41e | swh:1:cnt:882011a90caad08ad013a3851fd225a73cd72688;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-23/ | 18a1c9d4a67ff37dc028a1ffce5de4c7b6d21a5d | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/urlsMatch.ts | urlsMatch | function | function urlsMatch(url1: string, url2: string): boolean {
const {href} = location;
return new URL(url1, href).href === new URL(url2, href).href;
} |
1,288,442 | 856ec72223e4727121cfecbfd44954ce | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-30/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxEvent | type | class WorkboxEvent<K extends keyof WorkboxEventMap> {
target?: WorkboxEventTarget;
sw?: ServiceWorker;
originalEvent?: Event;
isExternal?: boolean;
constructor(
public type: K,
props: Omit<WorkboxEventMap[K], 'target' | 'type'>,
) {
Object.assign(this, props);
}
} |
1,288,443 | 9e1d91de16ac81bb8be0ba45e0b10977 | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-36/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxMessageEvent | type | interface WorkboxMessageEvent extends WorkboxEvent<'message'> {
data: any;
originalEvent: Event;
ports: readonly MessagePort[];
} |
1,288,444 | f5b8e651549920bce2af690d60700824 | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-55/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxLifecycleEventMap | type | interface WorkboxLifecycleEventMap {
installing: WorkboxLifecycleEvent;
installed: WorkboxLifecycleEvent;
waiting: WorkboxLifecycleWaitingEvent;
activating: WorkboxLifecycleEvent;
activated: WorkboxLifecycleEvent;
controlling: WorkboxLifecycleEvent;
redundant: WorkboxLifecycleEvent;
} |
1,288,445 | efa5a53c5ceae169a97a4b79231e69ed | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-41/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxLifecycleEvent | type | interface WorkboxLifecycleEvent
extends WorkboxEvent<keyof WorkboxLifecycleEventMap> {
isUpdate?: boolean;
} |
1,288,446 | 84a4ec7558fbb5664066f5740f3f878f | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-45/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxLifecycleWaitingEvent | type | interface WorkboxLifecycleWaitingEvent extends WorkboxLifecycleEvent {
wasWaitingBeforeRegister?: boolean;
} |
1,288,447 | 06ab3b16d79045152f01b597851af998 | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-59/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxEventMap | type | interface WorkboxEventMap extends WorkboxLifecycleEventMap {
message: WorkboxMessageEvent;
} |
1,288,448 | f2d3bb8d27dba767db3d625f54a0f2d5 | swh:1:cnt:a038e2bbc20c55e7d66a0b45ca4b24639730e9c8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-29/ | 8f10ebdeef6b14172a6cd311e2aa40eab7cc207e | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEvent.ts | WorkboxEvent::constructor | function | constructor(
public type: K,
props: Omit<WorkboxEventMap[K], 'target' | 'type'>,
) {
Object.assign(this, props);
} |
1,288,449 | ee274f3182ce8bdedd4fc6cadeb75eb7 | swh:1:cnt:aa5c16e8c8b231701e4145d4a2753bc879f09a9a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-11/ | e1cf1ad6be543c48fe9a944cd7a5b84750cf9ced | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEventTarget.ts | ListenerCallback | type | type ListenerCallback = (event: WorkboxEvent<any>) => any; |
1,288,450 | c576701284fec88fe7dfc16ce5475feb | swh:1:cnt:aa5c16e8c8b231701e4145d4a2753bc879f09a9a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-77/ | e1cf1ad6be543c48fe9a944cd7a5b84750cf9ced | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEventTarget.ts | WorkboxEventTarget | type | class WorkboxEventTarget {
private readonly _eventListenerRegistry: Map<
keyof WorkboxEventMap,
Set<ListenerCallback>
> = new Map();
/**
* @param {string} type
* @param {Function} listener
* @private
*/
addEventListener<K extends keyof WorkboxEventMap>(
type: K,
listener: (event: Wo... |
1,288,451 | 2a10ac22bc14dbe13590f331ab576f10 | swh:1:cnt:aa5c16e8c8b231701e4145d4a2753bc879f09a9a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-36/ | e1cf1ad6be543c48fe9a944cd7a5b84750cf9ced | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEventTarget.ts | WorkboxEventTarget::addEventListener | function | /**
* @param {string} type
* @param {Function} listener
* @private
*/
addEventListener<K extends keyof WorkboxEventMap>(
type: K,
listener: (event: WorkboxEventMap[K]) => any,
): void {
const foo = this._getEventListenersByType(type);
foo.add(listener as ListenerCallback);
} |
1,288,452 | 76219e9c4782c348c4003fd3db61603e | swh:1:cnt:aa5c16e8c8b231701e4145d4a2753bc879f09a9a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-61/ | e1cf1ad6be543c48fe9a944cd7a5b84750cf9ced | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEventTarget.ts | WorkboxEventTarget::dispatchEvent | function | /**
* @param {Object} event
* @private
*/
dispatchEvent(event: WorkboxEvent<any>): void {
event.target = this;
const listeners = this._getEventListenersByType(event.type);
for (const listener of listeners) {
listener(event);
}
} |
1,288,453 | e54449abd35ad66419d64ef9c25517e3 | swh:1:cnt:aa5c16e8c8b231701e4145d4a2753bc879f09a9a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-76/ | e1cf1ad6be543c48fe9a944cd7a5b84750cf9ced | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEventTarget.ts | WorkboxEventTarget::_getEventListenersByType | function | /**
* Returns a Set of listeners associated with the passed event type.
* If no handlers have been registered, an empty Set is returned.
*
* @param {string} type The event type.
* @return {Set<ListenerCallback>} An array of handler functions.
* @private
*/
private _getEventListenersByType(type: k... |
1,288,454 | 6b0e7e75d283d6f8a4a58238483046ce | swh:1:cnt:aa5c16e8c8b231701e4145d4a2753bc879f09a9a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-48/ | e1cf1ad6be543c48fe9a944cd7a5b84750cf9ced | wlbdashboard | wmcs | node_modules/workbox-window/src/utils/WorkboxEventTarget.ts | WorkboxEventTarget::removeEventListener | function | /**
* @param {string} type
* @param {Function} listener
* @private
*/
removeEventListener<K extends keyof WorkboxEventMap>(
type: K,
listener: (event: WorkboxEventMap[K]) => any,
): void {
this._getEventListenersByType(type).delete(listener as ListenerCallback);
} |
1,288,455 | 160c74a68c6b2e4a7ea9cbfb646e25dc | swh:1:cnt:002447165aab348c2eb8290378e44d538accafb8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-21/ | 185416c0c3d13bc39deec526d746f961ae106b71 | wlbdashboard | wmcs | node_modules/workbox-window/utils/urlsMatch.js | urlsMatch | function | function urlsMatch(url1, url2) {
const { href } = location;
return new URL(url1, href).href === new URL(url2, href).href;
} |
1,288,456 | 39964fb0efd94d55b66eaff4567ac3db | swh:1:cnt:caf301fb75c2b017c4a802eb5a3dea29e3ade6e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-16/ | c9d0bdecac86dcb327bc296e37b15b7805a1b21b | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.d.ts | WorkboxEvent | type | class WorkboxEvent<K extends keyof WorkboxEventMap> {
type: K;
target?: WorkboxEventTarget;
sw?: ServiceWorker;
originalEvent?: Event;
isExternal?: boolean;
constructor(type: K, props: Omit<WorkboxEventMap[K], 'target' | 'type'>);
} |
1,288,457 | 4e99ee901891d01e67dd301921b16dff | swh:1:cnt:caf301fb75c2b017c4a802eb5a3dea29e3ade6e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-27/ | c9d0bdecac86dcb327bc296e37b15b7805a1b21b | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.d.ts | WorkboxLifecycleWaitingEvent | type | interface WorkboxLifecycleWaitingEvent extends WorkboxLifecycleEvent {
wasWaitingBeforeRegister?: boolean;
} |
1,288,458 | 1bbe7940ff804bc03a39af32ec106bbb | swh:1:cnt:caf301fb75c2b017c4a802eb5a3dea29e3ade6e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-21/ | c9d0bdecac86dcb327bc296e37b15b7805a1b21b | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.d.ts | WorkboxMessageEvent | type | interface WorkboxMessageEvent extends WorkboxEvent<'message'> {
data: any;
originalEvent: Event;
ports: readonly MessagePort[];
} |
1,288,459 | be044c4fbaad0f27d8a72b14754905c8 | swh:1:cnt:caf301fb75c2b017c4a802eb5a3dea29e3ade6e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-24/ | c9d0bdecac86dcb327bc296e37b15b7805a1b21b | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.d.ts | WorkboxLifecycleEvent | type | interface WorkboxLifecycleEvent extends WorkboxEvent<keyof WorkboxLifecycleEventMap> {
isUpdate?: boolean;
} |
1,288,460 | 41b4ceb96d14e8e2fb60a3b3cebbd8b6 | swh:1:cnt:caf301fb75c2b017c4a802eb5a3dea29e3ade6e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-36/ | c9d0bdecac86dcb327bc296e37b15b7805a1b21b | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.d.ts | WorkboxLifecycleEventMap | type | interface WorkboxLifecycleEventMap {
installing: WorkboxLifecycleEvent;
installed: WorkboxLifecycleEvent;
waiting: WorkboxLifecycleWaitingEvent;
activating: WorkboxLifecycleEvent;
activated: WorkboxLifecycleEvent;
controlling: WorkboxLifecycleEvent;
redundant: WorkboxLifecycleEvent;
} |
1,288,461 | 3010802b5cd76619657051293988bcb3 | swh:1:cnt:caf301fb75c2b017c4a802eb5a3dea29e3ade6e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-39/ | c9d0bdecac86dcb327bc296e37b15b7805a1b21b | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.d.ts | WorkboxEventMap | type | interface WorkboxEventMap extends WorkboxLifecycleEventMap {
message: WorkboxMessageEvent;
} |
1,288,462 | b5572caeba4ede78a655b5a919d02096 | swh:1:cnt:e0dbe1a3dbca1567a007a22ae42f94f07f834ce6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-20/ | 3956ea16093f6758548d878fc061c2cb0e03d9a7 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.js | WorkboxEvent | type | class WorkboxEvent {
constructor(type, props) {
this.type = type;
Object.assign(this, props);
}
} |
1,288,463 | 9a232c38069a97bdabb4229be9d4ee16 | swh:1:cnt:e0dbe1a3dbca1567a007a22ae42f94f07f834ce6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-19/ | 3956ea16093f6758548d878fc061c2cb0e03d9a7 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEvent.js | WorkboxEvent::constructor | function | constructor(type, props) {
this.type = type;
Object.assign(this, props);
} |
1,288,464 | ee274f3182ce8bdedd4fc6cadeb75eb7 | swh:1:cnt:1724ea28ab3c2c8c7cdc974188cddbfc3b50bc11;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-2/ | d6a3b4079dbd0e0f0a97adaacbd66593ece75c32 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.d.ts | ListenerCallback | type | type ListenerCallback = (event: WorkboxEvent<any>) => any; |
1,288,465 | 80e2e925dfd11f572824b8a6db700706 | swh:1:cnt:1724ea28ab3c2c8c7cdc974188cddbfc3b50bc11;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-37/ | d6a3b4079dbd0e0f0a97adaacbd66593ece75c32 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.d.ts | WorkboxEventTarget | type | class WorkboxEventTarget {
private readonly _eventListenerRegistry;
/**
* @param {string} type
* @param {Function} listener
* @private
*/
addEventListener<K extends keyof WorkboxEventMap>(type: K, listener: (event: WorkboxEventMap[K]) => any): void;
/**
* @param {string} type
... |
1,288,466 | 4fc1cd023da941696684b40d9acb80b5 | swh:1:cnt:73e6fe233e86dd370be08e472e451b4bae2864fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-60/ | b0eb5f282479a70b2f52debff52ef25ff43c4ac3 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.js | WorkboxEventTarget | type | class WorkboxEventTarget {
constructor() {
this._eventListenerRegistry = new Map();
}
/**
* @param {string} type
* @param {Function} listener
* @private
*/
addEventListener(type, listener) {
const foo = this._getEventListenersByType(type);
foo.add(listener);
... |
1,288,467 | eef652a80f83b6bdde197d7d15da554e | swh:1:cnt:73e6fe233e86dd370be08e472e451b4bae2864fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-17/ | b0eb5f282479a70b2f52debff52ef25ff43c4ac3 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.js | WorkboxEventTarget::constructor | function | constructor() {
this._eventListenerRegistry = new Map();
} |
1,288,468 | 8b70dedf09e8b526b682b2272edc31ae | swh:1:cnt:73e6fe233e86dd370be08e472e451b4bae2864fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-59/ | b0eb5f282479a70b2f52debff52ef25ff43c4ac3 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.js | WorkboxEventTarget::_getEventListenersByType | function | /**
* Returns a Set of listeners associated with the passed event type.
* If no handlers have been registered, an empty Set is returned.
*
* @param {string} type The event type.
* @return {Set<ListenerCallback>} An array of handler functions.
* @private
*/
_getEventListenersByType... |
1,288,469 | 0d3eadbf46ea972ee252067236cf655c | swh:1:cnt:73e6fe233e86dd370be08e472e451b4bae2864fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-34/ | b0eb5f282479a70b2f52debff52ef25ff43c4ac3 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.js | WorkboxEventTarget::removeEventListener | function | /**
* @param {string} type
* @param {Function} listener
* @private
*/
removeEventListener(type, listener) {
this._getEventListenersByType(type).delete(listener);
} |
1,288,470 | e4b0c0ad848e79cfe957871a8ab0e9f1 | swh:1:cnt:73e6fe233e86dd370be08e472e451b4bae2864fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-26/ | b0eb5f282479a70b2f52debff52ef25ff43c4ac3 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.js | WorkboxEventTarget::addEventListener | function | /**
* @param {string} type
* @param {Function} listener
* @private
*/
addEventListener(type, listener) {
const foo = this._getEventListenersByType(type);
foo.add(listener);
} |
1,288,471 | ffb9186d9bb7e64c62faa61d7a27513d | swh:1:cnt:73e6fe233e86dd370be08e472e451b4bae2864fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-45/ | b0eb5f282479a70b2f52debff52ef25ff43c4ac3 | wlbdashboard | wmcs | node_modules/workbox-window/utils/WorkboxEventTarget.js | WorkboxEventTarget::dispatchEvent | function | /**
* @param {Object} event
* @private
*/
dispatchEvent(event) {
event.target = this;
const listeners = this._getEventListenersByType(event.type);
for (const listener of listeners) {
listener(event);
}
} |
1,288,472 | 69f36722e03d5640ec9bd50b2553275d | swh:1:cnt:bb7e7d6fcf70fdff4c5a48b7fa2ae3c9ba36fe47;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-33/ | e0201c2729f744b0e05d54dca899fdfa538136d3 | wlbdashboard | wmcs | node_modules/wrappy/wrappy.js | wrappy | function | function wrappy (fn, cb) {
if (fn && cb) return wrappy(fn)(cb)
if (typeof fn !== 'function')
throw new TypeError('need wrapper function')
Object.keys(fn).forEach(function (k) {
wrapper[k] = fn[k]
})
return wrapper
function wrapper() {
var args = new Array(arguments.length)
for (var i = 0... |
1,288,473 | 93a0db2b661cc2ad13a97e54766d6490 | swh:1:cnt:bb7e7d6fcf70fdff4c5a48b7fa2ae3c9ba36fe47;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-32/ | e0201c2729f744b0e05d54dca899fdfa538136d3 | wlbdashboard | wmcs | node_modules/wrappy/wrappy.js | wrappy::wrapper | function | function wrapper() {
var args = new Array(arguments.length)
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i]
}
var ret = fn.apply(this, args)
var cb = args[args.length-1]
if (typeof ret === 'function' && ret !== cb) {
Object.keys(cb).forEach(function (k) {
ret[k... |
1,288,474 | 634296424cd816d982c2b0d836ba1e12 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-38/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | getTmpname | function | function getTmpname (filename) {
return filename + '.' +
MurmurHash3(__filename)
.hash(String(process.pid))
.hash(String(threadId))
.hash(String(++invocations))
.result()
} |
1,288,475 | d24d945f38f08eadaf133ea7eccd7dd2 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-56/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | serializeActiveFile | function | function serializeActiveFile (absoluteName) {
return new Promise(resolve => {
// make a queue if it doesn't already exist
if (!activeFiles[absoluteName]) activeFiles[absoluteName] = []
activeFiles[absoluteName].push(resolve) // add this job to the queue
if (activeFiles[absoluteName].length === 1) res... |
1,288,476 | be9e8d1e23ed8347cc860a2b9cb68e20 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-72/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | isChownErrOk | function | // https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
function isChownErrOk (err) {
if (err.code === 'ENOSYS') {
return true
}
const nonroot = !process.getuid || process.getuid() !== 0
if (nonroot) {
if (err.code === 'EINVAL' || err.code === 'EPERM') {
return true
}... |
1,288,477 | 88bda0184fc785469c8efc670f0646e6 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-46/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | cleanupOnExit | function | function cleanupOnExit (tmpfile) {
return () => {
try {
fs.unlinkSync(typeof tmpfile === 'function' ? tmpfile() : tmpfile)
} catch (_) {}
}
} |
1,288,478 | d902edb0c9a82de3a39f9c0954f84ff0 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-156/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | writeFileAsync | function | async function writeFileAsync (filename, data, options = {}) {
if (typeof options === 'string') {
options = { encoding: options }
}
let fd
let tmpfile
/* istanbul ignore next -- The closure only gets called when onExit triggers */
const removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile))
const... |
1,288,479 | 5b5e804d5eff90668209ee9ec8995f19 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=158-170/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | writeFile | function | function writeFile (filename, data, options, callback) {
if (options instanceof Function) {
callback = options
options = {}
}
const promise = writeFileAsync(filename, data, options)
if (callback) {
promise.then(callback, callback)
}
return promise
} |
1,288,480 | fbd72e4d0b6e1e9ad6dc29c048208000 | swh:1:cnt:df5b72a14f74a4b7e25733982a2cf5b7e086f1c9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=172-259/ | f705a0a6a61f1fc944776ca77849723de2b19732 | wlbdashboard | wmcs | node_modules/write-file-atomic/index.js | writeFileSync | function | function writeFileSync (filename, data, options) {
if (typeof options === 'string') options = { encoding: options }
else if (!options) options = {}
try {
filename = fs.realpathSync(filename)
} catch (ex) {
// it's ok, it'll happen on a not yet existing file
}
const tmpfile = getTmpname(filename)
... |
1,288,481 | 5a2c3b421b20d037696e5dcf28558286 | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-29/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | concat | function | /**
* Merges an array of buffers into a new buffer.
*
* @param {Buffer[]} list The array of buffers to concat
* @param {Number} totalLength The total length of buffers in the list
* @return {Buffer} The resulting buffer
* @public
*/
function concat(list, totalLength) {
if (list.length === 0) return EMPTY_BUFFE... |
1,288,482 | e1f965666e6c5e29b038e8442ecfd9df | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-45/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | _mask | function | /**
* Masks a buffer using the given mask.
*
* @param {Buffer} source The buffer to mask
* @param {Buffer} mask The mask to use
* @param {Buffer} output The buffer where to store the result
* @param {Number} offset The offset at which to start writing
* @param {Number} length The number of bytes to mask.
* @pub... |
1,288,483 | f5c177caab4386039f8376eafaeffdc8 | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-75/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | toArrayBuffer | function | /**
* Converts a buffer to an `ArrayBuffer`.
*
* @param {Buffer} buf The buffer to convert
* @return {ArrayBuffer} Converted buffer
* @public
*/
function toArrayBuffer(buf) {
if (buf.byteLength === buf.buffer.byteLength) {
return buf.buffer;
}
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + bu... |
1,288,484 | afa79b8c82dd971062bb858b1573d439 | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-102/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | toBuffer | function | /**
* Converts `data` to a `Buffer`.
*
* @param {*} data The data to convert
* @return {Buffer} The buffer
* @throws {TypeError}
* @public
*/
function toBuffer(data) {
toBuffer.readOnly = true;
if (Buffer.isBuffer(data)) return data;
let buf;
if (data instanceof ArrayBuffer) {
buf = Buffer.from(da... |
1,288,485 | 01cf2736dc5e51668f97494e74e77b25 | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-60/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | _unmask | function | /**
* Unmasks a buffer using the given mask.
*
* @param {Buffer} buffer The buffer to unmask
* @param {Buffer} mask The mask to use
* @public
*/
function _unmask(buffer, mask) {
// Required until https://github.com/nodejs/node/issues/9006 is resolved.
const length = buffer.length;
for (let i = 0; i < length... |
1,288,486 | 5cec6236bd9464e3c41eded51fe05687 | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-113/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | mask | function | mask(source, mask, output, offset, length) {
if (length < 48) _mask(source, mask, output, offset, length);
else bu.mask(source, mask, output, offset, length);
} |
1,288,487 | e90e7d4c877c62f64c76b4d37de14c5f | swh:1:cnt:6fd84c311746cd71b602a17c46ddc68541368d0b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=116-119/ | 802d87776c9857da0dab5e6d1d7766492fb6accc | wlbdashboard | wmcs | node_modules/ws/lib/buffer-util.js | unmask | function | unmask(buffer, mask) {
if (buffer.length < 32) _unmask(buffer, mask);
else bu.unmask(buffer, mask);
} |
1,288,488 | f3d380f5cc9551af6c5a7e1fe3aa3933 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-20/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | Event | type | /**
* Class representing an event.
*
* @private
*/
class Event {
/**
* Create a new `Event`.
*
* @param {String} type The name of the event
* @param {Object} target A reference to the target to which the event was
* dispatched
*/
constructor(type, target) {
this.target = target;
th... |
1,288,489 | 142534a2ef627a3cde4f93c06296361a | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-67/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | CloseEvent | type | /**
* Class representing a close event.
*
* @extends Event
* @private
*/
class CloseEvent extends Event {
/**
* Create a new `CloseEvent`.
*
* @param {Number} code The status code explaining why the connection is being
* closed
* @param {String} reason A human-readable string explaining why th... |
1,288,490 | 52782df44c599259f798e8ee2eb61b5e | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=87-107/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | ErrorEvent | type | /**
* Class representing an error event.
*
* @extends Event
* @private
*/
class ErrorEvent extends Event {
/**
* Create a new `ErrorEvent`.
*
* @param {Object} error The error that generated this event
* @param {WebSocket} target A reference to the target to which the event was
* dispatched
... |
1,288,491 | db88c9f0e223ee31ee1f856dac339a97 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-41/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | MessageEvent | type | /**
* Class representing a message event.
*
* @extends Event
* @private
*/
class MessageEvent extends Event {
/**
* Create a new `MessageEvent`.
*
* @param {(String|Buffer|ArrayBuffer|Buffer[])} data The received data
* @param {WebSocket} target A reference to the target to which the event was
* ... |
1,288,492 | 3977e51720602b6b2622a67b7a28eb62 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-85/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | OpenEvent | type | /**
* Class representing an open event.
*
* @extends Event
* @private
*/
class OpenEvent extends Event {
/**
* Create a new `OpenEvent`.
*
* @param {WebSocket} target A reference to the target to which the event was
* dispatched
*/
constructor(target) {
super('open', target);
}
} |
1,288,493 | a773966818683ffc92f19c4a0cb4e999 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-19/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | Event::constructor | function | /**
* Create a new `Event`.
*
* @param {String} type The name of the event
* @param {Object} target A reference to the target to which the event was
* dispatched
*/
constructor(type, target) {
this.target = target;
this.type = type;
} |
1,288,494 | b2d36a3ebfa850adec74d0428860e965 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-40/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | MessageEvent::constructor | function | /**
* Create a new `MessageEvent`.
*
* @param {(String|Buffer|ArrayBuffer|Buffer[])} data The received data
* @param {WebSocket} target A reference to the target to which the event was
* dispatched
*/
constructor(data, target) {
super('message', target);
this.data = data;
} |
1,288,495 | a3492e3650d4353f9b87de37221cc493 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-84/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | OpenEvent::constructor | function | /**
* Create a new `OpenEvent`.
*
* @param {WebSocket} target A reference to the target to which the event was
* dispatched
*/
constructor(target) {
super('open', target);
} |
1,288,496 | 84bb4498ad124a380c397d024b1ef8ca | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-66/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | CloseEvent::constructor | function | /**
* Create a new `CloseEvent`.
*
* @param {Number} code The status code explaining why the connection is being
* closed
* @param {String} reason A human-readable string explaining why the
* connection is closing
* @param {WebSocket} target A reference to the target to which the event was
... |
1,288,497 | 7c159ad5a5420a75a2bfb8d1d8203d80 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-106/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | ErrorEvent::constructor | function | /**
* Create a new `ErrorEvent`.
*
* @param {Object} error The error that generated this event
* @param {WebSocket} target A reference to the target to which the event was
* dispatched
*/
constructor(error, target) {
super('error', target);
this.message = error.message;
this.error =... |
1,288,498 | 9d19c367d40d3cb2a8b250b22643cfde | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=131-133/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | addEventListener::onMessage | function | function onMessage(data) {
listener.call(this, new MessageEvent(data, this));
} |
1,288,499 | 64289d684aaa72c6bd07b663eb549cc3 | swh:1:cnt:a6fbe72b7b12370f056e2dc8e8ccd93bf7fce24e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-137/ | 7921674b0b03c74e28c26fdd1b65c6d49c1b8769 | wlbdashboard | wmcs | node_modules/ws/lib/event-target.js | addEventListener::onClose | function | function onClose(code, message) {
listener.call(this, new CloseEvent(code, message, this));
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.