@nxtedition/lib 15.1.2 → 15.1.4

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/couch.js +4 -0
  2. package/http.js +0 -4
  3. package/package.json +1 -1
package/couch.js CHANGED
@@ -340,7 +340,11 @@ module.exports = function (opts) {
340
340
 
341
341
  if (seq) {
342
342
  params.since = seq
343
+ if (results.length > 0 && !results.at(-1)?.seq) {
344
+ results.at(-1).seq = seq
345
+ }
343
346
  }
347
+
344
348
  remaining -= results.length
345
349
 
346
350
  if (!live && results.length === 0) {
package/http.js CHANGED
@@ -108,8 +108,6 @@ module.exports.request = async function request(ctx, next) {
108
108
  } else {
109
109
  reqLogger.trace({ res, responseTime }, 'request completed')
110
110
  }
111
-
112
- ac.abort()
113
111
  } catch (err) {
114
112
  const reason = ac.signal.reason
115
113
  const responseTime = Math.round(performance.now() - startTime)
@@ -181,8 +179,6 @@ module.exports.request = async function request(ctx, next) {
181
179
  res.destroy()
182
180
  }
183
181
  }
184
- } finally {
185
- res.destroy()
186
182
  }
187
183
  }
188
184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "15.1.2",
3
+ "version": "15.1.4",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "files": [