Updating NPM dependencies
This commit is contained in:
16
node_modules/p-each-series/readme.md
generated
vendored
16
node_modules/p-each-series/readme.md
generated
vendored
@@ -8,7 +8,7 @@ Useful as a side-effect iterator. Prefer [`p-map`](https://github.com/sindresorh
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save p-each-series
|
||||
$ npm install p-each-series
|
||||
```
|
||||
|
||||
|
||||
@@ -18,17 +18,17 @@ $ npm install --save p-each-series
|
||||
const pEachSeries = require('p-each-series');
|
||||
|
||||
const keywords = [
|
||||
getTopKeyword() //=> Promise
|
||||
getTopKeyword(), //=> Promise
|
||||
'rainbow',
|
||||
'pony'
|
||||
];
|
||||
|
||||
const iterator = el => saveToDiskPromise(el); //=> Promise
|
||||
const iterator = async element => saveToDiskPromise(element);
|
||||
|
||||
pEachSeries(keywords, iterator).then(result => {
|
||||
console.log(result);
|
||||
(async () => {
|
||||
console.log(await pEachSeries(keywords, iterator));
|
||||
//=> ['unicorn', 'rainbow', 'pony']
|
||||
});
|
||||
})();
|
||||
```
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ Returns a `Promise` that is fulfilled when all promises in `input` and ones retu
|
||||
|
||||
#### input
|
||||
|
||||
Type: `Iterable<Promise|any>`
|
||||
Type: `Iterable<Promise | unknown>`
|
||||
|
||||
Iterated over serially in the `iterator` function.
|
||||
|
||||
@@ -54,7 +54,9 @@ Return value is ignored unless it's `Promise`, then it's awaited before continui
|
||||
## Related
|
||||
|
||||
- [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially
|
||||
- [p-series](https://github.com/sindresorhus/p-series) - Run promise-returning & async functions in series
|
||||
- [p-pipe](https://github.com/sindresorhus/p-pipe) - Compose promise-returning & async functions into a reusable pipeline
|
||||
- [p-waterfall](https://github.com/sindresorhus/p-waterfall) - Run promise-returning & async functions in series, each passing its result to the next
|
||||
- [p-reduce](https://github.com/sindresorhus/p-reduce) - Reduce a list of values using promises into a promise for a value
|
||||
- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently
|
||||
- [More…](https://github.com/sindresorhus/promise-fun)
|
||||
|
||||
Reference in New Issue
Block a user