response-objects
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "response-objects", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "simple value objects representing HTTP responses", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -15,3 +15,3 @@ const { STATUS_CODES } = require("http"); | ||
status: number; | ||
headers?: object; | ||
headers?: Headers; | ||
} | ||
@@ -33,3 +33,3 @@ | ||
const toJSON = ` | ||
function toJSON(this: {body: any, status: number, headers: object}) { | ||
function toJSON(this: {body: any, status: number, headers: Headers}) { | ||
return { body: this.body, status: this.status, headers: this.headers }; | ||
@@ -36,0 +36,0 @@ }`; |
128130