From cb3171abfa7944d5ddaf0911f5d21148c051bb06 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2019 01:38:48 -0500 Subject: [PATCH 1/5] Configure Renovate (#1355) * Add renovate.json * [dist] Configure renovate more. --- renovate.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..fc1d2aa3a --- /dev/null +++ b/renovate.json @@ -0,0 +1,19 @@ +{ + "platform": "github", + "autodiscover": false, + "requireConfig": true, + "ignoreNpmrcFile": true, + "rangeStrategy": "replace", + "packageRules": [ + { + "packagePatterns": [ + "*" + ], + "minor": { + "groupName": "all non-major dependencies", + "groupSlug": "all-minor-patch" + } + } + ], + "commitMessagePrefix": "[dist]" +} From 569e2ac4fb6d04b0522649027b3f7971121b464d Mon Sep 17 00:00:00 2001 From: Marcin K Date: Thu, 22 Aug 2019 07:39:17 +0100 Subject: [PATCH 2/5] Update .nyc_output (#1339) Currently published version includes .nyc_output and coverage --- .npmignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 081a48c64..d4cb9c574 100644 --- a/.npmignore +++ b/.npmignore @@ -2,6 +2,8 @@ test examples doc benchmark +coverage +.nyc_output .travis.yml CHANGELOG.md -UPGRADING.md \ No newline at end of file +UPGRADING.md From acdbec09c69c2f42f73a8ffff62e8afc5af4f080 Mon Sep 17 00:00:00 2001 From: Stein Martin Hustad Date: Thu, 22 Aug 2019 08:40:03 +0200 Subject: [PATCH 3/5] Fix docs for rewrite options - 201 also handled (#1147) Updates options documentation for location rewrite to include 201 responses. See #1024 --- lib/http-proxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http-proxy.js b/lib/http-proxy.js index 7dab7a48d..8ea278938 100644 --- a/lib/http-proxy.js +++ b/lib/http-proxy.js @@ -37,9 +37,9 @@ function createProxyServer(options) { * changeOrigin: * preserveHeaderKeyCase: * auth : Basic authentication i.e. 'user:password' to compute an Authorization header. - * hostRewrite: rewrites the location hostname on (301/302/307/308) redirects, Default: null. - * autoRewrite: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false. - * protocolRewrite: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null. + * hostRewrite: rewrites the location hostname on (201/301/302/307/308) redirects, Default: null. + * autoRewrite: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false. + * protocolRewrite: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null. * } * * NOTE: `options.ws` and `options.ssl` are optional. From 235f0aa047ccc1cf3da0f6dfcc51995297703f95 Mon Sep 17 00:00:00 2001 From: Justin Russell Date: Thu, 22 Aug 2019 02:41:47 -0400 Subject: [PATCH 4/5] Highlight correct lines for createProxyServer (#1117) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea73dca31..d69773a55 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Click [here](UPGRADING.md) ### Core Concept A new proxy is created by calling `createProxyServer` and passing -an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L22-L50)) +an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L26-L42)) ```javascript var httpProxy = require('http-proxy'); From 91fee3e943dc4497e8dd4ef27116388dce091988 Mon Sep 17 00:00:00 2001 From: Charlie Robbins Date: Thu, 22 Aug 2019 01:46:16 -0500 Subject: [PATCH 5/5] [refactor doc] Complete rename to http-party org. (#1362) --- CODE_OF_CONDUCT.md | 2 +- README.md | 6 +++--- UPGRADING.md | 8 ++++---- package.json | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 78e80cc61..29238b798 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -55,7 +55,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at . All +reported by contacting the project team at . All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. diff --git a/README.md b/README.md index d69773a55..1ab0f9e44 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@

- +

-# node-http-proxy [![Build Status](https://travis-ci.org/nodejitsu/node-http-proxy.svg?branch=master)](https://travis-ci.org/nodejitsu/node-http-proxy) [![codecov](https://codecov.io/gh/nodejitsu/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/nodejitsu/node-http-proxy) +# node-http-proxy [![Build Status](https://travis-ci.org/http-party/node-http-proxy.svg?branch=master)](https://travis-ci.org/http-party/node-http-proxy) [![codecov](https://codecov.io/gh/http-party/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/http-party/node-http-proxy) `node-http-proxy` is an HTTP programmable proxying library that supports websockets. It is suitable for implementing components such as reverse @@ -534,7 +534,7 @@ Logo created by [Diego Pasquali](http://dribbble.com/diegopq) ### Contributing and Issues -* Read carefully our [Code Of Conduct](https://github.com/nodejitsu/node-http-proxy/blob/master/CODE_OF_CONDUCT.md) +* Read carefully our [Code Of Conduct](https://github.com/http-party/node-http-proxy/blob/master/CODE_OF_CONDUCT.md) * Search on Google/Github * If you can't find anything, open an issue * If you feel comfortable about fixing the issue, fork the repo diff --git a/UPGRADING.md b/UPGRADING.md index f77243dc9..6552039dd 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -12,11 +12,11 @@ httpProxy.createServer({ }).listen(8003); ``` -Check the [README.md](https://github.com/nodejitsu/node-http-proxy/blob/caronte/README.md) for a more detailed explanation of the parameters. +Check the [README.md](https://github.com/http-party/node-http-proxy/blob/caronte/README.md) for a more detailed explanation of the parameters. ## Proxying -Web proxying is done by calling the `.web()` method on a Proxy instance. You can check among some use cases in the [examples folder](https://github.com/nodejitsu/node-http-proxy/tree/caronte/examples/http) +Web proxying is done by calling the `.web()` method on a Proxy instance. You can check among some use cases in the [examples folder](https://github.com/http-party/node-http-proxy/tree/caronte/examples/http) ```javascript // @@ -32,7 +32,7 @@ httpProxy.createProxyServer({ ``` -Websockets are proxied by the `.ws()` method. The [examples folder](https://github.com/nodejitsu/node-http-proxy/tree/caronte/examples/websocket) again provides a lot of useful snippets! +Websockets are proxied by the `.ws()` method. The [examples folder](https://github.com/http-party/node-http-proxy/tree/caronte/examples/websocket) again provides a lot of useful snippets! ```javascript var proxy = new httpProxy.createProxyServer({ @@ -90,7 +90,7 @@ which were in the core and delegate them to eventual "userland" modules. ### Middleware API -The new API makes it really easy to implement code that behaves like the old Middleware API. You can check some examples [here](https://github.com/nodejitsu/node-http-proxy/tree/caronte/examples/middleware) +The new API makes it really easy to implement code that behaves like the old Middleware API. You can check some examples [here](https://github.com/http-party/node-http-proxy/tree/caronte/examples/middleware) ### ProxyTable API diff --git a/package.json b/package.json index 3c2d64365..7dac58ca3 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.17.0", "repository": { "type": "git", - "url": "https://github.com/nodejitsu/node-http-proxy.git" + "url": "https://github.com/http-party/node-http-proxy.git" }, "description": "HTTP proxying for the masses", "author": "Charlie Robbins ",