Skip to content

Commit

Permalink
Refactor(interface): Switched to es6-promisify
Browse files Browse the repository at this point in the history
Works great with all node versions >= 6
  • Loading branch information
fvdm committed Mar 6, 2018
1 parent ad64bb9 commit 4dfae86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
@@ -1,5 +1,5 @@
const http = require ('httpreq');
const { promisify } = require ('util');
const { promisify } = require ('es6-promisify');

// Default config
const defaults = {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -16,13 +16,14 @@
},
"main": "index.js",
"dependencies": {
"es6-promisify": "^6.0.0",
"httpreq": "^0.4.24"
},
"devDependencies": {
"dotest": "^2.3.0"
},
"engines": {
"node": ">=8.0.0"
"node": ">=6.0.0"
},
"keywords": [
"api",
Expand Down

0 comments on commit 4dfae86

Please sign in to comment.