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

http-proxy-middleware

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy-middleware - npm Package Compare versions

Comparing version 1.2.0-beta.1 to 1.2.0-beta.2

1

dist/index.d.ts
import { Filter, Options } from './types';
export declare function createProxyMiddleware(context: Filter | Options, options?: Options): import("./types").RequestHandler;
export * from './handlers';
export { Filter, Options, RequestHandler } from './types';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -10,1 +20,2 @@ exports.createProxyMiddleware = void 0;

exports.createProxyMiddleware = createProxyMiddleware;
__exportStar(require("./handlers"), exports);

2

package.json
{
"name": "http-proxy-middleware",
"version": "1.2.0-beta.1",
"version": "1.2.0-beta.2",
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -491,3 +491,3 @@ # http-proxy-middleware

With `buffer` you are not limited to manipulate text responses (html/css/js, etc...); image manipulation will be possible too.
With `buffer`, response manipulation is not limited to text responses (html/css/js, etc...); image manipulation will be possible too. ([example](https://github.com/chimurai/http-proxy-middleware/blob/master/response-interceptor/recipes/response-interceptor.md#manipulate-image-response))

@@ -499,3 +499,3 @@ NOTE: `responseInterceptor` disables streaming of target's response.

```javascript
const { responseInterceptor } = require('http-proxy-middleware/handlers');
const { createProxyMiddleware, responseInterceptor } = require('http-proxy-middleware');

@@ -518,4 +518,3 @@ const proxy = createProxyMiddleware({

- interception recipes: <https://github.com/chimurai/http-proxy-middleware/blob/master/response-interceptor/recipes/response-interceptor.md#readme>
- working example: <https://github.com/chimurai/http-proxy-middleware/blob/response-interceptor/examples/response-interceptor/index.js>
Check out [interception recipes](https://github.com/chimurai/http-proxy-middleware/blob/master/response-interceptor/recipes/response-interceptor.md#readme) for more examples.

@@ -530,2 +529,3 @@ ## Working examples

- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))
- Response Manipulation ([example source](https://github.com/chimurai/http-proxy-middleware/blob/master/response-interceptor/examples/response-interceptor/index.js))

@@ -532,0 +532,0 @@ ## Recipes

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