dobo-extra 2.5.0 → 2.5.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/index.js CHANGED
@@ -141,7 +141,7 @@ async function factory (pkgName) {
141
141
  } = options
142
142
  const { importPkg } = this.app.bajo
143
143
  const { fs } = this.app.lib
144
- const { merge } = this.app.lib._
144
+ const { merge, omit } = this.app.lib._
145
145
  const { getModel } = this.app.dobo
146
146
 
147
147
  const getFile = async () => {
@@ -152,7 +152,7 @@ async function factory (pkgName) {
152
152
  file = `${this.app.getPluginDataDir(this.ns)}/export/${dest}`
153
153
  fs.ensureDirSync(path.dirname(file))
154
154
  }
155
- file = increment(file, { fs: true })
155
+ file = increment(file, { fs: true, platform: 'win32' })
156
156
  const dir = path.dirname(file)
157
157
  if (!fs.existsSync(dir)) {
158
158
  if (ensureDir) fs.ensureDirSync(dir)
@@ -189,7 +189,8 @@ async function factory (pkgName) {
189
189
  filter.sort = `${sort ?? idField}:1`
190
190
  for (;;) {
191
191
  const batchStart = new Date()
192
- const { data, page } = await model.findRecord(filter, { dataOnly: false, fields })
192
+ const { data: rows, page } = await model.findRecord(filter, { dataOnly: false, fields, fmt: true, refs: '*', noCache: true })
193
+ const data = rows.map(item => omit(item, ['_immutable', '_fmt', '_ref']))
193
194
  if (data.length === 0) break
194
195
  if (cnt + data.length > hardCap) {
195
196
  const sliced = data.slice(0, hardCap - cnt)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo-extra",
3
- "version": "2.5.0",
3
+ "version": "2.5.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-07-25
4
+
5
+ - [2.5.1] Bug fix in `exportTo()`
6
+
3
7
  ## 2026-07-13
4
8
 
5
9
  - [2.5.0] Reorganize files