http-proxy-middleware
Advanced tools
Comparing version 1.2.0-beta.1 to 1.2.0-beta.2
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); |
{ | ||
"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 |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
72193
911
0