@nxtedition/lib 18.0.0 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/couch.js +6 -1
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -272,6 +272,9 @@ export function makeCouch(opts) {
|
|
|
272
272
|
|
|
273
273
|
const changes = []
|
|
274
274
|
for (const line of lines) {
|
|
275
|
+
if (line === '') {
|
|
276
|
+
continue
|
|
277
|
+
}
|
|
275
278
|
if (live) {
|
|
276
279
|
const data = JSON.parse(line)
|
|
277
280
|
if (data.last_seq) {
|
|
@@ -309,7 +312,9 @@ export function makeCouch(opts) {
|
|
|
309
312
|
}
|
|
310
313
|
}
|
|
311
314
|
|
|
312
|
-
|
|
315
|
+
if (changes.length > 0) {
|
|
316
|
+
yield changes
|
|
317
|
+
}
|
|
313
318
|
|
|
314
319
|
remaining -= changes.length
|
|
315
320
|
assert(remaining >= 0, 'invalid remaining: ' + remaining)
|