@nxtedition/lib 19.5.5 → 19.5.7

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 +1 -1
  2. package/http.js +1 -2
  3. package/package.json +1 -1
package/couch.js CHANGED
@@ -179,7 +179,7 @@ export function makeCouch(opts) {
179
179
  if (options.heartbeat != null) {
180
180
  params.heartbeat = Number(options.heartbeat)
181
181
  } else {
182
- params.heartbeat = 10e3
182
+ params.heartbeat = 60e3
183
183
  }
184
184
 
185
185
  if (options.timeout != null) {
package/http.js CHANGED
@@ -81,6 +81,7 @@ export async function request(ctx, next) {
81
81
  // 'end' or 'error' will always be emitted.
82
82
  .on('close', function () {
83
83
  resolve(null)
84
+ ac.abort()
84
85
  })
85
86
  }),
86
87
  ])
@@ -159,8 +160,6 @@ export async function request(ctx, next) {
159
160
  res.destroy()
160
161
  }
161
162
  }
162
-
163
- ac.abort(err)
164
163
  }
165
164
  }
166
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.5.5",
3
+ "version": "19.5.7",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",