@tsed/mongoose 6.68.3 → 6.69.0-rc.4
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/lib/MongooseModule.d.ts +1 -1
- package/lib/MongooseModule.js +3 -3
- package/lib/MongooseModule.js.map +1 -1
- package/package.json +12 -12
package/lib/MongooseModule.d.ts
CHANGED
package/lib/MongooseModule.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MongooseModule = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("@tsed/common");
|
|
6
5
|
const di_1 = require("@tsed/di");
|
|
6
|
+
const di_2 = require("@tsed/di");
|
|
7
7
|
const MongooseConnections_1 = require("./services/MongooseConnections");
|
|
8
8
|
const MongooseService_1 = require("./services/MongooseService");
|
|
9
9
|
/**
|
|
@@ -26,10 +26,10 @@ let MongooseModule = class MongooseModule {
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
MongooseModule = tslib_1.__decorate([
|
|
29
|
-
|
|
29
|
+
di_2.Module({
|
|
30
30
|
imports: [MongooseConnections_1.MONGOOSE_CONNECTIONS]
|
|
31
31
|
}),
|
|
32
|
-
tslib_1.__param(1,
|
|
32
|
+
tslib_1.__param(1, di_1.Configuration()),
|
|
33
33
|
tslib_1.__metadata("design:paramtypes", [MongooseService_1.MongooseService, Object])
|
|
34
34
|
], MongooseModule);
|
|
35
35
|
exports.MongooseModule = MongooseModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MongooseModule.js","sourceRoot":"","sources":["../src/MongooseModule.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"MongooseModule.js","sourceRoot":"","sources":["../src/MongooseModule.ts"],"names":[],"mappings":";;;;AAAA,iCAA+C;AAC/C,iCAA2C;AAC3C,wEAAoE;AACpE,gEAA2D;AAE3D;;GAEG;AAIH,IAAa,cAAc,GAA3B,MAAa,cAAc;IACzB,YAAoB,eAAgC,EAA2B,QAAuB;QAAlF,oBAAe,GAAf,eAAe,CAAiB;QAA2B,aAAQ,GAAR,QAAQ,CAAe;QACpG,6EAA6E;QAC7E,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAM,OAAO,CAAC,CAAC;QAE9C,uBAAuB;QACvB,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,EAAE;YACnB,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC;SAC/C;IACH,CAAC;IAED,OAAO,KAAyB,CAAC;IAEjC,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC;IACjD,CAAC;CACF,CAAA;AAhBY,cAAc;IAH1B,WAAM,CAAC;QACN,OAAO,EAAE,CAAC,0CAAoB,CAAC;KAChC,CAAC;IAEuD,mBAAA,kBAAa,EAAE,CAAA;6CAAjC,iCAAe;GADzC,cAAc,CAgB1B;AAhBY,wCAAc","sourcesContent":["import {Configuration, OnInit} from \"@tsed/di\";\nimport {Module, OnDestroy} from \"@tsed/di\";\nimport {MONGOOSE_CONNECTIONS} from \"./services/MongooseConnections\";\nimport {MongooseService} from \"./services/MongooseService\";\n\n/**\n * @ignore\n */\n@Module({\n imports: [MONGOOSE_CONNECTIONS]\n})\nexport class MongooseModule implements OnDestroy, OnInit {\n constructor(private mongooseService: MongooseService, @Configuration() private settings: Configuration) {\n // auto configure the cache manager when mongoose is used with @tsed/mongoose\n const cache = this.settings.get<any>(\"cache\");\n\n // istanbul ignore next\n if (cache?.mongoose) {\n cache.connection = this.mongooseService.get();\n }\n }\n\n $onInit(): void | Promise<any> {}\n\n $onDestroy(): Promise<any> | void {\n return this.mongooseService.closeConnections();\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/mongoose",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.69.0-rc.4",
|
|
4
4
|
"description": "Mongoose package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"tslib": "2.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tsed/ajv": "6.
|
|
29
|
-
"@tsed/
|
|
30
|
-
"@tsed/
|
|
31
|
-
"@tsed/
|
|
28
|
+
"@tsed/ajv": "6.69.0-rc.4",
|
|
29
|
+
"@tsed/core": "6.69.0-rc.4",
|
|
30
|
+
"@tsed/di": "6.69.0-rc.4",
|
|
31
|
+
"@tsed/json-mapper": "6.69.0-rc.4",
|
|
32
|
+
"@tsed/logger": "^5.16.0",
|
|
33
|
+
"@tsed/schema": "6.69.0-rc.4",
|
|
32
34
|
"mongoose": "^5.12.2"
|
|
33
35
|
},
|
|
34
36
|
"peerDependencies": {
|
|
35
|
-
"@tsed/ajv": "^6.
|
|
36
|
-
"@tsed/
|
|
37
|
-
"@tsed/
|
|
38
|
-
"@tsed/
|
|
39
|
-
"@tsed/exceptions": "^6.68.2",
|
|
37
|
+
"@tsed/ajv": "^6.69.0-rc.4",
|
|
38
|
+
"@tsed/core": "^6.69.0-rc.4",
|
|
39
|
+
"@tsed/di": "^6.69.0-rc.4",
|
|
40
|
+
"@tsed/json-mapper": "^6.69.0-rc.4",
|
|
40
41
|
"@tsed/logger": "^5.16.0",
|
|
41
|
-
"@tsed/
|
|
42
|
-
"@tsed/schema": "^6.68.2",
|
|
42
|
+
"@tsed/schema": "^6.69.0-rc.4",
|
|
43
43
|
"mongoose": "^5.12.2"
|
|
44
44
|
},
|
|
45
45
|
"repository": "https://github.com/tsedio/tsed",
|