From a1b8614c2ce7fdfcaca6a9e57ce47451e19120ea Mon Sep 17 00:00:00 2001 From: Andrey Briginets Date: Sun, 12 May 2024 19:10:30 +0300 Subject: [PATCH] fix: attempt to fix exports (#682) --- playground/expressjs.playground.ts | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/expressjs.playground.ts b/playground/expressjs.playground.ts index 8d200f4..368ad38 100644 --- a/playground/expressjs.playground.ts +++ b/playground/expressjs.playground.ts @@ -3,7 +3,7 @@ import express from 'express'; import { AbuseIPDBPlugin } from '../src/ip-based-mitigation/plugins/abuse-ipdb/abuse-ipdb.plugin'; import { VirusTotalResult } from '../src/ip-based-mitigation/plugins/virus-total/client/enums/virus-total-ip-address.enum'; import { VirusTotalPlugin } from '../src/ip-based-mitigation/plugins/virus-total/virus-total.plugin'; -import umbress from '../src/main'; +import { umbress } from '../src/main'; import { LeakyBucketRatelimiterPlugin } from '../src/ratelimiter/plugins/leaky-bucket/leaky-bucket-ratelimiter.plugin'; const app = express(); diff --git a/src/main.ts b/src/main.ts index 087a1e4..b5d4266 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,7 +11,7 @@ import { LeakyBucketRatelimiterPlugin } from './ratelimiter/plugins/leaky-bucket import { ratelimiterServiceInstance } from './ratelimiter/ratelimiter.instance'; import { RatelimiterService } from './ratelimiter/ratelimiter.service'; -export default function umbress(userOptions: UmbressOptions): (request: R, response: S) => void { +export function umbress(userOptions: UmbressOptions): (request: R, response: S) => void { const processor = new ProcessorService( userOptions, optionsServiceInstance as OptionsService,