Changements dans les modules (nouvelle version Express, mysql, ..)
This commit is contained in:
5
node_modules/forwarded/HISTORY.md
generated
vendored
5
node_modules/forwarded/HISTORY.md
generated
vendored
@@ -1,8 +1,3 @@
|
||||
0.2.0 / 2021-05-31
|
||||
==================
|
||||
|
||||
* Use `req.socket` over deprecated `req.connection`
|
||||
|
||||
0.1.2 / 2017-09-14
|
||||
==================
|
||||
|
||||
|
||||
6
node_modules/forwarded/README.md
generated
vendored
6
node_modules/forwarded/README.md
generated
vendored
@@ -3,7 +3,7 @@
|
||||
[![NPM Version][npm-image]][npm-url]
|
||||
[![NPM Downloads][downloads-image]][downloads-url]
|
||||
[![Node.js Version][node-version-image]][node-version-url]
|
||||
[![Build Status][ci-image]][ci-url]
|
||||
[![Build Status][travis-image]][travis-url]
|
||||
[![Test Coverage][coveralls-image]][coveralls-url]
|
||||
|
||||
Parse HTTP X-Forwarded-For header
|
||||
@@ -45,12 +45,12 @@ $ npm test
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
||||
[ci-image]: https://badgen.net/github/checks/jshttp/forwarded/master?label=ci
|
||||
[ci-url]: https://github.com/jshttp/forwarded/actions?query=workflow%3Aci
|
||||
[npm-image]: https://img.shields.io/npm/v/forwarded.svg
|
||||
[npm-url]: https://npmjs.org/package/forwarded
|
||||
[node-version-image]: https://img.shields.io/node/v/forwarded.svg
|
||||
[node-version-url]: https://nodejs.org/en/download/
|
||||
[travis-image]: https://img.shields.io/travis/jshttp/forwarded/master.svg
|
||||
[travis-url]: https://travis-ci.org/jshttp/forwarded
|
||||
[coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded/master.svg
|
||||
[coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master
|
||||
[downloads-image]: https://img.shields.io/npm/dm/forwarded.svg
|
||||
|
||||
16
node_modules/forwarded/index.js
generated
vendored
16
node_modules/forwarded/index.js
generated
vendored
@@ -28,27 +28,13 @@ function forwarded (req) {
|
||||
|
||||
// simple header parsing
|
||||
var proxyAddrs = parse(req.headers['x-forwarded-for'] || '')
|
||||
var socketAddr = getSocketAddr(req)
|
||||
var socketAddr = req.connection.remoteAddress
|
||||
var addrs = [socketAddr].concat(proxyAddrs)
|
||||
|
||||
// return all addresses
|
||||
return addrs
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the socket address for a request.
|
||||
*
|
||||
* @param {object} req
|
||||
* @return {string}
|
||||
* @private
|
||||
*/
|
||||
|
||||
function getSocketAddr (req) {
|
||||
return req.socket
|
||||
? req.socket.remoteAddress
|
||||
: req.connection.remoteAddress
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse the X-Forwarded-For header.
|
||||
*
|
||||
|
||||
24
node_modules/forwarded/package.json
generated
vendored
24
node_modules/forwarded/package.json
generated
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "forwarded",
|
||||
"description": "Parse HTTP X-Forwarded-For header",
|
||||
"version": "0.2.0",
|
||||
"version": "0.1.2",
|
||||
"contributors": [
|
||||
"Douglas Christopher Wilson <doug@somethingdoug.com>"
|
||||
],
|
||||
@@ -15,15 +15,14 @@
|
||||
"devDependencies": {
|
||||
"beautify-benchmark": "0.2.4",
|
||||
"benchmark": "2.1.4",
|
||||
"deep-equal": "1.0.1",
|
||||
"eslint": "7.27.0",
|
||||
"eslint-config-standard": "14.1.1",
|
||||
"eslint-plugin-import": "2.23.4",
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-promise": "4.3.1",
|
||||
"eslint-plugin-standard": "4.1.0",
|
||||
"mocha": "8.4.0",
|
||||
"nyc": "15.1.0"
|
||||
"eslint": "3.19.0",
|
||||
"eslint-config-standard": "10.2.1",
|
||||
"eslint-plugin-import": "2.7.0",
|
||||
"eslint-plugin-node": "5.1.1",
|
||||
"eslint-plugin-promise": "3.5.0",
|
||||
"eslint-plugin-standard": "3.0.1",
|
||||
"istanbul": "0.4.5",
|
||||
"mocha": "1.21.5"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
@@ -38,8 +37,7 @@
|
||||
"bench": "node benchmark/index.js",
|
||||
"lint": "eslint .",
|
||||
"test": "mocha --reporter spec --bail --check-leaks test/",
|
||||
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
||||
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
||||
"version": "node scripts/version-history.js && git add HISTORY.md"
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
||||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user