dochub-sdk 0.1.267 → 0.1.268
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/interfaces/protocols.ts +5 -0
- package/package.json +1 -1
package/interfaces/protocols.ts
CHANGED
@@ -151,6 +151,11 @@ export interface IDocHubProtocol {
|
|
151
151
|
* @returns - Результирующий URI в формате протокола
|
152
152
|
*/
|
153
153
|
resolveURL(...args: string[]): string;
|
154
|
+
/**
|
155
|
+
* Выделяет хост из URI ресурса. Для систем управления версиями в хост могут входить данные репозитория, ветки, коммита и т.п.
|
156
|
+
* @param uri - идентификатор ресурса
|
157
|
+
*/
|
158
|
+
extractHost(uri: string): string | null;
|
154
159
|
/**
|
155
160
|
* Выполняет запрос к ресурсу по аналогии с axios
|
156
161
|
* @param config
|