@tinyhttp/res
Advanced tools
Comparing version 0.1.1 to 0.1.3
# @tinyhttp/res | ||
## 0.1.3 | ||
### Patch Changes | ||
- Updated dependencies [undefined] | ||
- @tinyhttp/req@0.1.1 | ||
## 0.1.2 | ||
### Patch Changes | ||
- Fix typings and make val optional | ||
## 0.1.1 | ||
@@ -4,0 +17,0 @@ |
/// <reference types="node" /> | ||
import { IncomingMessage as I, ServerResponse as S } from 'http'; | ||
export declare const setHeader: <Request_1 extends I = I, Response_1 extends S = S>(_req: Request_1, res: Response_1) => (field: string | Record<string, string | number | string[]>, val: string | any[]) => Response_1; | ||
export declare const setHeader: <Request_1 extends I = I, Response_1 extends S = S>(_req: Request_1, res: Response_1) => (field: string | Record<string, string | number | string[]>, val?: string | any[]) => Response_1; | ||
export declare const setLocationHeader: <Request_1 extends I = I, Response_1 extends S = S>(req: Request_1, res: Response_1) => (url: string) => Response_1; | ||
@@ -5,0 +5,0 @@ export declare const getResponseHeader: <Request_1 extends I = I, Response_1 extends S = S>(_req: Request_1, res: Response_1) => (field: string) => string | number | string[]; |
{ | ||
"name": "@tinyhttp/res", | ||
"version": "0.1.1", | ||
"version": "0.1.3", | ||
"type": "module", | ||
@@ -42,3 +42,3 @@ "description": "response extensions for tinyhttp", | ||
"@tinyhttp/cookie-signature": "0.2.0", | ||
"@tinyhttp/req": "^0.1.0", | ||
"@tinyhttp/req": "^0.1.1", | ||
"@tinyhttp/send": "0.1.0", | ||
@@ -45,0 +45,0 @@ "es-mime-types": "^0.0.15" |
@@ -9,3 +9,3 @@ import { IncomingMessage as I, ServerResponse as S } from 'http' | ||
field: string | Record<string, string | number | string[]>, | ||
val: string | any[] | ||
val?: string | any[] | ||
) => { | ||
@@ -12,0 +12,0 @@ if (typeof field === 'string') { |
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
15242
Updated@tinyhttp/req@^0.1.1