@nocobase/database 2.0.0-beta.10 → 2.0.0-beta.12
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.
|
@@ -40,7 +40,6 @@ __export(view_inference_exports, {
|
|
|
40
40
|
ViewFieldInference: () => ViewFieldInference
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(view_inference_exports);
|
|
43
|
-
var import_mathjs = require("mathjs");
|
|
44
43
|
var import_field_type_map = __toESM(require("./field-type-map"));
|
|
45
44
|
const _ViewFieldInference = class _ViewFieldInference {
|
|
46
45
|
static extractTypeFromDefinition(typeDefinition) {
|
|
@@ -137,7 +136,7 @@ const _ViewFieldInference = class _ViewFieldInference {
|
|
|
137
136
|
}
|
|
138
137
|
const queryType = this.extractTypeFromDefinition(options.type);
|
|
139
138
|
const mappedType = fieldTypeMap[queryType];
|
|
140
|
-
if (
|
|
139
|
+
if (Array.isArray(mappedType)) {
|
|
141
140
|
return {
|
|
142
141
|
type: mappedType[0],
|
|
143
142
|
possibleTypes: mappedType
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.12",
|
|
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": "2.0.0-beta.
|
|
10
|
-
"@nocobase/utils": "2.0.0-beta.
|
|
9
|
+
"@nocobase/logger": "2.0.0-beta.12",
|
|
10
|
+
"@nocobase/utils": "2.0.0-beta.12",
|
|
11
11
|
"async-mutex": "^0.3.2",
|
|
12
12
|
"chalk": "^4.1.1",
|
|
13
13
|
"cron-parser": "4.4.0",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"graphlib": "^2.1.8",
|
|
21
21
|
"joi": "^17.13.3",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
|
-
"mathjs": "^10.6.1",
|
|
24
23
|
"nanoid": "^3.3.11",
|
|
25
24
|
"node-fetch": "^2.6.7",
|
|
26
25
|
"node-sql-parser": "^4.18.0",
|
|
@@ -39,5 +38,5 @@
|
|
|
39
38
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
40
39
|
"directory": "packages/database"
|
|
41
40
|
},
|
|
42
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "184ac65ad8ca60618075936c990dc52addda79b7"
|
|
43
42
|
}
|