response-objects
Advanced tools
Comparing version 3.0.1 to 3.0.2
export interface BaseResponseObject<T> { | ||
body: T; | ||
status: number; | ||
headers?: object; | ||
headers?: Headers; | ||
} | ||
@@ -6,0 +6,0 @@ export interface ResponseObject<T> extends BaseResponseObject<T> { |
{ | ||
"name": "response-objects", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "simple value objects representing HTTP responses", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,3 +6,3 @@ import { STATUS_CODES } from "http"; | ||
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 }; | ||
@@ -22,3 +22,3 @@ } | ||
status: number; | ||
headers?: object; | ||
headers?: Headers; | ||
} | ||
@@ -25,0 +25,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128133