优化判断

v1
宇天 2020-09-23 19:02:46 +08:00
parent d3ad579b4d
commit 0af0ebc5fc
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import { serialize } from './lib/cookie.js'
export default class Response {
constructor(req, res) {
this.origin = { req, res }
this.rendered = false
this.rendered = !!res.rendered
}
/**

View File

@ -1,6 +1,6 @@
{
"name": "@gm5/response",
"version": "1.3.0",
"version": "1.3.1",
"type": "module",
"description": "对Http的response进一步封装, 提供常用的API",
"main": "index.js",