From 2c2a0678103828eb0a9827ec6e8eb08ff6e3486d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 6 May 2017 23:12:12 +0100 Subject: [PATCH] hoist helmet --- src/server.ts | 2 +- typings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index 751e214..ba17037 100644 --- a/src/server.ts +++ b/src/server.ts @@ -16,6 +16,7 @@ export default function createServer(opts : Options) : express.Application { const app = express(); app.disable('x-powered-by'); + app.use(helmet()); if (process.env.NODE_ENV !== 'test') { app.use(logging); } @@ -43,7 +44,6 @@ export default function createServer(opts : Options) : express.Application { app.use(handle404(opts.serveDir)); app.use(compression({ level: 9 })); - app.use(helmet()); if (opts.opbeat) { app.use(opbeat.start({ active: opts.opbeat diff --git a/typings.json b/typings.json index cea7d4a..1ab33e5 100644 --- a/typings.json +++ b/typings.json @@ -3,7 +3,7 @@ "compression": "registry:dt/compression#0.0.0+20160725212620", "debug": "registry:npm/debug#2.0.0+20160723033700", "express": "registry:npm/express#4.14.0+20160925001530", - "helmet": "registry:dt/helmet#0.0.0+20161005184000", + "helmet": "registry:dt/helmet#0.0.0+20170310054102", "serve-index": "registry:dt/serve-index#1.7.2+20160428043022" }, "globalDependencies": {