Comparing version 3.0.0 to 3.0.1
@@ -30,5 +30,2 @@ /** | ||
if (Array.isArray(streams[0])) { | ||
streams = streams[0] | ||
} | ||
if (typeof streams[streams.length - 1] === 'function') { | ||
@@ -39,2 +36,3 @@ cb = streams.pop() | ||
typeof streams[streams.length - 1] === 'object' && | ||
!Array.isArray(streams[streams.length - 1]) && | ||
typeof streams[streams.length - 1].pipe !== 'function' | ||
@@ -44,2 +42,5 @@ ) { | ||
} | ||
if (Array.isArray(streams[0])) { | ||
streams = streams[0] | ||
} | ||
@@ -46,0 +47,0 @@ const first = streams[0] |
{ | ||
"name": "multipipe", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "pipe streams with centralized error handling", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
5844
71