diff --git a/index.js b/index.js index 45e1ef1..9dac2dc 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,11 @@ const BemConfig = require('@bem/sdk.config'); module.exports = function() { + const config = BemConfig(); + return Promise.all([ - BemConfig().get(), - BemConfig().levelMap() + config.get(), + config.levelMap() ]).then(([all, levels]) => ({ all, levels