plugin-git-manager 1.2.13 → 1.2.14

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.
@@ -324,7 +324,7 @@ async function fileTree(ctx, next) {
324
324
  name,
325
325
  path: fullPath
326
326
  };
327
- }).filter(Boolean);
327
+ }).filter((item) => item !== null);
328
328
  items.sort((a, b) => {
329
329
  if (a.type !== b.type) return a.type === "tree" ? -1 : 1;
330
330
  return a.name.localeCompare(b.name);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Git Manager",
4
4
  "displayName.zh-CN": "Git 管理器",
5
5
  "description": "Manage Git repositories with PAT authentication - pull, push, fetch, diff, file browsing",
6
- "version": "1.2.13",
6
+ "version": "1.2.14",
7
7
  "license": "Apache-2.0",
8
8
  "main": "dist/server/index.js",
9
9
  "files": [
@@ -348,7 +348,7 @@ export async function fileTree(ctx: Context, next: () => Promise<void>) {
348
348
  path: fullPath,
349
349
  };
350
350
  })
351
- .filter(Boolean);
351
+ .filter((item): item is NonNullable<typeof item> => item !== null);
352
352
 
353
353
  // Sort: directories first, then files, both alphabetical
354
354
  items.sort((a, b) => {