/var/www/qr4y.com/server/delivery/node_modules/async
NameSizeModeActions
dist/-0755rm
internal/-0755rm
all.js35580644editdlrm
allLimit.js17500644editdlrm
allSeries.js16440644editdlrm
any.js38020644editdlrm
anyLimit.js17850644editdlrm
anySeries.js16790644editdlrm
apply.js31210644editdlrm
applyEach.js19890644editdlrm
applyEachSeries.js13030644editdlrm
asyncify.js37390644editdlrm
auto.js118560644editdlrm
autoInject.js70920644editdlrm
bower.json2390644editdlrm
cargo.js27450644editdlrm
cargoQueue.js33510644editdlrm
CHANGELOG.md333770644editdlrm
compose.js15640644editdlrm
concat.js36510644editdlrm
concatLimit.js20960644editdlrm
concatSeries.js14730644editdlrm
constant.js29770644editdlrm
detect.js32480644editdlrm
detectLimit.js18340644editdlrm
detectSeries.js17400644editdlrm
dir.js12970644editdlrm
doDuring.js23030644editdlrm
doUntil.js17060644editdlrm
doWhilst.js23030644editdlrm
during.js23330644editdlrm
each.js40240644editdlrm
eachLimit.js17890644editdlrm
eachOf.js57460644editdlrm
eachOfLimit.js16370644editdlrm
eachOfSeries.js13290644editdlrm
eachSeries.js15750644editdlrm
ensureAsync.js23140644editdlrm
every.js35580644editdlrm
everyLimit.js17500644editdlrm
everySeries.js16440644editdlrm
filter.js28970644editdlrm
filterLimit.js16540644editdlrm
filterSeries.js15460644editdlrm
find.js32480644editdlrm
findLimit.js18340644editdlrm
findSeries.js17400644editdlrm
flatMap.js36510644editdlrm
flatMapLimit.js20960644editdlrm
flatMapSeries.js14730644editdlrm
foldl.js48810644editdlrm
foldr.js14980644editdlrm
forEach.js40240644editdlrm
forEachLimit.js17890644editdlrm
forEachOf.js57460644editdlrm
forEachOfLimit.js16370644editdlrm
forEachOfSeries.js13290644editdlrm
forEachSeries.js15750644editdlrm
forever.js21210644editdlrm
groupBy.js35970644editdlrm
groupByLimit.js24490644editdlrm
groupBySeries.js13300644editdlrm
index.js197300644editdlrm
inject.js48810644editdlrm
LICENSE10630644editdlrm
log.js11970644editdlrm
map.js45950644editdlrm
mapLimit.js16190644editdlrm
mapSeries.js15140644editdlrm
mapValues.js45890644editdlrm
mapValuesLimit.js21200644editdlrm
mapValuesSeries.js13770644editdlrm
memoize.js30730644editdlrm
nextTick.js14780644editdlrm
package.json29980644editdlrm
parallel.js55730644editdlrm
parallelLimit.js15100644editdlrm
priorityQueue.js27120644editdlrm
queue.js73800644editdlrm
race.js21350644editdlrm
README.md32160644editdlrm
reduce.js48810644editdlrm
reduceRight.js14980644editdlrm
reflect.js22690644editdlrm
reflectAll.js24520644editdlrm
reject.js26750644editdlrm
rejectLimit.js15770644editdlrm
rejectSeries.js14690644editdlrm
retry.js55270644editdlrm
retryable.js25380644editdlrm
select.js28970644editdlrm
selectLimit.js16540644editdlrm
selectSeries.js15460644editdlrm
seq.js26560644editdlrm
series.js58220644editdlrm
setImmediate.js13920644editdlrm
some.js38020644editdlrm
someLimit.js17850644editdlrm
someSeries.js16790644editdlrm
sortBy.js62130644editdlrm
timeout.js27580644editdlrm
times.js14860644editdlrm
timesLimit.js14480644editdlrm
timesSeries.js10600644editdlrm
transform.js55660644editdlrm
tryEach.js25430644editdlrm
unmemoize.js6680644editdlrm
until.js20770644editdlrm
waterfall.js32060644editdlrm
whilst.js23330644editdlrm
wrapSync.js37390644editdlrm
Edit: /var/www/qr4y.com/server/delivery/node_modules/async/mapValues.js (4589B)
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = mapValues; var _mapValuesLimit = require('./mapValuesLimit.js'); var _mapValuesLimit2 = _interopRequireDefault(_mapValuesLimit); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * A relative of [`map`]{@link module:Collections.map}, designed for use with objects. * * Produces a new Object by mapping each value of `obj` through the `iteratee` * function. The `iteratee` is called each `value` and `key` from `obj` and a * callback for when it has finished processing. Each of these callbacks takes * two arguments: an `error`, and the transformed item from `obj`. If `iteratee` * passes an error to its callback, the main `callback` (for the `mapValues` * function) is immediately called with the error. * * Note, the order of the keys in the result is not guaranteed. The keys will * be roughly in the order they complete, (but this is very engine-specific) * * @name mapValues * @static * @memberOf module:Collections * @method * @category Collection * @param {Object} obj - A collection to iterate over. * @param {AsyncFunction} iteratee - A function to apply to each value and key * in `coll`. * The iteratee should complete with the transformed value as its result. * Invoked with (value, key, callback). * @param {Function} [callback] - A callback which is called when all `iteratee` * functions have finished, or an error occurs. `result` is a new object consisting * of each key from `obj`, with each transformed value on the right-hand side. * Invoked with (err, result). * @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 fileMap = { * f1: 'file1.txt', * f2: 'file2.txt', * f3: 'file3.txt' * }; * * const withMissingFileMap = { * f1: 'file1.txt', * f2: 'file2.txt', * f3: 'file4.txt' * }; * * // asynchronous function that returns the file size in bytes * function getFileSizeInBytes(file, key, callback) { * fs.stat(file, function(err, stat) { * if (err) { * return callback(err); * } * callback(null, stat.size); * }); * } * * // Using callbacks * async.mapValues(fileMap, getFileSizeInBytes, function(err, result) { * if (err) { * console.log(err); * } else { * console.log(result); * // result is now a map of file size in bytes for each file, e.g. * // { * // f1: 1000, * // f2: 2000, * // f3: 3000 * // } * } * }); * * // Error handling * async.mapValues(withMissingFileMap, getFileSizeInBytes, function(err, result) { * if (err) { * console.log(err); * // [ Error: ENOENT: no such file or directory ] * } else { * console.log(result); * } * }); * * // Using Promises * async.mapValues(fileMap, getFileSizeInBytes) * .then( result => { * console.log(result); * // result is now a map of file size in bytes for each file, e.g. * // { * // f1: 1000, * // f2: 2000, * // f3: 3000 * // } * }).catch (err => { * console.log(err); * }); * * // Error Handling * async.mapValues(withMissingFileMap, getFileSizeInBytes) * .then( result => { * console.log(result); * }).catch (err => { * console.log(err); * // [ Error: ENOENT: no such file or directory ] * }); * * // Using async/await * async () => { * try { * let result = await async.mapValues(fileMap, getFileSizeInBytes); * console.log(result); * // result is now a map of file size in bytes for each file, e.g. * // { * // f1: 1000, * // f2: 2000, * // f3: 3000 * // } * } * catch (err) { * console.log(err); * } * } * * // Error Handling * async () => { * try { * let result = await async.mapValues(withMissingFileMap, getFileSizeInBytes); * console.log(result); * } * catch (err) { * console.log(err); * // [ Error: ENOENT: no such file or directory ] * } * } * */ function mapValues(obj, iteratee, callback) { return (0, _mapValuesLimit2.default)(obj, Infinity, iteratee, callback); } module.exports = exports['default'];