Skip to content

Commit

Permalink
Bumped v1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Jul 1, 2017
1 parent ae1d7d5 commit e09c3d2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
15 changes: 15 additions & 0 deletions benchmarks/express.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict'

var express = require('express')
var helmet = require('helmet')

var app = express()

app.use(helmet())
app.use(require('express-pino-logger')())

app.get('/', function (req, res) {
res.send({ hello: 'world' })
})

app.listen(3000)
13 changes: 13 additions & 0 deletions benchmarks/koa.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict'

var Koa = require('koa')
var app = new Koa()

app.use(require('koa-pino-logger')())
app.use(require('koa-helmet')())

app.use(async (ctx) => {
ctx.body = JSON.stringify({ hello: 'world' })
})

app.listen(3000)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastify-helmet",
"version": "0.0.1",
"version": "1.0.0",
"description": "Important security headers for Fastify",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e09c3d2

Please sign in to comment.