@midwayjs/leoric 3.19.0 → 3.19.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.
|
@@ -37,6 +37,11 @@ const core_1 = require("@midwayjs/core");
|
|
|
37
37
|
const leoric_1 = __importStar(require("leoric"));
|
|
38
38
|
let LeoricDataSourceManager = class LeoricDataSourceManager extends core_1.DataSourceManager {
|
|
39
39
|
async init() {
|
|
40
|
+
if (Object.keys(this.leoricConfig.dataSource).length > 1) {
|
|
41
|
+
for (const dataSource of Object.values(this.leoricConfig.dataSource)) {
|
|
42
|
+
dataSource.subclass = true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
40
45
|
await this.initDataSource(this.leoricConfig, {
|
|
41
46
|
baseDir: this.baseDir,
|
|
42
47
|
entitiesConfigKey: 'models',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/leoric",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.2",
|
|
4
4
|
"description": "Leoric as a Midway model component",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"leoric": "2.13.
|
|
21
|
+
"leoric": "2.13.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@midwayjs/core": "^3.19.0",
|
|
25
|
-
"@midwayjs/koa": "^3.19.
|
|
26
|
-
"@midwayjs/mock": "^3.19.
|
|
25
|
+
"@midwayjs/koa": "^3.19.2",
|
|
26
|
+
"@midwayjs/mock": "^3.19.2",
|
|
27
27
|
"sqlite3": "5.1.7"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "https://github.com/midwayjs/midway.git"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "57fd034be94897fb819b0d9ef776de0b9923ab0f"
|
|
40
40
|
}
|