hops-express
Advanced tools
Comparing version 11.0.0-rc.9 to 11.0.0-rc.13
@@ -6,2 +6,18 @@ # Change Log | ||
<a name="11.0.0-rc.13"></a> | ||
# [11.0.0-rc.13](https://github.com/xing/hops/compare/v11.0.0-rc.12...v11.0.0-rc.13) (2018-07-04) | ||
### Bug Fixes | ||
* **express:** return app in configureServer hook ([ca07331](https://github.com/xing/hops/commit/ca07331)) | ||
### Features | ||
* **express:** enable gzip compression when serving in production mode ([c7be81e](https://github.com/xing/hops/commit/c7be81e)) | ||
<a name="11.0.0-rc.9"></a> | ||
@@ -8,0 +24,0 @@ # [11.0.0-rc.9](https://github.com/xing/hops/compare/v11.0.0-rc.8...v11.0.0-rc.9) (2018-06-27) |
@@ -5,2 +5,9 @@ const { format } = require('url'); | ||
class ExpressCoreMixin extends Mixin { | ||
configureServer(app, middleware, mode) { | ||
if (mode === 'serve' && process.env.NODE_ENV === 'production') { | ||
middleware.prefiles.push(require('compression')()); | ||
} | ||
return app; | ||
} | ||
inspectServer(app) { | ||
@@ -7,0 +14,0 @@ const { port, address: host } = app.address(); |
{ | ||
"name": "hops-express", | ||
"version": "11.0.0-rc.9", | ||
"version": "11.0.0-rc.13", | ||
"description": "Customization for the our express server", | ||
@@ -24,4 +24,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@untool/core": "^0.10.0" | ||
"@untool/core": "^0.11.0", | ||
"compression": "^1.7.2" | ||
} | ||
} |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2428
26
0
2
1
+ Addedcompression@^1.7.2
+ Added@untool/core@0.11.0(transitive)
+ Addedbytes@3.1.2(transitive)
+ Addedcompressible@2.0.18(transitive)
+ Addedcompression@1.7.5(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedmime-db@1.53.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednegotiator@0.6.4(transitive)
+ Addedon-headers@1.0.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedvary@1.1.2(transitive)
- Removed@untool/core@0.10.0(transitive)
Updated@untool/core@^0.11.0