@midwayjs/mongoose 3.4.10 → 3.4.13
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.js +3 -0
- package/package.json +5 -5
package/dist/manager.js
CHANGED
|
@@ -114,6 +114,9 @@ exports.MongooseConnectionServiceFactory = MongooseConnectionServiceFactory;
|
|
|
114
114
|
let MongooseConnectionService = class MongooseConnectionService {
|
|
115
115
|
async init() {
|
|
116
116
|
this.instance = this.mongooseDataSourceManager.getDataSource('default');
|
|
117
|
+
if (!this.instance) {
|
|
118
|
+
throw new core_1.MidwayCommonError('mongoose default instance not found.');
|
|
119
|
+
}
|
|
117
120
|
}
|
|
118
121
|
};
|
|
119
122
|
__decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/mongoose",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.13",
|
|
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.
|
|
26
|
-
"@midwayjs/decorator": "^3.4.
|
|
27
|
-
"@midwayjs/mock": "^3.4.
|
|
25
|
+
"@midwayjs/core": "^3.4.13",
|
|
26
|
+
"@midwayjs/decorator": "^3.4.11",
|
|
27
|
+
"@midwayjs/mock": "^3.4.13",
|
|
28
28
|
"mongoose": "6.5.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"mongoose": "*"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "bde878f01df0a4b27919eea367d100b5ee5edb04"
|
|
34
34
|
}
|