diff --git a/plugins/notifier/package.json b/plugins/notifier/package.json index 095e0f42..11a9d3a5 100644 --- a/plugins/notifier/package.json +++ b/plugins/notifier/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-notifier", "description": "Notifier service for Koishi", - "version": "0.0.1", + "version": "1.1.1", "main": "lib/index.cjs", "types": "lib/index.d.ts", "exports": { @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/koishijs/webui/issues" }, - "homepage": "https://koishi.chat/plugins/console/notifier.html", + "homepage": "https://koishi.chat/plugins/develop/notifier.html", "keywords": [ "bot", "chatbot", diff --git a/plugins/notifier/src/index.ts b/plugins/notifier/src/index.ts index d9d33406..934c8a23 100644 --- a/plugins/notifier/src/index.ts +++ b/plugins/notifier/src/index.ts @@ -14,7 +14,7 @@ declare module '@koishijs/console' { } } -class Notifier { +export class Notifier { public options: Notifier.Config public dispose: () => void @@ -74,7 +74,7 @@ class Notifier { } } -namespace Notifier { +export namespace Notifier { export type Type = 'primary' | 'success' | 'warning' | 'danger' export interface Options {