@nxtedition/lib 19.8.8 → 19.8.10
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 +4 -0
- package/package.json +1 -1
- package/util/template/javascript.js +1 -1
package/couch.js
CHANGED
|
@@ -1108,6 +1108,8 @@ export function request(
|
|
|
1108
1108
|
logger = null,
|
|
1109
1109
|
stream = false,
|
|
1110
1110
|
blocking = Boolean(stream),
|
|
1111
|
+
headerTimeout,
|
|
1112
|
+
bodyTimeout,
|
|
1111
1113
|
} = {},
|
|
1112
1114
|
) {
|
|
1113
1115
|
signal?.throwIfAborted()
|
|
@@ -1129,6 +1131,8 @@ export function request(
|
|
|
1129
1131
|
},
|
|
1130
1132
|
logger,
|
|
1131
1133
|
body: body != null && typeof body === 'object' ? JSON.stringify(body) : body,
|
|
1134
|
+
headerTimeout,
|
|
1135
|
+
bodyTimeout,
|
|
1132
1136
|
}
|
|
1133
1137
|
|
|
1134
1138
|
if (stream) {
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ class FetchEntry {
|
|
|
55
55
|
})
|
|
56
56
|
.then(async (res) => {
|
|
57
57
|
// TODO (fix): Check cache-control and invalidate entry...
|
|
58
|
-
const body = await res.text()
|
|
58
|
+
const body = await res.body.text()
|
|
59
59
|
if (this.refresh) {
|
|
60
60
|
// TODO (fix): max size...
|
|
61
61
|
this.status = res.statusCode
|