@ubs-platform/users-mona-microservice-helper 3.0.3-beta → 3.0.4-beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,6 @@
1
+ export declare const INTERNAL_COMMUNICATION: {
2
+ port: number;
3
+ host: string;
4
+ };
1
5
  export declare class BackendJwtUtilsModule {
2
6
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BackendJwtUtilsModule = void 0;
3
+ exports.BackendJwtUtilsModule = exports.INTERNAL_COMMUNICATION = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const common_1 = require("@nestjs/common");
6
6
  const microservices_1 = require("@nestjs/microservices");
@@ -8,9 +8,11 @@ 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
- //@ts-ignore
12
- const consts_1 = require("../../../consts/consts");
13
11
  // import { JwtStrategy } from './strategies/jwt.strategy';
12
+ exports.INTERNAL_COMMUNICATION = {
13
+ port: parseInt(process.env['U_USERS_MONA_INTERNAL_COM_PORT'] || '0'),
14
+ host: process.env['U_USERS_MONA_INTERNAL_COM_HOST'],
15
+ };
14
16
  let BackendJwtUtilsModule = class BackendJwtUtilsModule {
15
17
  };
16
18
  exports.BackendJwtUtilsModule = BackendJwtUtilsModule;
@@ -30,8 +32,8 @@ exports.BackendJwtUtilsModule = BackendJwtUtilsModule = tslib_1.__decorate([
30
32
  name: 'USER_MICROSERVICE',
31
33
  transport: microservices_1.Transport.TCP,
32
34
  options: {
33
- port: consts_1.INTERNAL_COMMUNICATION.port,
34
- host: consts_1.INTERNAL_COMMUNICATION.host,
35
+ port: exports.INTERNAL_COMMUNICATION.port,
36
+ host: exports.INTERNAL_COMMUNICATION.host,
35
37
  },
36
38
  },
37
39
  ]),
@@ -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,yDAAiE;AACjE,yFAAiF;AACjF,0EAAqE;AACrE,4DAAwD;AACxD,yDAAqD;AAErD,YAAY;AACZ,mDAAgE;AAChE,2DAA2D;AAwBpD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IAtBjC,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;wBACP,IAAI,EAAE,+BAAsB,CAAC,IAAI;wBACjC,IAAI,EAAE,+BAAsB,CAAC,IAAI;qBAClC;iBACF;aACF,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;AAErD,2DAA2D;AAC9C,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,GAAG,CAAC;IACpE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;CACpD,CAAC;AAwBK,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IAtBjC,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;wBACP,IAAI,EAAE,8BAAsB,CAAC,IAAI;wBACjC,IAAI,EAAE,8BAAsB,CAAC,IAAI;qBAClC;iBACF;aACF,CAAC;SACH;KACF,CAAC;GACW,qBAAqB,CAAG"}
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@ubs-platform/users-mona-microservice-helper", "version": "3.0.3-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.3-beta", "@ubs-platform/users-common": "3.0.3-beta", "@ubs-platform/users-mona-roles": "3.0.3-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.4-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.4-beta", "@ubs-platform/users-common": "3.0.4-beta", "@ubs-platform/users-mona-roles": "3.0.4-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" } }