request-headers-filter
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -10,8 +10,9 @@ /** | ||
/// <reference types="node" /> | ||
import { IncomingHttpHeaders, IncomingMessage, OutgoingMessage } from 'http'; | ||
import { IncomingMessage, OutgoingMessage } from 'http'; | ||
/** | ||
* Truncate unrequired headers from request | ||
* Truncate non-required headers from request | ||
*/ | ||
export declare function filterHeaders(incomingMessage: IncomingHttpHeaders, headersList: string[], save?: boolean): void; | ||
export declare function filterHeaders(incomingMessage: IncomingMessage | OutgoingMessage, headersList: Array<RegExp|string>, save?: boolean): void; | ||
@@ -21,2 +22,2 @@ /** | ||
*/ | ||
export declare function saveHeaders(incomingMessage: IncomingMessage, serverResponse: OutgoingMessage, headersToSave: string[]): void; | ||
export declare function saveHeaders(incomingMessage: IncomingMessage | OutgoingMessage, serverResponse: OutgoingMessage, headersToSave: string[]): void; |
{ | ||
"name": "request-headers-filter", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Filter headers from request which will be passed to new request and/or response", | ||
@@ -46,5 +46,4 @@ "main": "index.js", | ||
"@types/chai": "4.1.7", | ||
"@types/chai-http": "4.2.0", | ||
"@types/mocha": "5.2.6", | ||
"@types/nock": "10.0.1", | ||
"@types/nock": "10.0.3", | ||
"@types/request": "2.48.1", | ||
@@ -55,3 +54,3 @@ "chai": "4.2.0", | ||
"nock": "10.0.6", | ||
"nyc": "14.0.0", | ||
"nyc": "14.1.1", | ||
"request": "2.88.0" | ||
@@ -58,0 +57,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
10
6612