@types/send
Advanced tools
Comparing version 0.14.6 to 0.14.7
@@ -134,3 +134,2 @@ // Type definitions for send v0.14.1 | ||
* Emit error with `status`. | ||
* @private | ||
*/ | ||
@@ -141,3 +140,2 @@ error(status: number, error?: Error): void; | ||
* Check if the pathname ends with "/". | ||
* @private | ||
*/ | ||
@@ -148,3 +146,2 @@ hasTrailingSlash(): boolean; | ||
* Check if this is a conditional GET request. | ||
* @private | ||
*/ | ||
@@ -155,3 +152,2 @@ isConditionalGET(): boolean; | ||
* Strip content-* header fields. | ||
* @private | ||
*/ | ||
@@ -162,3 +158,2 @@ removeContentHeaderFields(): void; | ||
* Respond with 304 not modified. | ||
* @private | ||
*/ | ||
@@ -169,3 +164,2 @@ notModified(): void; | ||
* Raise error that headers already sent. | ||
* @private | ||
*/ | ||
@@ -176,3 +170,2 @@ headersAlreadySent(): void; | ||
* Check if the request is cacheable, aka responded with 2xx or 304 (see RFC 2616 section 14.2{5,6}). | ||
* @private | ||
*/ | ||
@@ -183,3 +176,2 @@ isCachable(): boolean; | ||
* Handle stat() error. | ||
* @private | ||
*/ | ||
@@ -190,3 +182,2 @@ onStatError(error: Error): void; | ||
* Check if the cache is fresh. | ||
* @private | ||
*/ | ||
@@ -197,3 +188,2 @@ isFresh(): boolean; | ||
* Check if the range is fresh. | ||
* @private | ||
*/ | ||
@@ -204,3 +194,2 @@ isRangeFresh(): boolean; | ||
* Redirect to path. | ||
* @private | ||
*/ | ||
@@ -221,3 +210,2 @@ redirect(path: string): void; | ||
* Transfer file for `path`. | ||
* @private | ||
*/ | ||
@@ -228,3 +216,2 @@ sendFile(path: string): void; | ||
* Transfer index for `path`. | ||
* @private | ||
*/ | ||
@@ -235,3 +222,2 @@ sendIndex(path: string): void; | ||
* Transfer index for `path`. | ||
* @private | ||
*/ | ||
@@ -242,3 +228,2 @@ stream(path: string, options?: {}): void; | ||
* Set content-type based on `path` if it hasn't been explicitly set. | ||
* @private | ||
*/ | ||
@@ -249,3 +234,2 @@ type(path: string): void; | ||
* Set response header fields, most fields may be pre-defined. | ||
* @private | ||
*/ | ||
@@ -252,0 +236,0 @@ setHeader(path: string, stat: fs.Stats): void; |
{ | ||
"name": "@types/send", | ||
"version": "0.14.6", | ||
"version": "0.14.7", | ||
"description": "TypeScript definitions for send", | ||
@@ -25,4 +25,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "d062ba39e87ba4b2e163fa7ebfdb551a95f897b821cb72a4586631329e0f7ae6", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "2d35bf887fe88ae7cd276e93b75f6be31bd04999dc4fb1923bd5cc0ef1745b07", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 18 Jan 2021 14:32:16 GMT | ||
* Last updated: Thu, 25 Mar 2021 02:21:15 GMT | ||
* Dependencies: [@types/mime](https://npmjs.com/package/@types/mime), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
9191
184