Comparing version 5.0.0-alpha.7 to 5.0.0-alpha.8
@@ -78,3 +78,5 @@ /*! | ||
exports.json = bodyParser.json | ||
exports.raw = bodyParser.raw | ||
exports.static = require('serve-static'); | ||
exports.text = bodyParser.text | ||
exports.urlencoded = bodyParser.urlencoded |
@@ -412,2 +412,6 @@ /*! | ||
val = this.get('Host'); | ||
} else if (val.indexOf(',') !== -1) { | ||
// Note: X-Forwarded-Host is normally only ever a | ||
// single value, but this is to be safe. | ||
val = val.substring(0, val.indexOf(',')).trimRight() | ||
} | ||
@@ -414,0 +418,0 @@ |
@@ -358,2 +358,6 @@ /*! | ||
if (typeof path !== 'string') { | ||
throw new TypeError('path must be a string to res.sendFile') | ||
} | ||
// support function as second arg | ||
@@ -690,3 +694,3 @@ if (typeof options === 'function') { | ||
* | ||
* // save as above | ||
* // same as above | ||
* res.cookie('rememberme', '1', { maxAge: 900000, httpOnly: true }) | ||
@@ -993,2 +997,3 @@ * | ||
return '\\u0026' | ||
/* istanbul ignore next: unreachable default */ | ||
default: | ||
@@ -995,0 +1000,0 @@ return c |
{ | ||
"name": "express", | ||
"description": "Fast, unopinionated, minimalist web framework", | ||
"version": "5.0.0-alpha.7", | ||
"version": "5.0.0-alpha.8", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -30,8 +30,8 @@ "contributors": [ | ||
"dependencies": { | ||
"accepts": "~1.3.5", | ||
"accepts": "~1.3.7", | ||
"array-flatten": "2.1.1", | ||
"body-parser": "1.18.3", | ||
"content-disposition": "0.5.2", | ||
"body-parser": "1.19.0", | ||
"content-disposition": "0.5.3", | ||
"content-type": "~1.0.4", | ||
"cookie": "0.3.1", | ||
"cookie": "0.4.0", | ||
"cookie-signature": "1.0.6", | ||
@@ -43,3 +43,3 @@ "debug": "3.1.0", | ||
"etag": "~1.8.1", | ||
"finalhandler": "1.1.1", | ||
"finalhandler": "~1.1.2", | ||
"fresh": "0.5.2", | ||
@@ -49,14 +49,14 @@ "merge-descriptors": "1.0.1", | ||
"on-finished": "~2.3.0", | ||
"parseurl": "~1.3.2", | ||
"parseurl": "~1.3.3", | ||
"path-is-absolute": "1.0.1", | ||
"proxy-addr": "~2.0.4", | ||
"qs": "6.5.2", | ||
"range-parser": "~1.2.0", | ||
"proxy-addr": "~2.0.5", | ||
"qs": "6.7.0", | ||
"range-parser": "~1.2.1", | ||
"router": "2.0.0-alpha.1", | ||
"safe-buffer": "5.1.2", | ||
"send": "0.16.2", | ||
"serve-static": "1.13.2", | ||
"setprototypeof": "1.1.0", | ||
"statuses": "~1.4.0", | ||
"type-is": "~1.6.16", | ||
"send": "0.17.1", | ||
"serve-static": "1.14.1", | ||
"setprototypeof": "1.1.1", | ||
"statuses": "~1.5.0", | ||
"type-is": "~1.6.18", | ||
"utils-merge": "1.0.1", | ||
@@ -67,11 +67,11 @@ "vary": "~1.1.2" | ||
"after": "0.8.2", | ||
"connect-redis": "3.4.0", | ||
"cookie-parser": "~1.4.3", | ||
"cookie-session": "1.3.2", | ||
"connect-redis": "3.4.1", | ||
"cookie-parser": "~1.4.4", | ||
"cookie-session": "1.3.3", | ||
"ejs": "2.6.1", | ||
"eslint": "2.13.1", | ||
"express-session": "1.15.6", | ||
"hbs": "4.0.1", | ||
"express-session": "1.16.1", | ||
"hbs": "4.0.4", | ||
"istanbul": "0.4.5", | ||
"marked": "0.5.1", | ||
"marked": "0.6.2", | ||
"method-override": "3.0.0", | ||
@@ -78,0 +78,0 @@ "mocha": "5.2.0", |
@@ -12,4 +12,4 @@ [![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](http://expressjs.com/) | ||
```js | ||
var express = require('express') | ||
var app = express() | ||
const express = require('express') | ||
const app = express() | ||
@@ -94,2 +94,4 @@ app.get('/', function (req, res) { | ||
View the website at: http://localhost:3000 | ||
## Philosophy | ||
@@ -130,2 +132,6 @@ | ||
## Contributing | ||
[Contributing Guide](Contributing.md) | ||
## People | ||
@@ -153,5 +159,1 @@ | ||
[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master | ||
[gratipay-image-visionmedia]: https://img.shields.io/gratipay/visionmedia.svg | ||
[gratipay-url-visionmedia]: https://gratipay.com/visionmedia/ | ||
[gratipay-image-dougwilson]: https://img.shields.io/gratipay/dougwilson.svg | ||
[gratipay-url-dougwilson]: https://gratipay.com/dougwilson/ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181194
2283
156
+ Addedbody-parser@1.19.0(transitive)
+ Addedbytes@3.1.0(transitive)
+ Addedcontent-disposition@0.5.3(transitive)
+ Addedcookie@0.4.0(transitive)
+ Addedfinalhandler@1.1.2(transitive)
+ Addedhttp-errors@1.7.2(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedmime@1.6.0(transitive)
+ Addedms@2.1.1(transitive)
+ Addedqs@6.7.0(transitive)
+ Addedraw-body@2.4.0(transitive)
+ Addedsend@0.17.1(transitive)
+ Addedserve-static@1.14.1(transitive)
+ Addedsetprototypeof@1.1.1(transitive)
+ Addedstatuses@1.5.0(transitive)
+ Addedtoidentifier@1.0.0(transitive)
- Removedbody-parser@1.18.3(transitive)
- Removedbytes@3.0.0(transitive)
- Removedcontent-disposition@0.5.2(transitive)
- Removedcookie@0.3.1(transitive)
- Removedfinalhandler@1.1.1(transitive)
- Removedhttp-errors@1.6.3(transitive)
- Removediconv-lite@0.4.23(transitive)
- Removedmime@1.4.1(transitive)
- Removedqs@6.5.2(transitive)
- Removedraw-body@2.3.3(transitive)
- Removedsend@0.16.2(transitive)
- Removedserve-static@1.13.2(transitive)
- Removedstatuses@1.4.0(transitive)
Updatedaccepts@~1.3.7
Updatedbody-parser@1.19.0
Updatedcontent-disposition@0.5.3
Updatedcookie@0.4.0
Updatedfinalhandler@~1.1.2
Updatedparseurl@~1.3.3
Updatedproxy-addr@~2.0.5
Updatedqs@6.7.0
Updatedrange-parser@~1.2.1
Updatedsend@0.17.1
Updatedserve-static@1.14.1
Updatedsetprototypeof@1.1.1
Updatedstatuses@~1.5.0
Updatedtype-is@~1.6.18