aboutsummaryrefslogtreecommitdiff
path: root/node_modules/forwarded
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/forwarded')
-rw-r--r--node_modules/forwarded/HISTORY.md4
-rw-r--r--node_modules/forwarded/LICENSE22
-rw-r--r--node_modules/forwarded/README.md53
-rw-r--r--node_modules/forwarded/index.js35
-rw-r--r--node_modules/forwarded/package.json98
5 files changed, 0 insertions, 212 deletions
diff --git a/node_modules/forwarded/HISTORY.md b/node_modules/forwarded/HISTORY.md
deleted file mode 100644
index 97fa1d1..0000000
--- a/node_modules/forwarded/HISTORY.md
+++ /dev/null
@@ -1,4 +0,0 @@
-0.1.0 / 2014-09-21
-==================
-
- * Initial release
diff --git a/node_modules/forwarded/LICENSE b/node_modules/forwarded/LICENSE
deleted file mode 100644
index b7dce6c..0000000
--- a/node_modules/forwarded/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014 Douglas Christopher Wilson
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/forwarded/README.md b/node_modules/forwarded/README.md
deleted file mode 100644
index 2b4988f..0000000
--- a/node_modules/forwarded/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# forwarded
-
-[![NPM Version][npm-image]][npm-url]
-[![NPM Downloads][downloads-image]][downloads-url]
-[![Node.js Version][node-version-image]][node-version-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-Parse HTTP X-Forwarded-For header
-
-## Installation
-
-```sh
-$ npm install forwarded
-```
-
-## API
-
-```js
-var forwarded = require('forwarded')
-```
-
-### forwarded(req)
-
-```js
-var addresses = forwarded(req)
-```
-
-Parse the `X-Forwarded-For` header from the request. Returns an array
-of the addresses, including the socket address for the `req`. In reverse
-order (i.e. index `0` is the socket address and the last index is the
-furthest address, typically the end-user).
-
-## Testing
-
-```sh
-$ npm test
-```
-
-## License
-
-[MIT](LICENSE)
-
-[npm-image]: https://img.shields.io/npm/v/forwarded.svg?style=flat
-[npm-url]: https://npmjs.org/package/forwarded
-[node-version-image]: https://img.shields.io/node/v/forwarded.svg?style=flat
-[node-version-url]: http://nodejs.org/download/
-[travis-image]: https://img.shields.io/travis/jshttp/forwarded.svg?style=flat
-[travis-url]: https://travis-ci.org/jshttp/forwarded
-[coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded.svg?style=flat
-[coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master
-[downloads-image]: https://img.shields.io/npm/dm/forwarded.svg?style=flat
-[downloads-url]: https://npmjs.org/package/forwarded
diff --git a/node_modules/forwarded/index.js b/node_modules/forwarded/index.js
deleted file mode 100644
index 2f5c340..0000000
--- a/node_modules/forwarded/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*!
- * forwarded
- * Copyright(c) 2014 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-/**
- * Module exports.
- */
-
-module.exports = forwarded
-
-/**
- * Get all addresses in the request, using the `X-Forwarded-For` header.
- *
- * @param {Object} req
- * @api public
- */
-
-function forwarded(req) {
- if (!req) {
- throw new TypeError('argument req is required')
- }
-
- // simple header parsing
- var proxyAddrs = (req.headers['x-forwarded-for'] || '')
- .split(/ *, */)
- .filter(Boolean)
- .reverse()
- var socketAddr = req.connection.remoteAddress
- var addrs = [socketAddr].concat(proxyAddrs)
-
- // return all addresses
- return addrs
-}
diff --git a/node_modules/forwarded/package.json b/node_modules/forwarded/package.json
deleted file mode 100644
index ff27951..0000000
--- a/node_modules/forwarded/package.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "forwarded",
- "raw": "forwarded@~0.1.0",
- "rawSpec": "~0.1.0",
- "scope": null,
- "spec": ">=0.1.0 <0.2.0",
- "type": "range"
- },
- "/Users/warefhaque/CSC309/solutions_repo/node_modules/proxy-addr"
- ]
- ],
- "_from": "forwarded@>=0.1.0 <0.2.0",
- "_id": "forwarded@0.1.0",
- "_inCache": true,
- "_installable": true,
- "_location": "/forwarded",
- "_npmUser": {
- "email": "doug@somethingdoug.com",
- "name": "dougwilson"
- },
- "_npmVersion": "1.4.21",
- "_phantomChildren": {},
- "_requested": {
- "name": "forwarded",
- "raw": "forwarded@~0.1.0",
- "rawSpec": "~0.1.0",
- "scope": null,
- "spec": ">=0.1.0 <0.2.0",
- "type": "range"
- },
- "_requiredBy": [
- "/proxy-addr"
- ],
- "_resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.0.tgz",
- "_shasum": "19ef9874c4ae1c297bcf078fde63a09b66a84363",
- "_shrinkwrap": null,
- "_spec": "forwarded@~0.1.0",
- "_where": "/Users/warefhaque/CSC309/solutions_repo/node_modules/proxy-addr",
- "bugs": {
- "url": "https://github.com/jshttp/forwarded/issues"
- },
- "contributors": [
- {
- "email": "doug@somethingdoug.com",
- "name": "Douglas Christopher Wilson"
- }
- ],
- "dependencies": {},
- "description": "Parse HTTP X-Forwarded-For header",
- "devDependencies": {
- "istanbul": "0.3.2",
- "mocha": "~1.21.4"
- },
- "directories": {},
- "dist": {
- "shasum": "19ef9874c4ae1c297bcf078fde63a09b66a84363",
- "tarball": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.0.tgz"
- },
- "engines": {
- "node": ">= 0.6"
- },
- "files": [
- "LICENSE",
- "HISTORY.md",
- "README.md",
- "index.js"
- ],
- "gitHead": "e9a9faeb3cfaadf40eb57d144fff26bca9b818e8",
- "homepage": "https://github.com/jshttp/forwarded",
- "keywords": [
- "x-forwarded-for",
- "http",
- "req"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "email": "doug@somethingdoug.com",
- "name": "dougwilson"
- }
- ],
- "name": "forwarded",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jshttp/forwarded.git"
- },
- "scripts": {
- "test": "mocha --reporter spec --bail --check-leaks test/",
- "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/"
- },
- "version": "0.1.0"
-}