@nxtedition/lib 14.0.20 → 14.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.
- package/couch.js +3 -9
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -231,7 +231,7 @@ module.exports = function (opts) {
|
|
|
231
231
|
...options.query,
|
|
232
232
|
feed: 'continuous',
|
|
233
233
|
})}`,
|
|
234
|
-
idempotent:
|
|
234
|
+
idempotent: false,
|
|
235
235
|
blocking: true,
|
|
236
236
|
method,
|
|
237
237
|
body: JSON.stringify(body),
|
|
@@ -241,18 +241,12 @@ module.exports = function (opts) {
|
|
|
241
241
|
'request-id': genReqId(),
|
|
242
242
|
...(body ? { 'content-type': 'application/json' } : {}),
|
|
243
243
|
},
|
|
244
|
+
throwOnError: true,
|
|
244
245
|
highWaterMark: 128 * 1024, // TODO (fix): Needs support in undici...
|
|
245
246
|
bodyTimeout: 2 * (params.heartbeat || 60e3),
|
|
246
247
|
}
|
|
247
|
-
const res = await client.request(req)
|
|
248
248
|
|
|
249
|
-
|
|
250
|
-
throw makeError(req, {
|
|
251
|
-
status: res.statusCode,
|
|
252
|
-
headers: res.headers,
|
|
253
|
-
data: await res.body.text(),
|
|
254
|
-
})
|
|
255
|
-
}
|
|
249
|
+
const res = await client.request(req)
|
|
256
250
|
|
|
257
251
|
retryCount = 0
|
|
258
252
|
|