Comparing version 0.0.7 to 0.0.8
@@ -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 |
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
9690