@useparagon/connect 2.2.5 → 2.2.6-experimental-9695.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/utils/http.d.ts
CHANGED
|
@@ -11,6 +11,12 @@ export declare const isValidUrl: (url: string) => boolean;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function sanitizeUrl(url: string): string;
|
|
13
13
|
export declare function getServiceUrl(service: string, domain: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Derives the domain (host) from a service URL for persistence.
|
|
16
|
+
* e.g. 'https://connect.myDomain.com' -> 'myDomain.com'
|
|
17
|
+
* Used so the SDK can restore the correct endpoint when loading state before configureGlobal() is called.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getDomainFromServiceUrl(serviceUrl: string, serviceName: string): string;
|
|
14
20
|
/**
|
|
15
21
|
* Validation error description.
|
|
16
22
|
* @see https://github.com/typestack/class-validator
|