dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_TrustModule cluster_TrustModule_exports cluster_TrustModule_providers TrustStoreService TrustStoreService X509ValidationService X509ValidationService TrustModule TrustModule TrustModule->TrustStoreService TrustModule->X509ValidationService LoteParserService LoteParserService LoteParserService->TrustModule TrustListJwtService TrustListJwtService TrustListJwtService->TrustModule TrustStoreService TrustStoreService TrustStoreService->TrustModule X509ValidationService X509ValidationService X509ValidationService->TrustModule
import * as https from "node:https";
import { HttpModule } from "@nestjs/axios";
import { Module } from "@nestjs/common";
import { LoteParserService } from "./lote-parser.service";
import { TrustStoreService } from "./trust-store.service";
import { TrustListJwtService } from "./trustlist-jwt.service";
import { X509ValidationService } from "./x509-validation.service";

@Module({
    imports: [
        HttpModule.register({
            httpsAgent: new https.Agent({
                rejectUnauthorized: process.env.NODE_ENV === "production",
            }),
        }),
    ],
    providers: [
        TrustListJwtService,
        LoteParserService,
        TrustStoreService,
        X509ValidationService,
    ],
    exports: [TrustStoreService, X509ValidationService],
})
export class TrustModule {}

results matching ""

    No results matching ""