Skip to content

Commit

Permalink
fix: attempt to fix exports (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
abriginets authored May 12, 2024
1 parent dd82d41 commit a1b8614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playground/expressjs.playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<R, S>(userOptions: UmbressOptions<R, S>): (request: R, response: S) => void {
export function umbress<R, S>(userOptions: UmbressOptions<R, S>): (request: R, response: S) => void {
const processor = new ProcessorService<R, S>(
userOptions,
optionsServiceInstance as OptionsService<R, S>,
Expand Down

0 comments on commit a1b8614

Please sign in to comment.