mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-09 13:30:04 +00:00
feat: added isUrl validation utility
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import { isUrl } from './utils'
|
||||
|
||||
/**
|
||||
* A client for interfacing with the SAS9 REST API
|
||||
*
|
||||
*/
|
||||
export class SAS9ApiClient {
|
||||
constructor(private serverUrl: string) {}
|
||||
constructor(private serverUrl: string) {
|
||||
if (serverUrl) isUrl(serverUrl)
|
||||
}
|
||||
|
||||
/**
|
||||
* returns on object containing the server URL
|
||||
|
||||
Reference in New Issue
Block a user