Comparing version 1.1.0 to 1.2.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = function (input) { | ||
const args = Array.isArray(input) ? input : [].slice.apply(arguments); | ||
const args = Array.isArray(input) ? input : arguments; | ||
@@ -13,3 +13,3 @@ if (args.length === 0) { | ||
return args.slice(1).reduce((a, b) => { | ||
return [].slice.call(args, 1).reduce((a, b) => { | ||
return function () { | ||
@@ -16,0 +16,0 @@ return Promise.resolve(a.apply(null, arguments)).then(b); |
{ | ||
"name": "p-pipe", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Compose promise-returning & async functions into a reusable pipeline", | ||
@@ -40,6 +40,3 @@ "license": "MIT", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
} |
@@ -9,3 +9,3 @@ # p-pipe [![Build Status](https://travis-ci.org/sindresorhus/p-pipe.svg?branch=master)](https://travis-ci.org/sindresorhus/p-pipe) | ||
``` | ||
$ npm install --save p-pipe | ||
$ npm install p-pipe | ||
``` | ||
@@ -12,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
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
3633