@tinyhttp/res
Advanced tools
Comparing version 2.2.0 to 2.2.1
/// <reference types="node" /> | ||
import { ServerResponse as Res } from 'node:http'; | ||
export declare const append: <Response_1 extends Res<import("http").IncomingMessage> = Res<import("http").IncomingMessage>>(res: Response_1) => (field: string, value: string | number | string[]) => Response_1; | ||
//# sourceMappingURL=append.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'node:http'; | ||
@@ -9,1 +10,2 @@ import * as cookie from '@tinyhttp/cookie'; | ||
export declare const clearCookie: <Request_1 extends Req = Req, Response_1 extends Res<Req> = Res<Req>>(req: Request_1, res: Response_1) => (name: string, options?: cookie.SerializeOptions) => Response_1; | ||
//# sourceMappingURL=cookie.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'node:http'; | ||
@@ -10,1 +11,2 @@ import type { SendFileOptions } from '@tinyhttp/send'; | ||
export {}; | ||
//# sourceMappingURL=download.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'node:http'; | ||
@@ -13,1 +14,2 @@ export type FormatProps = { | ||
export {}; | ||
//# sourceMappingURL=format.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'node:http'; | ||
@@ -10,1 +11,2 @@ export declare const setHeader: <Response_1 extends Res<Req> = Res<Req>>(res: Response_1) => (field: string | Record<string, string | number | string[]>, val?: string | number | readonly string[]) => Response_1; | ||
export declare const setContentType: <Response_1 extends Res<Req> = Res<Req>>(res: Response_1) => (type: string) => Response_1; | ||
//# sourceMappingURL=headers.d.ts.map |
@@ -9,1 +9,2 @@ export * from '@tinyhttp/send'; | ||
export { append } from './append.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'node:http'; | ||
@@ -5,1 +6,2 @@ type next = (err?: any) => void; | ||
export {}; | ||
//# sourceMappingURL=redirect.d.ts.map |
@@ -10,1 +10,2 @@ export type NormalizedType = { | ||
export declare function normalizeTypes(types: string[]): NormalizedType[]; | ||
//# sourceMappingURL=util.d.ts.map |
{ | ||
"name": "@tinyhttp/res", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"type": "module", | ||
@@ -30,8 +30,8 @@ "description": "response extensions for tinyhttp", | ||
"es-escape-html": "^0.1.1", | ||
"mime": "4.0.0-beta.1", | ||
"mime": "4.0.1", | ||
"@tinyhttp/content-disposition": "2.2.0", | ||
"@tinyhttp/cookie": "2.1.0", | ||
"@tinyhttp/cookie-signature": "2.1.0", | ||
"@tinyhttp/req": "2.2.0", | ||
"@tinyhttp/encode-url": "2.1.0", | ||
"@tinyhttp/req": "2.2.1", | ||
"@tinyhttp/send": "2.2.0" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
32142
22
277
+ Added@tinyhttp/accepts@2.2.1(transitive)
+ Added@tinyhttp/req@2.2.1(transitive)
+ Added@tinyhttp/type-is@2.2.1(transitive)
+ Addedmime@4.0.1(transitive)
- Removed@tinyhttp/accepts@2.2.0(transitive)
- Removed@tinyhttp/req@2.2.0(transitive)
- Removed@tinyhttp/type-is@2.2.0(transitive)
Updated@tinyhttp/req@2.2.1
Updatedmime@4.0.1