Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/res

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/res - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

dist/append.d.ts.map

1

dist/append.d.ts
/// <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

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc