'use strict'; const sqlClientModule = { mysql: { mysql: '2.18.1' }, postgres: { pg: '8.6.0' }, sqlite: { '@vscode/sqlite3': '^5.0.7' }, }; /** * Client dependencies */ module.exports = ({ client }) => { switch (client) { case 'sqlite': case 'postgres': case 'mysql': return { ...sqlClientModule[client], }; default: throw new Error(`Invalid client "${client}"`); } };