@nocobase/database 1.6.0-beta.8 → 1.7.0-alpha.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.
|
@@ -81,6 +81,9 @@ const _InheritedCollection = class _InheritedCollection extends import_collectio
|
|
|
81
81
|
}
|
|
82
82
|
parentFields() {
|
|
83
83
|
const fields = /* @__PURE__ */ new Map();
|
|
84
|
+
if (!this.parents) {
|
|
85
|
+
return fields;
|
|
86
|
+
}
|
|
84
87
|
for (const parent of this.parents) {
|
|
85
88
|
if (parent.isInherited()) {
|
|
86
89
|
for (const [name, field] of parent.parentFields()) {
|
|
@@ -84,7 +84,8 @@ const _RelationRepository = class _RelationRepository {
|
|
|
84
84
|
decodeMultiTargetKey(str) {
|
|
85
85
|
try {
|
|
86
86
|
const decoded = decodeURIComponent(str);
|
|
87
|
-
|
|
87
|
+
const parsed = JSON.parse(decoded);
|
|
88
|
+
return typeof parsed === "object" && parsed !== null ? parsed : decoded;
|
|
88
89
|
} catch (e) {
|
|
89
90
|
return false;
|
|
90
91
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"license": "AGPL-3.0",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/logger": "1.
|
|
10
|
-
"@nocobase/utils": "1.
|
|
9
|
+
"@nocobase/logger": "1.7.0-alpha.1",
|
|
10
|
+
"@nocobase/utils": "1.7.0-alpha.1",
|
|
11
11
|
"async-mutex": "^0.3.2",
|
|
12
12
|
"chalk": "^4.1.1",
|
|
13
13
|
"cron-parser": "4.4.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
39
39
|
"directory": "packages/database"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e411c9728b4d1f16b0beac16e40dd3499352b052"
|
|
42
42
|
}
|