Comparing version 1.0.0 to 1.1.0
'use strict'; | ||
// TODO: use rest/spread when targeting Node.js 6 | ||
// TODO: Use rest/spread when targeting Node.js 6 | ||
module.exports = function () { | ||
const args = [].slice.apply(arguments); | ||
module.exports = function (input) { | ||
const args = Array.isArray(input) ? input : [].slice.apply(arguments); | ||
@@ -8,0 +8,0 @@ if (args.length === 0) { |
{ | ||
"name": "p-pipe", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Compose promise-returning & async functions into a reusable pipeline", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -34,2 +34,4 @@ # p-pipe [![Build Status](https://travis-ci.org/sindresorhus/p-pipe.svg?branch=master)](https://travis-ci.org/sindresorhus/p-pipe) | ||
You can also specify an array as the first argument instead of multiple function arguments. Mostly only useful if you have to support Node.js 4. With Node.js 6 and above you can just use spread syntax. | ||
#### input | ||
@@ -45,2 +47,4 @@ | ||
- [p-each-series](https://github.com/sindresorhus/p-each-series) - Iterate over promises serially | ||
- [p-series](https://github.com/sindresorhus/p-series) - Run promise-returning & async functions in series | ||
- [p-waterfall](https://github.com/sindresorhus/p-waterfall) - Run promise-returning & async functions in series, each passing its result to the next | ||
- [More…](https://github.com/sindresorhus/promise-fun) | ||
@@ -47,0 +51,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3691
54