diff --git a/bun.lock b/bun.lock index 46a5a62..820fb84 100644 --- a/bun.lock +++ b/bun.lock @@ -4,7 +4,7 @@ "": { "name": "kunkun-ext-imgur-upload", "dependencies": { - "@kksh/api": "^0.1.2", + "@kksh/api": "^0.1.3", "data-uri-to-buffer": "^6.0.2", "i18next": "^23.15.1", }, diff --git a/package.json b/package.json index 168d978..20d6d8c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.kunkun.sh", "name": "kunkun-ext-imgur-upload", - "version": "0.0.6", + "version": "0.0.7", "repository": { "type": "git", "url": "https://github.com/kunkunsh/kunkun-ext-imgur-upload" @@ -63,7 +63,7 @@ "build": "bun build.ts" }, "dependencies": { - "@kksh/api": "^0.1.2", + "@kksh/api": "^0.1.3", "data-uri-to-buffer": "^6.0.2", "i18next": "^23.15.1" }, diff --git a/src/headless-upload.ts b/src/headless-upload.ts index b5a3c1c..366a5cf 100644 --- a/src/headless-upload.ts +++ b/src/headless-upload.ts @@ -4,7 +4,7 @@ import { clipboard, dialog, expose, - HeadlessTemplateUiCommand, + HeadlessCommand, fs, kv, toast, @@ -38,7 +38,7 @@ function formatUrl(url: string, format: (typeof URL_FORMATS)[number]) { } } -class ImgurUpload extends HeadlessTemplateUiCommand { +class ImgurUpload extends HeadlessCommand { uploadImage( clientId: string, base64Image: string