优化判断
parent
d3ad579b4d
commit
0af0ebc5fc
2
index.js
2
index.js
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@gm5/response",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"type": "module",
|
||||
"description": "对Http的response进一步封装, 提供常用的API",
|
||||
"main": "index.js",
|
||||
|
|
Loading…
Reference in New Issue