@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.
Files changed (2) hide show
  1. package/deepstream.js +2 -1
  2. 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 (rows.length < limit && finished) {
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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.0.20",
3
+ "version": "19.0.21",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",