@trash-streamers/common 1.2.47 → 1.2.49

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.
@@ -1,4 +1,4 @@
1
- import type { ConfigService } from "@nestjs/config";
1
+ import { ConfigService } from "@nestjs/config";
2
2
  import { ClientGrpc } from "@nestjs/microservices";
3
3
  export declare class GrpcClientFactory {
4
4
  private readonly config;
@@ -45,6 +45,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
45
45
  exports.GrpcClientFactory = void 0;
46
46
  const grpc = __importStar(require("@grpc/grpc-js"));
47
47
  const common_1 = require("@nestjs/common");
48
+ const config_1 = require("@nestjs/config");
48
49
  const microservices_1 = require("@nestjs/microservices");
49
50
  let GrpcClientFactory = class GrpcClientFactory {
50
51
  config;
@@ -88,5 +89,5 @@ let GrpcClientFactory = class GrpcClientFactory {
88
89
  exports.GrpcClientFactory = GrpcClientFactory;
89
90
  exports.GrpcClientFactory = GrpcClientFactory = __decorate([
90
91
  (0, common_1.Injectable)(),
91
- __metadata("design:paramtypes", [Function])
92
+ __metadata("design:paramtypes", [config_1.ConfigService])
92
93
  ], GrpcClientFactory);
@@ -29,7 +29,8 @@ let GrpcModule = GrpcModule_1 = class GrpcModule {
29
29
  const client = factory.createClient({
30
30
  package: cfg.package,
31
31
  protoPath: cfg.protoPath,
32
- url
32
+ url,
33
+ secure: cfg.secure
33
34
  });
34
35
  factory.register(token, client);
35
36
  return client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/common",
3
- "version": "1.2.47",
3
+ "version": "1.2.49",
4
4
  "description": "Core shared component for Trash-streamers microservice ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",