chore: update dependencies (#874)

Additional linting fixes

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-11-21 10:55:03 -05:00
committed by GitHub
parent f6f5c6bfe7
commit 9ad9793dc1
18 changed files with 924 additions and 765 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ import {join, normalize} from 'path';
const approot = join(__dirname, '../../');
const webroot = join(approot, './web');
const contentTypeMap: {[key: string]: string} = {
const contentTypeMap: Record<string, string> = {
css: 'text/css',
htm: 'text/html',
html: 'text/html',
@@ -49,8 +49,8 @@ function sendFile(
stream.on('end', () => response.end());
stream.pipe(response);
} catch (error) {
sendError(response, error);
} catch (error: unknown) {
sendError(response, (error as Error).message);
}
}
@@ -182,6 +182,6 @@ export async function stopAPIServer() {
return;
}
resolve();
resolve(null);
});
}