@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.
Files changed (2) hide show
  1. package/couch.js +6 -1
  2. 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
- yield changes
315
+ if (changes.length > 0) {
316
+ yield changes
317
+ }
313
318
 
314
319
  remaining -= changes.length
315
320
  assert(remaining >= 0, 'invalid remaining: ' + remaining)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "18.0.0",
3
+ "version": "18.0.2",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",