@nxtedition/lib 19.5.3 → 19.5.5
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 +1 -1
- package/deepstream.js +1 -1
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -332,7 +332,7 @@ export function makeCouch(opts) {
|
|
|
332
332
|
assert(params.since, 'invalid trailer: ' + line)
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
} else if (changes.length) {
|
|
335
|
+
} else if (changes.length || line === '') {
|
|
336
336
|
remaining -= changes.length
|
|
337
337
|
assert(remaining >= 0, 'invalid remaining: ' + remaining)
|
|
338
338
|
|
package/deepstream.js
CHANGED
|
@@ -165,7 +165,7 @@ function query(ds, designId, params, state = ds.record.PROVIDER) {
|
|
|
165
165
|
// assert(Array.isArray(rows))
|
|
166
166
|
// assert(typeof finished === 'boolean')
|
|
167
167
|
const rows = prevRows.length ? [...prevRows, ...currRows] : currRows
|
|
168
|
-
return finished
|
|
168
|
+
return finished || currRows.length === 0
|
|
169
169
|
? rxjs.of({ rows })
|
|
170
170
|
: next(currRows.at(-1).key + '\u0000', rows, limit - currRows.length)
|
|
171
171
|
}),
|