chore: update todo

This commit is contained in:
Innei
2022-03-10 23:49:53 +08:00
parent fd8bcdb364
commit 0443d15566
2 changed files with 10 additions and 3 deletions

View File

@@ -146,6 +146,9 @@ And other global api is all banned.
# TODO
- HTTP Methods: POST, PUT, DELETE, PATCH
- ResponseType: buffer, stream
- handle safeEval throw
- [ ] HTTP Methods: POST, PUT, DELETE, PATCH
- [ ] ResponseType: buffer, stream
- [ ] handle safeEval throw
- [ ] MongoDb inject (can access db)
- [ ] set Content-Type

View File

@@ -169,6 +169,9 @@ export class SnippetService {
// inject some zx utils
fetch,
// inject Global API
Buffer,
// inject logger
console: logger,
logger,
@@ -291,6 +294,7 @@ export class SnippetService {
return typeof handler === 'function'
`)
} catch (e) {
console.error(e.message)
return false
}
}