/var/www/myprog.com.ua/server/node/node_modules/async
NameSizeModeActions
dist/-0755rm
internal/-0755rm
all.js35590644editdlrm
allLimit.js17510644editdlrm
allSeries.js16450644editdlrm
any.js38030644editdlrm
anyLimit.js17860644editdlrm
anySeries.js16800644editdlrm
apply.js2170644editdlrm
applyEach.js19880644editdlrm
applyEachSeries.js13020644editdlrm
asyncify.js37620644editdlrm
auto.js118530644editdlrm
autoInject.js70990644editdlrm
bower.json2390644editdlrm
cargo.js27460644editdlrm
cargoQueue.js33520644editdlrm
CHANGELOG.md334810644editdlrm
compose.js15650644editdlrm
concat.js36520644editdlrm
concatLimit.js20930644editdlrm
concatSeries.js14740644editdlrm
constant.js3020644editdlrm
detect.js32490644editdlrm
detectLimit.js18350644editdlrm
detectSeries.js17410644editdlrm
dir.js12960644editdlrm
doDuring.js23000644editdlrm
doUntil.js17030644editdlrm
doWhilst.js23000644editdlrm
during.js23380644editdlrm
each.js40250644editdlrm
eachLimit.js17900644editdlrm
eachOf.js57430644editdlrm
eachOfLimit.js16380644editdlrm
eachOfSeries.js13300644editdlrm
eachSeries.js15760644editdlrm
ensureAsync.js23110644editdlrm
every.js35590644editdlrm
everyLimit.js17510644editdlrm
everySeries.js16450644editdlrm
filter.js28980644editdlrm
filterLimit.js16550644editdlrm
filterSeries.js15470644editdlrm
find.js32490644editdlrm
findLimit.js18350644editdlrm
findSeries.js17410644editdlrm
flatMap.js36520644editdlrm
flatMapLimit.js20930644editdlrm
flatMapSeries.js14740644editdlrm
foldl.js48780644editdlrm
foldr.js15010644editdlrm
forEach.js40250644editdlrm
forEachLimit.js17900644editdlrm
forEachOf.js57430644editdlrm
forEachOfLimit.js16380644editdlrm
forEachOfSeries.js13300644editdlrm
forEachSeries.js15760644editdlrm
forever.js21180644editdlrm
groupBy.js35980644editdlrm
groupByLimit.js24460644editdlrm
groupBySeries.js13310644editdlrm
index.js199400644editdlrm
inject.js48780644editdlrm
LICENSE10630644editdlrm
log.js11960644editdlrm
map.js45960644editdlrm
mapLimit.js16200644editdlrm
mapSeries.js15150644editdlrm
mapValues.js45900644editdlrm
mapValuesLimit.js21170644editdlrm
mapValuesSeries.js13780644editdlrm
memoize.js30700644editdlrm
nextTick.js14750644editdlrm
package.json22030644editdlrm
parallel.js55740644editdlrm
parallelLimit.js15110644editdlrm
priorityQueue.js14420644editdlrm
queue.js6260644editdlrm
race.js21320644editdlrm
README.md32170644editdlrm
reduce.js48780644editdlrm
reduceRight.js15010644editdlrm
reflect.js22660644editdlrm
reflectAll.js24490644editdlrm
reject.js26760644editdlrm
rejectLimit.js15780644editdlrm
rejectSeries.js14700644editdlrm
retry.js55240644editdlrm
retryable.js25350644editdlrm
select.js28980644editdlrm
selectLimit.js16550644editdlrm
selectSeries.js15470644editdlrm
seq.js26530644editdlrm
series.js58230644editdlrm
setImmediate.js13910644editdlrm
some.js38030644editdlrm
someLimit.js17860644editdlrm
someSeries.js16800644editdlrm
sortBy.js62100644editdlrm
timeout.js27550644editdlrm
times.js14870644editdlrm
timesLimit.js14510644editdlrm
timesSeries.js10610644editdlrm
transform.js55630644editdlrm
tryEach.js25400644editdlrm
unmemoize.js6650644editdlrm
until.js20800644editdlrm
waterfall.js32030644editdlrm
whilst.js23380644editdlrm
wrapSync.js37620644editdlrm
Edit: /var/www/myprog.com.ua/server/node/node_modules/async/map.js (4596B)
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _map2 = require('./internal/map.js'); var _map3 = _interopRequireDefault(_map2); var _eachOf = require('./eachOf.js'); var _eachOf2 = _interopRequireDefault(_eachOf); var _awaitify = require('./internal/awaitify.js'); var _awaitify2 = _interopRequireDefault(_awaitify); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Produces a new collection of values by mapping each value in `coll` through * the `iteratee` function. The `iteratee` is called with an item from `coll` * and a callback for when it has finished processing. Each of these callbacks * takes 2 arguments: an `error`, and the transformed item from `coll`. If * `iteratee` passes an error to its callback, the main `callback` (for the * `map` function) is immediately called with the error. * * Note, that since this function applies the `iteratee` to each item in * parallel, there is no guarantee that the `iteratee` functions will complete * in order. However, the results array will be in the same order as the * original `coll`. * * If `map` is passed an Object, the results will be an Array. The results * will roughly be in the order of the original Objects' keys (but this can * vary across JavaScript engines). * * @name map * @static * @memberOf module:Collections * @method * @category Collection * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over. * @param {AsyncFunction} iteratee - An async function to apply to each item in * `coll`. * The iteratee should complete with the transformed item. * Invoked with (item, callback). * @param {Function} [callback] - A callback which is called when all `iteratee` * functions have finished, or an error occurs. Results is an Array of the * transformed items from the `coll`. Invoked with (err, results). * @returns {Promise} a promise, if no callback is passed * @example * * // file1.txt is a file that is 1000 bytes in size * // file2.txt is a file that is 2000 bytes in size * // file3.txt is a file that is 3000 bytes in size * // file4.txt does not exist * * const fileList = ['file1.txt','file2.txt','file3.txt']; * const withMissingFileList = ['file1.txt','file2.txt','file4.txt']; * * // asynchronous function that returns the file size in bytes * function getFileSizeInBytes(file, callback) { * fs.stat(file, function(err, stat) { * if (err) { * return callback(err); * } * callback(null, stat.size); * }); * } * * // Using callbacks * async.map(fileList, getFileSizeInBytes, function(err, results) { * if (err) { * console.log(err); * } else { * console.log(results); * // results is now an array of the file size in bytes for each file, e.g. * // [ 1000, 2000, 3000] * } * }); * * // Error Handling * async.map(withMissingFileList, getFileSizeInBytes, function(err, results) { * if (err) { * console.log(err); * // [ Error: ENOENT: no such file or directory ] * } else { * console.log(results); * } * }); * * // Using Promises * async.map(fileList, getFileSizeInBytes) * .then( results => { * console.log(results); * // results is now an array of the file size in bytes for each file, e.g. * // [ 1000, 2000, 3000] * }).catch( err => { * console.log(err); * }); * * // Error Handling * async.map(withMissingFileList, getFileSizeInBytes) * .then( results => { * console.log(results); * }).catch( err => { * console.log(err); * // [ Error: ENOENT: no such file or directory ] * }); * * // Using async/await * async () => { * try { * let results = await async.map(fileList, getFileSizeInBytes); * console.log(results); * // results is now an array of the file size in bytes for each file, e.g. * // [ 1000, 2000, 3000] * } * catch (err) { * console.log(err); * } * } * * // Error Handling * async () => { * try { * let results = await async.map(withMissingFileList, getFileSizeInBytes); * console.log(results); * } * catch (err) { * console.log(err); * // [ Error: ENOENT: no such file or directory ] * } * } * */ function map(coll, iteratee, callback) { return (0, _map3.default)(_eachOf2.default, coll, iteratee, callback); } exports.default = (0, _awaitify2.default)(map, 3); module.exports = exports.default;