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

request-headers-filter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-headers-filter - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

9

index.d.ts

@@ -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

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