@ubs-platform/users-mona-microservice-helper 3.0.0-beta → 3.0.1-beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,11 @@ exports.BackendJwtUtilsModule = BackendJwtUtilsModule = tslib_1.__decorate([
22
22
  ...backend_jwt_utils_exports_module_1.BackendJwtUtilsExportModule,
23
23
  microservices_1.ClientsModule.register([
24
24
  Object.assign({ name: 'KAFKA_CLIENT' }, (0, nest_microservice_setup_util_1.getMicroserviceConnection)('')),
25
+ {
26
+ name: 'USER_MICROSERVICE',
27
+ transport: microservices_1.Transport.TCP,
28
+ options: { port: 13001 },
29
+ },
25
30
  ]),
26
31
  ],
27
32
  })
@@ -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,yDAAsD;AACtD,yFAAiF;AACjF,0EAAqE;AACrE,4DAAwD;AACxD,yDAAqD;AACrD,6FAAuF;AACvF,2DAA2D;AAgBpD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IAdjC,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,gBACE,IAAI,EAAE,cAAc,IACjB,IAAA,wDAAyB,EAAC,EAAE,CAAC,CAC1B;aACT,CAAC;SACH;KACF,CAAC;GACW,qBAAqB,CAAG"}
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;AACrD,6FAAuF;AACvF,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,gBACE,IAAI,EAAE,cAAc,IACjB,IAAA,wDAAyB,EAAC,EAAE,CAAC,CAC1B;gBACR;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)('USER_CLIENT')),
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,YACiC,UAA2C;QAA3C,eAAU,GAAV,UAAU,CAAiC;IACzE,CAAC;IAEJ,sBAAsB,CACpB,OAAe,EACf,IAAe;QAEf,IAAI,IAA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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
- var _a, _b;
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)('KAFKA_CLIENT')),
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;;QACV,MAAA,MAAC,IAAI,CAAC,UAA0B,EAAC,qBAAqB,mDAAG,YAAY,CAAC,CAAC;IACzE,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,cAAc,CAAC,CAAA;;GAFd,WAAW,CAiBvB"}
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.0-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.0-beta", "@ubs-platform/users-common": "3.0.0-beta", "@ubs-platform/users-mona-roles": "3.0.0-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" } }
1
+ { "name": "@ubs-platform/users-mona-microservice-helper", "version": "3.0.1-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.1-beta", "@ubs-platform/users-common": "3.0.1-beta", "@ubs-platform/users-mona-roles": "3.0.1-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" } }