🚀New lib version v0.13.1 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2023-02-02 15:19:00 +00:00
parent ad90844846
commit 9b6d686d93
45 changed files with 271 additions and 274 deletions

View File

@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenAPI = void 0;
exports.OpenAPI = {
BASE: '',
VERSION: '0.13.0',
VERSION: '0.13.1',
WITH_CREDENTIALS: false,
TOKEN: undefined,
USERNAME: undefined,

View File

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

View File

@@ -111,9 +111,6 @@ async function sendRequest(options, url) {
headers: await getHeaders(options),
body: getRequestBody(options),
};
if (OpenAPI_1.OpenAPI.WITH_CREDENTIALS) {
request.credentials = 'include';
}
return await fetch(url, request);
}
function getResponseHeader(response, responseHeader) {
@@ -165,7 +162,7 @@ function catchErrors(options, result) {
/**
* Request using fetch client
* @param options The request options from the the service
* @returns ApiResult
* @result ApiResult
* @throws ApiError
*/
async function request(options) {