@nxtedition/lib 19.5.4 → 19.5.6

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/couch.js +2 -2
  2. package/package.json +1 -1
package/couch.js CHANGED
@@ -252,7 +252,7 @@ export function makeCouch(opts) {
252
252
  'request-id': genReqId(),
253
253
  ...(body ? { 'content-type': 'application/json' } : {}),
254
254
  },
255
- bodyTimeout: 2 * (params.heartbeat || 60e3),
255
+ bodyTimeout: live ? 2 * (params.heartbeat || 60e3) : 2 * 60e3,
256
256
  }
257
257
 
258
258
  const ures = await client.request(ureq)
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.5.4",
3
+ "version": "19.5.6",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",