Skip to content

Commit

Permalink
Remove promisify shim
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Sep 26, 2018
1 parent 2da2073 commit c1ecab0
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 39 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ jobs:
- image: circleci/node:8-browsers
working_directory: ~/repo

steps: *eg-checkout-install
steps: &eg-checkout-install
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: npm ci
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules

"node-10":
docker:
Expand Down
8 changes: 0 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@
"crypto.createDecipher"
]
}
],
"node/no-unsupported-features/node-builtins": [
"error",
{
"ignores": [
"util.promisify"
]
}
]
},
"root": true
Expand Down
2 changes: 0 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env node

require('util.promisify/shim')(); // NOTE: shim for native node 8.0 uril.promisify

const eg = {
get config () {
return require('../lib/config');
Expand Down
1 change: 0 additions & 1 deletion lib/config/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('util.promisify/shim')();
const fs = require('fs');
const util = require('util');
const readFile = util.promisify(fs.readFile);
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require('./eventBus'); // init event bus
require('util.promisify/shim')(); // NOTE: shim for native node 8.0 uril.promisify

const pluginsLoader = require('./plugins');
if (require.main === module) {
const config = require('./config'); // this is to init config before loading servers and plugins
Expand Down
41 changes: 17 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"license": "Apache-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 6.0.0"
"node": ">= 8.0.0"
},
"scripts": {
"start": "node lib/index.js",
Expand Down Expand Up @@ -97,7 +97,6 @@
"superagent-logger": "^1.1.0",
"superagent-prefix": "0.0.2",
"swagger-ui-express": "^3.0.10",
"util.promisify": "^1.0.0",
"uuid": "^3.3.2",
"uuid62": "^1.0.0",
"vhost": "3.0.2",
Expand Down

0 comments on commit c1ecab0

Please sign in to comment.