Update SPA templates NPM dependencies
This commit is contained in:
Родитель
55da9ce020
Коммит
276a164fd8
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -18,15 +18,15 @@
|
|||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "~12.2.2",
|
||||
"@angular/common": "~12.2.2",
|
||||
"@angular/compiler": "~12.2.2",
|
||||
"@angular/core": "~12.2.2",
|
||||
"@angular/forms": "~12.2.2",
|
||||
"@angular/platform-browser": "~12.2.2",
|
||||
"@angular/platform-browser-dynamic": "~12.2.2",
|
||||
"@angular/platform-server": "~12.2.2",
|
||||
"@angular/router": "~12.2.2",
|
||||
"@angular/animations": "~13.0.1",
|
||||
"@angular/common": "~13.0.1",
|
||||
"@angular/compiler": "~13.0.1",
|
||||
"@angular/core": "~13.0.1",
|
||||
"@angular/forms": "~13.0.1",
|
||||
"@angular/platform-browser": "~13.0.1",
|
||||
"@angular/platform-browser-dynamic": "~13.0.1",
|
||||
"@angular/platform-server": "~13.0.1",
|
||||
"@angular/router": "~13.0.1",
|
||||
"bootstrap": "^5.1.0",
|
||||
"jquery": "^3.5.1",
|
||||
"oidc-client": "^1.11.5",
|
||||
|
@ -37,9 +37,9 @@
|
|||
"zone.js": "~0.11.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "~12.2.2",
|
||||
"@angular/cli": "~12.2.2",
|
||||
"@angular/compiler-cli": "~12.2.2",
|
||||
"@angular-devkit/build-angular": "~13.0.2",
|
||||
"@angular/cli": "~13.0.2",
|
||||
"@angular/compiler-cli": "~13.0.1",
|
||||
"@types/jasmine": "~3.6.0",
|
||||
"@types/jasminewd2": "~2.0.8",
|
||||
"@types/node": "^12.11.1",
|
||||
|
@ -49,7 +49,7 @@
|
|||
"karma-coverage": "~2.0.3",
|
||||
"karma-jasmine": "~4.0.0",
|
||||
"karma-jasmine-html-reporter": "^1.5.0",
|
||||
"typescript": "~4.2.3"
|
||||
"typescript": "~4.4.4"
|
||||
},
|
||||
"optionalDependencies": {}
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ export class AuthorizeService {
|
|||
user = await this.userManager!.signinPopup(this.createArguments());
|
||||
this.userSubject.next(user.profile);
|
||||
return this.success(state);
|
||||
} catch (popupError) {
|
||||
} catch (popupError: any) {
|
||||
if (popupError.message === 'Popup window closed') {
|
||||
// The user explicitly cancelled the login action by closing an opened popup.
|
||||
return this.error('The user closed the window.');
|
||||
|
@ -99,7 +99,7 @@ export class AuthorizeService {
|
|||
try {
|
||||
await this.userManager!.signinRedirect(this.createArguments(state));
|
||||
return this.redirect();
|
||||
} catch (redirectError) {
|
||||
} catch (redirectError: any) {
|
||||
console.log('Redirect authentication error: ', redirectError);
|
||||
return this.error(redirectError);
|
||||
}
|
||||
|
@ -129,12 +129,12 @@ export class AuthorizeService {
|
|||
await this.userManager!.signoutPopup(this.createArguments());
|
||||
this.userSubject.next(null);
|
||||
return this.success(state);
|
||||
} catch (popupSignOutError) {
|
||||
} catch (popupSignOutError: any) {
|
||||
console.log('Popup signout error: ', popupSignOutError);
|
||||
try {
|
||||
await this.userManager!.signoutRedirect(this.createArguments(state));
|
||||
return this.redirect();
|
||||
} catch (redirectSignOutError) {
|
||||
} catch (redirectSignOutError: any) {
|
||||
console.log('Redirect signout error: ', redirectSignOutError);
|
||||
return this.error(redirectSignOutError);
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ export class AuthorizeService {
|
|||
const response = await this.userManager!.signoutCallback(url);
|
||||
this.userSubject.next(null);
|
||||
return this.success(response && response.state);
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.log(`There was an error trying to log out '${error}'.`);
|
||||
return this.error(error);
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче