Update all dependencies
This takes part of the work being done in #96 that was reverted but still useful. Note Tailwind and Fresh weren't upgraded because there's no security vulnerability in either, and I have found the new versions to be worse in performance. Thos will likely stay at those fixed versions going forward.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Handlers } from 'fresh/server.ts';
|
||||
import { join } from 'std/path/join.ts';
|
||||
import { join } from '@std/path';
|
||||
|
||||
import { FreshContextState } from '/lib/types.ts';
|
||||
import { ensureFileSharePathIsValidAndSecurelyAccessible, FileModel, FileShareModel } from '/lib/models/files.ts';
|
||||
@@ -70,7 +70,7 @@ export const handler: Handlers<Data, FreshContextState> = {
|
||||
return new Response('Not Found', { status: 404 });
|
||||
}
|
||||
|
||||
return new Response(fileResult.contents!, {
|
||||
return new Response(fileResult.contents! as BodyInit, {
|
||||
status: 200,
|
||||
headers: {
|
||||
'cache-control': 'no-cache, no-store, must-revalidate',
|
||||
|
||||
Reference in New Issue
Block a user