From 8428aab570a0d7dd887b3f66da77faadce00d93c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 11 Apr 2023 20:20:06 -0500 Subject: [PATCH] Export POW interface --- mod.ts | 2 +- src/policies/pow-policy.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mod.ts b/mod.ts index 8016ff5..ba3098a 100644 --- a/mod.ts +++ b/mod.ts @@ -4,7 +4,7 @@ export { default as hellthreadPolicy, type Hellthread } from './src/policies/hel export { default as keywordPolicy } from './src/policies/keyword-policy.ts'; export { default as noopPolicy } from './src/policies/noop-policy.ts'; export { default as openaiPolicy, type OpenAI, type OpenAIHandler } from './src/policies/openai-policy.ts'; -export { default as powPolicy } from './src/policies/pow-policy.ts'; +export { default as powPolicy, type POW } from './src/policies/pow-policy.ts'; export { default as pubkeyBanPolicy } from './src/policies/pubkey-ban-policy.ts'; export { default as rateLimitPolicy, type RateLimit } from './src/policies/rate-limit-policy.ts'; export { default as readOnlyPolicy } from './src/policies/read-only-policy.ts'; diff --git a/src/policies/pow-policy.ts b/src/policies/pow-policy.ts index 41a96d9..1545d3f 100644 --- a/src/policies/pow-policy.ts +++ b/src/policies/pow-policy.ts @@ -31,3 +31,5 @@ const powPolicy: Policy = ({ event }, opts = {}) => { }; export default powPolicy; + +export type { POW };