Skip to content

Commit

Permalink
Tidelift tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 31, 2019
1 parent 19b8391 commit e870776
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/funding.yml
@@ -1,3 +1,4 @@
github: sindresorhus
open_collective: sindresorhus
tidelift: npm/p-map
custom: https://sindresorhus.com/donate
3 changes: 3 additions & 0 deletions .github/security.md
@@ -0,0 +1,3 @@
# Security Policy

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
18 changes: 13 additions & 5 deletions readme.md
Expand Up @@ -40,13 +40,13 @@ const sites = [

## API

### pMap(input, mapper, [options])
### pMap(input, mapper, options?)

Returns a `Promise` that is fulfilled when all promises in `input` and ones returned from `mapper` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values returned from `mapper` in `input` order.

#### input

Type: `Iterable<Promise|any>`
Type: `Iterable<Promise | unknown>`

Iterated over concurrently in the `mapper` function.

Expand All @@ -58,7 +58,7 @@ Expected to return a `Promise` or value.

#### options

Type: `Object`
Type: `object`

##### concurrency

Expand All @@ -80,6 +80,14 @@ Number of concurrently pending promises returned by `mapper`.
- [More…](https://github.com/sindresorhus/promise-fun)


## License
---

MIT © [Sindre Sorhus](https://sindresorhus.com)
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-p-map?utm_source=npm-p-map&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

0 comments on commit e870776

Please sign in to comment.