@midwayjs/leoric 4.0.0-alpha.1 → 4.0.0-beta.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.
package/README.md CHANGED
@@ -60,4 +60,4 @@ export class UserController {
60
60
 
61
61
  ## License
62
62
 
63
- [MIT]((http://github.com/midwayjs/midway/blob/master/LICENSE))
63
+ [MIT]((https://github.com/midwayjs/midway/blob/master/LICENSE))
@@ -4,7 +4,6 @@ import { LeoricConfigOption } from './interface';
4
4
  export declare class LeoricDataSourceManager extends DataSourceManager<Realm, ConnectOptions> {
5
5
  leoricConfig: LeoricConfigOption;
6
6
  coreLogger: ILogger;
7
- baseDir: string;
8
7
  init(): Promise<void>;
9
8
  getName(): string;
10
9
  protected createDataSource(config: any, dataSourceName: string): Promise<Realm>;
@@ -43,8 +43,8 @@ let LeoricDataSourceManager = class LeoricDataSourceManager extends core_1.DataS
43
43
  }
44
44
  }
45
45
  await this.initDataSource(this.leoricConfig, {
46
- baseDir: this.baseDir,
47
46
  entitiesConfigKey: 'models',
47
+ concurrent: true,
48
48
  });
49
49
  }
50
50
  getName() {
@@ -87,10 +87,6 @@ __decorate([
87
87
  (0, core_1.Logger)('coreLogger'),
88
88
  __metadata("design:type", Object)
89
89
  ], LeoricDataSourceManager.prototype, "coreLogger", void 0);
90
- __decorate([
91
- (0, core_1.Inject)(),
92
- __metadata("design:type", String)
93
- ], LeoricDataSourceManager.prototype, "baseDir", void 0);
94
90
  __decorate([
95
91
  (0, core_1.Init)(),
96
92
  __metadata("design:type", Function),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/leoric",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-beta.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.2"
21
+ "leoric": "2.13.8"
22
22
  },
23
23
  "devDependencies": {
24
- "@midwayjs/core": "^4.0.0-alpha.1",
25
- "@midwayjs/koa": "^4.0.0-alpha.1",
26
- "@midwayjs/mock": "^4.0.0-alpha.1",
24
+ "@midwayjs/core": "^4.0.0-beta.2",
25
+ "@midwayjs/koa": "^4.0.0-beta.2",
26
+ "@midwayjs/mock": "^4.0.0-beta.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": "14bb4da91805a1cf52f190c0d37a74b395dd6372"
39
+ "gitHead": "53bfef4c5279da5f09025e4610bdbf64f94f60bd"
40
40
  }