Socket
Socket
Sign inDemoInstall

@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 0.1.1 to 0.1.3

13

CHANGELOG.md
# @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 @@

2

dist/headers.d.ts
/// <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') {

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