From b36b1870c88ebe1ca801121bb72b0bcf0e3d1742 Mon Sep 17 00:00:00 2001 From: Vladimir Grinenko Date: Sun, 3 Dec 2017 02:56:18 +0300 Subject: [PATCH] Update index.js --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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