@nocobase/server 1.9.0-alpha.1 → 1.9.0-alpha.3

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.
@@ -46,7 +46,7 @@ const traverseHasMany = /* @__PURE__ */ __name((arr, { collection, exclude = [],
46
46
  if (!arr) {
47
47
  return arr;
48
48
  }
49
- return arr.map((item) => traverseJSON(item, { collection, exclude, include }));
49
+ return arr.map((item) => traverseJSON(item, { collection, exclude, include, isHasManyField: true }));
50
50
  }, "traverseHasMany");
51
51
  const traverseBelongsToMany = /* @__PURE__ */ __name((arr, { collection, exclude = [], through }) => {
52
52
  if (!arr) {
@@ -107,7 +107,10 @@ const traverseJSON = /* @__PURE__ */ __name((data, options) => {
107
107
  if (field.options.isForeignKey) {
108
108
  continue;
109
109
  }
110
- if (["sort", "password", "sequence"].includes(field.type)) {
110
+ if (!options.isHasManyField && ["sort"].includes(field.type)) {
111
+ continue;
112
+ }
113
+ if (["password", "sequence"].includes(field.type)) {
111
114
  continue;
112
115
  }
113
116
  if (field.type === "hasOne") {
@@ -75,6 +75,7 @@ const deps = {
75
75
  ahooks: "3.x",
76
76
  lodash: "4.x",
77
77
  "china-division": "2.x",
78
- cronstrue: "2.x"
78
+ cronstrue: "2.x",
79
+ "@nocobase/license-kit": "0.2.x"
79
80
  };
80
81
  var deps_default = deps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "1.9.0-alpha.1",
3
+ "version": "1.9.0-alpha.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -10,19 +10,19 @@
10
10
  "@koa/cors": "^5.0.0",
11
11
  "@koa/multer": "^3.1.0",
12
12
  "@koa/router": "^13.1.0",
13
- "@nocobase/acl": "1.9.0-alpha.1",
14
- "@nocobase/actions": "1.9.0-alpha.1",
15
- "@nocobase/auth": "1.9.0-alpha.1",
16
- "@nocobase/cache": "1.9.0-alpha.1",
17
- "@nocobase/data-source-manager": "1.9.0-alpha.1",
18
- "@nocobase/database": "1.9.0-alpha.1",
19
- "@nocobase/evaluators": "1.9.0-alpha.1",
20
- "@nocobase/lock-manager": "1.9.0-alpha.1",
21
- "@nocobase/logger": "1.9.0-alpha.1",
22
- "@nocobase/resourcer": "1.9.0-alpha.1",
23
- "@nocobase/sdk": "1.9.0-alpha.1",
24
- "@nocobase/telemetry": "1.9.0-alpha.1",
25
- "@nocobase/utils": "1.9.0-alpha.1",
13
+ "@nocobase/acl": "1.9.0-alpha.3",
14
+ "@nocobase/actions": "1.9.0-alpha.3",
15
+ "@nocobase/auth": "1.9.0-alpha.3",
16
+ "@nocobase/cache": "1.9.0-alpha.3",
17
+ "@nocobase/data-source-manager": "1.9.0-alpha.3",
18
+ "@nocobase/database": "1.9.0-alpha.3",
19
+ "@nocobase/evaluators": "1.9.0-alpha.3",
20
+ "@nocobase/lock-manager": "1.9.0-alpha.3",
21
+ "@nocobase/logger": "1.9.0-alpha.3",
22
+ "@nocobase/resourcer": "1.9.0-alpha.3",
23
+ "@nocobase/sdk": "1.9.0-alpha.3",
24
+ "@nocobase/telemetry": "1.9.0-alpha.3",
25
+ "@nocobase/utils": "1.9.0-alpha.3",
26
26
  "@types/decompress": "4.2.7",
27
27
  "@types/ini": "^1.3.31",
28
28
  "@types/koa-send": "^4.1.3",
@@ -57,5 +57,5 @@
57
57
  "@types/serve-handler": "^6.1.1",
58
58
  "@types/ws": "^8.5.5"
59
59
  },
60
- "gitHead": "71ebde8a27da3c5c4d64194571804eeab6e95ce0"
60
+ "gitHead": "6805eded4b512efee8c191f58082bc0d43f0657a"
61
61
  }