@nxtedition/lib 17.2.20 → 17.2.22
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 +8 -1
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -157,6 +157,10 @@ export function makeCouch(opts) {
|
|
|
157
157
|
params.since = options.since
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
if (options.until != null) {
|
|
161
|
+
params.until = options.until
|
|
162
|
+
}
|
|
163
|
+
|
|
160
164
|
if (options.style != null) {
|
|
161
165
|
params.style = options.style
|
|
162
166
|
}
|
|
@@ -283,7 +287,7 @@ export function makeCouch(opts) {
|
|
|
283
287
|
|
|
284
288
|
async function* normal() {
|
|
285
289
|
const batchSize =
|
|
286
|
-
options.batch_size ?? options.batchSize ?? (params.include_docs ?
|
|
290
|
+
options.batch_size ?? options.batchSize ?? (params.include_docs ? 512 : 4096)
|
|
287
291
|
let remaining = parseInt(options.limit) || Infinity
|
|
288
292
|
|
|
289
293
|
const next = async () => {
|
|
@@ -846,6 +850,9 @@ export function makeCouch(opts) {
|
|
|
846
850
|
}
|
|
847
851
|
|
|
848
852
|
return {
|
|
853
|
+
get url() {
|
|
854
|
+
return config.url
|
|
855
|
+
},
|
|
849
856
|
request,
|
|
850
857
|
bulkDocs,
|
|
851
858
|
allDocs,
|