@nxtedition/lib 19.0.20 → 19.0.21
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/deepstream.js +2 -1
- package/package.json +1 -1
package/deepstream.js
CHANGED
|
@@ -136,11 +136,12 @@ function query(ds, designId, options) {
|
|
|
136
136
|
.pipe(
|
|
137
137
|
rxjs.switchMap(({ rows, finished }) => {
|
|
138
138
|
const nextRows = prevRows ? [...prevRows, ...rows] : rows
|
|
139
|
-
if (
|
|
139
|
+
if (finished) {
|
|
140
140
|
return rxjs.of({ rows: nextRows })
|
|
141
141
|
} else {
|
|
142
142
|
const last = rows.pop()
|
|
143
143
|
assert(last.key)
|
|
144
|
+
assert(rows.length > 0)
|
|
144
145
|
return next(last.key, nextRows, limit - rows.length)
|
|
145
146
|
}
|
|
146
147
|
}),
|