style: run prettier formatter over src and tests

This commit is contained in:
2026-06-11 20:46:00 +05:30
parent 2389d4f297
commit 6b564a4569
211 changed files with 6134 additions and 4234 deletions
+8 -4
View File
@@ -10,7 +10,7 @@ function getAllowedDirectories() {
app.getPath('desktop'),
app.getPath('downloads'),
app.getPath('home'),
process.cwd() // Current working directory
process.cwd(), // Current working directory
].filter(Boolean); // Remove any undefined paths
return dirs;
}
@@ -88,9 +88,13 @@ function resolveWritablePath(filePath) {
function isPathAccessible(resolvedPath) {
// Block access to sensitive system directories
const blockedPaths = [
'/etc/passwd', '/etc/shadow', '/root',
'C:\\Windows\\System32', 'C:\\Windows\\System',
'/System', '/private/etc'
'/etc/passwd',
'/etc/shadow',
'/root',
'C:\\Windows\\System32',
'C:\\Windows\\System',
'/System',
'/private/etc',
];
const normalizedPath = resolvedPath.toLowerCase();