dobo 2.36.0 → 2.36.2
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.
|
@@ -41,7 +41,7 @@ async function modelRebuild (path, ...args) {
|
|
|
41
41
|
}
|
|
42
42
|
const exists = await model.exists({ spinner: spin })
|
|
43
43
|
if (exists) {
|
|
44
|
-
if (this.app.
|
|
44
|
+
if (this.app.argv._.force) {
|
|
45
45
|
try {
|
|
46
46
|
await model.drop({ spinner: spin })
|
|
47
47
|
spin.setText('modelDropped%s', model.name)
|
|
@@ -11,7 +11,7 @@ const action = 'modelExists'
|
|
|
11
11
|
* @see {@link module:Hook.beforeModelExists}
|
|
12
12
|
* @see {@link module:Hook.afterModelExists}
|
|
13
13
|
*/
|
|
14
|
-
async function
|
|
14
|
+
async function exists (opts = {}) {
|
|
15
15
|
opts.dataOnly = opts.dataOnly ?? true
|
|
16
16
|
const { dataOnly } = opts
|
|
17
17
|
const { options } = await getFilterAndOptions.call(this, null, opts, action)
|
|
@@ -23,4 +23,4 @@ async function isExists (opts = {}) {
|
|
|
23
23
|
return dataOnly ? result.data : result
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export default
|
|
26
|
+
export default exists
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-08-03
|
|
4
|
+
|
|
5
|
+
- [2.36.2] Bug fix in `model.rebuildModel()`
|
|
6
|
+
|
|
3
7
|
## 2026-07-31
|
|
4
8
|
|
|
5
9
|
- [2.36.0] Add test suite
|
|
6
10
|
- [2.36.0] Add parameter `options` to `model.sanitizeRecord()`
|
|
11
|
+
- [2.36.1] Bug fix in `model.exists()`
|
|
7
12
|
|
|
8
13
|
## 2026-07-29
|
|
9
14
|
|