Ver Fonte

Minor bugfix.

Eugene Lazutkin há 7 anos atrás
pai
commit
1007bf4ebe
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -87,7 +87,7 @@ class Chain extends Duplex {
 
     this.streams = fns
       .filter(fn => fn)
-      .map((fn, index) => {
+      .map((fn, index, fns) => {
         if (typeof fn === 'function' || fn instanceof Array) return Chain.convertToTransform(fn);
         if (
           fn instanceof Duplex ||