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

es-vary

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-vary - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

dist/index.d.ts

@@ -8,4 +8,4 @@ /// <reference types="node" />

*/
declare function vary(res: ServerResponse, field: string): void;
declare function vary(res: Pick<ServerResponse, 'getHeader' | 'setHeader'>, field: string): void;
export { append, vary };
{
"name": "es-vary",
"description": "vary rewrite in TypeScript with ESM and CommonJS targets",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",

@@ -44,5 +44,5 @@ "main": "dist/index.cjs",

"@types/node": "^14.11.1",
"tsup": "^3.6.1",
"typescript": "^4.0.2"
"tsup": "^3.7.0",
"typescript": "^4.0.3"
}
}

@@ -85,3 +85,3 @@ import { ServerResponse as Response } from 'http'

*/
export function vary(res: Response, field: string) {
export function vary(res: Pick<Response, 'getHeader' | 'setHeader'>, field: string) {
if (!res || !res.getHeader || !res.setHeader) {

@@ -88,0 +88,0 @@ // quack quack

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