Socket
Socket
Sign inDemoInstall

http-proxy-middleware

Package Overview
Dependencies
26
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.0.4

2

dist/handlers/fix-request-body.js

@@ -22,3 +22,3 @@ "use strict";

}
if (contentType === 'application/x-www-form-urlencoded') {
if (contentType && contentType.includes('application/x-www-form-urlencoded')) {
writeBody(querystring.stringify(requestBody));

@@ -25,0 +25,0 @@ }

{
"name": "http-proxy-middleware",
"version": "2.0.3",
"version": "2.0.4",
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync",

@@ -56,4 +56,4 @@ "main": "dist/index.js",

"devDependencies": {
"@commitlint/cli": "16.1.0",
"@commitlint/config-conventional": "16.0.0",
"@commitlint/cli": "16.2.1",
"@commitlint/config-conventional": "16.2.1",
"@types/express": "4.17.13",

@@ -63,19 +63,19 @@ "@types/is-glob": "4.0.2",

"@types/micromatch": "4.0.2",
"@types/node": "17.0.10",
"@types/node": "17.0.18",
"@types/supertest": "2.0.11",
"@types/ws": "8.2.2",
"@typescript-eslint/eslint-plugin": "5.10.0",
"@typescript-eslint/parser": "5.10.0",
"body-parser": "1.19.1",
"@typescript-eslint/eslint-plugin": "5.12.0",
"@typescript-eslint/parser": "5.12.0",
"body-parser": "1.19.2",
"browser-sync": "2.27.7",
"connect": "3.7.0",
"eslint": "8.7.0",
"eslint": "8.9.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "4.0.0",
"express": "4.17.2",
"express": "4.17.3",
"get-port": "5.1.1",
"husky": "7.0.4",
"jest": "27.4.7",
"lint-staged": "12.2.2",
"mockttp": "2.5.1",
"jest": "27.5.1",
"lint-staged": "12.3.4",
"mockttp": "2.6.0",
"open": "8.4.0",

@@ -86,3 +86,3 @@ "prettier": "2.5.1",

"typescript": "4.5.5",
"ws": "8.4.2"
"ws": "8.5.0"
},

@@ -89,0 +89,0 @@ "dependencies": {

@@ -12,5 +12,5 @@ # http-proxy-middleware

## ⚠️ Note
## ⚠️ Note <!-- omit in toc -->
This page is showing documentation for version v1.x.x ([release notes](https://github.com/chimurai/http-proxy-middleware/releases))
This page is showing documentation for version v2.x.x ([release notes](https://github.com/chimurai/http-proxy-middleware/releases))

@@ -20,3 +20,3 @@ If you're looking for v0.x documentation. Go to:

## TL;DR
## TL;DR <!-- omit in toc -->

@@ -57,6 +57,4 @@ Proxy `/api` requests to `http://www.example.org`

## Table of Contents
## Table of Contents <!-- omit in toc -->
<!-- MarkdownTOC autolink=true bracket=round depth=2 -->
- [Install](#install)

@@ -71,3 +69,3 @@ - [Core concept](#core-concept)

- [Shorthand](#shorthand)
- [app.use\(path, proxy\)](#appusepath-proxy)
- [app.use(path, proxy)](#appusepath-proxy)
- [WebSocket](#websocket)

@@ -84,4 +82,2 @@ - [External WebSocket upgrade](#external-websocket-upgrade)

<!-- /MarkdownTOC -->
## Install

@@ -88,0 +84,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc