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,284,900 | ae703f6caad664caecebd4e38bcabaf9 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=242-272/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | getMethod | function | function getMethod(target, prop) {
if (!(target instanceof IDBDatabase && !(prop in target) && typeof prop === 'string')) {
return;
}
if (cachedMethods.get(prop)) return cachedMethods.get(prop);
const targetFuncName = prop.replace(/FromIndex$/, '');
const useIndex = prop !== targetFuncName;
... |
1,284,901 | 6f36c0d769a71790e80c1b10b456ac1a | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=564-574/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::getAll | function | /**
* Returns all entries in the store matching the `queueName`.
*
* @param {Object} options See {@link workbox-background-sync.Queue~getAll}
* @return {Promise<Array<Object>>}
*/
async getAll() {
return await this._queueDb.getAllEntriesByQueueName(this._queueName);
} |
1,284,902 | 18825ba3e77a98820043e0f6de04623f | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=586-600/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::deleteEntry | function | /**
* Deletes the entry for the given ID.
*
* WARNING: this method does not ensure the deleted entry belongs to this
* queue (i.e. matches the `queueName`). But this limitation is acceptable
* as this class is not publicly exposed. An additional check would make
* this method slower than i... |
1,284,903 | 5fbb9f8d91d8c2b8bc9e9e528563c7a6 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=918-929/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::popRequest | function | /**
* Removes and returns the last request in the queue (along with its
* timestamp and any metadata). The returned object takes the form:
* `{request, timestamp, metadata}`.
*
* @return {Promise<QueueEntry | undefined>}
*/
async popRequest() {
return this._removeRequest('pop')... |
1,284,904 | 1c02d7bd16cceb009b436850f6635437 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=969-979/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::size | function | /**
* Returns the number of entries present in the queue.
* Note that expired entries (per `maxRetentionTime`) are also included in this count.
*
* @return {Promise<number>}
*/
async size() {
return await this._queueStore.size();
} |
1,284,905 | 3f161429a6c15ac30d5223aaacaf2bd2 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=601-616/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::_removeEntry | function | /**
* Removes and returns the first or last entry in the queue (based on the
* `direction` argument) matching the `queueName`.
*
* @return {Promise<QueueStoreEntry|undefined>}
* @private
*/
async _removeEntry(entry) {
if (entry) {
await this.deleteEntry(entry.id);
... |
1,284,906 | 2e9a22a09b872d9eb5ace655c529380c | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=789-837/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::constructor | function | /**
* Creates an instance of Queue with the given options
*
* @param {string} name The unique name for this queue. This name must be
* unique as it's used to register sync events and store requests
* in IndexedDB specific to this instance. An error will be thrown if
* a duplica... |
1,284,907 | fc87ad7cd8653bc81b8e7c7d93ce0dc3 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=980-1029/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::_addRequest | function | /**
* Adds the entry to the QueueStore and registers for a sync event.
*
* @param {Object} entry
* @param {Request} entry.request
* @param {Object} [entry.metadata]
* @param {number} [entry.timestamp=Date.now()]
* @param {string} operation ('push' or 'unshift')
* @private
*/... |
1,284,908 | 1a7b4a9828b09f1c943e916acf4a5cf3 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1121-1184/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::_addSyncListener | function | /**
* In sync-supporting browsers, this adds a listener for the sync event.
* In non-sync-supporting browsers, or if _forceSyncFallback is true, this
* will retry the queue on service worker startup.
*
* @private
*/
_addSyncListener() {
// See https://github.com/GoogleChrome/wo... |
1,284,909 | 225fecfc13a06ae94945da1a2cc44bf6 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=177-185/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | transformCachableValue | function | function transformCachableValue(value) {
if (typeof value === 'function') return wrapFunction(value); // This doesn't return, it just creates a 'done' promise for the transaction,
// which is later returned for transaction.done (see idbObjectHandler).
if (value instanceof IDBTransaction) cacheDonePromiseFo... |
1,284,910 | ce4f940781a842d9cf2221944394fa8c | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-203/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | wrap | function | function wrap(value) {
// We sometimes generate multiple promises from a single IDBRequest (eg when cursoring), because
// IDB is weird and a single IDBRequest can yield many responses, so these can't be cached.
if (value instanceof IDBRequest) return promisifyRequest(value); // If we've already transformed... |
1,284,911 | b0f62739d4e2afd821ba51c2623d7fbc | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=333-345/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getAllEntriesByQueueName | function | /**
* Get all the entries filtered by index
*
* @param queueName
* @return {Promise<QueueStoreEntry[]>}
*/
async getAllEntriesByQueueName(queueName) {
const db = await this.getDb();
const results = await db.getAllFromIndex(REQUEST_OBJECT_STORE_NAME, QUEUE_NAME_INDEX, IDBKeyRan... |
1,284,912 | bca1d2f6b6413916fb36b3c2b330c8a3 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=358-368/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::deleteEntry | function | /**
* Deletes a single entry by id.
*
* @param {number} id the id of the entry to be deleted
*/
async deleteEntry(id) {
const db = await this.getDb();
await db.delete(REQUEST_OBJECT_STORE_NAME, id);
} |
1,284,913 | 51bbf55801adc29bbfe8896c21358b21 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=379-388/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getLastEntryByQueueName | function | /**
*
* @param queueName
* @returns {Promise<QueueStoreEntry | undefined>}
*/
async getLastEntryByQueueName(queueName) {
return await this.getEndEntryFromIndex(IDBKeyRange.only(queueName), 'prev');
} |
1,284,914 | 5d865e20a5d163e0125cac5a0b74d430 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=464-473/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::constructor | function | /**
* Associates this instance with a Queue instance, so entries added can be
* identified by their queue name.
*
* @param {string} queueName
*/
constructor(queueName) {
this._queueName = queueName;
this._queueDb = new QueueDb();
} |
1,284,915 | cfc54d0f4463333cfa40033d12738594 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=474-504/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::pushEntry | function | /**
* Append an entry last in the queue.
*
* @param {Object} entry
* @param {Object} entry.requestData
* @param {number} [entry.timestamp]
* @param {Object} [entry.metadata]
*/
async pushEntry(entry) {
{
assert_js.assert.isType(entry, 'object', {
moduleNa... |
1,284,916 | 11c4341794fce0faa660a903579002ca | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=505-543/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::unshiftEntry | function | /**
* Prepend an entry first in the queue.
*
* @param {Object} entry
* @param {Object} entry.requestData
* @param {number} [entry.timestamp]
* @param {Object} [entry.metadata]
*/
async unshiftEntry(entry) {
{
assert_js.assert.isType(entry, 'object', {
mod... |
1,284,917 | 96cec45f604ca14bbcded51c5963b41a | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=575-585/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::size | function | /**
* Returns the number of entries in the store matching the `queueName`.
*
* @param {Object} options See {@link workbox-background-sync.Queue~size}
* @return {Promise<number>}
*/
async size() {
return await this._queueDb.getEntryCountByQueueName(this._queueName);
} |
1,284,918 | 6ac6842d7fcbf23094b6d75f23cb7e01 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=706-722/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | StorableRequest::toObject | function | /**
* Returns a deep clone of the instances `_requestData` object.
*
* @return {Object}
*/
toObject() {
const requestData = Object.assign({}, this._requestData);
requestData.headers = Object.assign({}, this._requestData.headers);
if (requestData.body) {
requestData.b... |
1,284,919 | 82bfc3a7f151416d6f4251a1d17369f3 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=838-845/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::name | function | /**
* @return {string}
*/
get name() {
return this._name;
} |
1,284,920 | bc25deb7fd4e487e1e248bb876c6a752 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=846-881/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::pushRequest | function | /**
* Stores the passed request in IndexedDB (with its timestamp and any
* metadata) at the end of the queue.
*
* @param {QueueEntry} entry
* @param {Request} entry.request The request to store in the queue.
* @param {Object} [entry.metadata] Any metadata you want associated with the
... |
1,284,921 | 40e19aa863d446458c105e6841ae787f | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=930-941/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::shiftRequest | function | /**
* Removes and returns the first request in the queue (along with its
* timestamp and any metadata). The returned object takes the form:
* `{request, timestamp, metadata}`.
*
* @return {Promise<QueueEntry | undefined>}
*/
async shiftRequest() {
return this._removeRequest('sh... |
1,284,922 | 1615b90e9c818e4b2ba2e5854224e697 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1068-1101/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::replayRequests | function | /**
* Loops through each request in the queue and attempts to re-fetch it.
* If any request fails to re-fetch, it's put back in the same position in
* the queue (which registers a retry for the next sync event).
*/
async replayRequests() {
let entry;
while (entry = await this.shif... |
1,284,923 | c0636b20e0c2e1d0f5d92565395aa4ae | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1185-1197/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::_queueNames | function | /**
* Returns the set of queue names. This is primarily used to reset the list
* of queue names in tests.
*
* @return {Set<string>}
*
* @private
*/
static get _queueNames() {
return queueNames;
} |
1,284,924 | f56e7659f9ed53a87b8caa1cbc58e5fe | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=723-732/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | StorableRequest::toRequest | function | /**
* Converts this instance to a Request.
*
* @return {Request}
*/
toRequest() {
return new Request(this._requestData.url, this._requestData);
} |
1,284,925 | 4b5abb66a6a611aaebf967b2bf63470a | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-30/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | getIdbProxyableTypes | function | // This is a function to prevent it throwing up in node environments.
function getIdbProxyableTypes() {
return idbProxyableTypes || (idbProxyableTypes = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction]);
} // This is a function to prevent it throwing up in node environments. |
1,284,926 | 0efa69042bb3040bc3ad2d64b2d0f992 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-75/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | promisifyRequest | function | function promisifyRequest(request) {
const promise = new Promise((resolve, reject) => {
const unlisten = () => {
request.removeEventListener('success', success);
request.removeEventListener('error', error);
};
const success = () => {
resolve(wrap(request.result));
... |
1,284,927 | 16e9d653b6535f481232e56ecbb704d6 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-35/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | getCursorAdvanceMethods | function | function getCursorAdvanceMethods() {
return cursorAdvanceMethods || (cursorAdvanceMethods = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey]);
} |
1,284,928 | 9e4e4bac5b9a668ad87db8a9c30dc8ac | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-142/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | replaceTraps | function | function replaceTraps(callback) {
idbProxyTraps = callback(idbProxyTraps);
} |
1,284,929 | 8d0771d62c11be0171db1c37aaafcb40 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-175/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | wrapFunction | function | function wrapFunction(func) {
// Due to expected object equality (which is enforced by the caching in `wrap`), we
// only create one new func per func.
// Edge doesn't support objectStoreNames (booo), so we polyfill it here.
if (func === IDBDatabase.prototype.transaction && !('objectStoreNames' in IDBTr... |
1,284,930 | 103257704c825ff8cd7fb99b691bea0b | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=306-320/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::addEntry | function | /**
* Add QueueStoreEntry to underlying db.
*
* @param {UnidentifiedQueueStoreEntry} entry
*/
async addEntry(entry) {
const db = await this.getDb();
const tx = db.transaction(REQUEST_OBJECT_STORE_NAME, 'readwrite', {
durability: 'relaxed'
});
await tx.store.add(... |
1,284,931 | e46a0e3d375f711c1085a2bb1a7ad4c0 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=346-357/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getEntryCountByQueueName | function | /**
* Returns the number of entries filtered by index
*
* @param queueName
* @return {Promise<number>}
*/
async getEntryCountByQueueName(queueName) {
const db = await this.getDb();
return db.countFromIndex(REQUEST_OBJECT_STORE_NAME, QUEUE_NAME_INDEX, IDBKeyRange.only(queueName... |
1,284,932 | a551951e737044886cd7e9d6b2521b5d | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=207-236/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | openDB | function | /**
* Open a database.
*
* @param name Name of the database.
* @param version Schema version.
* @param callbacks Additional callbacks.
*/
function openDB(name, version, {
blocked,
upgrade,
blocking,
terminated
} = {}) {
const request = indexedDB.open(name, version);
const ... |
1,284,933 | 8f95790b97576e7193cc61e80d8aa546 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=389-404/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getEndEntryFromIndex | function | /**
* Returns either the first or the last entries, depending on direction.
* Filtered by index.
*
* @param {IDBCursorDirection} direction
* @param {IDBKeyRange} query
* @return {Promise<QueueStoreEntry | undefined>}
* @private
*/
async getEndEntryFromIndex(query, direction... |
1,284,934 | 5656af72fa7f41ab0a3c799605cccb4c | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=421-444/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::_upgradeDb | function | /**
* Upgrades QueueDB
*
* @param {IDBPDatabase<QueueDBSchema>} db
* @param {number} oldVersion
* @private
*/
_upgradeDb(db, oldVersion) {
if (oldVersion > 0 && oldVersion < DB_VERSION) {
if (db.objectStoreNames.contains(REQUEST_OBJECT_STORE_NAME)) {
db.delete... |
1,284,935 | dce6bd9f5a37d4da905ba88f0271061f | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=882-917/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::unshiftRequest | function | /**
* Stores the passed request in IndexedDB (with its timestamp and any
* metadata) at the beginning of the queue.
*
* @param {QueueEntry} entry
* @param {Request} entry.request The request to store in the queue.
* @param {Object} [entry.metadata] Any metadata you want associated with the... |
1,284,936 | 4a157a7d1273a519ead7275d964fdb23 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=637-671/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | StorableRequest::fromRequest | function | /**
* Converts a Request object to a plain object that can be structured
* cloned or JSON-stringified.
*
* @param {Request} request
* @return {Promise<StorableRequest>}
*/
static async fromRequest(request) {
const requestData = {
url: request.url,
headers: {}
... |
1,284,937 | 272208a9e69f3e1cb8624b0144672152 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=672-705/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | StorableRequest::constructor | function | /**
* Accepts an object of request data that can be used to construct a
* `Request` but can also be stored in IndexedDB.
*
* @param {Object} requestData An object of request data that includes the
* `url` plus any relevant properties of
* [requestInit]{@link https://fetch.spec.what... |
1,284,938 | b149e24d9739bb08dbbe3b03fa93d685 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1102-1120/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::registerSync | function | /**
* Registers a sync event with a tag unique to this instance.
*/
async registerSync() {
// See https://github.com/GoogleChrome/workbox/issues/2393
if ('sync' in self.registration && !this._forceSyncFallback) {
try {
await self.registration.sync.register(`${TAG_PREFIX}:${... |
1,284,939 | 479a3b9a0aac33c75acc3e7a7578dffc | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=733-742/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | StorableRequest::clone | function | /**
* Creates and returns a deep clone of the instance.
*
* @return {StorableRequest}
*/
clone() {
return new StorableRequest(this.toObject());
} |
1,284,940 | 58cb45a5f4f4bde6c8ea3c210f7150d5 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-21/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | _extends | function | function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
... |
1,284,941 | d89cc134a9361b9e5b75bae0749a7d39 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-103/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | cacheDonePromiseForTransaction | function | function cacheDonePromiseForTransaction(tx) {
// Early bail if we've already created a done promise for this transaction.
if (transactionDoneMap.has(tx)) return;
const done = new Promise((resolve, reject) => {
const unlisten = () => {
tx.removeEventListener('complete', complete);
tx.re... |
1,284,942 | 0a2e2eb7d488aef3f01b4a6bff343b58 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=303-305/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::constructor | function | constructor() {
this._db = null;
} |
1,284,943 | 3709a8fd646278bbd9bc5bb7ecfe946b | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=321-332/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getFirstEntryId | function | /**
* Returns the first entry id in the ObjectStore.
*
* @return {number | undefined}
*/
async getFirstEntryId() {
const db = await this.getDb();
const cursor = await db.transaction(REQUEST_OBJECT_STORE_NAME).store.openCursor();
return cursor === null || cursor === void 0 ? v... |
1,284,944 | 7d061476b637d37e605eadcae8f5ebae | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=369-378/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getFirstEntryByQueueName | function | /**
*
* @param queueName
* @returns {Promise<QueueStoreEntry | undefined>}
*/
async getFirstEntryByQueueName(queueName) {
return await this.getEndEntryFromIndex(IDBKeyRange.only(queueName), 'next');
} |
1,284,945 | ddc76c6c07e62fb5f200ffe36e4c8f88 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=405-420/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb::getDb | function | /**
* Returns an open connection to the database.
*
* @private
*/
async getDb() {
if (!this._db) {
this._db = await openDB(DB_NAME, DB_VERSION, {
upgrade: this._upgradeDb
});
}
return this._db;
} |
1,284,946 | b096d4bb7ffb917c7de4d6816e2eb108 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=544-553/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::popEntry | function | /**
* Removes and returns the last entry in the queue matching the `queueName`.
*
* @return {Promise<QueueStoreEntry|undefined>}
*/
async popEntry() {
return this._removeEntry(await this._queueDb.getLastEntryByQueueName(this._queueName));
} |
1,284,947 | be922be6ffc6e38d4e54942291f269ac | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=554-563/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore::shiftEntry | function | /**
* Removes and returns the first entry in the queue matching the `queueName`.
*
* @return {Promise<QueueStoreEntry|undefined>}
*/
async shiftEntry() {
return this._removeEntry(await this._queueDb.getFirstEntryByQueueName(this._queueName));
} |
1,284,948 | 3175cbd22891bd827029f9d0b0aa4a07 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-123/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | get | function | get(target, prop, receiver) {
if (target instanceof IDBTransaction) {
// Special handling for transaction.done.
if (prop === 'done') return transactionDoneMap.get(target); // Polyfill for objectStoreNames because of Edge.
if (prop === 'objectStoreNames') {
return target.objectSt... |
1,284,949 | ff9bbc40a615c2c2b76847ea37cf943b | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=125-128/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | set | function | set(target, prop, value) {
target[prop] = value;
return true;
} |
1,284,950 | a0374e5f5ccce76f07746fe73f3a6d35 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-136/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | has | function | has(target, prop) {
if (target instanceof IDBTransaction && (prop === 'done' || prop === 'store')) {
return true;
}
return prop in target;
} |
1,284,951 | a8e922140601b7806f237b19e9a66d9a | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=942-968/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::getAll | function | /**
* Returns all the entries that have not expired (per `maxRetentionTime`).
* Any expired entries are removed from the queue.
*
* @return {Promise<Array<QueueEntry>>}
*/
async getAll() {
const allEntries = await this._queueStore.getAll();
const now = Date.now();
const ... |
1,284,952 | 0d59d3721a7479a4f7b359d9c269f6f1 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1216-1238/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | BackgroundSyncPlugin::constructor | function | /**
* @param {string} name See the {@link workbox-background-sync.Queue}
* documentation for parameter details.
* @param {Object} [options] See the
* {@link workbox-background-sync.Queue} documentation for
* parameter details.
*/
constructor(name, options) {
/**
... |
1,284,953 | 44f77faeb6ea22610fe21d5ff3c316f9 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1030-1067/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue::_removeRequest | function | /**
* Removes and returns the first or last (depending on `operation`) entry
* from the QueueStore that's not older than the `maxRetentionTime`.
*
* @param {string} operation ('pop' or 'shift')
* @return {Object|undefined}
* @private
*/
async _removeRequest(operation) {
co... |
1,284,954 | 5c3feaa27fa88e6a60c61d6d2a6392d2 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=294-446/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueDb | type | /**
* A class to interact directly an IndexedDB created specifically to save and
* retrieve QueueStoreEntries. This class encapsulates all the schema details
* to store the representation of a Queue.
*
* @private
*/
class QueueDb {
constructor() {
this._db = null;
}
/**
* Add... |
1,284,955 | 632586513c053dda0f0a90619363181c | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1201-1240/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | BackgroundSyncPlugin | type | /*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* A class implementing the `fetchDidFail` lifecycle callback. This makes it
* easier to add failed requests to a bac... |
1,284,956 | b16caa586d137d15bce692769ddf9ce4 | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=628-744/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | StorableRequest | type | /**
* A class to make it easier to serialize and de-serialize requests so they
* can be stored in IndexedDB.
*
* Most developers will not need to access this class directly;
* it is exposed for advanced use cases.
*/
class StorableRequest {
/**
* Converts a Request object to a plain object... |
1,284,957 | 44bb50b510b8a45e6a3078abf4f5db9f | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=448-618/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | QueueStore | type | /*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
/**
* A class to manage storing requests from a Queue in IndexedDB,
* indexed by their queue name for easier access.
... |
1,284,958 | 82ddf8da00d4aff02e20b21d1f5db11a | swh:1:cnt:8347367705a77256ded1f05315d6d3d7abd95a5b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=779-1199/ | 747cc54eb556af180ca6d2d27be7c5fae063c585 | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.dev.js | Queue | type | /**
* A class to manage storing failed requests in IndexedDB and retrying them
* later. All parts of the storing and replaying process are observable via
* callbacks.
*
* @memberof workbox-background-sync
*/
class Queue {
/**
* Creates an instance of Queue with the given options
*
... |
1,284,959 | 39767edeee533ca0ecd0cfbbef99e303 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | r | function | function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},r.apply(this,arguments)} |
1,284,960 | 41858dab642184c317daff62516c6813 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::deleteEntry | function | async deleteEntry(t){const e=await this.getDb();await e.delete(I,t)} |
1,284,961 | dbc49a83bc268324b3b3d206ee20caf4 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::pushEntry | function | async pushEntry(t){delete t.id,t.queueName=this.o,await this.u.addEntry(t)} |
1,284,962 | c96407cc2af1577c4aa60e855d094c78 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::i | function | i(t,e){e>0&&e<3&&t.objectStoreNames.contains(I)&&t.deleteObjectStore(I);t.createObjectStore(I,{autoIncrement:!0,keyPath:"id"}).createIndex(q,q,{unique:!1})} |
1,284,963 | 2bc096c28a0177220283077e19697fd8 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::size | function | async size(){return await this.u.getEntryCountByQueueName(this.o)} |
1,284,964 | 8bd49aa99d6dd4a7218d506268e7ba0f | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | x::toObject | function | toObject(){const t=Object.assign({},this.l);return t.headers=Object.assign({},this.l.headers),t.body&&(t.body=t.body.slice(0)),t} |
1,284,965 | 5f3b6793c5e763257ebba4978000a31b | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | x::toRequest | function | toRequest(){return new Request(this.l.url,this.l)} |
1,284,966 | 61ac48a18635964f83363d9311d0eb24 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::constructor | function | constructor(t,{forceSyncFallback:s,onSync:n,maxRetentionTime:r}={}){if(this.m=!1,this.p=!1,j.has(t))throw new e.WorkboxError("duplicate-queue-name",{name:t});j.add(t),this.g=t,this.D=n||this.replayRequests,this.B=r||10080,this.I=Boolean(s),this.q=new E(this.g),this.k()} |
1,284,967 | db3ad2d4aa4e64a27c4ea7892d2c1f7e | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::pushRequest | function | async pushRequest(t){await this.R(t,"push")} |
1,284,968 | 01b2b699cc9a9be50473825602d99059 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::unshiftRequest | function | async unshiftRequest(t){await this.R(t,"unshift")} |
1,284,969 | 439d96a1dbdcc15e006953604d6359c2 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | l | function | function l(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(p(this),e),m(o.get(this))}:function(...e){return m(t.apply(p(this... |
1,284,970 | 56db2c094b11f3d9a1a020e09456695e | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | d | function | function d(t){return"function"==typeof t?l(t):(t instanceof IDBTransaction&&function(t){if(u.has(t))return;const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("complete",r),t.removeEventListener("error",a),t.removeEventListener("abort",a)},r=()=>{e(),n()},a=()=>{s(t.error||new DOMException("AbortError","Abo... |
1,284,971 | ddf5bf3b673ce09a653aaeb97223753c | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::constructor | function | constructor(){this.t=null} |
1,284,972 | 265ac78819eebdcaeb2feb0f643aa32a | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getLastEntryByQueueName | function | async getLastEntryByQueueName(t){return await this.getEndEntryFromIndex(IDBKeyRange.only(t),"prev")} |
1,284,973 | bafbd96ba86145449664db3b4d4f41af | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::popEntry | function | async popEntry(){return this.h(await this.u.getLastEntryByQueueName(this.o))} |
1,284,974 | 4354e72c7925d165e3df553bc821e4c9 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::getAll | function | async getAll(){const t=await this.q.getAll(),e=Date.now(),s=[];for(const n of t){const t=60*this.B*1e3;e-n.timestamp>t?await this.q.deleteEntry(n.id):s.push(S(n))}return s} |
1,284,975 | e379b0debeb9b9754214c42c932adc3c | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::R | function | async R({request:t,metadata:e,timestamp:s=Date.now()},n){const r={requestData:(await x.fromRequest(t.clone())).toObject(),timestamp:s};switch(e&&(r.metadata=e),n){case"push":await this.q.pushEntry(r);break;case"unshift":await this.q.unshiftEntry(r)}this.m?this.p=!0:await this.registerSync()} |
1,284,976 | e93c6732f33bf5235758a465e7b2851a | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::v | function | async v(t){const e=Date.now();let s;switch(t){case"pop":s=await this.q.popEntry();break;case"shift":s=await this.q.shiftEntry()}if(s){const n=60*this.B*1e3;return e-s.timestamp>n?this.v(t):S(s)}} |
1,284,977 | e44810cc43fe917f785b1f0b3e4a9b12 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::registerSync | function | async registerSync(){if("sync"in self.registration&&!this.I)try{await self.registration.sync.register(`${v}:${this.g}`)}catch(t){}} |
1,284,978 | 705b886d6a17c40b542eee2da3cc4d85 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | constructor | function | constructor(t,e){this.fetchDidFail=async({request:t})=>{await this.S.pushRequest({request:t})},this.S=new A(t,e)} |
1,284,979 | d77437b25dfdab87cba87574a3659d08 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::size | function | async size(){return await this.q.size()} |
1,284,980 | 7e8a8a41e7b895371e8ffd8cdf9f65a7 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::replayRequests | function | async replayRequests(){let t;for(;t=await this.shiftRequest();)try{await fetch(t.request.clone())}catch(s){throw await this.unshiftRequest(t),new e.WorkboxError("queue-replay-failed",{name:this.g})}} |
1,284,981 | 4637767681f2a6fd64121648c0d5eda5 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | m | function | function m(t){if(t instanceof IDBRequest)return function(t){const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("success",r),t.removeEventListener("error",a)},r=()=>{e(m(t.result)),n()},a=()=>{s(t.error),n()};t.addEventListener("success",r),t.addEventListener("error",a)}));return e.then((e=>{e instanceof ID... |
1,284,982 | 373b8413404e0cdc9f93363d796e08b8 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | B | function | function B(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(b.get(e))return b.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,r=D.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!r&&!g.includes(s))return;const a=async function(t,...e){const a=this.transaction(t,r?"readwrite":"rea... |
1,284,983 | 5bb81445d1b8e358f2a06bb375a0dc8a | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getAllEntriesByQueueName | function | async getAllEntriesByQueueName(t){const e=await this.getDb(),s=await e.getAllFromIndex(I,q,IDBKeyRange.only(t));return s||new Array} |
1,284,984 | 32a52f0cf79fdd1845b2fa6afe3608b8 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getEntryCountByQueueName | function | async getEntryCountByQueueName(t){return(await this.getDb()).countFromIndex(I,q,IDBKeyRange.only(t))} |
1,284,985 | 7c42c8b74a7ce1af69565254cb29b945 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getFirstEntryByQueueName | function | async getFirstEntryByQueueName(t){return await this.getEndEntryFromIndex(IDBKeyRange.only(t),"next")} |
1,284,986 | b9cfcae05e66abb9572717ca4a6ee7cb | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::constructor | function | constructor(t){this.o=t,this.u=new k} |
1,284,987 | 7f4ac4397578f8d5d3e09e96aac864e9 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::getAll | function | async getAll(){return await this.u.getAllEntriesByQueueName(this.o)} |
1,284,988 | bbac33f65405274bfea1beff22309beb | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::deleteEntry | function | async deleteEntry(t){await this.u.deleteEntry(t)} |
1,284,989 | ddf4426e18c25ae28b78c015358f4156 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | x::constructor | function | constructor(t){"navigate"===t.mode&&(t.mode="same-origin"),this.l=t} |
1,284,990 | f9c9d28aadf01bc5fdfe773eac88d7d6 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::name | function | get name(){return this.g} |
1,284,991 | 21f8eff649f6202ab487a075202abc8b | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::shiftRequest | function | async shiftRequest(){return this.v("shift")} |
1,284,992 | a997248a5dd9917c1f1afd0f86c5d371 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | A::k | function | k(){"sync"in self.registration&&!this.I?self.addEventListener("sync",(t=>{if(t.tag===`${v}:${this.g}`){const e=async()=>{let e;this.m=!0;try{await this.D({queue:this})}catch(t){if(t instanceof Error)throw e=t,e}finally{!this.p||e&&!t.lastChance||await this.registerSync(),this.m=!1,this.p=!1}};t.waitUntil(e())}})):this.... |
1,284,993 | 2e4c2edc446032027436e01cc508691a | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::addEntry | function | async addEntry(t){const e=(await this.getDb()).transaction(I,"readwrite",{durability:"relaxed"});await e.store.add(t),await e.done} |
1,284,994 | d89532b3a4dd530ec0f6e1e9dc702aad | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getFirstEntryId | function | async getFirstEntryId(){const t=await this.getDb(),e=await t.transaction(I).store.openCursor();return null==e?void 0:e.value.id} |
1,284,995 | 4639c65bf612af2319dd393b5ecfda1a | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getEndEntryFromIndex | function | async getEndEntryFromIndex(t,e){const s=await this.getDb(),n=await s.transaction(I).store.index(q).openCursor(t,e);return null==n?void 0:n.value} |
1,284,996 | 5370f6a4980ebaf4a7c306b61f15051a | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | k::getDb | function | async getDb(){return this.t||(this.t=await function(t,e,{blocked:s,upgrade:n,blocking:r,terminated:a}={}){const i=indexedDB.open(t,e),c=m(i);return n&&i.addEventListener("upgradeneeded",(t=>{n(m(i.result),t.oldVersion,t.newVersion,m(i.transaction))})),s&&i.addEventListener("blocked",(()=>s())),c.then((t=>{a&&t.addEvent... |
1,284,997 | a9b89ad83f04ae9e9ee82c5cfdbe2c17 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::unshiftEntry | function | async unshiftEntry(t){const e=await this.u.getFirstEntryId();e?t.id=e-1:delete t.id,t.queueName=this.o,await this.u.addEntry(t)} |
1,284,998 | a24cbef19af3ed2df74b4b6332768ea5 | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::shiftEntry | function | async shiftEntry(){return this.h(await this.u.getFirstEntryByQueueName(this.o))} |
1,284,999 | 5b81cf226503c7cc76f50c7a81a863bf | swh:1:cnt:d0ca02b8957b5f5b814676855fcc3f21b931dc1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1-1/ | db338849830cf6444a087a7a07ec34bf4ea6790b | wlbdashboard | wmcs | node_modules/workbox-background-sync/build/workbox-background-sync.prod.js | E::h | function | async h(t){return t&&await this.deleteEntry(t.id),t} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.