Skip to content

Commit

Permalink
Merge pull request #48 from venables/revert-47-revert-util-promisify
Browse files Browse the repository at this point in the history
Revert #47, bump version to 5.0.0
  • Loading branch information
venables committed Aug 12, 2019
2 parents 5e70d48 + fe4d0a6 commit 28da59e
Show file tree
Hide file tree
Showing 6 changed files with 1,160 additions and 1,215 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -3,5 +3,4 @@ node_js:
- "12"
- "10"
- "8"
- "6"
after_success: yarn run coverage
2 changes: 1 addition & 1 deletion lib/koa-helmet.js
@@ -1,7 +1,7 @@
'use strict';

const helmet = require('helmet');
const promisify = require('./promisify');
const { promisify } = require('util');

const koaHelmet = function () {
const helmetPromise = promisify(helmet.apply(null, arguments));
Expand Down
24 changes: 0 additions & 24 deletions lib/promisify.js

This file was deleted.

16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -3,7 +3,7 @@
"author": "Matt Venables <mattvenables@gmail.com>",
"description": "Security header middleware collection for koa",
"license": "MIT",
"version": "4.2.1",
"version": "5.0.0",
"main": "lib/koa-helmet.js",
"scripts": {
"format": "eslint lib test --fix",
Expand All @@ -23,19 +23,19 @@
"url": "git://github.com/venables/koa-helmet.git"
},
"engines": {
"node": ">= 6.0.0"
"node": ">= 8.0.0"
},
"dependencies": {
"helmet": "^3.15.1"
"helmet": "^3.18.0"
},
"devDependencies": {
"ava": "^1.3.1",
"ava": "^2.0.0",
"coveralls": "^3.0.3",
"eslint": "^5.15.1",
"eslint-plugin-node": "^8.0.1",
"eslint": "^5.16.0",
"eslint-plugin-node": "^9.1.0",
"koa": "^2.7.0",
"nyc": "^13.3.0",
"supertest": "^4.0.0"
"nyc": "^14.1.1",
"supertest": "^4.0.2"
},
"nyc": {
"reporter": [
Expand Down
38 changes: 0 additions & 38 deletions test/promisify.spec.js

This file was deleted.

0 comments on commit 28da59e

Please sign in to comment.