Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 52.14.238.102
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
p-locate /
Delete
Unzip
Name
Size
Permission
Date
Action
index.d.ts
1.82
KB
-rw-rw-r--
2022-08-30 11:49
index.js
1.21
KB
-rw-rw-r--
2022-08-30 11:49
license
1.08
KB
-rw-rw-r--
2022-08-30 11:49
package.json
876
B
-rw-rw-r--
2022-08-30 11:49
readme.md
2.14
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
'use strict'; const pLimit = require('p-limit'); class EndError extends Error { constructor(value) { super(); this.value = value; } } // The input can also be a promise, so we await it const testElement = async (element, tester) => tester(await element); // The input can also be a promise, so we `Promise.all()` them both const finder = async element => { const values = await Promise.all(element); if (values[1] === true) { throw new EndError(values[0]); } return false; }; const pLocate = async (iterable, tester, options) => { options = { concurrency: Infinity, preserveOrder: true, ...options }; const limit = pLimit(options.concurrency); // Start all the promises concurrently with optional limit const items = [...iterable].map(element => [element, limit(testElement, element, tester)]); // Check the promises either serially or concurrently const checkLimit = pLimit(options.preserveOrder ? 1 : Infinity); try { await Promise.all(items.map(element => checkLimit(finder, element))); } catch (error) { if (error instanceof EndError) { return error.value; } throw error; } }; module.exports = pLocate; // TODO: Remove this for the next major release module.exports.default = pLocate;