@ubs-platform/users-mona-microservice-helper 3.0.0-beta → 3.0.2-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/backend-jwt-utils.module.js +9 -2
- package/dist/lib/backend-jwt-utils.module.js.map +1 -1
- package/dist/lib/guards/communication-handler.js +1 -1
- package/dist/lib/guards/communication-handler.js.map +1 -1
- package/dist/lib/service/user.service.js +2 -3
- package/dist/lib/service/user.service.js.map +1 -1
- package/package.json +1 -1
@@ -8,7 +8,6 @@ const backend_jwt_utils_exports_module_1 = require("./backend-jwt-utils-exports.
|
|
8
8
|
const communication_handler_1 = require("./guards/communication-handler");
|
9
9
|
const jwt_strategy_1 = require("./strategies/jwt.strategy");
|
10
10
|
const user_service_1 = require("./service/user.service");
|
11
|
-
const nest_microservice_setup_util_1 = require("@ubs-platform/nest-microservice-setup-util");
|
12
11
|
// import { JwtStrategy } from './strategies/jwt.strategy';
|
13
12
|
let BackendJwtUtilsModule = class BackendJwtUtilsModule {
|
14
13
|
};
|
@@ -21,7 +20,15 @@ exports.BackendJwtUtilsModule = BackendJwtUtilsModule = tslib_1.__decorate([
|
|
21
20
|
imports: [
|
22
21
|
...backend_jwt_utils_exports_module_1.BackendJwtUtilsExportModule,
|
23
22
|
microservices_1.ClientsModule.register([
|
24
|
-
|
23
|
+
// {
|
24
|
+
// name: 'KAFKA_CLIENT',
|
25
|
+
// ...getMicroserviceConnection(''),
|
26
|
+
// } as any,
|
27
|
+
{
|
28
|
+
name: 'USER_MICROSERVICE',
|
29
|
+
transport: microservices_1.Transport.TCP,
|
30
|
+
options: { port: 13001 },
|
31
|
+
},
|
25
32
|
]),
|
26
33
|
],
|
27
34
|
})
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"backend-jwt-utils.module.js","sourceRoot":"","sources":["../../src/lib/backend-jwt-utils.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,
|
1
|
+
{"version":3,"file":"backend-jwt-utils.module.js","sourceRoot":"","sources":["../../src/lib/backend-jwt-utils.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,yDAAiE;AACjE,yFAAiF;AACjF,0EAAqE;AACrE,4DAAwD;AACxD,yDAAqD;AAErD,2DAA2D;AAqBpD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IAnBjC,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,CAAC,2CAAmB,EAAE,0BAAW,EAAE,0BAAW,CAAC;QAC1D,OAAO,EAAE,CAAC,0BAAW,CAAC;QACtB,OAAO,EAAE;YACP,GAAG,8DAA2B;YAC9B,6BAAa,CAAC,QAAQ,CAAC;gBACrB,IAAI;gBACJ,0BAA0B;gBAC1B,sCAAsC;gBACtC,YAAY;gBACZ;oBACE,IAAI,EAAE,mBAAmB;oBACzB,SAAS,EAAE,yBAAS,CAAC,GAAG;oBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;iBACzB;aACF,CAAC;SACH;KACF,CAAC;GACW,qBAAqB,CAAG"}
|
@@ -22,7 +22,7 @@ let CommunicationHelper = class CommunicationHelper {
|
|
22
22
|
exports.CommunicationHelper = CommunicationHelper;
|
23
23
|
exports.CommunicationHelper = CommunicationHelper = tslib_1.__decorate([
|
24
24
|
(0, common_1.Injectable)(),
|
25
|
-
tslib_1.__param(0, (0, common_1.Inject)('
|
25
|
+
tslib_1.__param(0, (0, common_1.Inject)('USER_MICROSERVICE')),
|
26
26
|
tslib_1.__metadata("design:paramtypes", [Object])
|
27
27
|
], CommunicationHelper);
|
28
28
|
//# sourceMappingURL=communication-handler.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"communication-handler.js","sourceRoot":"","sources":["../../../src/lib/guards/communication-handler.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,yDAAiE;AACjE,+BAAkD;AAG3C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,
|
1
|
+
{"version":3,"file":"communication-handler.js","sourceRoot":"","sources":["../../../src/lib/guards/communication-handler.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,yDAAiE;AACjE,+BAAkD;AAG3C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEU,UAA2C;QAA3C,eAAU,GAAV,UAAU,CAAiC;IAClD,CAAC;IAEJ,sBAAsB,CACpB,OAAe,EACf,IAAe;QAEf,IAAI,IAAI,CAAC,UAAU,YAAY,2BAAW,EAAE,CAAC;YAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAA8B,CAAC;QAC1E,CAAC;QACD,IAAI,IAAI,CAAC,UAAU,YAAY,2BAAW,EAAE,CAAC;YAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAA8B,CAAC;QAC1E,CAAC;QACD,OAAO,IAAI,iBAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AAlBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;;GAFnB,mBAAmB,CAkB/B"}
|
@@ -9,8 +9,7 @@ let UserService = class UserService {
|
|
9
9
|
this.userClient = userClient;
|
10
10
|
}
|
11
11
|
onModuleInit() {
|
12
|
-
|
13
|
-
(_b = (_a = this.userClient).subscribeToResponseOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'user-by-id');
|
12
|
+
// (this.userClient as ClientKafka).subscribeToResponseOf?.('user-by-id');
|
14
13
|
}
|
15
14
|
findUserAuth(userId) {
|
16
15
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
@@ -24,7 +23,7 @@ let UserService = class UserService {
|
|
24
23
|
exports.UserService = UserService;
|
25
24
|
exports.UserService = UserService = tslib_1.__decorate([
|
26
25
|
(0, common_1.Injectable)(),
|
27
|
-
tslib_1.__param(0, (0, common_1.Inject)('
|
26
|
+
tslib_1.__param(0, (0, common_1.Inject)('USER_MICROSERVICE')),
|
28
27
|
tslib_1.__metadata("design:paramtypes", [Object])
|
29
28
|
], UserService);
|
30
29
|
//# sourceMappingURL=user.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../src/lib/service/user.service.ts"],"names":[],"mappings":";;;;AAAA,2CAAkE;AAIlE,+BAAsC;AAG/B,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAEU,UAAuD;QAAvD,eAAU,GAAV,UAAU,CAA6C;IAC9D,CAAC;IACJ,YAAY
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../src/lib/service/user.service.ts"],"names":[],"mappings":";;;;AAAA,2CAAkE;AAIlE,+BAAsC;AAG/B,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAEU,UAAuD;QAAvD,eAAU,GAAV,UAAU,CAA6C;IAC9D,CAAC;IACJ,YAAY;QACV,0EAA0E;IAC5E,CAAC;IAEK,YAAY,CAAC,MAAW;;YAC5B,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAC/B,MAAM,IAAI,GAAG,CAAC,MAAM,IAAA,qBAAc,EAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAC3C,CAAY,CAAC;YACd,OAAO,CAAC,KAAK,CAAC,wBAAwB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;CACF,CAAA;AAjBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;;GAFnB,WAAW,CAiBvB"}
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{ "name": "@ubs-platform/users-mona-microservice-helper", "version": "3.0.
|
1
|
+
{ "name": "@ubs-platform/users-mona-microservice-helper", "version": "3.0.2-beta", "private": false, "main": "dist/index.js", "license": "MIT", "author": "Unlimited Bundle Systems", "homepage": "https://github.com/ubs-platform/users-mona-microservice-helper", "repository": { "type": "git", "url": "https://github.com/ubs-platform/users-mona-microservice-helper" }, "scripts": { "build": "tsc", "build-publish": "npm run build && npm publish --tag beta" }, "peerDependencies": { "@nestjs/common": "^10.0.2", "@nestjs/core": "^10.0.2", "@nestjs/jwt": "^10.2.0", "@nestjs/microservices": "^10.3.3", "@nestjs/mongoose": "^10.0.4", "@nestjs/passport": "^10.0.3", "@nestjs/platform-express": "^10.0.2", "@ubs-platform/nest-microservice-setup-util": "3.0.2-beta", "@ubs-platform/users-common": "3.0.2-beta", "@ubs-platform/users-mona-roles": "3.0.2-beta", "passport-jwt": "^4.0.1", "rxjs": "^7.8.0" }, "dependencies": { "tslib": "^2.3.0", "crypto-promise": "^2.1.0" }, "devDependencies": { "typescript": "~5.3.2", "@types/node": "~18.16.9" }, "publishConfig": { "access": "public" } }
|