@nxtedition/lib 19.10.1 → 19.10.3

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 (3) hide show
  1. package/app.js +1 -1
  2. package/couch.js +4 -2
  3. package/package.json +1 -1
package/app.js CHANGED
@@ -261,7 +261,7 @@ export function makeApp(appConfig, onTerminate) {
261
261
  const intervalHandle = setInterval(() => {
262
262
  let currentLag = Math.max(0, histogram.mean / 1e6 - resolution)
263
263
  if (Number.isNaN(currentLag)) {
264
- currentLag = null
264
+ currentLag = 0
265
265
  }
266
266
  histogram.reset()
267
267
 
package/couch.js CHANGED
@@ -231,8 +231,10 @@ export function makeCouch(opts) {
231
231
  client,
232
232
  })) {
233
233
  yield changes
234
- count += changes.length
235
- remaining -= changes.length
234
+ if (changes != null) {
235
+ count += changes.length
236
+ remaining -= changes.length
237
+ }
236
238
  }
237
239
  assert(remaining >= 0)
238
240
  if (!live && count < socketCount) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.10.1",
3
+ "version": "19.10.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",