packages/terafoundation/lib/api/getConnection.js
function loadConnector(type) {
        const localPath = `${__dirname}/../connectors/${type}.js`;
        const paths = {};
        paths[localPath] = true;
        paths[type] = true;

        const err = `Could not find connector implementation for: ${type}\n`;

        return getModule(type, paths, err);
    }
function loadConnector(type) {
        const localPath = `${__dirname}/../connectors/${type}.js`;
        const paths = {};
        paths[localPath] = true;
        paths[type] = true;

        const err = `Could not find connector implementation for: ${type}\n`;

        return getModule(type, paths, err);
    }
function loadConnector ( type ) { const localPath = ` ${ __dirname } ${ type } ` ; const paths = { } ; paths [ localPath ] = true ; paths [ type ] = true ; const err = ` ${ type } \n ` ; return getModule ( type , paths , err ) ; }
/*
Connectors can either be JavaScript file in a directory or can be packaged
as a npm module.
/ * Connectors can either be JavaScript file in a directory or can be packaged as a npm module .