update dependencies

This commit is contained in:
rubikscraft
2022-04-15 13:05:17 +02:00
parent 2e6e868f89
commit 1c57e292d7
8 changed files with 676 additions and 1206 deletions

View File

@@ -20,15 +20,16 @@
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
},
"dependencies": {
"@nestjs/common": "^8.4.3",
"@nestjs/common": "^8.4.4",
"@nestjs/config": "^2.0.0",
"@nestjs/core": "^8.4.3",
"@nestjs/core": "^8.4.4",
"@nestjs/jwt": "^8.0.0",
"@nestjs/passport": "^8.2.1",
"@nestjs/platform-fastify": "^8.4.3",
"@nestjs/platform-fastify": "^8.4.4",
"@nestjs/serve-static": "^2.2.2",
"@nestjs/typeorm": "^8.0.3",
"bcrypt": "^5.0.1",
"cors": "^2.8.5",
"fastify-helmet": "^7.0.1",
"fastify-multipart": "^5.3.1",
"fastify-static": "^4.6.1",
@@ -44,32 +45,33 @@
"rimraf": "^3.0.2",
"rxjs": "^7.5.5",
"sharp": "^0.30.3",
"typeorm": "0.3.4",
"zod": "^3.14.3"
"typeorm": "0.3.6",
"zod": "^3.14.4"
},
"devDependencies": {
"@nestjs/cli": "^8.2.4",
"@nestjs/schematics": "^8.0.8",
"@nestjs/testing": "^8.4.3",
"@nestjs/cli": "^8.2.5",
"@nestjs/schematics": "^8.0.10",
"@nestjs/testing": "^8.4.4",
"@types/bcrypt": "^5.0.0",
"@types/cors": "^2.8.12",
"@types/multer": "^1.4.7",
"@types/node": "^17.0.23",
"@types/node": "^17.0.24",
"@types/passport-jwt": "^3.0.6",
"@types/passport-local": "^1.0.34",
"@types/passport-strategy": "^0.2.35",
"@types/sharp": "^0.30.2",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"eslint": "^8.12.0",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.6.1",
"prettier": "^2.6.2",
"source-map-support": "^0.5.21",
"ts-loader": "^9.2.8",
"ts-node": "^10.7.0",
"tsconfig-paths": "^3.14.1",
"typescript": "4.6.3",
"webpack": "^5.70.0"
"webpack": "^5.72.0"
}
}

View File

@@ -13,44 +13,37 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/animations": "^14.0.0-next.10",
"@angular/cdk": "^14.0.0-next.9",
"@angular/common": "^14.0.0-next.10",
"@angular/compiler": "^14.0.0-next.10",
"@angular/core": "^14.0.0-next.10",
"@angular/forms": "^14.0.0-next.10",
"@angular/material": "^14.0.0-next.9",
"@angular/platform-browser": "^14.0.0-next.10",
"@angular/platform-browser-dynamic": "^14.0.0-next.10",
"@angular/router": "^14.0.0-next.10",
"@angular/animations": "^14.0.0-next.13",
"@angular/cdk": "^14.0.0-next.10",
"@angular/common": "^14.0.0-next.13",
"@angular/compiler": "^14.0.0-next.13",
"@angular/core": "^14.0.0-next.13",
"@angular/forms": "^14.0.0-next.13",
"@angular/material": "^14.0.0-next.10",
"@angular/platform-browser": "^14.0.0-next.13",
"@angular/platform-browser-dynamic": "^14.0.0-next.13",
"@angular/router": "^14.0.0-next.13",
"bootstrap": "^5.1.3",
"fuse.js": "^6.5.3",
"jwt-decode": "^3.1.2",
"ngx-auto-unsubscribe-decorator": "^0.1.0",
"ngx-auto-unsubscribe-decorator": "^1.1.0",
"ngx-dropzone": "^3.1.0",
"picsur-shared": "*",
"reflect-metadata": "^0.1.13",
"rxjs": "~7.5.5",
"tslib": "^2.3.1",
"zod": "^3.14.3",
"zod": "^3.14.4",
"zone.js": "~0.11.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "14.0.0-next.7",
"@angular/cli": "^14.0.0-next.7",
"@angular/compiler-cli": "^14.0.0-next.10",
"@angular-devkit/build-angular": "14.0.0-next.9",
"@angular/cli": "^14.0.0-next.9",
"@angular/compiler-cli": "^14.0.0-next.13",
"@fontsource/material-icons": "^4.5.4",
"@fontsource/material-icons-outlined": "^4.5.4",
"@fontsource/roboto": "^4.5.5",
"@types/jasmine": "~4.0.1",
"@types/node": "^17.0.23",
"@types/node": "^17.0.24",
"@types/validator": "^13.7.2",
"jasmine-core": "~4.0.1",
"karma": "~6.3.17",
"karma-chrome-launcher": "~3.1.1",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~4.0.2",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "4.6.3"
}
}

View File

@@ -29,8 +29,8 @@ export class LoginControl {
public getRawData(): UserPassModel {
return {
username: this.username.value,
password: this.password.value,
username: this.username.value ?? '',
password: this.password.value ?? '',
};
}

View File

@@ -42,8 +42,8 @@ export class RegisterControl {
public getRawData(): UserPassModel {
return {
username: this.username.value,
password: this.password.value,
username: this.username.value ?? '',
password: this.password.value ?? '',
};
}

View File

@@ -5,7 +5,7 @@ import { CreateUsernameError } from '../validators/user.validator';
export class UpdateRoleControl {
public rolename = new FormControl('', RoleNameValidators);
public permissions = new FormControl([]);
public permissions = new FormControl<string[]>([]);
public get rolenameValue() {
return this.rolename.value;
@@ -31,8 +31,8 @@ export class UpdateRoleControl {
public getData(): RoleModel {
return {
name: this.rolenameValue,
permissions: this.selectedPermissions,
name: this.rolenameValue ?? '',
permissions: this.selectedPermissions ?? [],
};
}
}

View File

@@ -11,7 +11,7 @@ export class UpdateUserControl {
private id: string = '';
public username = new FormControl('', UsernameValidators);
public password = new FormControl('', PasswordValidators);
public roles = new FormControl([]);
public roles = new FormControl<string[]>([]);
public get usernameValue() {
return this.username.value;
@@ -26,7 +26,7 @@ export class UpdateUserControl {
}
public get selectedRoles(): string[] {
return this.roles.value;
return this.roles.value ?? [];
}
// Data interaction
@@ -45,8 +45,8 @@ export class UpdateUserControl {
public getDataCreate(): UserCreateRequest {
return {
username: this.username.value,
password: this.password.value,
username: this.username.value ?? '',
password: this.password.value ?? '',
roles: this.selectedRoles,
};
}

View File

@@ -9,11 +9,11 @@
"type": "module",
"main": "./dist/index.js",
"dependencies": {
"tsc-watch": "^4.6.2",
"zod": "^3.14.3"
"tsc-watch": "^5.0.3",
"zod": "^3.14.4"
},
"devDependencies": {
"@types/node": "^17.0.23",
"@types/node": "^17.0.24",
"typescript": "4.6.3"
},
"scripts": {

1785
yarn.lock

File diff suppressed because it is too large Load Diff