Update Deno to 2.1 LTS!
This commit is contained in:
@@ -69,7 +69,7 @@ async function getPathEntries(userId: string, path: string): Promise<Deno.DirEnt
|
||||
try {
|
||||
await Deno.stat(rootPath);
|
||||
} catch (error) {
|
||||
if (error.toString().includes('NotFound')) {
|
||||
if ((error as Error).toString().includes('NotFound')) {
|
||||
await Deno.mkdir(join(rootPath, TRASH_PATH), { recursive: true });
|
||||
}
|
||||
}
|
||||
@@ -80,7 +80,7 @@ async function getPathEntries(userId: string, path: string): Promise<Deno.DirEnt
|
||||
try {
|
||||
await Deno.stat(rootPath);
|
||||
} catch (error) {
|
||||
if (error.toString().includes('NotFound')) {
|
||||
if ((error as Error).toString().includes('NotFound')) {
|
||||
await Deno.mkdir(rootPath, { recursive: true });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ export async function findFeedInUrl(url: string) {
|
||||
}
|
||||
} catch (error) {
|
||||
// This error can happen for huge responses, but that usually means the URL works
|
||||
if (error.toString().includes('RangeError: Maximum call stack size exceeded')) {
|
||||
if ((error as Error).toString().includes('RangeError: Maximum call stack size exceeded')) {
|
||||
return url;
|
||||
} else {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user