chore: update todo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user