koishi-plugin-oni-sync-bot 0.2.4 → 0.3.0

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,14 @@
1
+ import { Config } from "../index";
2
+ export interface ISiteConfig {
3
+ name: string;
4
+ api: string;
5
+ username: string;
6
+ password: string;
7
+ userAgent: string;
8
+ }
9
+ interface ISitesConfig {
10
+ gg: ISiteConfig;
11
+ bwiki: ISiteConfig;
12
+ }
13
+ export declare function getSitesConfig(config: Config): ISitesConfig;
14
+ export {};
package/lib/index.d.ts CHANGED
@@ -22,13 +22,11 @@ export interface WikiPages {
22
22
  export interface Config {
23
23
  ggUsername: string;
24
24
  ggPassword: string;
25
- huijiUsername: string;
26
- huijiPassword: string;
27
- huijiUAKey: string;
25
+ bwikiusername: string;
26
+ bwikipassword: string;
28
27
  domain: string;
29
28
  main_site: string;
30
29
  bwiki_site: string;
31
- huiji_site: string;
32
30
  logsUrl: string;
33
31
  }
34
32
  export declare const Config: Schema<Config>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-oni-sync-bot",
3
3
  "description": "缺氧Wiki站镜像点同步-测试",
4
- "version": "0.2.4",
4
+ "version": "0.3.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -15,11 +15,11 @@
15
15
  "plugin"
16
16
  ],
17
17
  "devDependencies": {
18
- "@koishijs/client": "^5.30.4"
18
+ "@koishijs/client": "^5.30.11"
19
19
  },
20
20
  "peerDependencies": {
21
- "@koishijs/plugin-console": "^5.30.4",
22
- "koishi": "^4.18.7"
21
+ "@koishijs/plugin-console": "^5.30.11",
22
+ "koishi": "^4.18.11"
23
23
  },
24
24
  "dependencies": {
25
25
  "@types/node-fetch": "^2.6.13",