packages/md-to-bemjson/lib/augment.js
function augmentMap(bemNode, map) {
    const name = bemNode.block;

    if (map[name]) {
        assert(typeof map[name] === 'string', `options.map: new name of ${name} must be string`);
        bemNode.block = map[name];
    }

    return bemNode;
}
function augmentMap(bemNode, map) {
    const name = bemNode.block;

    if (map[name]) {
        assert(typeof map[name] === 'string', `options.map: new name of ${name} must be string`);
        bemNode.block = map[name];
    }

    return bemNode;
}
function augmentMap ( bemNode , map ) { const name = bemNode . block ; if ( map [ name ] ) { assert ( typeof map [ name ] === 'string' , ` ${ name } ` ) ; bemNode . block = map [ name ] ; } return bemNode ; }
Replace block names with new one

@param {Object} bemNode - representation of bem entity
@param {Object} map - key:blockName, value:newBlockName
@returns {Object} bemNode
Replace block names with new one