From 594c794100ba2aaf7f275d95d62840733d24ca88 Mon Sep 17 00:00:00 2001 From: theotheo Date: Thu, 7 Mar 2024 00:33:35 +0300 Subject: [PATCH] fix: show only md-files to avoid binary files corruption --- manifest.json | 2 +- package.json | 2 +- src/FileManager.ts | 2 +- versions.json | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 1a22330..9044236 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "belyalov-commander", "name": "Belyalov Commander", - "version": "0.1.0", + "version": "0.1.1", "minAppVersion": "0.15.0", "description": "Note preview and management", "author": "theotheo", diff --git a/package.json b/package.json index 6a03f83..faf6442 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "belyalov-commander", - "version": "0.1.0", + "version": "0.1.1", "description": "Note preview and management", "scripts": { "build": "tsc --build && tsx esbuild.config.ts production", diff --git a/src/FileManager.ts b/src/FileManager.ts index f26f455..90ea32d 100644 --- a/src/FileManager.ts +++ b/src/FileManager.ts @@ -59,7 +59,7 @@ export default class FileManager { }); console.log(tFiles.length) - const names = tFiles.map((f) => f.path); + const names = (tFiles as TFile[]).filter((f) => f.extension === 'md').map((f) => f.path); return names; } diff --git a/versions.json b/versions.json index 84c1eb6..3a87ef1 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,4 @@ { - "0.1.0": "0.15.0" + "0.1.0": "0.15.0", + "0.1.1": "0.15.0" }