koishi-plugin-bns-blacklist 1.0.3 → 1.0.4

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.
package/lib/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Context, Schema } from 'koishi';
2
- interface PuppeteerService {
3
- page(): Promise<any>;
4
- browser: any;
5
- }
6
2
  declare module 'koishi' {
7
3
  interface Context {
8
- puppeteer: PuppeteerService;
4
+ puppeteer: {
5
+ page(): Promise<any>;
6
+ browser: any;
7
+ };
9
8
  }
10
9
  }
11
10
  export declare const name = "bns-blacklist";
11
+ export declare const inject: string[];
12
12
  export interface Config {
13
13
  sheetUrl: string;
14
14
  cachePath: string;
@@ -16,4 +16,3 @@ export interface Config {
16
16
  }
17
17
  export declare const Config: Schema<Config>;
18
18
  export declare function apply(ctx: Context, config: Config): void;
19
- export {};
package/lib/index.js CHANGED
@@ -33,12 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Config = exports.name = void 0;
36
+ exports.Config = exports.inject = exports.name = void 0;
37
37
  exports.apply = apply;
38
38
  const koishi_1 = require("koishi");
39
39
  const fs = __importStar(require("fs"));
40
40
  const path = __importStar(require("path"));
41
41
  exports.name = 'bns-blacklist';
42
+ exports.inject = ['puppeteer'];
42
43
  exports.Config = koishi_1.Schema.object({
43
44
  sheetUrl: koishi_1.Schema.string()
44
45
  .default('https://docs.qq.com/sheet/DZXRuRmtTS21mWU9V?tab=BB08J2')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-bns-blacklist",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "剑灵怀旧服副本黑名单查询 - 从腾讯文档实时拉取数据,输入角色名即可生成黑名单截图",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",