@foal/core
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -30,3 +30,2 @@ import { Context } from './contexts'; | ||
export declare abstract class HttpResponse<T = any> { | ||
body?: T | undefined; | ||
/** | ||
@@ -62,2 +61,3 @@ * Property used internally by isHttpResponse. | ||
readonly stream: boolean; | ||
body: T; | ||
private cookies; | ||
@@ -70,3 +70,3 @@ private headers; | ||
*/ | ||
constructor(body?: T | undefined, options?: { | ||
constructor(body?: T, options?: { | ||
stream?: boolean; | ||
@@ -73,0 +73,0 @@ }); |
@@ -20,3 +20,2 @@ "use strict"; | ||
constructor(body, options = {}) { | ||
this.body = body; | ||
/** | ||
@@ -37,2 +36,5 @@ * Property used internally by isHttpResponse. | ||
this.headers = {}; | ||
if (typeof body !== 'undefined') { | ||
this.body = body; | ||
} | ||
this.stream = options.stream || false; | ||
@@ -39,0 +41,0 @@ } |
{ | ||
"name": "@foal/core", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Elegant and complete Node.Js web framework based on TypeScript", | ||
@@ -88,3 +88,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@foal/internal-test": "^2.7.0", | ||
"@foal/internal-test": "^2.7.1", | ||
"@types/mocha": "7.0.2", | ||
@@ -104,3 +104,3 @@ "@types/node": "10.17.24", | ||
}, | ||
"gitHead": "f29806e349427d412606a2086ae474f2b65df3ac" | ||
"gitHead": "e95e3aaa4540b7c0720b739281a7e0ae1beb5b51" | ||
} |
370943
8773