@smartsoft001/mongo 1.0.537 → 1.0.538
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/mongo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.538",
|
|
4
4
|
"description": "Utils to mongo",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"typings": "./src/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@nestjs/common": "^7.6.3",
|
|
24
|
-
"@smartsoft001/domain-core": "1.0.
|
|
25
|
-
"@smartsoft001/models": "1.0.
|
|
24
|
+
"@smartsoft001/domain-core": "1.0.565",
|
|
25
|
+
"@smartsoft001/models": "1.0.592",
|
|
26
26
|
"reflect-metadata": "0.1.13",
|
|
27
|
-
"@smartsoft001/utils": "1.0.
|
|
27
|
+
"@smartsoft001/utils": "1.0.627",
|
|
28
28
|
"lodash": "^4.17.20",
|
|
29
29
|
"guid-typescript": "1.0.9",
|
|
30
30
|
"md5": "2.3.0",
|
|
31
31
|
"rxjs": "6.6.3",
|
|
32
|
-
"@smartsoft001/users": "1.0.
|
|
32
|
+
"@smartsoft001/users": "1.0.584",
|
|
33
33
|
"mongodb": "3.6.3",
|
|
34
|
-
"@smartsoft001/crud-shell-dtos": "1.0.
|
|
34
|
+
"@smartsoft001/crud-shell-dtos": "1.0.498"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {}
|
|
37
37
|
}
|
package/src/lib/mongo.module.js
CHANGED
|
@@ -8,19 +8,16 @@ const mongo_unitofwork_1 = require("./mongo.unitofwork");
|
|
|
8
8
|
const attachment_repository_1 = require("./repositories/attachment.repository");
|
|
9
9
|
class MongoModule {
|
|
10
10
|
static forRoot(config) {
|
|
11
|
+
const providers = [
|
|
12
|
+
{ provide: mongo_config_1.MongoConfig, useValue: config },
|
|
13
|
+
{ provide: domain_core_1.IItemRepository, useClass: item_repository_1.MongoItemRepository },
|
|
14
|
+
{ provide: domain_core_1.IAttachmentRepository, useClass: attachment_repository_1.MongoAttachmentRepository },
|
|
15
|
+
{ provide: domain_core_1.IUnitOfWork, useClass: mongo_unitofwork_1.MongoUnitOfWork }
|
|
16
|
+
];
|
|
11
17
|
return {
|
|
12
18
|
module: MongoModule,
|
|
13
|
-
providers:
|
|
14
|
-
|
|
15
|
-
{ provide: domain_core_1.IItemRepository, useClass: item_repository_1.MongoItemRepository },
|
|
16
|
-
{ provide: domain_core_1.IAttachmentRepository, useClass: attachment_repository_1.MongoAttachmentRepository },
|
|
17
|
-
{ provide: domain_core_1.IUnitOfWork, useClass: mongo_unitofwork_1.MongoUnitOfWork }
|
|
18
|
-
],
|
|
19
|
-
exports: [
|
|
20
|
-
{ provide: domain_core_1.IItemRepository, useClass: item_repository_1.MongoItemRepository },
|
|
21
|
-
{ provide: domain_core_1.IAttachmentRepository, useClass: attachment_repository_1.MongoAttachmentRepository },
|
|
22
|
-
{ provide: domain_core_1.IUnitOfWork, useClass: mongo_unitofwork_1.MongoUnitOfWork }
|
|
23
|
-
]
|
|
19
|
+
providers: providers,
|
|
20
|
+
exports: providers
|
|
24
21
|
};
|
|
25
22
|
}
|
|
26
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo.module.js","sourceRoot":"","sources":["../../../../../../libs/shared/mongo/src/lib/mongo.module.ts"],"names":[],"mappings":";;;AAEA,2DAA8F;AAE9F,iDAA2C;AAC3C,oEAAmE;AACnE,yDAAmD;AACnD,gFAA+E;AAE/E,MAAa,WAAW;IACpB,MAAM,CAAC,OAAO,CAAC,MAAmB;QAC9B,
|
|
1
|
+
{"version":3,"file":"mongo.module.js","sourceRoot":"","sources":["../../../../../../libs/shared/mongo/src/lib/mongo.module.ts"],"names":[],"mappings":";;;AAEA,2DAA8F;AAE9F,iDAA2C;AAC3C,oEAAmE;AACnE,yDAAmD;AACnD,gFAA+E;AAE/E,MAAa,WAAW;IACpB,MAAM,CAAC,OAAO,CAAC,MAAmB;QAC9B,MAAM,SAAS,GAAG;YACd,EAAE,OAAO,EAAE,0BAAW,EAAE,QAAQ,EAAE,MAAM,EAAE;YAC1C,EAAE,OAAO,EAAE,6BAAe,EAAE,QAAQ,EAAE,qCAAmB,EAAE;YAC3D,EAAE,OAAO,EAAE,mCAAqB,EAAE,QAAQ,EAAE,iDAAyB,EAAE;YACvE,EAAE,OAAO,EAAE,yBAAW,EAAE,QAAQ,EAAE,kCAAe,EAAE;SACtD,CAAC;QAEF,OAAO;YACH,MAAM,EAAE,WAAW;YACnB,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,SAAS;SACrB,CAAC;IACN,CAAC;CACJ;AAfD,kCAeC"}
|