new lib version [CI SKIP]

This commit is contained in:
2020-12-22 14:30:44 +00:00
parent 284f3303c3
commit 52ac2efc67
66 changed files with 799 additions and 122 deletions

View File

@@ -1,9 +1,9 @@
import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from './ApiResult';
/**
* Request using node-fetch client
* @param options The request options from the the service
* @result ApiResult
* @throws ApiError
*/
* Request using node-fetch client
* @param options The request options from the the service
* @returns ApiResult
* @throws ApiError
*/
export declare function request(options: ApiRequestOptions): Promise<ApiResult>;

10
dist/core/request.js vendored
View File

@@ -188,11 +188,11 @@ function catchErrors(options, result) {
}
}
/**
* Request using node-fetch client
* @param options The request options from the the service
* @result ApiResult
* @throws ApiError
*/
* Request using node-fetch client
* @param options The request options from the the service
* @returns ApiResult
* @throws ApiError
*/
async function request(options) {
const url = getUrl(options);
const response = await sendRequest(options, url);