@koishi-ce/plugin-config 1.0.1 → 1.0.2

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.mjs CHANGED
@@ -524,7 +524,7 @@ var PackageProvider$1 = class extends PackageProvider {
524
524
  try {
525
525
  await walkPlugins(this.ctx.loader?.config?.plugins, async (key) => {
526
526
  const path = key.split(":", 1)[0];
527
- if (!path || !path.startsWith("./")) return;
527
+ if (!path?.startsWith("./")) return;
528
528
  const object = await this.scanner.loadPath(resolve(this.scanner.baseDir, path));
529
529
  if (!object) return;
530
530
  const name = object.package.name;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@koishi-ce/plugin-config",
3
3
  "description": "Manage your bots and plugins with console",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",
7
7
  "types": "lib/index.d.ts",
@@ -73,6 +73,6 @@
73
73
  "dependencies": {
74
74
  "@koishi-ce/console": "^1.0.0",
75
75
  "@koishi-ce/loader": "^1.0.1",
76
- "@koishi-ce/registry": "^1.0.1"
76
+ "@koishi-ce/registry": "^1.0.2"
77
77
  }
78
78
  }
@@ -89,7 +89,7 @@ export class PackageProvider extends shared.PackageProvider {
89
89
  async (key) => {
90
90
  // 配置键形如 ./plugins/webui/config:uid,取 : 前的路径部分
91
91
  const path = key.split(":", 1)[0];
92
- if (!path || !path.startsWith("./")) return;
92
+ if (!path?.startsWith("./")) return;
93
93
  const object = await this.scanner.loadPath(
94
94
  resolve(this.scanner.baseDir, path),
95
95
  );