Bump dependencies versions

This commit is contained in:
fflorent
2024-03-30 11:39:08 +01:00
committed by jordigh
parent 513e13e6ab
commit f405ae715b
9 changed files with 31 additions and 29 deletions

View File

@@ -254,7 +254,7 @@ export class TestSession {
) {
const resp = await axios.get(`${this.home.getOwnUrl()}/test/session`,
{validateStatus: (s => s < 400), headers: this.headers});
const cookie = this.headers.Cookie || resp.headers['set-cookie'][0];
const cookie = this.headers.Cookie || resp.headers['set-cookie']![0];
const cid = decodeURIComponent(cookie.split('=')[1].split(';')[0]);
const sessionId = this.home.getSessions().getSessionIdFromCookie(cid);
const scopedSession = this.home.getSessions().getOrCreateSession(sessionId as string, org, '');

View File

@@ -21,7 +21,7 @@ export function configForUser(username: string): AxiosRequestConfig {
}
};
if (username !== 'Anonymous') {
config.headers.Authorization = 'Bearer api_key_for_' + username.toLowerCase();
config.headers!.Authorization = 'Bearer api_key_for_' + username.toLowerCase();
}
return config;
}