@adonisjs/http-server
Advanced tools
Comparing version 4.0.8 to 4.0.9
@@ -99,7 +99,7 @@ /** | ||
*/ | ||
protected streamBody(body: ResponseStream, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<unknown>; | ||
protected streamBody(body: ResponseStream, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<void>; | ||
/** | ||
* Downloads a file by streaming it to the response | ||
*/ | ||
protected streamFileForDownload(filePath: string, generateEtag: boolean, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<unknown>; | ||
protected streamFileForDownload(filePath: string, generateEtag: boolean, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<void>; | ||
/** | ||
@@ -106,0 +106,0 @@ * Writes headers to the response. |
@@ -162,3 +162,3 @@ "use strict"; | ||
this.removeHeader('Transfer-Encoding'); | ||
statusCode === 304 ? this.endResponse(content) : this.endResponse(); | ||
this.endResponse(); | ||
return; | ||
@@ -165,0 +165,0 @@ } |
{ | ||
"name": "@adonisjs/http-server", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"description": "AdonisJS HTTP server with support packed with Routing and Cookies", | ||
@@ -38,10 +38,10 @@ "main": "build/providers/HttpServerProvider.js", | ||
"devDependencies": { | ||
"@adonisjs/application": "^3.0.20", | ||
"@adonisjs/application": "^3.0.21", | ||
"@adonisjs/encryption": "^3.0.6", | ||
"@adonisjs/mrm-preset": "^2.4.0", | ||
"@adonisjs/require-ts": "^1.0.4", | ||
"@adonisjs/require-ts": "^1.1.0", | ||
"@poppinss/dev-utils": "^1.0.11", | ||
"@types/cookie": "^0.4.0", | ||
"@types/ms": "^0.7.31", | ||
"@types/node": "^14.14.2", | ||
"@types/node": "^14.14.9", | ||
"@types/pluralize": "0.0.29", | ||
@@ -56,7 +56,7 @@ "@types/proxy-addr": "^2.0.0", | ||
"doctoc": "^1.4.0", | ||
"eslint": "^7.12.0", | ||
"eslint-config-prettier": "^6.14.0", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-adonis": "^1.0.15", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"fastify": "^3.7.0", | ||
"fastify": "^3.8.0", | ||
"github-label-sync": "^2.0.0", | ||
@@ -66,10 +66,10 @@ "http-status-codes": "^2.1.4", | ||
"japa": "^3.1.1", | ||
"mrm": "^2.5.3", | ||
"np": "^6.5.0", | ||
"npm-audit-html": "^1.4.3", | ||
"mrm": "^2.5.12", | ||
"np": "^7.0.0", | ||
"npm-audit-html": "^1.5.0", | ||
"pem": "^1.14.4", | ||
"prettier": "^2.1.2", | ||
"prettier": "^2.2.0", | ||
"reflect-metadata": "^0.1.13", | ||
"supertest": "^5.0.0", | ||
"typescript": "^4.0.3" | ||
"supertest": "^6.0.1", | ||
"typescript": "^4.1.2" | ||
}, | ||
@@ -103,3 +103,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@poppinss/utils": "^2.5.7", | ||
"@poppinss/utils": "^2.5.9", | ||
"accepts": "^1.3.7", | ||
@@ -106,0 +106,0 @@ "co-compose": "^6.0.3", |
303611
Updated@poppinss/utils@^2.5.9