@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.
Files changed (2) hide show
  1. package/couch.js +8 -1
  2. 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 ? 256 : 1024)
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "17.2.20",
3
+ "version": "17.2.22",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",