@nxtedition/lib 17.2.20 → 17.2.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 +4 -1
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -283,7 +283,7 @@ export function makeCouch(opts) {
|
|
|
283
283
|
|
|
284
284
|
async function* normal() {
|
|
285
285
|
const batchSize =
|
|
286
|
-
options.batch_size ?? options.batchSize ?? (params.include_docs ?
|
|
286
|
+
options.batch_size ?? options.batchSize ?? (params.include_docs ? 512 : 4096)
|
|
287
287
|
let remaining = parseInt(options.limit) || Infinity
|
|
288
288
|
|
|
289
289
|
const next = async () => {
|
|
@@ -846,6 +846,9 @@ export function makeCouch(opts) {
|
|
|
846
846
|
}
|
|
847
847
|
|
|
848
848
|
return {
|
|
849
|
+
get url() {
|
|
850
|
+
return config.url
|
|
851
|
+
},
|
|
849
852
|
request,
|
|
850
853
|
bulkDocs,
|
|
851
854
|
allDocs,
|