@delta-comic/plugin 0.2.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ import { PluginArchiveDB } from '@delta-comic/db';
2
+ import { PluginInstaller, PluginInstallerDescription } from '../utils';
3
+ export declare class _PluginInstallByAwesome extends PluginInstaller {
4
+ description: PluginInstallerDescription;
5
+ name: string;
6
+ private installer;
7
+ install(input: string): Promise<File | string>;
8
+ update(pluginMeta: PluginArchiveDB.Meta): Promise<File | string>;
9
+ isMatched(input: string): boolean;
10
+ }
11
+ declare const _default: _PluginInstallByAwesome;
12
+ export default _default;
@@ -6,8 +6,8 @@ export interface PluginInstallerDescription {
6
6
  description: string;
7
7
  }
8
8
  export declare abstract class PluginInstaller {
9
- abstract install(input: string): Promise<File>;
10
- abstract update(pluginMeta: PluginArchiveDB.Meta): Promise<File>;
9
+ abstract install(input: string): Promise<File | string>;
10
+ abstract update(pluginMeta: PluginArchiveDB.Meta): Promise<File | string>;
11
11
  abstract isMatched(input: string): boolean;
12
12
  abstract name: string;
13
13
  abstract description: PluginInstallerDescription;
package/dist/pack.tgz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-comic/plugin",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "description": "空阙虱楼",
5
5
  "homepage": "https://github.com/delta-comic/delta-comic-core",
6
6
  "license": "AGPL-3.0-only",
@@ -40,11 +40,11 @@
40
40
  "mitt": "^3.0.1",
41
41
  "userscript-meta": "^1.0.1",
42
42
  "vue-component-type-helpers": "^3.2.4",
43
- "@delta-comic/core": "0.3.0",
44
- "@delta-comic/model": "0.0.2",
43
+ "@delta-comic/db": "0.0.2",
45
44
  "@delta-comic/utils": "0.0.3",
46
45
  "@delta-comic/ui": "0.0.5",
47
- "@delta-comic/db": "0.0.2"
46
+ "@delta-comic/model": "0.0.2",
47
+ "@delta-comic/core": "0.3.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@tailwindcss/vite": "^4.1.18",