dobo-extra 2.3.0 → 2.3.1

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/lib/export-to.js CHANGED
@@ -37,7 +37,7 @@ async function getData ({ source, filter, count, stream, progressFn, fields }) {
37
37
  let cnt = count ?? 0
38
38
  const { find } = this.app.lib._
39
39
  const { recordFind, getSchema } = this.app.dobo
40
- const { maxLimit, hardLimit } = this.app.dobo.config.default.filter
40
+ const { maxLimit, hardCap } = this.app.dobo.config.default.filter
41
41
  filter.limit = maxLimit
42
42
  let sort
43
43
  const schema = getSchema(source)
@@ -54,8 +54,8 @@ async function getData ({ source, filter, count, stream, progressFn, fields }) {
54
54
  const batchStart = new Date()
55
55
  const { data, page } = await recordFind(source, filter, { dataOnly: false, fields })
56
56
  if (data.length === 0) break
57
- if (cnt + data.length > hardLimit) {
58
- const sliced = data.slice(0, hardLimit - cnt)
57
+ if (cnt + data.length > hardCap) {
58
+ const sliced = data.slice(0, hardCap - cnt)
59
59
  await stream.pull(sliced)
60
60
  cnt += sliced.length
61
61
  if (progressFn) await progressFn.call(this, { batchNo: page, data: sliced, batchStart, batchEnd: new Date() })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo-extra",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Bajo DB Extra Tools/Utility",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-04-11
4
+
5
+ - [2.3.1] Bug fix in ```export-to.js```
6
+
3
7
  ## 2026-03-22
4
8
 
5
9
  - [2.3.0] Add ```.ndjson``` and published to be a ```config handler```