@tinyhttp/send
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -88,3 +88,3 @@ import { format, parse } from 'es-content-type'; | ||
res.end(''); | ||
return; | ||
return res; | ||
} | ||
@@ -94,3 +94,3 @@ if (typeof body === 'object') { | ||
res.end(''); | ||
return; | ||
return res; | ||
} | ||
@@ -144,3 +144,4 @@ else if (Buffer.isBuffer(body)) { | ||
cc += ',must-revalidate'; | ||
res.setHeader('Cache-Control', cc); | ||
if (cc) | ||
res.setHeader('Cache-Control', cc); | ||
}; | ||
@@ -147,0 +148,0 @@ /** |
/// <reference types="node" /> | ||
import { ServerResponse as S } from 'http'; | ||
declare type Res = Pick<S, 'statusCode'>; | ||
import { ServerResponse } from 'http'; | ||
declare type Res = Pick<ServerResponse, 'statusCode'>; | ||
/** | ||
@@ -5,0 +5,0 @@ * Sets the HTTP status for the response. It is a chainable alias of Node’s `response.statusCode`. |
{ | ||
"name": "@tinyhttp/send", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"type": "module", | ||
@@ -30,3 +30,3 @@ "description": "json, send, sendFile, status and sendStatus methods for tinyhttp", | ||
"dependencies": { | ||
"@tinyhttp/etag": "2.0.1", | ||
"@tinyhttp/etag": "2.0.2", | ||
"es-content-type": "^0.1.0", | ||
@@ -33,0 +33,0 @@ "es-mime-types": "^0.1.3" |
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
15592
290
+ Added@tinyhttp/etag@2.0.2(transitive)
- Removed@tinyhttp/etag@2.0.1(transitive)
Updated@tinyhttp/etag@2.0.2