|
@@ -14,7 +14,11 @@ export interface IServerVersion {
|
|
|
}
|
|
|
|
|
|
export class ServerVersion implements IServerVersion {
|
|
|
- constructor(public readonly major: number, public readonly minor: number, public readonly patch: number) {}
|
|
|
+ constructor(
|
|
|
+ public readonly major: number,
|
|
|
+ public readonly minor: number,
|
|
|
+ public readonly patch: number,
|
|
|
+ ) {}
|
|
|
|
|
|
toString() {
|
|
|
return `${this.major}.${this.minor}.${this.patch}`;
|
|
@@ -128,7 +132,7 @@ const sidecar: Record<string, string[]> = {
|
|
|
const isType = (filename: string, r: Record<string, string[]>) => extname(filename).toLowerCase() in r;
|
|
|
|
|
|
const lookup = (filename: string) =>
|
|
|
- ({ ...image, ...video, ...sidecar }[extname(filename).toLowerCase()]?.[0] ?? 'application/octet-stream');
|
|
|
+ ({ ...image, ...video, ...sidecar })[extname(filename).toLowerCase()]?.[0] ?? 'application/octet-stream';
|
|
|
|
|
|
export const mimeTypes = {
|
|
|
image,
|