koishi-plugin-filter-pro 1.0.18 → 1.0.19

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.cjs CHANGED
@@ -560,9 +560,8 @@ function apply(ctx, config = {}) {
560
560
  const state = { rules: [] };
561
561
  const persist = createPersister(dataFile);
562
562
  const logger = ctx.logger("filter-pro");
563
- const debug = !!config.debug;
564
563
  const trace = /* @__PURE__ */ __name((stage, payload) => {
565
- if (!debug) return;
564
+ if (!config.debug) return;
566
565
  if (stage !== "native-filter:evaluate") return;
567
566
  if (!payload?.matched) return;
568
567
  logger.info("[trace:%s] %s", stage, JSON.stringify(payload));
package/lib/index.mjs CHANGED
@@ -533,9 +533,8 @@ function apply(ctx, config = {}) {
533
533
  const state = { rules: [] };
534
534
  const persist = createPersister(dataFile);
535
535
  const logger = ctx.logger("filter-pro");
536
- const debug = !!config.debug;
537
536
  const trace = /* @__PURE__ */ __name((stage, payload) => {
538
- if (!debug) return;
537
+ if (!config.debug) return;
539
538
  if (stage !== "native-filter:evaluate") return;
540
539
  if (!payload?.matched) return;
541
540
  logger.info("[trace:%s] %s", stage, JSON.stringify(payload));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-filter-pro",
3
3
  "description": "A powerful filter plugin for Koishi",
4
- "version": "1.0.18",
4
+ "version": "1.0.19",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "types": "lib/index.d.ts",