refactor: update to Angular 13

This commit is contained in:
Rainer Killinger
2022-03-23 12:57:16 +01:00
parent 7b491ed3bb
commit dac2f5656a
20 changed files with 2723 additions and 6726 deletions

View File

@@ -64,6 +64,7 @@ export class AuthHelperService {
key as keyof SCUserConfiguration
] as string,
json: userInfo,
preventEval: true,
})[0];
}

View File

@@ -1,7 +1,6 @@
import {Requestor} from '@openid/appauth';
import {Http, HttpHeaders, HttpResponse} from '@capacitor-community/http';
import {XhrSettings} from 'ionic-appauth/lib/cordova';
import qs from 'qs';
// REQUIRES CAPACITOR PLUGIN
// @capacitor-community/http
@@ -33,7 +32,7 @@ export class CapacitorRequestor extends Requestor {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private async post<T>(url: string, data: any, headers: HttpHeaders) {
return Http.post({url, data: qs.parse(data), headers}).then(
return Http.post({url, data: data, headers}).then(
(response: HttpResponse) => response.data as T,
);
}