Refactor src/config/*.js to use import

This commit is contained in:
Tankred Hase 2016-01-23 18:34:59 +07:00
parent f06e5aea55
commit 60b23169ac
2 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,7 @@
'use strict';
var enums = require('../enums.js');
import enums from '../enums.js';
module.exports = {
prefer_hash_algorithm: enums.hash.sha256,

View File

@ -2,7 +2,5 @@
* @see module:config/config
* @module config
*/
'use strict';
module.exports = require('./config.js');
import config from './config.js';
module.exports = config;