@nxtedition/lib 20.0.0 → 20.0.1
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 +2 -2
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -333,7 +333,7 @@ export function makeCouch(opts) {
|
|
|
333
333
|
for (const line of lines) {
|
|
334
334
|
if (line === '') {
|
|
335
335
|
// hearbeat
|
|
336
|
-
yield batched ? [] : {
|
|
336
|
+
yield batched ? [] : {}
|
|
337
337
|
} else if (line === ',') {
|
|
338
338
|
// Do nothing. Couch sometimes insert new line between
|
|
339
339
|
// json body and comma.
|
|
@@ -390,7 +390,7 @@ export function makeCouch(opts) {
|
|
|
390
390
|
resume = resolve
|
|
391
391
|
})
|
|
392
392
|
} else {
|
|
393
|
-
yield { seq: params.since }
|
|
393
|
+
yield batched ? [{ seq: params.since }] : { seq: params.since }
|
|
394
394
|
return
|
|
395
395
|
}
|
|
396
396
|
}
|