@untool/express
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
@@ -6,2 +6,23 @@ # Change Log | ||
# [2.0.0-alpha.3](https://github.com/untool/untool/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2019-10-02) | ||
### Bug Fixes | ||
* **express:** use preinitial phase for helmet middlware ([a80fc19](https://github.com/untool/untool/commit/a80fc19)) | ||
### Features | ||
* **express:** add cookie-parser middleware ([ade3554](https://github.com/untool/untool/commit/ade3554)) | ||
### BREAKING CHANGES | ||
* **express:** moved helmet middleware from initial phase to preinitial. | ||
# [2.0.0-alpha.2](https://github.com/untool/untool/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2019-09-27) | ||
@@ -8,0 +29,0 @@ |
@@ -45,4 +45,5 @@ 'use strict'; | ||
const mime = require('mime'); | ||
const cookieParser = require('cookie-parser'); | ||
const { distDir } = this.config; | ||
middlewares.initial.push(helmet()); | ||
middlewares.preinitial.push(helmet(), cookieParser()); | ||
middlewares.files.push( | ||
@@ -49,0 +50,0 @@ express.static(distDir, { |
{ | ||
"name": "@untool/express", | ||
"version": "2.0.0-alpha.2", | ||
"version": "2.0.0-alpha.3", | ||
"description": "untool express mixin", | ||
@@ -19,6 +19,7 @@ "repository": { | ||
"dependencies": { | ||
"@untool/core": "^2.0.0-alpha.2", | ||
"@untool/yargs": "^2.0.0-alpha.2", | ||
"@untool/core": "^2.0.0-alpha.3", | ||
"@untool/yargs": "^2.0.0-alpha.3", | ||
"chalk": "^2.4.2", | ||
"compression": "^1.7.4", | ||
"cookie-parser": "^1.4.4", | ||
"debug": "^4.0.0", | ||
@@ -44,4 +45,3 @@ "directory-index": "^0.1.0", | ||
"node": ">8.6.0" | ||
}, | ||
"gitHead": "7511ce65162fd3248d75e4c67a9e49b3f8e23b98" | ||
} | ||
} |
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
406
42341
22
12
+ Addedcookie-parser@^1.4.4
+ Addedcookie@0.7.2(transitive)
+ Addedcookie-parser@1.4.7(transitive)
Updated@untool/core@^2.0.0-alpha.3
Updated@untool/yargs@^2.0.0-alpha.3