@q78kg/koishi-plugin-text-censor 1.0.4-beta.6 → 1.0.4-beta.7

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Context, Schema } from 'koishi';
2
2
  export declare const name = "text-censor";
3
3
  export interface Config {
4
- textDatabase: [string, string][];
4
+ textDatabase: [string][];
5
5
  removeWords: boolean;
6
6
  transformToUpper: boolean;
7
7
  }
package/lib/index.js CHANGED
@@ -60,7 +60,7 @@ var Config = import_koishi.Schema.intersect([
60
60
  ]);
61
61
  function apply(ctx, config) {
62
62
  let words = [];
63
- for (const [_, file] of config.textDatabase) {
63
+ for (const [file] of config.textDatabase) {
64
64
  const filePath = (0, import_node_path.resolve)(ctx.baseDir, file);
65
65
  if (!(0, import_node_fs.existsSync)(filePath)) {
66
66
  ctx.logger.warn(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@q78kg/koishi-plugin-text-censor",
3
3
  "description": "A text censor provider for Koishi",
4
- "version": "1.0.4-beta.6",
4
+ "version": "1.0.4-beta.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [