@autofleet/super-express
Advanced tools
Comparing version 1.1.12 to 1.1.15
13
index.js
@@ -7,4 +7,7 @@ const express = require('express') | ||
const morgan = require('morgan') | ||
<<<<<<< HEAD | ||
======= | ||
const compression = require("compression") | ||
const helmet = require('helmet') | ||
>>>>>>> 5369a1e2e07d568ef0f0743065473b0217a8d7ed | ||
@@ -32,17 +35,15 @@ const defaultOptions = require('./default-options.json') | ||
<<<<<<< HEAD | ||
app.use(morgan(':method :url :status :res[content-length] - :response-time ms', { "stream": getLogStream(options.infoLog) })) | ||
======= | ||
} else { | ||
app.use(morgan(':method :url :status :res[content-length] - :response-time ms')) | ||
} | ||
>>>>>>> 5369a1e2e07d568ef0f0743065473b0217a8d7ed | ||
// General | ||
if( mergedOptions.bodyParser ) { | ||
app.use(bodyParser.urlencoded({ | ||
extended: true | ||
})) | ||
app.use(bodyParser.json()) | ||
} | ||
if( mergedOptions.compression ) app.use(compression(mergedOptions.compression.options)) | ||
if( mergedOptions.helmet ) app.use(helmet(mergedOptions.helmet.options)) | ||
app.nativeListen = app.listen | ||
@@ -49,0 +50,0 @@ app.listen = function (port, cb) { |
{ | ||
"name": "@autofleet/super-express", | ||
"version": "1.1.12", | ||
"version": "1.1.15", | ||
"description": "AF Express with built in boilerplate", | ||
@@ -10,7 +10,5 @@ "main": "index.js", | ||
"body-parser": "^1.18.3", | ||
"chalk": "^2.0.1", | ||
"compression": "^1.7.0", | ||
"express": "^4.16.3", | ||
"helmet": "^3.6.1", | ||
"morgan": "^1.8.2" | ||
"chalk": "^2.4.1", | ||
"express": "^4.16.4", | ||
"morgan": "^1.9.1" | ||
}, | ||
@@ -17,0 +15,0 @@ "scripts": { |
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
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
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
4
49
2471
1
- Removedcompression@^1.7.0
- Removedhelmet@^3.6.1
- Removedbowser@2.9.0(transitive)
- Removedcamelize@1.0.0(transitive)
- Removedcompressible@2.0.18(transitive)
- Removedcompression@1.7.5(transitive)
- Removedcontent-security-policy-builder@2.1.0(transitive)
- Removeddasherize@2.0.0(transitive)
- Removeddont-sniff-mimetype@1.1.0(transitive)
- Removedfeature-policy@0.3.0(transitive)
- Removedhelmet@3.23.3(transitive)
- Removedhelmet-crossdomain@0.4.0(transitive)
- Removedhelmet-csp@2.10.0(transitive)
- Removedhide-powered-by@1.1.0(transitive)
- Removedhpkp@2.0.0(transitive)
- Removedhsts@2.2.0(transitive)
- Removedmime-db@1.53.0(transitive)
- Removednegotiator@0.6.4(transitive)
- Removednocache@2.1.0(transitive)
- Removedreferrer-policy@1.2.0(transitive)
- Removedx-xss-protection@1.3.0(transitive)
Updatedchalk@^2.4.1
Updatedexpress@^4.16.4
Updatedmorgan@^1.9.1