Verified Commit b279ecfa authored by Aral Balkan's avatar Aral Balkan
Browse files

Update to use node-http-proxy-with-fallthrough; fork

parent 13ec8098
Pipeline #912 failed with stages
# http-proxy-middleware
# http-proxy-middleware-with-fallthrough
[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)
[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)
[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)
[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
## This is a fork, you probably want the original package, [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware)
This fork has an option to fallthrough to the middleware chain when a 404 is encountered at the proxy target.
To install this, instead of the original:
```sh
npm install @small-tech/http-proxy-middleware-with-fallthrough --save
```
Note: v1.0.0 is based on v0.21.0-beta.1 of the original.
---
__Original readme continues below.__
---
Node.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).
......
{
"name": "http-proxy-middleware",
"version": "0.21.0-beta.1",
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
"name": "@small-tech/http-proxy-middleware-with-fallthrough",
"version": "1.0.0",
"description": "Fork of http-proxy-middleware, with option to fallthrough to middleware chain on 404",
"main": "dist/index.js",
"files": [
"dist"
......@@ -24,7 +24,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/chimurai/http-proxy-middleware.git"
"url": "https://source.ind.ie/site.js/forks/http-proxy-middleware-with-fallthrough.git"
},
"keywords": [
"reverse",
......@@ -46,7 +46,7 @@
"bugs": {
"url": "https://github.com/chimurai/http-proxy-middleware/issues"
},
"homepage": "https://github.com/chimurai/http-proxy-middleware",
"homepage": "https://source.ind.ie/site.js/forks/http-proxy-middleware-with-fallthrough",
"devDependencies": {
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
......@@ -72,22 +72,12 @@
"ws": "^7.1.0"
},
"dependencies": {
"http-proxy": "../node-http-proxy/",
"@small-tech/http-proxy-with-fallthrough": "^1.0.0",
"is-glob": "^4.0.1",
"lodash": "^4.17.14",
"micromatch": "^4.0.2"
},
"engines": {
"node": ">=8.0.0"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
import * as httpProxy from 'http-proxy';
import * as httpProxy from '@small-tech/http-proxy-with-fallthrough';
import * as _ from 'lodash';
import { createConfig } from './config-factory';
import * as contextMatcher from './context-matcher';
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment