Skip to content

Commit

Permalink
Update packages via npm audit
Browse files Browse the repository at this point in the history
Bug: #11
  • Loading branch information
Jnchi committed Oct 30, 2019
1 parent 8b08eaa commit 7b9707b
Show file tree
Hide file tree
Showing 4 changed files with 17,589 additions and 43 deletions.
8 changes: 4 additions & 4 deletions config/lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ module.exports.initModulesConfiguration = function (app, db) {
module.exports.initHelmetHeaders = function (app) {
// Use helmet to secure Express headers
var SIX_MONTHS = 15778476000;
app.use(helmet.xframe());
app.use(helmet.frameguard());
app.use(helmet.xssFilter());
app.use(helmet.nosniff());
app.use(helmet.ienoopen());
app.use(helmet.noSniff());
app.use(helmet.ieNoOpen());
app.use(helmet.hsts({
maxAge: SIX_MONTHS,
includeSubdomains: true,
includeSubDomains: true,
force: true
}));
app.disable('x-powered-by');
Expand Down
6 changes: 1 addition & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ gulp.task('watch', function () {
});
// CSS linting task
gulp.task('csslint', function (done) {
return gulp.src(defaultAssets.client.css).pipe(plugins.csslint('.csslintrc')).pipe(plugins.csslint.reporter()).pipe(plugins.csslint.reporter(function (file) {
if(!file.csslint.errorCount) {
done();
}
}));
return gulp.src(defaultAssets.client.css).pipe(plugins.csslint('.csslintrc')).pipe(plugins.csslint.formatter()).pipe(plugins.csslint.formatter());
});
// ESLint JS linting task
gulp.task('eslint', function () {
Expand Down
Loading

0 comments on commit 7b9707b

Please sign in to comment.