html-select
Advanced tools
Comparing version 2.3.20 to 2.3.22
@@ -76,3 +76,3 @@ var through = require('through2'); | ||
return through.obj(function (row, enc, next) { | ||
if (row[0] !== 'LAST' && row[0] !== 'FIRST') this.push(row); | ||
if (row[0] !== 'FIRST') this.push(row); | ||
next(); | ||
@@ -79,0 +79,0 @@ }); |
@@ -58,3 +58,3 @@ var through = require('through2'); | ||
var inext, irow, iended = false; | ||
this._pipeline.push(duplexer(output, input)); | ||
@@ -65,2 +65,3 @@ return duplexer(input, output); | ||
if (row[0] === 'FIRST') { | ||
input.write(row); | ||
return next(); | ||
@@ -70,2 +71,6 @@ } | ||
last = true; | ||
if (iended) input.push(row) | ||
else input.write(row); | ||
return next(); | ||
@@ -142,2 +147,3 @@ } | ||
if (row[0] === 'FIRST') { | ||
this.push(row); | ||
return next(); | ||
@@ -147,2 +153,3 @@ } | ||
last = true; | ||
this.push(row); | ||
return next(); | ||
@@ -149,0 +156,0 @@ } |
@@ -75,3 +75,3 @@ var inherits = require('inherits'); | ||
function write (row, enc, next) { | ||
this.push(row); | ||
if (row[0] !== 'LAST') this.push(row); | ||
next(); | ||
@@ -78,0 +78,0 @@ } |
{ | ||
"name": "html-select", | ||
"version": "2.3.20", | ||
"version": "2.3.22", | ||
"description": "match a tokenized html stream with css selectors", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
203308
86
3721
25