Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 1.6.2-1 #1

Merged
merged 162 commits into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
5f90494
Add support for not parsing the req body. Fixes #153. (#155)
LegNeato Feb 8, 2017
27e9888
Make decorateRequest support functions that return a Promise. (#166)
monkpow Feb 16, 2017
c1a0d82
Adding some narrative comments.
monkpow Feb 16, 2017
d36c85b
Refactoring: extract isUnset method to module.
monkpow Feb 16, 2017
0ae0ca9
Adding more narrative comments.
monkpow Feb 16, 2017
3b5c5cd
[refactoring] Roughing in a new shape, toward more clarity around sp…
monkpow Mar 7, 2017
edc6550
Adding comments. (#171)
monkpow Mar 7, 2017
140bffe
[refactor] drop unused param
monkpow Mar 7, 2017
d6df895
move path resolution to decorateRequestWrapper. DEPRECATES argument…
monkpow Mar 7, 2017
bbbdb14
Incremental refactoring (#173)
monkpow Mar 8, 2017
099ed8d
Patch over test issues caused by shifts to httpbin public interface.
monkpow Apr 3, 2017
51b43e4
Add missed files
monkpow Apr 3, 2017
5ae941a
[major refactor] Separate workflow steps into methods; attmept to cl…
monkpow Apr 4, 2017
61972a1
[refactor] Extract resolution of options to a method. (#181)
monkpow Apr 4, 2017
5ca6525
Extract decorate request wrapper (#182)
monkpow Apr 4, 2017
8c526fb
Extract merge (#183)
monkpow Apr 4, 2017
38495d8
extract resolveProxyHost to a module. (#184)
monkpow Apr 4, 2017
37fb2d3
extract sendProxyRequest to module (#185)
monkpow Apr 4, 2017
f7d4ad8
extract decorateUserRes to module (#186)
monkpow Apr 4, 2017
5e5bd7a
Extract merge (#189)
monkpow Apr 5, 2017
7108711
clean up resolveProxyReqPath (#191)
monkpow Apr 5, 2017
ea5c438
rename test file (#193)
monkpow Apr 5, 2017
c55f8cc
move decorateProxyReqOpts to app/steps (#194)
monkpow Apr 5, 2017
7b27d4d
Cleanup (#196)
monkpow Apr 5, 2017
062ab3b
extract decorateProxyReqBody (#197)
monkpow Apr 5, 2017
0886ec1
Make resolveProxyReqHost, resolveProxyReqPath, and decorateProxyReqOp…
monkpow Apr 6, 2017
5c86a9b
Extract prepareProxyReq and decorateUserRes to app/steps modules. Ex…
monkpow Apr 7, 2017
0719f4d
Remove deprecated files, deprecate intercept. (#202)
monkpow Apr 7, 2017
43c7b0e
Enhancement: decorateUseRes now supports Promises (#203)
monkpow Apr 7, 2017
80057ef
Minor spelling changes. (#204)
monkpow Apr 7, 2017
4596c6d
Expand/update REAME.md (#205)
monkpow Apr 7, 2017
74d3d11
Fixing cookie tests. (#207)
monkpow Apr 7, 2017
1d05bd7
updating npm dependencies (#209)
monkpow Apr 10, 2017
6825e16
Re-org and de-dupe dependencies and devDependencies (#211)
monkpow Apr 10, 2017
ad94a58
Documentation improvements. (#213)
monkpow Apr 11, 2017
d4e5764
Cleanup hook names for proxyReqBodyDecorator and proxyReqOptDecorator…
monkpow Apr 14, 2017
557b5c4
Improve name of userResDecorator hook. (#217)
monkpow Apr 14, 2017
544dcb8
1.0.0
monkpow Apr 25, 2017
5ade89a
Minor doc edits.
monkpow Apr 25, 2017
248f8ae
1.0.1
monkpow Apr 25, 2017
58c09c4
Add debug module and some basic debug statements. Fixes small error …
monkpow Apr 26, 2017
59ed24e
1.0.2
monkpow May 2, 2017
f1a7e44
1.0.2
monkpow May 2, 2017
0a25b02
Fixes: "limit" option no more taken into account #228 (#230)
monkpow May 10, 2017
2cf21ff
Update release notes
monkpow May 10, 2017
b3b0d0b
1.0.3
monkpow May 10, 2017
e4b60a4
Path test file added. (#233)
monkpow May 12, 2017
ce4ce24
Update README.md (#237)
hagai26 May 31, 2017
50517f0
fixing request options
monkpow May 31, 2017
cf67b41
fixes documentation bug #243
monkpow Jun 21, 2017
7384423
Revert "fixing request options"
monkpow Jun 21, 2017
a9f50c4
remove winston, because it is not used (#241)
iamstarkov Jun 21, 2017
14ed9a9
Nit adhoc (#252)
monkpow Jul 7, 2017
1f8fab7
1.0.5
monkpow Jul 7, 2017
11737ce
fixes #248 : Add workflow step to allow authors to exit express-http-…
monkpow Jul 7, 2017
3bd5400
remove errant .only in test suite
monkpow Jul 7, 2017
3caf5d6
fix for #251 Skip userResDecorator on 304 (no body to process) (#254)
monkpow Jul 7, 2017
0689ed3
Fixes #258 options.preserveHostHdr not working after upgrading to 1.x…
monkpow Jul 21, 2017
8cdbce8
Adding test showing query params are preserved.
monkpow Jul 21, 2017
53e0f45
1.0.6
monkpow Jul 21, 2017
e88ba39
README updated for 1.0.6
monkpow Sep 6, 2017
98ea31b
#267 Show proxied path in debug output. (#276)
monkpow Sep 6, 2017
4e6cce6
Fix typo in README.md (#269)
seungha-kim Sep 6, 2017
f56491a
Prevent unhandled promise rejection error when body size exceeds limi…
lennym Sep 6, 2017
694eba0
flattening test structure
monkpow Sep 6, 2017
ad34488
changed to a less commonly used port. (#263)
davebecker3 Sep 6, 2017
9932515
[#268] Add docs and test for promise rejection on proxyReqOptDecorato…
monkpow Sep 6, 2017
c2ea8e3
upgrade dependencies
monkpow Sep 7, 2017
5af9592
268 (#278)
monkpow Sep 18, 2017
03c5628
Refactor test structure and names for host.
davebecker3 Sep 18, 2017
ae3654d
update README.md for release
monkpow Sep 18, 2017
ed81ee2
1.0.7
monkpow Sep 18, 2017
7387986
[#272] Workflow step for modifying headers. (#287)
monkpow Sep 28, 2017
ddafd59
1.1.0
monkpow Nov 14, 2017
4095783
Update README
monkpow Nov 14, 2017
74ba263
update node versions for travis
monkpow Nov 14, 2017
f1fd789
README: Fix Version. (#300)
simono Dec 11, 2017
c746f28
#304 slighly improve documentation about binary uploads.
monkpow Jan 23, 2018
38f9afe
[#304] Tests showing post body being proxied with request. (#307)
monkpow Jan 24, 2018
1a67ac6
Fix crash when gzip indicated and body is empty (#310)
SergeS Feb 1, 2018
3a5fefa
Stream proxied responses if no response modifiers are in use (#311)
monkpow Feb 1, 2018
91b9194
Also skip streaming if userResHeaderDecorator is used; improve docs.
monkpow Feb 1, 2018
07b484e
whitespace.
monkpow Feb 2, 2018
7d9eeb8
README edits, narrative.
monkpow Feb 2, 2018
63b981e
fixes maybeSkipToNextHandler rejects instead of calling next. (#314)
monkpow Feb 2, 2018
ba5b979
Revert " Stream proxied responses if no response modifiers are in use…
monkpow Feb 2, 2018
61ec61f
Stream proxied responses if no response modifiers are in use (#311)
KidkArolis Feb 1, 2018
12c7f1e
Fix when the proxy forwards POST request will encounter the problem (…
valleykid Feb 28, 2018
f6b344f
Switch fs.unlink to fs.unlinkSync (#320)
BridgeAR Feb 28, 2018
c82d5e8
update README wrt proxyReqPathResolver
monkpow Mar 15, 2018
35feba6
fix trivial typo
monkpow Mar 15, 2018
3519090
Added documentation for ignoring certificates (#329)
codegagan Apr 18, 2018
53726bb
[#317] allow authors to provide custom error handler (including skip …
monkpow Apr 20, 2018
c9a5b85
remove errant console.log
monkpow Apr 20, 2018
af57731
Update README release notes.
monkpow Apr 20, 2018
d54c6e7
1.2.0
monkpow Apr 20, 2018
8bb1146
Update linter to eslint as *both* linters are aged out at this point.…
monkpow Apr 20, 2018
9a9271f
adding package-lock.json
monkpow Apr 20, 2018
80114cf
moving the recommended minimum version up
monkpow Apr 20, 2018
76769a9
let travis know that we're no longer testing for versions 4 and 5
monkpow Apr 20, 2018
2ccbe82
update dependencies/package-lock.json
monkpow Jun 5, 2018
5bada09
Let filter take a promise form. (#341)
monkpow Jun 6, 2018
c4c958e
[#343]: Clarify test language and README re: proxyReqPathResolver (#346)
monkpow Jul 2, 2018
5548856
Revert "[#343]: Clarify test language and README re: proxyReqPathReso…
monkpow Jul 3, 2018
2636662
[#342]: Clarify test language and README re: proxyReqPathResolver (#346)
monkpow Jul 2, 2018
7bf29f9
[#344] Tidy up test cases around streaming requests, responses. (#349)
monkpow Jul 3, 2018
2800cc0
[#338] Tidy up test for proxyReqOpt decorator. (#350)
monkpow Jul 3, 2018
fcc1afe
updating source control locations
monkpow Sep 19, 2018
267b50d
1.3.0
monkpow Sep 19, 2018
4436f47
Revert "updating source control locations"
monkpow Sep 19, 2018
8fcb97a
1.4.0
monkpow Sep 19, 2018
ca944fa
remove jshint and jscs dependencies
monkpow Sep 19, 2018
b78046b
Rebuild package-lock.json with updated npm. (#370)
monkpow Sep 19, 2018
f7c55cf
updating mocha version (#372)
monkpow Sep 19, 2018
762b16f
[#363] Tests for host as ip address. (#371)
monkpow Sep 19, 2018
8bac3fe
[#361] Fix skipToNextHandler, add expressHttpProxy value to user res …
monkpow Sep 19, 2018
3c4d8f9
[#366] Improve debug logging in reqOpt decorator. (#367)
monkpow Sep 19, 2018
c8cdb67
[#357] Correct documentation.
monkpow Sep 19, 2018
338c6d8
Insert missing parenthesis (#378)
Oct 11, 2018
ad94d32
381 (#386)
monkpow Oct 24, 2018
c68f1b9
Add js language to markdown for syntax highlighting (#385)
Oct 24, 2018
abf684c
Remove httpbin.org as a test dependency here. (#388)
monkpow Oct 25, 2018
ea936f3
kill only in test file
Oct 26, 2018
8b716ca
[#374] fixes bug in filter signature (#389)
monkpow Oct 31, 2018
fe8d02e
Updating README for 1.5.0 release.
Nov 6, 2018
bf63dbf
1.5.0
Nov 6, 2018
bf44d2b
[#391] Add tests to capture defect. (#393)
monkpow Dec 22, 2018
66b247a
Fixed usage of JSON.stringify in debug (#400)
matthieusieben Jan 15, 2019
acb89db
update release notes
Jan 15, 2019
77121f9
1.5.1
Jan 15, 2019
03f6c03
fix broken test suite from #393 (#407)
raphaeleidus Mar 7, 2019
3baf979
do gzip and gunzip asynchronously (#406)
raphaeleidus Mar 15, 2019
ff9b21c
Update README.md (#425)
Sep 24, 2019
d3929ad
fix typo (#417)
justjavac Sep 24, 2019
7b46bf6
Fixes trace_debugging tests. (#429)
monkpow Sep 24, 2019
1cfefea
OutgoingMessage.prototype._headers is deprecated in Node.js 12. make …
monkpow Sep 25, 2019
a66e2f9
Bump lodash from 4.17.11 to 4.17.15 (#427)
dependabot[bot] Sep 25, 2019
1d3da8c
Bump js-yaml from 3.12.0 to 3.13.1 (#426)
dependabot[bot] Sep 25, 2019
b42e72e
use nock to define more details about the request to the proxy
cesine Jul 23, 2019
fe9b410
use nock to define more details about get requests to the proxy
cesine Jul 23, 2019
ccc6352
use body-parser to show a case where the body is passed as {}
cesine Jul 23, 2019
91b4b14
un-focus test
monkpow Sep 25, 2019
13eb663
Update release notes.
monkpow Sep 25, 2019
f4e0b31
1.6.0
monkpow Sep 25, 2019
7358c01
[#422] Correct misspelling.
monkpow Sep 26, 2019
facb3ab
[#437] dynamic value generation of option parseReqBody
v-electrolux Jul 2, 2020
1983acc
Add important note about 'body-parser'
sebastienroul Oct 8, 2019
f53e7ee
Create node.js.yml
monkpow Jul 20, 2020
9e28f9b
[adhoc] fixes trivial misspelling.
nik-blue-lava Jul 20, 2020
5527c1b
Update dependencies.
nik-blue-lava Jul 20, 2020
a0d5e72
Update release notes for 1.6.1.
nik-blue-lava Jul 20, 2020
42cc849
1.6.1
nik-blue-lava Jul 20, 2020
7d75db7
Update node.js versions used in ci.
nik-blue-lava Jul 21, 2020
1a595f0
Update README for patch version.
nik-blue-lava Jul 21, 2020
3de3f76
1.6.2
nik-blue-lava Jul 21, 2020
1692a00
Remove outdated Gemnaisum badge from README header.
monkpow Jul 21, 2020
2aec188
[#453] Author should be able to delete headers in userResHeaderDecora…
nik-blue-lava Jul 21, 2020
b865387
[#437] add tests for option parseReqBody as function
v-electrolux Jul 29, 2020
5b5b872
[#437] fix style in test for option parseReqBody as function
v-electrolux Jul 29, 2020
3b48e1e
Merge remote-tracking branch 'villadora/master' into feat/upgrade-1.6.2
utay Mar 3, 2021
c11003c
Merge remote-tracking branch 'v-electrolux/master' into feat/upgrade-…
utay Mar 3, 2021
6264c7b
Upgrade to 1.6.2
utay Mar 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/coverage
/scripts
/node_modules
/jsdoc
/locales
168 changes: 168 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"env": {
"browser": true,
"es6": true,
"jquery": true,
"node": true,
"mocha": true,
},
"globals": {},
"parserOptions": { "ecmaVersion": 8 },
"rules": {
"camelcase": [
2,
{
"properties": "always"
}
],
"eqeqeq": 2,
"indent": [
"error",
2,
{
"ArrayExpression": 1,
"CallExpression": {"arguments": 1},
"FunctionDeclaration": {"body": 1, "parameters": 2},
"MemberExpression": 1,
"ObjectExpression": 1,
"SwitchCase": 1
}
],
"no-use-before-define": [
2,
{
"functions": false
}
],
"max-len": [
2,
120
],
"max-depth": [
2,
2
],
"complexity": [
2,
15
],
"new-cap": 2,
"quotes": [
2,
"single",
{
"allowTemplateLiterals": true
}
],
"strict": [
2,
"global"
],
"no-undef": 2,
"no-unused-vars": 2,
"no-eq-null": 2,
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"object-curly-spacing": [
2,
"always"
],
"space-in-parens": [
2,
"never"
],
"quote-props": [
2,
"as-needed"
],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"space-unary-ops": [
2,
{
"words": false,
"nonwords": false
}
],
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"comma-dangle": 0,
"comma-spacing": [
2,
{
"after": true,
"before": false
}
],
"no-with": 2,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"no-multiple-empty-lines": 2,
"no-multi-str": 2,
"one-var": [
2,
"never"
],
"semi-spacing": [
2,
{
"before": false,
"after": true
}
],
"space-before-blocks": [
2,
"always"
],
"wrap-iife": 2,
"comma-style": [
2,
"last"
],
"space-infix-ops": 2,
"eol-last": 2,
"dot-notation": 2,
"curly": [
2,
"all"
],
"keyword-spacing": [
2,
{}
],
"lines-around-comment": [
2,
{ "afterLineComment": true, "allowBlockEnd": true }
],
"semi": [
2,
"always"
],
"consistent-this": [
2,
"self"
],
"linebreak-style": [
2,
"unix"
]
}
}
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
7 changes: 0 additions & 7 deletions .jscsrc

This file was deleted.

93 changes: 0 additions & 93 deletions .jshintrc

This file was deleted.

5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js
node_js:
- "0.11"
- "4"
- "5"
- "10"
- "12"
Loading