@midwayjs/typegoose 4.0.0-beta.7 → 4.0.0-beta.8
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/configuration.js
CHANGED
|
@@ -16,10 +16,11 @@ const interface_1 = require("./interface");
|
|
|
16
16
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
17
17
|
const mongo = require("mongoose");
|
|
18
18
|
let TypegooseConfiguration = class TypegooseConfiguration {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
oldMongooseConfig;
|
|
20
|
+
legacyMode = false;
|
|
21
|
+
app;
|
|
22
|
+
decoratorService;
|
|
23
|
+
modelMap = new WeakMap();
|
|
23
24
|
async init() {
|
|
24
25
|
this.decoratorService.registerPropertyHandler(interface_1.ENTITY_MODEL_KEY, (propertyName, meta) => {
|
|
25
26
|
return this.modelMap.get(meta.modelKey);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntityModel =
|
|
3
|
+
exports.EntityModel = EntityModel;
|
|
4
4
|
const core_1 = require("@midwayjs/core");
|
|
5
5
|
const interface_1 = require("../interface");
|
|
6
6
|
function EntityModel(options) {
|
|
@@ -9,5 +9,4 @@ function EntityModel(options) {
|
|
|
9
9
|
core_1.MetadataManager.defineMetadata(interface_1.ENTITY_MODEL_KEY, options, target);
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
exports.EntityModel = EntityModel;
|
|
13
12
|
//# sourceMappingURL=entityModel.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InjectEntityModel =
|
|
3
|
+
exports.InjectEntityModel = InjectEntityModel;
|
|
4
4
|
const core_1 = require("@midwayjs/core");
|
|
5
5
|
const interface_1 = require("../interface");
|
|
6
6
|
function InjectEntityModel(modelKey) {
|
|
@@ -8,5 +8,4 @@ function InjectEntityModel(modelKey) {
|
|
|
8
8
|
modelKey,
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
exports.InjectEntityModel = InjectEntityModel;
|
|
12
11
|
//# sourceMappingURL=injectEntityModel.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/typegoose",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.8",
|
|
4
4
|
"description": "Midway Component for typegoose",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@midwayjs/mongoose": "^4.0.0-beta.
|
|
25
|
+
"@midwayjs/mongoose": "^4.0.0-beta.8"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
29
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
28
|
+
"@midwayjs/core": "^4.0.0-beta.8",
|
|
29
|
+
"@midwayjs/mock": "^4.0.0-beta.8",
|
|
30
30
|
"@typegoose/typegoose": "12.10.1",
|
|
31
31
|
"mongoose": "8.9.5"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
|
|
34
34
|
}
|