@tinyhttp/res
Advanced tools
Comparing version 2.0.23 to 2.0.24
@@ -1,3 +0,4 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node/http.js" /> | ||
import { ServerResponse as Res } from '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 |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'http'; | ||
@@ -10,1 +9,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 |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'http'; | ||
@@ -11,1 +10,2 @@ import type { SendFileOptions } from '@tinyhttp/send'; | ||
export {}; | ||
//# sourceMappingURL=download.d.ts.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'http'; | ||
@@ -14,1 +13,2 @@ export type FormatProps = { | ||
export {}; | ||
//# sourceMappingURL=format.d.ts.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'http'; | ||
@@ -11,1 +10,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 |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage as Req, ServerResponse as Res } from 'http'; | ||
@@ -6,1 +5,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.0.23", | ||
"version": "2.0.24", | ||
"type": "module", | ||
@@ -31,14 +31,13 @@ "description": "response extensions for tinyhttp", | ||
"es-vary": "^0.1.2", | ||
"@tinyhttp/content-disposition": "2.0.9", | ||
"@tinyhttp/cookie": "2.0.6", | ||
"@tinyhttp/cookie-signature": "2.0.6", | ||
"@tinyhttp/encode-url": "2.0.7", | ||
"@tinyhttp/req": "2.0.16", | ||
"@tinyhttp/send": "2.0.8" | ||
"@tinyhttp/content-disposition": "2.0.10", | ||
"@tinyhttp/cookie": "2.0.7", | ||
"@tinyhttp/cookie-signature": "2.0.7", | ||
"@tinyhttp/encode-url": "2.0.8", | ||
"@tinyhttp/req": "2.0.17", | ||
"@tinyhttp/send": "2.0.9" | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"postbuild": "tsc --emitDeclarationOnly" | ||
"build": "vite build" | ||
} | ||
} |
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
39658
22
270
+ Added@tinyhttp/accepts@2.0.9(transitive)
+ Added@tinyhttp/content-disposition@2.0.10(transitive)
+ Added@tinyhttp/cookie@2.0.7(transitive)
+ Added@tinyhttp/cookie-signature@2.0.7(transitive)
+ Added@tinyhttp/encode-url@2.0.8(transitive)
+ Added@tinyhttp/etag@2.0.7(transitive)
+ Added@tinyhttp/req@2.0.17(transitive)
+ Added@tinyhttp/send@2.0.9(transitive)
+ Added@tinyhttp/type-is@2.0.8(transitive)
+ Added@tinyhttp/url@2.0.9(transitive)
- Removed@tinyhttp/accepts@2.0.8(transitive)
- Removed@tinyhttp/content-disposition@2.0.9(transitive)
- Removed@tinyhttp/cookie@2.0.6(transitive)
- Removed@tinyhttp/cookie-signature@2.0.6(transitive)
- Removed@tinyhttp/encode-url@2.0.7(transitive)
- Removed@tinyhttp/etag@2.0.6(transitive)
- Removed@tinyhttp/req@2.0.16(transitive)
- Removed@tinyhttp/send@2.0.8(transitive)
- Removed@tinyhttp/type-is@2.0.7(transitive)
- Removed@tinyhttp/url@2.0.8(transitive)
Updated@tinyhttp/cookie@2.0.7
Updated@tinyhttp/encode-url@2.0.8
Updated@tinyhttp/req@2.0.17
Updated@tinyhttp/send@2.0.9