dist/lib/resolve-values.js
function resolveValues(obj) {
    var ret = {};
    return Promise.all(Object.keys(obj).map(function (k) {
        var val = (0, _promisify2['default'])(obj[k]);
        return val.then(function (v) {
            return ret[k] = v;
        });
    })).then(function () {
        return ret;
    });
}
function resolveValues(obj) {
    var ret = {};
    return Promise.all(Object.keys(obj).map(function (k) {
        var val = (0, _promisify2['default'])(obj[k]);
        return val.then(function (v) {
            return ret[k] = v;
        });
    })).then(function () {
        return ret;
    });
}
function resolveValues ( obj ) { var ret = { } ; return Promise . all ( Object . keys ( obj ) . map ( function ( k ) { var val = ( 0 , _promisify2 [ 'default' ] ) ( obj [ k ] ) ; return val . then ( function ( v ) { return ret [ k ] = v ; } ) ; } ) ) . then ( function ( ) { return ret ; } ) ; }
resolves all values if they are promises
returns equal object with resolved
resolves all values if they are promises returns equal object with resolved