@midwayjs/mongoose 3.4.0-beta.4 → 3.4.0-beta.7

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/dist/manager.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare class MongooseDataSourceManager extends DataSourceManager<mongoos
5
5
  logger: any;
6
6
  baseDir: string;
7
7
  init(): Promise<void>;
8
- protected createDataSource(config: any, name: string): Promise<mongoose.Connection>;
8
+ protected createDataSource(config: any, name: string): Promise<any>;
9
9
  getName(): string;
10
10
  destroyDataSource(dataSource: mongoose.Connection): Promise<void>;
11
11
  protected checkConnected(dataSource: mongoose.Connection): Promise<boolean>;
package/dist/manager.js CHANGED
@@ -28,7 +28,7 @@ let MongooseDataSourceManager = class MongooseDataSourceManager extends core_1.D
28
28
  await this.initDataSource(this.config, this.baseDir);
29
29
  }
30
30
  async createDataSource(config, name) {
31
- const connection = await mongoose.createConnection(config.uri, config.options);
31
+ const connection = (await mongoose.createConnection(config.uri, config.options));
32
32
  connection.on('error', err => {
33
33
  err.message = `[midway:mongoose] ${err.message}`;
34
34
  this.logger.error(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mongoose",
3
- "version": "3.4.0-beta.4",
3
+ "version": "3.4.0-beta.7",
4
4
  "description": "Midway Component for mongoose",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@midwayjs/core": "^3.4.0-beta.4",
26
- "@midwayjs/decorator": "^3.4.0-beta.4",
27
- "@midwayjs/mock": "^3.4.0-beta.4",
28
- "mongoose": "6.2.10"
25
+ "@midwayjs/core": "^3.4.0-beta.7",
26
+ "@midwayjs/decorator": "^3.4.0-beta.7",
27
+ "@midwayjs/mock": "^3.4.0-beta.7",
28
+ "mongoose": "6.4.4"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "mongoose": "*"
32
32
  },
33
- "gitHead": "3b686101f7802f87d47b8c9d25561339d556e573"
33
+ "gitHead": "4d5cc59a7a33e49beeaf20fcfaf766438649959c"
34
34
  }