refactor: native feature management (#2350)

This commit is contained in:
Mo
2023-07-12 12:56:08 -05:00
committed by GitHub
parent 49f7581cd8
commit 078ef3772c
223 changed files with 3996 additions and 3438 deletions

View File

@@ -10,11 +10,14 @@ import { FileErrorCodes } from './File/FileErrorCodes'
const Protocol = 'http'
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function logError(...message: any) {
console.error('extServer:', ...message)
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function log(...message: any) {
// eslint-disable-next-line no-console
console.log('extServer:', ...message)
}
@@ -71,8 +74,8 @@ async function handleRequest(request: IncomingMessage, response: ServerResponse)
response.writeHead(200)
response.end(data)
} catch (error: any) {
onRequestError(error, response)
} catch (error) {
onRequestError(error as Error, response)
}
}