Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(databaseURL, config) {
if (arguments.length === 1 && typeof databaseURL === 'object') {
this.config = databaseURL;
databaseURL = undefined;
} else {
this.config = Object.assign(
{},
configFromURL(databaseURL),
config
);
}
this.pool = new Pool(this.config);
this.notifier = new PgNotifier(this.pool);
}