This is not GitHub.com

Like what you see? Install OctoLinker now!

Skip to content
Permalink
Browse files

Tidelift tasks

  • Loading branch information...
sindresorhus committed May 31, 2019
1 parent 19b8391 commit e870776618fde22d21685adb4a34e2aee3b0e91e
Showing with 17 additions and 5 deletions.
  1. +1 −0 .github/funding.yml
  2. +3 −0 .github/security.md
  3. +13 −5 readme.md
@@ -1,3 +1,4 @@
github: sindresorhus
open_collective: sindresorhus
tidelift: npm/p-map
custom: https://sindresorhus.com/donate
@@ -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.
@@ -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.

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

#### options

Type: `Object`
Type: `object`

##### concurrency

@@ -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.
You can’t perform that action at this time.