mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
serverless: Add URL validation on Connection constructor
This commit is contained in:
@@ -17,6 +17,9 @@ export class Connection {
|
||||
private session: Session;
|
||||
|
||||
constructor(config: Config) {
|
||||
if (!config.url) {
|
||||
throw new Error("invalid config: url is required");
|
||||
}
|
||||
this.config = config;
|
||||
this.session = new Session(config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user