Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function ServerConnector(settings, dataSource) {
Connector.call(this, 'server', settings);
this.settings = settings;
this.dataSource = dataSource;
dataSource.DataAccessObject = dataSource.constructor.DataAccessObject;
settings.base = settings.base || '/';
dataSource.connect = this.connect;
}
util.inherits(ServerConnector, Connector);