From 92d614440ea3e44aa82d26aed25b2536bb5b6a08 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 18 Jul 2023 22:24:23 +0800 Subject: [PATCH] core: export pwsh function --- packages/hydrooj/src/plugin-api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hydrooj/src/plugin-api.ts b/packages/hydrooj/src/plugin-api.ts index 8c4917e6a..06a8e0296 100644 --- a/packages/hydrooj/src/plugin-api.ts +++ b/packages/hydrooj/src/plugin-api.ts @@ -1,4 +1,5 @@ import serialize from 'serialize-javascript'; +import pwsh from './lib/hash.hydro'; import db from './service/db'; export { nanoid } from 'nanoid'; @@ -34,7 +35,6 @@ export * as JudgeHandler from './handler/judge'; export { registerResolver, registerValue, registerUnion } from './handler/api'; export { postJudge } from './handler/judge'; export { Collections } from './service/db'; -// export { Collections } from './interface'; export { Service, Context } from './context'; export { buildContent } from './lib/content'; export { default as rating } from './lib/rating'; @@ -50,4 +50,4 @@ export { export { UiContextBase } from './service/layers/base'; export * as StorageService from './service/storage'; export { EventMap } from './service/bus'; -export { db }; +export { db, pwsh };