From aa7ece41a953d21a4faba1a21819132cb421634d Mon Sep 17 00:00:00 2001 From: andres Date: Sun, 16 Jul 2023 19:44:58 +0200 Subject: [PATCH] add auth docs, add eslint import/order --- .eslintrc.js | 30 +- nest-cli.json | 11 +- package.json | 4 +- src/app.module.ts | 20 +- src/exception.filter.ts | 2 + .../common/helpers/set-count-key.ts | 1 + .../common/pagination/pagination.dto.ts | 2 +- .../common/pagination/pagination.service.ts | 3 + .../decorators/cookie.decorator.ts | 1 + .../file-upload.service.ts | 3 +- src/main.ts | 16 +- src/modules/auth/auth.controller.ts | 71 +- src/modules/auth/auth.module.ts | 12 +- src/modules/auth/auth.service.ts | 13 +- .../auth/dto/email-verification.dto.ts | 6 + src/modules/auth/dto/index.ts | 6 + src/modules/auth/dto/login.dto.ts | 9 + src/modules/auth/dto/recover-password.dto.ts | 6 + src/modules/auth/dto/registration.dto.ts | 6 +- .../auth/dto/resend-verification-email.dto.ts | 6 + src/modules/auth/dto/update-auth.dto.ts | 1 + src/modules/auth/entities/auth.entity.ts | 19 +- src/modules/auth/guards/base-auth.guard.ts | 2 + src/modules/auth/guards/jwt-auth.guard.ts | 1 + .../auth/infrastructure/auth.repository.ts | 1 + .../auth/strategies/access-token.strategy.ts | 1 + .../auth/strategies/jwt-refresh.strategy.ts | 9 +- src/modules/auth/strategies/jwt.strategy.ts | 8 +- src/modules/auth/strategies/local.strategy.ts | 3 + .../auth/tests/integration/auth.e2e.spec.ts | 5 +- .../auth/use-cases/create-user-use-case.ts | 10 +- .../get-current-user-data-use-case.ts | 7 +- src/modules/auth/use-cases/logout-use-case.ts | 12 +- .../auth/use-cases/refresh-token-use-case.ts | 7 +- .../resend-verification-email-use-case.ts | 4 +- .../auth/use-cases/reset-password-use-case.ts | 3 +- .../send-password-recovery-email-use-case.ts | 5 +- .../auth/use-cases/verify-email-use-case.ts | 7 +- src/modules/cards/cards.controller.ts | 10 +- src/modules/cards/cards.module.ts | 10 +- src/modules/cards/dto/get-all-cards.dto.ts | 1 + src/modules/cards/dto/update-card.dto.ts | 1 + .../cards/infrastructure/cards.repository.ts | 14 +- .../use-cases/delete-card-by-id-use-case.ts | 7 +- .../use-cases/get-deck-by-id-use-case.ts | 1 + .../cards/use-cases/update-card-use-case.ts | 11 +- .../core/validation/validation.utils.ts | 11 +- src/modules/decks/decks.controller.ts | 17 +- src/modules/decks/decks.module.ts | 14 +- src/modules/decks/dto/create-deck.dto.ts | 2 +- src/modules/decks/dto/get-all-decks.dto.ts | 3 +- src/modules/decks/dto/update-deck.dto.ts | 6 +- .../decks/infrastructure/decks.repository.ts | 6 +- .../decks/infrastructure/grades.repository.ts | 1 + .../decks/use-cases/create-card-use-case.ts | 6 +- .../decks/use-cases/create-deck-use-case.ts | 4 +- .../use-cases/delete-deck-by-id-use-case.ts | 7 +- .../get-all-cards-in-deck-use-case.ts | 8 +- .../decks/use-cases/get-all-decks-use-case.ts | 3 +- .../use-cases/get-deck-by-id-use-case.ts | 1 + .../get-random-card-in-deck-use-case.ts | 10 +- .../decks/use-cases/save-grade-use-case.ts | 6 +- .../decks/use-cases/update-deck-use-case.ts | 10 +- src/modules/users/api/users.controller.ts | 11 +- src/modules/users/dto/update-user.dto.ts | 1 + .../users/infrastructure/users.repository.ts | 35 +- src/modules/users/services/users.service.ts | 6 +- src/modules/users/users.module.ts | 5 +- src/prisma.module.ts | 1 + src/settings/app-settings.ts | 1 + src/settings/config.module.ts | 1 + src/settings/pipes-setup.ts | 2 + test/app.e2e-spec.ts | 3 +- yarn.lock | 747 +++++++++++++++++- 74 files changed, 1152 insertions(+), 164 deletions(-) create mode 100644 src/modules/auth/dto/email-verification.dto.ts create mode 100644 src/modules/auth/dto/index.ts create mode 100644 src/modules/auth/dto/login.dto.ts create mode 100644 src/modules/auth/dto/recover-password.dto.ts create mode 100644 src/modules/auth/dto/resend-verification-email.dto.ts diff --git a/.eslintrc.js b/.eslintrc.js index 259de13..cc47e1c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,6 +9,7 @@ module.exports = { extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', + 'plugin:import/recommended', ], root: true, env: { @@ -21,5 +22,32 @@ module.exports = { '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'off', + 'import/order': [ + 'error', + { + 'newlines-between': 'always', + alphabetize: { + order: 'asc', + caseInsensitive: true, + }, + groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'], + }, + ], + 'padding-line-between-statements': [ + 'error', + { blankLine: 'always', prev: '*', next: 'return' }, + { blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' }, + { + blankLine: 'any', + prev: ['const', 'let', 'var'], + next: ['const', 'let', 'var'], + }, + ], }, -}; + settings: { + 'import/resolver': { + typescript: true, + node: true, + }, + }, +} diff --git a/nest-cli.json b/nest-cli.json index f9aa683..f5e9316 100644 --- a/nest-cli.json +++ b/nest-cli.json @@ -3,6 +3,15 @@ "collection": "@nestjs/schematics", "sourceRoot": "src", "compilerOptions": { - "deleteOutDir": true + "deleteOutDir": true, + "plugins": [ + { + "name": "@nestjs/swagger", + "options": { + "classValidatorShim": true, + "introspectComments": true + } + } + ] } } diff --git a/package.json b/package.json index 3e33d7b..9be06df 100644 --- a/package.json +++ b/package.json @@ -68,9 +68,11 @@ "@types/node": "18.16.12", "@types/supertest": "^2.0.12", "@typescript-eslint/eslint-plugin": "^5.59.6", - "@typescript-eslint/parser": "^5.59.6", + "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.41.0", "eslint-config-prettier": "^8.8.0", + "eslint-import-resolver-typescript": "^3.5.5", + "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^4.2.1", "jest": "29.5.0", "prettier": "^2.8.8", diff --git a/src/app.module.ts b/src/app.module.ts index 40c98dc..8d51815 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -1,16 +1,18 @@ +import * as process from 'process' + import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common' -import { JwtStrategy } from './modules/auth/strategies/jwt.strategy' -import { ConfigModule } from './settings/config.module' +import { CqrsModule } from '@nestjs/cqrs' +import { MailerModule } from '@nestjs-modules/mailer' + +import { FileUploadService } from './infrastructure/file-upload-service/file-upload.service' import { AuthModule } from './modules/auth/auth.module' +import { JwtRefreshStrategy } from './modules/auth/strategies/jwt-refresh.strategy' +import { JwtStrategy } from './modules/auth/strategies/jwt.strategy' +import { CardsModule } from './modules/cards/cards.module' +import { DecksModule } from './modules/decks/decks.module' import { UsersModule } from './modules/users/users.module' import { PrismaModule } from './prisma.module' -import { MailerModule } from '@nestjs-modules/mailer' -import * as process from 'process' -import { JwtRefreshStrategy } from './modules/auth/strategies/jwt-refresh.strategy' -import { CqrsModule } from '@nestjs/cqrs' -import { DecksModule } from './modules/decks/decks.module' -import { CardsModule } from './modules/cards/cards.module' -import { FileUploadService } from './infrastructure/file-upload-service/file-upload.service' +import { ConfigModule } from './settings/config.module' @Module({ imports: [ diff --git a/src/exception.filter.ts b/src/exception.filter.ts index b7889b1..41225a3 100644 --- a/src/exception.filter.ts +++ b/src/exception.filter.ts @@ -8,11 +8,13 @@ export class HttpExceptionFilter implements ExceptionFilter { const response = ctx.getResponse() const request = ctx.getRequest() const status = exception.getStatus() + if (status === 400) { const errorsResponse = { errorMessages: [], } const responseBody: any = exception.getResponse() + if (typeof responseBody.message === 'object') { responseBody.message.forEach(e => errorsResponse.errorMessages.push(e)) } else { diff --git a/src/infrastructure/common/helpers/set-count-key.ts b/src/infrastructure/common/helpers/set-count-key.ts index 8078dff..b270b2b 100644 --- a/src/infrastructure/common/helpers/set-count-key.ts +++ b/src/infrastructure/common/helpers/set-count-key.ts @@ -3,6 +3,7 @@ import { omit } from 'remeda' export const setCountKey = (key: K, newKey: L) => { return >(obj: T) => { obj[newKey] = obj['_count'][key] + return omit(obj, ['_count']) as Omit & { [P in L]: number } } } diff --git a/src/infrastructure/common/pagination/pagination.dto.ts b/src/infrastructure/common/pagination/pagination.dto.ts index 8fa575b..5662d37 100644 --- a/src/infrastructure/common/pagination/pagination.dto.ts +++ b/src/infrastructure/common/pagination/pagination.dto.ts @@ -1,5 +1,5 @@ -import { IsNumber, IsOptional } from 'class-validator' import { Type } from 'class-transformer' +import { IsNumber, IsOptional } from 'class-validator' export class PaginationDto { @IsOptional() diff --git a/src/infrastructure/common/pagination/pagination.service.ts b/src/infrastructure/common/pagination/pagination.service.ts index a7bd5ef..65a61dd 100644 --- a/src/infrastructure/common/pagination/pagination.service.ts +++ b/src/infrastructure/common/pagination/pagination.service.ts @@ -1,4 +1,5 @@ import { isObject } from 'remeda' + import { DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE } from './pagination.constants' export class Pagination { @@ -17,6 +18,7 @@ export class Pagination { !isNaN(Number(query.itemsPerPage)) ? +query.itemsPerPage : DEFAULT_PAGE_SIZE + return { currentPage, itemsPerPage, ...query } } @@ -31,6 +33,7 @@ export class Pagination { } ) { const totalPages = Math.ceil(count / itemsPerPage) + return { pagination: { totalPages, diff --git a/src/infrastructure/decorators/cookie.decorator.ts b/src/infrastructure/decorators/cookie.decorator.ts index 49afced..f10aca2 100644 --- a/src/infrastructure/decorators/cookie.decorator.ts +++ b/src/infrastructure/decorators/cookie.decorator.ts @@ -2,5 +2,6 @@ import { createParamDecorator, ExecutionContext } from '@nestjs/common' export const Cookies = createParamDecorator((data: string, ctx: ExecutionContext) => { const request = ctx.switchToHttp().getRequest() + return data ? request.cookies?.[data] : request.cookies }) diff --git a/src/infrastructure/file-upload-service/file-upload.service.ts b/src/infrastructure/file-upload-service/file-upload.service.ts index 9fd086c..c30616e 100644 --- a/src/infrastructure/file-upload-service/file-upload.service.ts +++ b/src/infrastructure/file-upload-service/file-upload.service.ts @@ -1,7 +1,8 @@ +import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3' import { Injectable } from '@nestjs/common' import { v4 as uuid } from 'uuid' + import { PrismaService } from '../../prisma.service' -import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3' @Injectable() export class FileUploadService { diff --git a/src/main.ts b/src/main.ts index 05f54cc..cc6fca2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,13 +1,15 @@ -import { NestFactory } from '@nestjs/core' -import { AppModule } from './app.module' import { Logger } from '@nestjs/common' -import { HttpExceptionFilter } from './exception.filter' -import * as cookieParser from 'cookie-parser' +import { NestFactory } from '@nestjs/core' import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger' +import * as cookieParser from 'cookie-parser' + +import { AppModule } from './app.module' +import { HttpExceptionFilter } from './exception.filter' import { pipesSetup } from './settings/pipes-setup' async function bootstrap() { const app = await NestFactory.create(AppModule) + app.enableCors({ origin: true, credentials: true, @@ -19,13 +21,19 @@ async function bootstrap() { .setTitle('Flashcards') .setDescription('The config API description') .setVersion('1.0') + .addTag('Auth') + .addTag('Decks') + .addTag('Cards') + .addTag('Admin') .build() const document = SwaggerModule.createDocument(app, config) + SwaggerModule.setup('docs', app, document) pipesSetup(app) app.useGlobalFilters(new HttpExceptionFilter()) await app.listen(process.env.PORT || 3000) const logger = new Logger('NestApplication') + logger.log(`Application is running on: ${await app.getUrl()}`) } diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 6cdce80..0a0394c 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -12,11 +12,21 @@ import { UnauthorizedException, UseGuards, } from '@nestjs/common' -import { RegistrationDto } from './dto/registration.dto' -import { LocalAuthGuard, JwtAuthGuard, JwtRefreshGuard } from './guards' -import { Response as ExpressResponse } from 'express' -import { Cookies } from '../../infrastructure/decorators' import { CommandBus } from '@nestjs/cqrs' +import { ApiBody, ApiTags } from '@nestjs/swagger' +import { Response as ExpressResponse } from 'express' + +import { Cookies } from '../../infrastructure/decorators' + +import { + EmailVerificationDto, + LoginDto, + RecoverPasswordDto, + RegistrationDto, + ResendVerificationEmailDto, +} from './dto' +import { LoginResponse, UserEntity } from './entities/auth.entity' +import { JwtAuthGuard, JwtRefreshGuard, LocalAuthGuard } from './guards' import { CreateUserCommand, GetCurrentUserDataCommand, @@ -28,22 +38,29 @@ import { VerifyEmailCommand, } from './use-cases' +@ApiTags('Auth') @Controller('auth') export class AuthController { constructor(private commandBus: CommandBus) {} @UseGuards(JwtAuthGuard) @Get('me') - async getUserData(@Request() req) { + async getUserData(@Request() req): Promise { const userId = req.user.id + return await this.commandBus.execute(new GetCurrentUserDataCommand(userId)) } - @HttpCode(200) + @HttpCode(HttpStatus.OK) + @ApiBody({ type: LoginDto }) @UseGuards(LocalAuthGuard) @Post('login') - async login(@Request() req, @Res({ passthrough: true }) res: ExpressResponse) { + async login( + @Request() req, + @Res({ passthrough: true }) res: ExpressResponse + ): Promise { const userData = req.user.data + res.cookie('refreshToken', userData.refreshToken, { httpOnly: true, sameSite: 'none', @@ -55,63 +72,77 @@ export class AuthController { sameSite: 'none', secure: true, }) + return { accessToken: req.user.data.accessToken } } - @HttpCode(201) + @HttpCode(HttpStatus.CREATED) @Post('sign-up') - async registration(@Body() registrationData: RegistrationDto) { + async registration(@Body() registrationData: RegistrationDto): Promise { return await this.commandBus.execute(new CreateUserCommand(registrationData)) } - @HttpCode(HttpStatus.OK) + @HttpCode(HttpStatus.NO_CONTENT) @Post('verify-email') - async confirmRegistration(@Body('code') confirmationCode) { - return await this.commandBus.execute(new VerifyEmailCommand(confirmationCode)) + async confirmRegistration(@Body() body: EmailVerificationDto): Promise { + return await this.commandBus.execute(new VerifyEmailCommand(body.code)) } + @HttpCode(HttpStatus.NO_CONTENT) @Post('resend-verification-email') - async resendVerificationEmail(@Body('userId') userId: string) { - return await this.commandBus.execute(new ResendVerificationEmailCommand(userId)) + async resendVerificationEmail(@Body() body: ResendVerificationEmailDto): Promise { + return await this.commandBus.execute(new ResendVerificationEmailCommand(body.userId)) } + @HttpCode(HttpStatus.NO_CONTENT) @UseGuards(JwtAuthGuard) @Post('logout') async logout( @Cookies('refreshToken') refreshToken: string, @Res({ passthrough: true }) res: ExpressResponse - ) { + ): Promise { if (!refreshToken) throw new UnauthorizedException() await this.commandBus.execute(new LogoutCommand(refreshToken)) res.clearCookie('refreshToken') + return null } @HttpCode(HttpStatus.OK) @UseGuards(JwtRefreshGuard) - @Get('refresh-token') - async refreshToken(@Request() req, @Response({ passthrough: true }) res: ExpressResponse) { + @Post('refresh-token') + async refreshToken( + @Request() req, + @Response({ passthrough: true }) res: ExpressResponse + ): Promise { if (!req.cookies?.refreshToken) throw new UnauthorizedException() const userId = req.user.id const newTokens = await this.commandBus.execute(new RefreshTokenCommand(userId)) + res.cookie('refreshToken', newTokens.refreshToken, { httpOnly: true, // secure: true, path: '/v1/auth/refresh-token', expires: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000), }) + return { accessToken: newTokens.accessToken, } } + @HttpCode(HttpStatus.NO_CONTENT) @Post('recover-password') - async recoverPassword(@Body('email') email: string) { - return await this.commandBus.execute(new SendPasswordRecoveryEmailCommand(email)) + async recoverPassword(@Body() body: RecoverPasswordDto): Promise { + return await this.commandBus.execute(new SendPasswordRecoveryEmailCommand(body.email)) } + @HttpCode(HttpStatus.NO_CONTENT) @Post('reset-password/:token') - async resetPassword(@Body('password') password: string, @Param('token') token: string) { + async resetPassword( + @Body('password') password: string, + @Param('token') token: string + ): Promise { return await this.commandBus.execute(new ResetPasswordCommand(token, password)) } } diff --git a/src/modules/auth/auth.module.ts b/src/modules/auth/auth.module.ts index b62ec5d..0a13ace 100644 --- a/src/modules/auth/auth.module.ts +++ b/src/modules/auth/auth.module.ts @@ -1,9 +1,12 @@ import { Module } from '@nestjs/common' -import { AuthService } from './auth.service' -import { AuthController } from './auth.controller' -import { UsersModule } from '../users/users.module' -import { LocalStrategy } from './strategies/local.strategy' import { CqrsModule } from '@nestjs/cqrs' + +import { UsersModule } from '../users/users.module' + +import { AuthController } from './auth.controller' +import { AuthService } from './auth.service' +import { AuthRepository } from './infrastructure/auth.repository' +import { LocalStrategy } from './strategies/local.strategy' import { CreateUserHandler, GetCurrentUserDataHandler, @@ -14,7 +17,6 @@ import { SendPasswordRecoveryEmailHandler, VerifyEmailHandler, } from './use-cases' -import { AuthRepository } from './infrastructure/auth.repository' const commandHandlers = [ CreateUserHandler, diff --git a/src/modules/auth/auth.service.ts b/src/modules/auth/auth.service.ts index 66459e9..328b21c 100644 --- a/src/modules/auth/auth.service.ts +++ b/src/modules/auth/auth.service.ts @@ -1,10 +1,12 @@ +import * as process from 'process' + import { Injectable } from '@nestjs/common' +import * as bcrypt from 'bcrypt' import { addDays } from 'date-fns' import * as jwt from 'jsonwebtoken' -import * as bcrypt from 'bcrypt' -import { UsersRepository } from '../users/infrastructure/users.repository' -import * as process from 'process' + import { PrismaService } from '../../prisma.service' +import { UsersRepository } from '../users/infrastructure/users.repository' @Injectable() export class AuthService { @@ -21,6 +23,7 @@ export class AuthService { const refreshToken = jwt.sign(payload, refreshSecretKey, { expiresIn: '30d', }) + await this.prisma.refreshToken.create({ data: { userId: userId, @@ -29,6 +32,7 @@ export class AuthService { isRevoked: false, }, }) + return { accessToken, refreshToken, @@ -37,6 +41,7 @@ export class AuthService { async checkCredentials(email: string, password: string) { const user = await this.usersRepository.findUserByEmail(email) + if (!user /*|| !user.emailConfirmation.isConfirmed*/) return { resultCode: 1, @@ -46,6 +51,7 @@ export class AuthService { }, } const isPasswordValid = await this.isPasswordCorrect(password, user.password) + if (!isPasswordValid) { return { resultCode: 1, @@ -58,6 +64,7 @@ export class AuthService { } } const tokensPair = await this.createJwtTokensPair(user.id) + return { resultCode: 0, data: tokensPair, diff --git a/src/modules/auth/dto/email-verification.dto.ts b/src/modules/auth/dto/email-verification.dto.ts new file mode 100644 index 0000000..00b5b5e --- /dev/null +++ b/src/modules/auth/dto/email-verification.dto.ts @@ -0,0 +1,6 @@ +import { IsUUID } from 'class-validator' + +export class EmailVerificationDto { + @IsUUID('4') + code: string +} diff --git a/src/modules/auth/dto/index.ts b/src/modules/auth/dto/index.ts new file mode 100644 index 0000000..ba59596 --- /dev/null +++ b/src/modules/auth/dto/index.ts @@ -0,0 +1,6 @@ +export * from './email-verification.dto' +export * from './login.dto' +export * from './recover-password.dto' +export * from './registration.dto' +export * from './resend-verification-email.dto' +export * from './update-auth.dto' diff --git a/src/modules/auth/dto/login.dto.ts b/src/modules/auth/dto/login.dto.ts new file mode 100644 index 0000000..8c4f12e --- /dev/null +++ b/src/modules/auth/dto/login.dto.ts @@ -0,0 +1,9 @@ +import { IsEmail, Length } from 'class-validator' + +export class LoginDto { + @Length(3, 30) + password: string + + @IsEmail() + email: string +} diff --git a/src/modules/auth/dto/recover-password.dto.ts b/src/modules/auth/dto/recover-password.dto.ts new file mode 100644 index 0000000..70c7bae --- /dev/null +++ b/src/modules/auth/dto/recover-password.dto.ts @@ -0,0 +1,6 @@ +import { IsEmail } from 'class-validator' + +export class RecoverPasswordDto { + @IsEmail() + email: string +} diff --git a/src/modules/auth/dto/registration.dto.ts b/src/modules/auth/dto/registration.dto.ts index 26a065b..92530ac 100644 --- a/src/modules/auth/dto/registration.dto.ts +++ b/src/modules/auth/dto/registration.dto.ts @@ -1,11 +1,13 @@ -import { IsEmail, Length, IsOptional } from 'class-validator' +import { IsEmail, IsOptional, Length } from 'class-validator' export class RegistrationDto { @Length(3, 30) @IsOptional() - name: string + name?: string + @Length(3, 30) password: string + @IsEmail() email: string } diff --git a/src/modules/auth/dto/resend-verification-email.dto.ts b/src/modules/auth/dto/resend-verification-email.dto.ts new file mode 100644 index 0000000..f932318 --- /dev/null +++ b/src/modules/auth/dto/resend-verification-email.dto.ts @@ -0,0 +1,6 @@ +import { IsUUID } from 'class-validator' + +export class ResendVerificationEmailDto { + @IsUUID() + userId: string +} diff --git a/src/modules/auth/dto/update-auth.dto.ts b/src/modules/auth/dto/update-auth.dto.ts index 85a321f..709d52b 100644 --- a/src/modules/auth/dto/update-auth.dto.ts +++ b/src/modules/auth/dto/update-auth.dto.ts @@ -1,4 +1,5 @@ import { PartialType } from '@nestjs/mapped-types' + import { RegistrationDto } from './registration.dto' export class UpdateAuthDto extends PartialType(RegistrationDto) {} diff --git a/src/modules/auth/entities/auth.entity.ts b/src/modules/auth/entities/auth.entity.ts index 15f15a8..b102139 100644 --- a/src/modules/auth/entities/auth.entity.ts +++ b/src/modules/auth/entities/auth.entity.ts @@ -1 +1,18 @@ -export class Auth {} +import { OmitType } from '@nestjs/swagger' + +export class User { + id: string + email: string + password: string + isEmailVerified: boolean + name: string + avatar: string + created: string + updated: string +} + +export class LoginResponse { + accessToken: string +} + +export class UserEntity extends OmitType(User, ['password']) {} diff --git a/src/modules/auth/guards/base-auth.guard.ts b/src/modules/auth/guards/base-auth.guard.ts index 25dcad4..219318e 100644 --- a/src/modules/auth/guards/base-auth.guard.ts +++ b/src/modules/auth/guards/base-auth.guard.ts @@ -6,6 +6,7 @@ export class BaseAuthGuard implements CanActivate { canActivate(context: ExecutionContext): boolean | Promise | Observable { const request = context.switchToHttp().getRequest() const exceptedAuthInput = 'Basic YWRtaW46cXdlcnR5' + if (!request.headers || !request.headers.authorization) { throw new UnauthorizedException([{ message: 'No any auth headers' }]) } else { @@ -17,6 +18,7 @@ export class BaseAuthGuard implements CanActivate { ]) } } + return true } } diff --git a/src/modules/auth/guards/jwt-auth.guard.ts b/src/modules/auth/guards/jwt-auth.guard.ts index 9342df4..5d60f47 100644 --- a/src/modules/auth/guards/jwt-auth.guard.ts +++ b/src/modules/auth/guards/jwt-auth.guard.ts @@ -14,6 +14,7 @@ export class JwtAuthGuard extends AuthGuard('jwt') { const req = context.switchToHttp().getRequest() const res: boolean = await (super.canActivate(context) as Promise) + if (!res) return false // check DTO diff --git a/src/modules/auth/infrastructure/auth.repository.ts b/src/modules/auth/infrastructure/auth.repository.ts index f104c26..6e30549 100644 --- a/src/modules/auth/infrastructure/auth.repository.ts +++ b/src/modules/auth/infrastructure/auth.repository.ts @@ -1,4 +1,5 @@ import { Injectable } from '@nestjs/common' + import { PrismaService } from '../../../prisma.service' @Injectable() diff --git a/src/modules/auth/strategies/access-token.strategy.ts b/src/modules/auth/strategies/access-token.strategy.ts index f3ec82c..37298ab 100644 --- a/src/modules/auth/strategies/access-token.strategy.ts +++ b/src/modules/auth/strategies/access-token.strategy.ts @@ -1,6 +1,7 @@ import { Inject, Injectable } from '@nestjs/common' import { PassportStrategy } from '@nestjs/passport' import { ExtractJwt, Strategy } from 'passport-jwt' + import { AppSettings } from '../../../settings/app-settings' type JwtPayload = { diff --git a/src/modules/auth/strategies/jwt-refresh.strategy.ts b/src/modules/auth/strategies/jwt-refresh.strategy.ts index e1a9ed3..a1371f5 100644 --- a/src/modules/auth/strategies/jwt-refresh.strategy.ts +++ b/src/modules/auth/strategies/jwt-refresh.strategy.ts @@ -1,15 +1,18 @@ import { Inject, Injectable } from '@nestjs/common' import { PassportStrategy } from '@nestjs/passport' -import { Strategy } from 'passport-jwt' -import { UsersService } from '../../users/services/users.service' -import { AppSettings } from '../../../settings/app-settings' import { Request } from 'express' +import { Strategy } from 'passport-jwt' + +import { AppSettings } from '../../../settings/app-settings' +import { UsersService } from '../../users/services/users.service' const cookieExtractor = function (req: Request) { let token = null + if (req && req.cookies) { token = req.cookies['refreshToken'] } + return token } diff --git a/src/modules/auth/strategies/jwt.strategy.ts b/src/modules/auth/strategies/jwt.strategy.ts index 3c7edfa..b2cb93b 100644 --- a/src/modules/auth/strategies/jwt.strategy.ts +++ b/src/modules/auth/strategies/jwt.strategy.ts @@ -1,10 +1,11 @@ import { Inject, Injectable, UnauthorizedException } from '@nestjs/common' import { PassportStrategy } from '@nestjs/passport' +import { Request as RequestType } from 'express' import { ExtractJwt, Strategy } from 'passport-jwt' -import { AuthService } from '../auth.service' + import { AppSettings } from '../../../settings/app-settings' import { UsersService } from '../../users/services/users.service' -import { Request as RequestType } from 'express' +import { AuthService } from '../auth.service' @Injectable() export class JwtStrategy extends PassportStrategy(Strategy) { @@ -25,9 +26,11 @@ export class JwtStrategy extends PassportStrategy(Strategy) { async validate(payload: any) { const user = await this.userService.getUserById(payload.userId) + if (!user) { throw new UnauthorizedException() } + return user } @@ -35,6 +38,7 @@ export class JwtStrategy extends PassportStrategy(Strategy) { if (req.cookies && 'accessToken' in req.cookies && req.cookies.accessToken.length > 0) { return req.cookies.accessToken } + return null } } diff --git a/src/modules/auth/strategies/local.strategy.ts b/src/modules/auth/strategies/local.strategy.ts index f249581..4dc2acd 100644 --- a/src/modules/auth/strategies/local.strategy.ts +++ b/src/modules/auth/strategies/local.strategy.ts @@ -1,6 +1,7 @@ import { Injectable, UnauthorizedException } from '@nestjs/common' import { PassportStrategy } from '@nestjs/passport' import { Strategy } from 'passport-local' + import { AuthService } from '../auth.service' @Injectable() @@ -13,9 +14,11 @@ export class LocalStrategy extends PassportStrategy(Strategy) { async validate(email: string, password: string): Promise { const newCredentials = await this.authService.checkCredentials(email, password) + if (newCredentials.resultCode === 1) { throw new UnauthorizedException('Invalid credentials') } + return newCredentials } } diff --git a/src/modules/auth/tests/integration/auth.e2e.spec.ts b/src/modules/auth/tests/integration/auth.e2e.spec.ts index 5fc7eb0..9da728b 100644 --- a/src/modules/auth/tests/integration/auth.e2e.spec.ts +++ b/src/modules/auth/tests/integration/auth.e2e.spec.ts @@ -1,8 +1,9 @@ +import { HttpStatus } from '@nestjs/common' import { Test, TestingModule } from '@nestjs/testing' import * as request from 'supertest' -import { HttpStatus } from '@nestjs/common' + import { AppModule } from '../../../../app.module' -import { RegistrationDto } from '../../dto/registration.dto' +import { RegistrationDto } from '../../dto' describe('AuthController (e2e)', () => { let app diff --git a/src/modules/auth/use-cases/create-user-use-case.ts b/src/modules/auth/use-cases/create-user-use-case.ts index 1882f14..a2a0d37 100644 --- a/src/modules/auth/use-cases/create-user-use-case.ts +++ b/src/modules/auth/use-cases/create-user-use-case.ts @@ -1,12 +1,14 @@ import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' -import { UsersRepository } from '../../users/infrastructure/users.repository' -import { CreateUserInput, UserViewType } from '../../../types/types' import { addHours } from 'date-fns' import { v4 as uuidv4 } from 'uuid' + +import { CreateUserInput, UserViewType } from '../../../types/types' +import { UsersRepository } from '../../users/infrastructure/users.repository' import { UsersService } from '../../users/services/users.service' +import { RegistrationDto } from '../dto' export class CreateUserCommand { - constructor(public readonly user: { name: string; password: string; email: string }) {} + constructor(public readonly user: RegistrationDto) {} } @CommandHandler(CreateUserCommand) @@ -29,6 +31,7 @@ export class CreateUserHandler implements ICommandHandler { isEmailVerified: false, } const createdUser = await this.usersRepository.createUser(newUser) + if (!createdUser) { return null } @@ -37,6 +40,7 @@ export class CreateUserHandler implements ICommandHandler { name: createdUser.name, verificationToken: verificationToken, }) + return { id: createdUser.id, name: createdUser.name, diff --git a/src/modules/auth/use-cases/get-current-user-data-use-case.ts b/src/modules/auth/use-cases/get-current-user-data-use-case.ts index edb5475..83d786c 100644 --- a/src/modules/auth/use-cases/get-current-user-data-use-case.ts +++ b/src/modules/auth/use-cases/get-current-user-data-use-case.ts @@ -1,7 +1,8 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' -import { UserViewType } from '../../../types/types' import { UnauthorizedException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' import { pick } from 'remeda' + +import { UserViewType } from '../../../types/types' import { UsersRepository } from '../../users/infrastructure/users.repository' export class GetCurrentUserDataCommand { @@ -17,6 +18,6 @@ export class GetCurrentUserDataHandler implements ICommandHandler { const token = command.refreshToken const secretKey = process.env.JWT_SECRET_KEY + if (!secretKey) throw new Error('JWT_SECRET_KEY is not defined') try { const decoded: any = jwt.verify(token, secretKey) - return this.usersRepository.revokeToken(decoded.userId, token) + + await this.usersRepository.revokeToken(decoded.userId, token) + + return null } catch (e) { this.logger.log(`Decoding error: ${e}`) + return null } } diff --git a/src/modules/auth/use-cases/refresh-token-use-case.ts b/src/modules/auth/use-cases/refresh-token-use-case.ts index 640944f..a1f6eb7 100644 --- a/src/modules/auth/use-cases/refresh-token-use-case.ts +++ b/src/modules/auth/use-cases/refresh-token-use-case.ts @@ -1,7 +1,8 @@ import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' -import { AuthRepository } from '../infrastructure/auth.repository' -import * as jwt from 'jsonwebtoken' import { addDays } from 'date-fns' +import * as jwt from 'jsonwebtoken' + +import { AuthRepository } from '../infrastructure/auth.repository' export class RefreshTokenCommand { constructor(public readonly userId: string) {} @@ -26,7 +27,9 @@ export class RefreshTokenHandler implements ICommandHandler expiresIn: '30d', }) const expiresIn = addDays(new Date(), 30) + await this.authRepository.createRefreshToken(userId, refreshToken, expiresIn) + return { accessToken, refreshToken, diff --git a/src/modules/auth/use-cases/resend-verification-email-use-case.ts b/src/modules/auth/use-cases/resend-verification-email-use-case.ts index 4fcbea3..b00e5c2 100644 --- a/src/modules/auth/use-cases/resend-verification-email-use-case.ts +++ b/src/modules/auth/use-cases/resend-verification-email-use-case.ts @@ -1,5 +1,6 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' import { BadRequestException, NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + import { UsersRepository } from '../../users/infrastructure/users.repository' import { UsersService } from '../../users/services/users.service' @@ -28,6 +29,7 @@ export class ResendVerificationEmailHandler } const updatedUser = await this.usersRepository.updateVerificationToken(user.id) + await this.usersService.sendConfirmationEmail({ email: updatedUser.user.email, name: updatedUser.user.name, diff --git a/src/modules/auth/use-cases/reset-password-use-case.ts b/src/modules/auth/use-cases/reset-password-use-case.ts index c55ee70..7aa7797 100644 --- a/src/modules/auth/use-cases/reset-password-use-case.ts +++ b/src/modules/auth/use-cases/reset-password-use-case.ts @@ -1,5 +1,6 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' import { BadRequestException, NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + import { UsersRepository } from '../../users/infrastructure/users.repository' import { UsersService } from '../../users/services/users.service' diff --git a/src/modules/auth/use-cases/send-password-recovery-email-use-case.ts b/src/modules/auth/use-cases/send-password-recovery-email-use-case.ts index af91971..85a1f56 100644 --- a/src/modules/auth/use-cases/send-password-recovery-email-use-case.ts +++ b/src/modules/auth/use-cases/send-password-recovery-email-use-case.ts @@ -1,8 +1,9 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' import { NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' +import { v4 as uuidv4 } from 'uuid' + import { UsersRepository } from '../../users/infrastructure/users.repository' import { UsersService } from '../../users/services/users.service' -import { v4 as uuidv4 } from 'uuid' export class SendPasswordRecoveryEmailCommand { constructor(public readonly email: string) {} diff --git a/src/modules/auth/use-cases/verify-email-use-case.ts b/src/modules/auth/use-cases/verify-email-use-case.ts index 6500f57..fb1b992 100644 --- a/src/modules/auth/use-cases/verify-email-use-case.ts +++ b/src/modules/auth/use-cases/verify-email-use-case.ts @@ -1,6 +1,7 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' import { BadRequestException, NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' import { isBefore } from 'date-fns' + import { UsersRepository } from '../../users/infrastructure/users.repository' export class VerifyEmailCommand { @@ -15,6 +16,7 @@ export class VerifyEmailHandler implements ICommandHandler { const token = command.token const verificationWithUser = await this.usersRepository.findUserByVerificationToken(token) + if (!verificationWithUser) throw new NotFoundException('User not found') if (verificationWithUser.isEmailVerified) @@ -22,14 +24,17 @@ export class VerifyEmailHandler implements ICommandHandler { const dbToken = verificationWithUser.verificationToken const isTokenExpired = isBefore(verificationWithUser.verificationTokenExpiry, new Date()) + if (dbToken !== token || isTokenExpired) { return false } const result = await this.usersRepository.updateEmailVerification(verificationWithUser.userId) + if (!result) { throw new NotFoundException('User not found') } + return null } } diff --git a/src/modules/cards/cards.controller.ts b/src/modules/cards/cards.controller.ts index 67b35ab..4f4261c 100644 --- a/src/modules/cards/cards.controller.ts +++ b/src/modules/cards/cards.controller.ts @@ -10,13 +10,17 @@ import { UseGuards, UseInterceptors, } from '@nestjs/common' +import { CommandBus } from '@nestjs/cqrs' +import { FileFieldsInterceptor } from '@nestjs/platform-express' +import { ApiTags } from '@nestjs/swagger' + +import { JwtAuthGuard } from '../auth/guards' + import { CardsService } from './cards.service' import { UpdateCardDto } from './dto' -import { CommandBus } from '@nestjs/cqrs' import { DeleteCardByIdCommand, GetDeckByIdCommand, UpdateCardCommand } from './use-cases' -import { JwtAuthGuard } from '../auth/guards' -import { FileFieldsInterceptor } from '@nestjs/platform-express' +@ApiTags('Cards') @Controller('cards') export class CardsController { constructor(private readonly decksService: CardsService, private commandBus: CommandBus) {} diff --git a/src/modules/cards/cards.module.ts b/src/modules/cards/cards.module.ts index 0d2c0c5..f43fd74 100644 --- a/src/modules/cards/cards.module.ts +++ b/src/modules/cards/cards.module.ts @@ -1,11 +1,13 @@ import { Module } from '@nestjs/common' -import { CardsService } from './cards.service' -import { CardsController } from './cards.controller' import { CqrsModule } from '@nestjs/cqrs' -import { DeleteCardByIdHandler, GetDeckByIdHandler, UpdateCardHandler } from './use-cases' -import { CardsRepository } from './infrastructure/cards.repository' + import { FileUploadService } from '../../infrastructure/file-upload-service/file-upload.service' +import { CardsController } from './cards.controller' +import { CardsService } from './cards.service' +import { CardsRepository } from './infrastructure/cards.repository' +import { DeleteCardByIdHandler, GetDeckByIdHandler, UpdateCardHandler } from './use-cases' + const commandHandlers = [GetDeckByIdHandler, DeleteCardByIdHandler, UpdateCardHandler] @Module({ diff --git a/src/modules/cards/dto/get-all-cards.dto.ts b/src/modules/cards/dto/get-all-cards.dto.ts index c5dea4b..9f14a1a 100644 --- a/src/modules/cards/dto/get-all-cards.dto.ts +++ b/src/modules/cards/dto/get-all-cards.dto.ts @@ -1,4 +1,5 @@ import { Length } from 'class-validator' + import { PaginationDto } from '../../../infrastructure/common/pagination/pagination.dto' import { IsOptionalOrEmptyString, IsOrderBy } from '../../../infrastructure/decorators' diff --git a/src/modules/cards/dto/update-card.dto.ts b/src/modules/cards/dto/update-card.dto.ts index 33717aa..0348cbc 100644 --- a/src/modules/cards/dto/update-card.dto.ts +++ b/src/modules/cards/dto/update-card.dto.ts @@ -1,4 +1,5 @@ import { PartialType } from '@nestjs/mapped-types' + import { CreateCardDto } from './create-card.dto' export class UpdateCardDto extends PartialType(CreateCardDto) {} diff --git a/src/modules/cards/infrastructure/cards.repository.ts b/src/modules/cards/infrastructure/cards.repository.ts index f03443e..baa6ab7 100644 --- a/src/modules/cards/infrastructure/cards.repository.ts +++ b/src/modules/cards/infrastructure/cards.repository.ts @@ -1,10 +1,9 @@ import { Injectable, InternalServerErrorException, Logger } from '@nestjs/common' -import { PrismaService } from '../../../prisma.service' -import { GetAllCardsInDeckDto } from '../dto/get-all-cards.dto' -import { CreateCardDto } from '../dto/create-card.dto' -import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' + import { createPrismaOrderBy } from '../../../infrastructure/common/helpers/get-order-by-object' -import { UpdateCardDto } from '../dto/update-card.dto' +import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' +import { PrismaService } from '../../../prisma.service' +import { CreateCardDto, GetAllCardsInDeckDto, UpdateCardDto } from '../dto' @Injectable() export class CardsRepository { @@ -31,6 +30,7 @@ export class CardsRepository { ...card, }, }) + await tx.deck.update({ where: { id: deckId, @@ -41,6 +41,7 @@ export class CardsRepository { }, }, }) + return created }) } catch (e) { @@ -80,6 +81,7 @@ export class CardsRepository { take: itemsPerPage, }), ]) + return Pagination.transformPaginationData(result, { currentPage, itemsPerPage }) } catch (e) { this.logger.error(e?.message) @@ -129,6 +131,7 @@ export class CardsRepository { id, }, }) + await tx.deck.update({ where: { id: deleted.deckId, @@ -139,6 +142,7 @@ export class CardsRepository { }, }, }) + return deleted }) } catch (e) { diff --git a/src/modules/cards/use-cases/delete-card-by-id-use-case.ts b/src/modules/cards/use-cases/delete-card-by-id-use-case.ts index 37e925d..7f6b8ab 100644 --- a/src/modules/cards/use-cases/delete-card-by-id-use-case.ts +++ b/src/modules/cards/use-cases/delete-card-by-id-use-case.ts @@ -1,6 +1,7 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' -import { CardsRepository } from '../infrastructure/cards.repository' import { BadRequestException, NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + +import { CardsRepository } from '../infrastructure/cards.repository' export class DeleteCardByIdCommand { constructor(public readonly id: string, public readonly userId: string) {} @@ -12,10 +13,12 @@ export class DeleteCardByIdHandler implements ICommandHandler { ) const result = await Promise.all([addQuestionImagePromise, addAnswerImagePromise]) + questionImg = result[0].fileUrl answerImg = result[1].fileUrl } else if (command.answerImg) { @@ -51,6 +53,7 @@ export class UpdateCardHandler implements ICommandHandler { command.answerImg?.originalname ) const result = await addAnswerImagePromise + answerImg = result.fileUrl } else if (command.questionImg) { const addQuestionImagePromise = this.fileUploadService.uploadFile( @@ -58,6 +61,7 @@ export class UpdateCardHandler implements ICommandHandler { command.questionImg?.originalname ) const result = await addQuestionImagePromise + questionImg = result.fileUrl } if (command.card.questionImg === '') { @@ -66,6 +70,7 @@ export class UpdateCardHandler implements ICommandHandler { if (command.card.answerImg === '') { answerImg = null } + return await this.cardsRepository.updateCardById(command.cardId, { ...command.card, answerImg, diff --git a/src/modules/core/validation/validation.utils.ts b/src/modules/core/validation/validation.utils.ts index 7779154..75ab4da 100644 --- a/src/modules/core/validation/validation.utils.ts +++ b/src/modules/core/validation/validation.utils.ts @@ -1,8 +1,10 @@ -import { DomainResultNotification, ResultNotification } from './notification' -import { validateOrReject } from 'class-validator' import { IEvent } from '@nestjs/cqrs' +import { validateOrReject } from 'class-validator' + import { validationErrorsMapper, ValidationPipeErrorType } from '../../../settings/pipes-setup' +import { DomainResultNotification, ResultNotification } from './notification' + export class DomainError extends Error { constructor(message: string, public resultNotification: ResultNotification) { super(message) @@ -31,11 +33,14 @@ export const validateEntity = async ( const resultNotification: DomainResultNotification = mapErrorsToNotification( validationErrorsMapper.mapValidationErrorArrayToValidationPipeErrorTypeArray(errors) ) + resultNotification.addData(entity) resultNotification.addEvents(...events) + return resultNotification } const domainResultNotification = new DomainResultNotification(entity) + domainResultNotification.addEvents(...events) return domainResultNotification @@ -43,8 +48,10 @@ export const validateEntity = async ( export function mapErrorsToNotification(errors: ValidationPipeErrorType[]) { const resultNotification = new DomainResultNotification() + errors.forEach((item: ValidationPipeErrorType) => resultNotification.addError(item.message, item.field, 1) ) + return resultNotification } diff --git a/src/modules/decks/decks.controller.ts b/src/modules/decks/decks.controller.ts index 51d83ee..c1e3a64 100644 --- a/src/modules/decks/decks.controller.ts +++ b/src/modules/decks/decks.controller.ts @@ -13,9 +13,16 @@ import { UseGuards, UseInterceptors, } from '@nestjs/common' +import { CommandBus } from '@nestjs/cqrs' +import { FileFieldsInterceptor } from '@nestjs/platform-express' +import { ApiTags } from '@nestjs/swagger' + +import { Pagination } from '../../infrastructure/common/pagination/pagination.service' +import { JwtAuthGuard } from '../auth/guards' +import { CreateCardDto, GetAllCardsInDeckDto } from '../cards/dto' + import { DecksService } from './decks.service' import { UpdateDeckDto, CreateDeckDto, GetAllDecksDto } from './dto' -import { CommandBus } from '@nestjs/cqrs' import { CreateDeckCommand, DeleteDeckByIdCommand, @@ -27,11 +34,8 @@ import { SaveGradeCommand, CreateCardCommand, } from './use-cases' -import { JwtAuthGuard } from '../auth/guards' -import { CreateCardDto, GetAllCardsInDeckDto } from '../cards/dto' -import { Pagination } from '../../infrastructure/common/pagination/pagination.service' -import { FileFieldsInterceptor } from '@nestjs/platform-express' +@ApiTags('Decks') @Controller('decks') export class DecksController { constructor(private readonly decksService: DecksService, private commandBus: CommandBus) {} @@ -48,6 +52,7 @@ export class DecksController { @Body() createDeckDto: CreateDeckDto ) { const userId = req.user.id + return this.commandBus.execute( new CreateDeckCommand({ ...createDeckDto, userId: userId }, files?.cover?.[0]) ) @@ -57,6 +62,7 @@ export class DecksController { @Get() findAll(@Query() query: GetAllDecksDto, @Req() req) { const finalQuery = Pagination.getPaginationData(query) + return this.commandBus.execute(new GetAllDecksCommand({ ...finalQuery, userId: req.user.id })) } @@ -70,6 +76,7 @@ export class DecksController { @Get(':id/cards') findCardsInDeck(@Param('id') id: string, @Req() req, @Query() query: GetAllCardsInDeckDto) { const finalQuery = Pagination.getPaginationData(query) + return this.commandBus.execute(new GetAllCardsInDeckCommand(req.user.id, id, finalQuery)) } diff --git a/src/modules/decks/decks.module.ts b/src/modules/decks/decks.module.ts index 46823a5..33ab10b 100644 --- a/src/modules/decks/decks.module.ts +++ b/src/modules/decks/decks.module.ts @@ -1,7 +1,13 @@ import { Module } from '@nestjs/common' -import { DecksService } from './decks.service' -import { DecksController } from './decks.controller' import { CqrsModule } from '@nestjs/cqrs' + +import { FileUploadService } from '../../infrastructure/file-upload-service/file-upload.service' +import { CardsRepository } from '../cards/infrastructure/cards.repository' + +import { DecksController } from './decks.controller' +import { DecksService } from './decks.service' +import { DecksRepository } from './infrastructure/decks.repository' +import { GradesRepository } from './infrastructure/grades.repository' import { CreateDeckHandler, DeleteDeckByIdHandler, @@ -13,10 +19,6 @@ import { SaveGradeHandler, GetRandomCardInDeckHandler, } from './use-cases' -import { DecksRepository } from './infrastructure/decks.repository' -import { CardsRepository } from '../cards/infrastructure/cards.repository' -import { GradesRepository } from './infrastructure/grades.repository' -import { FileUploadService } from '../../infrastructure/file-upload-service/file-upload.service' const commandHandlers = [ CreateDeckHandler, diff --git a/src/modules/decks/dto/create-deck.dto.ts b/src/modules/decks/dto/create-deck.dto.ts index f87ff4b..9271392 100644 --- a/src/modules/decks/dto/create-deck.dto.ts +++ b/src/modules/decks/dto/create-deck.dto.ts @@ -1,5 +1,5 @@ -import { IsBoolean, IsOptional, Length } from 'class-validator' import { Transform } from 'class-transformer' +import { IsBoolean, IsOptional, Length } from 'class-validator' export class CreateDeckDto { @Length(3, 30) diff --git a/src/modules/decks/dto/get-all-decks.dto.ts b/src/modules/decks/dto/get-all-decks.dto.ts index bf38702..9d800e1 100644 --- a/src/modules/decks/dto/get-all-decks.dto.ts +++ b/src/modules/decks/dto/get-all-decks.dto.ts @@ -1,6 +1,7 @@ import { IsUUID } from 'class-validator' -import { IsOptionalOrEmptyString, IsOrderBy } from '../../../infrastructure/decorators' + import { PaginationDto } from '../../../infrastructure/common/pagination/pagination.dto' +import { IsOptionalOrEmptyString, IsOrderBy } from '../../../infrastructure/decorators' export class GetAllDecksDto extends PaginationDto { @IsOptionalOrEmptyString() diff --git a/src/modules/decks/dto/update-deck.dto.ts b/src/modules/decks/dto/update-deck.dto.ts index 58449f5..b708743 100644 --- a/src/modules/decks/dto/update-deck.dto.ts +++ b/src/modules/decks/dto/update-deck.dto.ts @@ -1,8 +1,10 @@ import { PartialType } from '@nestjs/mapped-types' -import { CreateDeckDto } from './create-deck.dto' -import { IsOptionalOrEmptyString } from '../../../infrastructure/decorators' import { IsBoolean } from 'class-validator' +import { IsOptionalOrEmptyString } from '../../../infrastructure/decorators' + +import { CreateDeckDto } from './create-deck.dto' + export class UpdateDeckDto extends PartialType(CreateDeckDto) { @IsOptionalOrEmptyString() name: string diff --git a/src/modules/decks/infrastructure/decks.repository.ts b/src/modules/decks/infrastructure/decks.repository.ts index ea492b4..08a304a 100644 --- a/src/modules/decks/infrastructure/decks.repository.ts +++ b/src/modules/decks/infrastructure/decks.repository.ts @@ -1,8 +1,9 @@ import { Injectable, InternalServerErrorException, Logger } from '@nestjs/common' + +import { createPrismaOrderBy } from '../../../infrastructure/common/helpers/get-order-by-object' +import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' import { PrismaService } from '../../../prisma.service' import { GetAllDecksDto } from '../dto' -import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' -import { createPrismaOrderBy } from '../../../infrastructure/common/helpers/get-order-by-object' @Injectable() export class DecksRepository { @@ -103,6 +104,7 @@ export class DecksRepository { this.prisma .$queryRaw`SELECT MAX(card_count) as maxCardsCount FROM (SELECT COUNT(*) as card_count FROM card GROUP BY deckId) AS card_counts;`, ]) + return { maxCardsCount: Number(max[0].maxCardsCount), ...Pagination.transformPaginationData([count, items], { currentPage, itemsPerPage }), diff --git a/src/modules/decks/infrastructure/grades.repository.ts b/src/modules/decks/infrastructure/grades.repository.ts index 61ee7eb..e789731 100644 --- a/src/modules/decks/infrastructure/grades.repository.ts +++ b/src/modules/decks/infrastructure/grades.repository.ts @@ -1,4 +1,5 @@ import { Injectable, InternalServerErrorException, Logger } from '@nestjs/common' + import { PrismaService } from '../../../prisma.service' @Injectable() diff --git a/src/modules/decks/use-cases/create-card-use-case.ts b/src/modules/decks/use-cases/create-card-use-case.ts index ac9ebd7..08ac692 100644 --- a/src/modules/decks/use-cases/create-card-use-case.ts +++ b/src/modules/decks/use-cases/create-card-use-case.ts @@ -1,7 +1,8 @@ import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + +import { FileUploadService } from '../../../infrastructure/file-upload-service/file-upload.service' import { CreateCardDto } from '../../cards/dto' import { CardsRepository } from '../../cards/infrastructure/cards.repository' -import { FileUploadService } from '../../../infrastructure/file-upload-service/file-upload.service' export class CreateCardCommand { constructor( @@ -34,6 +35,7 @@ export class CreateCardHandler implements ICommandHandler { ) const result = await Promise.all([addQuestionImagePromise, addAnswerImagePromise]) + questionImg = result[0].fileUrl answerImg = result[1].fileUrl } else if (command.answerImg) { @@ -42,6 +44,7 @@ export class CreateCardHandler implements ICommandHandler { command.answerImg?.originalname ) const result = await addAnswerImagePromise + answerImg = result.fileUrl } else if (command.questionImg) { const addQuestionImagePromise = this.fileUploadService.uploadFile( @@ -49,6 +52,7 @@ export class CreateCardHandler implements ICommandHandler { command.questionImg?.originalname ) const result = await addQuestionImagePromise + questionImg = result.fileUrl } if (command.card.questionImg === '') { diff --git a/src/modules/decks/use-cases/create-deck-use-case.ts b/src/modules/decks/use-cases/create-deck-use-case.ts index 62f10c9..2d30bb0 100644 --- a/src/modules/decks/use-cases/create-deck-use-case.ts +++ b/src/modules/decks/use-cases/create-deck-use-case.ts @@ -1,7 +1,8 @@ import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + +import { FileUploadService } from '../../../infrastructure/file-upload-service/file-upload.service' import { CreateDeckDto } from '../dto' import { DecksRepository } from '../infrastructure/decks.repository' -import { FileUploadService } from '../../../infrastructure/file-upload-service/file-upload.service' export class CreateDeckCommand { constructor(public readonly deck: CreateDeckDto, public readonly cover: Express.Multer.File) {} @@ -22,6 +23,7 @@ export class CreateDeckHandler implements ICommandHandler { command.cover.buffer, command.cover.originalname ) + cover = result.fileUrl } diff --git a/src/modules/decks/use-cases/delete-deck-by-id-use-case.ts b/src/modules/decks/use-cases/delete-deck-by-id-use-case.ts index 3091769..262a965 100644 --- a/src/modules/decks/use-cases/delete-deck-by-id-use-case.ts +++ b/src/modules/decks/use-cases/delete-deck-by-id-use-case.ts @@ -1,6 +1,7 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' -import { DecksRepository } from '../infrastructure/decks.repository' import { BadRequestException, NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + +import { DecksRepository } from '../infrastructure/decks.repository' export class DeleteDeckByIdCommand { constructor(public readonly id: string, public readonly userId: string) {} @@ -12,10 +13,12 @@ export class DeleteDeckByIdHandler implements ICommandHandler) { const selectionPool: Array = [] + cards.forEach(card => { // Calculate the average grade for the card const averageGrade = @@ -40,6 +42,7 @@ export class GetRandomCardInDeckHandler implements ICommandHandler { async execute(command: SaveGradeCommand) { const deck = await this.decksRepository.findDeckByCardId(command.args.cardId) + if (!deck) throw new NotFoundException(`Deck containing card with id ${command.args.cardId} not found`) diff --git a/src/modules/decks/use-cases/update-deck-use-case.ts b/src/modules/decks/use-cases/update-deck-use-case.ts index 972382f..669b412 100644 --- a/src/modules/decks/use-cases/update-deck-use-case.ts +++ b/src/modules/decks/use-cases/update-deck-use-case.ts @@ -1,8 +1,9 @@ -import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' -import { DecksRepository } from '../infrastructure/decks.repository' -import { UpdateDeckDto } from '../dto' import { BadRequestException, NotFoundException } from '@nestjs/common' +import { CommandHandler, ICommandHandler } from '@nestjs/cqrs' + import { FileUploadService } from '../../../infrastructure/file-upload-service/file-upload.service' +import { UpdateDeckDto } from '../dto' +import { DecksRepository } from '../infrastructure/decks.repository' export class UpdateDeckCommand { constructor( @@ -22,6 +23,7 @@ export class UpdateDeckHandler implements ICommandHandler { async execute(command: UpdateDeckCommand) { const deck = await this.deckRepository.findDeckById(command.deckId) + if (!deck) { throw new NotFoundException(`Deck with id ${command.deckId} not found`) } @@ -36,10 +38,12 @@ export class UpdateDeckHandler implements ICommandHandler { command.cover.buffer, command.cover.originalname ) + cover = result.fileUrl } else if (command.deck.cover === '') { cover = null } + return await this.deckRepository.updateDeckById(command.deckId, { ...command.deck, cover }) } } diff --git a/src/modules/users/api/users.controller.ts b/src/modules/users/api/users.controller.ts index f027b15..113800d 100644 --- a/src/modules/users/api/users.controller.ts +++ b/src/modules/users/api/users.controller.ts @@ -9,13 +9,16 @@ import { Query, UseGuards, } from '@nestjs/common' -import { UsersService } from '../services/users.service' -import { CreateUserDto } from '../dto/create-user.dto' +import { CommandBus } from '@nestjs/cqrs' +import { ApiTags } from '@nestjs/swagger' + import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' import { BaseAuthGuard } from '../../auth/guards' -import { CommandBus } from '@nestjs/cqrs' import { CreateUserCommand } from '../../auth/use-cases' +import { CreateUserDto } from '../dto/create-user.dto' +import { UsersService } from '../services/users.service' +@ApiTags('Admin') @Controller('users') export class UsersController { constructor(private usersService: UsersService, private commandBus: CommandBus) {} @@ -25,7 +28,9 @@ export class UsersController { const { page, pageSize } = Pagination.getPaginationData(query) const users = await this.usersService.getUsers(page, pageSize, query.name, query.email) + if (!users) throw new NotFoundException('Users not found') + return users } diff --git a/src/modules/users/dto/update-user.dto.ts b/src/modules/users/dto/update-user.dto.ts index 174a474..1543f73 100644 --- a/src/modules/users/dto/update-user.dto.ts +++ b/src/modules/users/dto/update-user.dto.ts @@ -1,4 +1,5 @@ import { PartialType } from '@nestjs/mapped-types' + import { CreateUserDto } from './create-user.dto' export class UpdateUserDto extends PartialType(CreateUserDto) {} diff --git a/src/modules/users/infrastructure/users.repository.ts b/src/modules/users/infrastructure/users.repository.ts index aa64a27..680ea6c 100644 --- a/src/modules/users/infrastructure/users.repository.ts +++ b/src/modules/users/infrastructure/users.repository.ts @@ -1,3 +1,15 @@ +import { + BadRequestException, + Injectable, + InternalServerErrorException, + Logger, +} from '@nestjs/common' +import { Prisma } from '@prisma/client' +import { addHours } from 'date-fns' +import { v4 as uuidv4 } from 'uuid' + +import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' +import { PrismaService } from '../../../prisma.service' import { CreateUserInput, EntityWithPaginationType, @@ -5,17 +17,6 @@ import { UserViewType, VerificationWithUser, } from '../../../types/types' -import { - BadRequestException, - Injectable, - InternalServerErrorException, - Logger, -} from '@nestjs/common' -import { addHours } from 'date-fns' -import { v4 as uuidv4 } from 'uuid' -import { PrismaService } from '../../../prisma.service' -import { Prisma } from '@prisma/client' -import { Pagination } from '../../../infrastructure/common/pagination/pagination.service' @Injectable() export class UsersRepository { @@ -52,6 +53,7 @@ export class UsersRepository { take: itemsPerPage, }), ]) + return Pagination.transformPaginationData(res, { currentPage, itemsPerPage }) } catch (e) { if (e instanceof Prisma.PrismaClientKnownRequestError) { @@ -100,6 +102,7 @@ export class UsersRepository { id, }, }) + return result.isDeleted } catch (e) { if (e instanceof Prisma.PrismaClientKnownRequestError) { @@ -115,6 +118,7 @@ export class UsersRepository { async deleteAllUsers(): Promise { try { const result = await this.prisma.user.deleteMany() + return result.count } catch (e) { this.logger.error(e?.message || e) @@ -128,6 +132,7 @@ export class UsersRepository { where: { id }, include, }) + if (!user) { return null } @@ -154,6 +159,7 @@ export class UsersRepository { if (!user) { return null } + return user } catch (e) { if (e instanceof Prisma.PrismaClientKnownRequestError) { @@ -176,9 +182,11 @@ export class UsersRepository { user: true, }, }) + if (!verification) { return null } + return verification } catch (e) { if (e instanceof Prisma.PrismaClientKnownRequestError) { @@ -206,6 +214,7 @@ export class UsersRepository { }, }, }) + return result.isEmailVerified } catch (e) { this.logger.error(e?.message || e) @@ -276,9 +285,11 @@ export class UsersRepository { user: true, }, }) + if (!resetPassword) { return null } + return resetPassword.user } catch (e) { if (e instanceof Prisma.PrismaClientKnownRequestError) { @@ -335,9 +346,11 @@ export class UsersRepository { user: true, }, }) + if (!revokedToken.user) { return null } + return revokedToken.user } catch (e) { this.logger.error(e?.message || e) diff --git a/src/modules/users/services/users.service.ts b/src/modules/users/services/users.service.ts index 64c0ebf..6274d28 100644 --- a/src/modules/users/services/users.service.ts +++ b/src/modules/users/services/users.service.ts @@ -1,7 +1,8 @@ import { Injectable, Logger } from '@nestjs/common' -import { UsersRepository } from '../infrastructure/users.repository' -import * as bcrypt from 'bcrypt' import { MailerService } from '@nestjs-modules/mailer' +import * as bcrypt from 'bcrypt' + +import { UsersRepository } from '../infrastructure/users.repository' @Injectable() export class UsersService { @@ -23,6 +24,7 @@ export class UsersService { async deleteAllUsers(): Promise<{ deleted: number }> { const deleted = await this.usersRepository.deleteAllUsers() + return { deleted } } diff --git a/src/modules/users/users.module.ts b/src/modules/users/users.module.ts index 24c8185..8ec6e9f 100644 --- a/src/modules/users/users.module.ts +++ b/src/modules/users/users.module.ts @@ -1,8 +1,9 @@ import { Module } from '@nestjs/common' -import { UsersService } from './services/users.service' +import { CqrsModule } from '@nestjs/cqrs' + import { UsersController } from './api/users.controller' import { UsersRepository } from './infrastructure/users.repository' -import { CqrsModule } from '@nestjs/cqrs' +import { UsersService } from './services/users.service' @Module({ imports: [CqrsModule], diff --git a/src/prisma.module.ts b/src/prisma.module.ts index 4501415..581c282 100644 --- a/src/prisma.module.ts +++ b/src/prisma.module.ts @@ -1,4 +1,5 @@ import { Global, Module } from '@nestjs/common' + import { PrismaService } from './prisma.service' @Global() diff --git a/src/settings/app-settings.ts b/src/settings/app-settings.ts index 269466e..0682333 100644 --- a/src/settings/app-settings.ts +++ b/src/settings/app-settings.ts @@ -42,4 +42,5 @@ export class AppSettings { } const env = new EnvironmentSettings((process.env.NODE_ENV || 'DEVELOPMENT') as EnvironmentsTypes) const auth = new AuthSettings(process.env) + export const appSettings = new AppSettings(env, auth) diff --git a/src/settings/config.module.ts b/src/settings/config.module.ts index 781651d..52e035d 100644 --- a/src/settings/config.module.ts +++ b/src/settings/config.module.ts @@ -1,4 +1,5 @@ import { Global, Module } from '@nestjs/common' + import { appSettings, AppSettings } from './app-settings' //главный config модуль для управления env переменными импортируется в app.module.ts глобально diff --git a/src/settings/pipes-setup.ts b/src/settings/pipes-setup.ts index ad28275..d798ff7 100644 --- a/src/settings/pipes-setup.ts +++ b/src/settings/pipes-setup.ts @@ -7,6 +7,7 @@ export const validationErrorsMapper = { ): ValidationPipeErrorType[] { return errors.flatMap(error => { const constraints = error.constraints ?? [] + return Object.entries(constraints).map(([_, value]) => ({ field: error.property, message: value, @@ -26,6 +27,7 @@ export function pipesSetup(app: INestApplication) { exceptionFactory: (errors: ValidationError[]) => { const err = validationErrorsMapper.mapValidationErrorArrayToValidationPipeErrorTypeArray(errors) + throw new BadRequestException(err) }, }) diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts index 972d6fd..637535c 100644 --- a/test/app.e2e-spec.ts +++ b/test/app.e2e-spec.ts @@ -1,6 +1,7 @@ -import { Test, TestingModule } from '@nestjs/testing' import { INestApplication } from '@nestjs/common' +import { Test, TestingModule } from '@nestjs/testing' import * as request from 'supertest' + import { AppModule } from '../src/app.module' describe('AppController (e2e)', () => { diff --git a/yarn.lock b/yarn.lock index e9370d5..7c8d826 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1610,6 +1610,18 @@ consola "^2.15.0" node-fetch "^2.6.1" +"@pkgr/utils@^2.3.1": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@pkgr/utils/-/utils-2.4.2.tgz#9e638bbe9a6a6f165580dc943f138fd3309a2cbc" + integrity sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw== + dependencies: + cross-spawn "^7.0.3" + fast-glob "^3.3.0" + is-glob "^4.0.3" + open "^9.1.0" + picocolors "^1.0.0" + tslib "^2.6.0" + "@prisma/client@^5.0.0": version "5.0.0" resolved "https://registry.yarnpkg.com/@prisma/client/-/client-5.0.0.tgz#9f0cd4164f4ffddb28bb1811c27eb7fa1e01a087" @@ -2206,6 +2218,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb" integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== +"@types/json5@^0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" + integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== + "@types/mime@*": version "3.0.1" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10" @@ -2357,14 +2374,15 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@^5.59.6": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.62.0.tgz#1b63d082d849a2fcae8a569248fbe2ee1b8a56c7" - integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== +"@typescript-eslint/parser@^6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.0.0.tgz#46b2600fd1f67e62fc00a28093a75f41bf7effc4" + integrity sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg== dependencies: - "@typescript-eslint/scope-manager" "5.62.0" - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/typescript-estree" "5.62.0" + "@typescript-eslint/scope-manager" "6.0.0" + "@typescript-eslint/types" "6.0.0" + "@typescript-eslint/typescript-estree" "6.0.0" + "@typescript-eslint/visitor-keys" "6.0.0" debug "^4.3.4" "@typescript-eslint/scope-manager@5.62.0": @@ -2375,6 +2393,14 @@ "@typescript-eslint/types" "5.62.0" "@typescript-eslint/visitor-keys" "5.62.0" +"@typescript-eslint/scope-manager@6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.0.0.tgz#8ede47a37cb2b7ed82d329000437abd1113b5e11" + integrity sha512-o4q0KHlgCZTqjuaZ25nw5W57NeykZT9LiMEG4do/ovwvOcPnDO1BI5BQdCsUkjxFyrCL0cSzLjvIMfR9uo7cWg== + dependencies: + "@typescript-eslint/types" "6.0.0" + "@typescript-eslint/visitor-keys" "6.0.0" + "@typescript-eslint/type-utils@5.62.0": version "5.62.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz#286f0389c41681376cdad96b309cedd17d70346a" @@ -2390,6 +2416,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f" integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ== +"@typescript-eslint/types@6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.0.0.tgz#19795f515f8decbec749c448b0b5fc76d82445a1" + integrity sha512-Zk9KDggyZM6tj0AJWYYKgF0yQyrcnievdhG0g5FqyU3Y2DRxJn4yWY21sJC0QKBckbsdKKjYDV2yVrrEvuTgxg== + "@typescript-eslint/typescript-estree@5.62.0": version "5.62.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b" @@ -2403,6 +2434,19 @@ semver "^7.3.7" tsutils "^3.21.0" +"@typescript-eslint/typescript-estree@6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.0.0.tgz#1e09aab7320e404fb9f83027ea568ac24e372f81" + integrity sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ== + dependencies: + "@typescript-eslint/types" "6.0.0" + "@typescript-eslint/visitor-keys" "6.0.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.5.0" + ts-api-utils "^1.0.1" + "@typescript-eslint/utils@5.62.0": version "5.62.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86" @@ -2425,6 +2469,14 @@ "@typescript-eslint/types" "5.62.0" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.0.0.tgz#0b49026049fbd096d2c00c5e784866bc69532a31" + integrity sha512-cvJ63l8c0yXdeT5POHpL0Q1cZoRcmRKFCtSjNGJxPkcP571EfZMcNbzWAc7oK3D1dRzm/V5EwtkANTZxqvuuUA== + dependencies: + "@typescript-eslint/types" "6.0.0" + eslint-visitor-keys "^3.4.1" + "@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5": version "1.11.6" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.6.tgz#db046555d3c413f8966ca50a95176a0e2c642e24" @@ -2729,16 +2781,67 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== +array-buffer-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" + integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== + dependencies: + call-bind "^1.0.2" + is-array-buffer "^3.0.1" + array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== +array-includes@^3.1.6: + version "3.1.6" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f" + integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + get-intrinsic "^1.1.3" + is-string "^1.0.7" + array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== +array.prototype.flat@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2" + integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + +array.prototype.flatmap@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" + integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + +arraybuffer.prototype.slice@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz#9b5ea3868a6eebc30273da577eb888381c0044bb" + integrity sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + get-intrinsic "^1.2.1" + is-array-buffer "^3.0.2" + is-shared-array-buffer "^1.0.2" + asap@^2.0.0, asap@~2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" @@ -2891,6 +2994,11 @@ bcrypt@^5.1.0: "@mapbox/node-pre-gyp" "^1.0.10" node-addon-api "^5.0.0" +big-integer@^1.6.44: + version "1.6.51" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.51.tgz#0df92a5d9880560d3ff2d5fd20245c889d130686" + integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg== + binary-extensions@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" @@ -2951,6 +3059,13 @@ bowser@^2.11.0: resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f" integrity sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA== +bplist-parser@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.2.0.tgz#43a9d183e5bf9d545200ceac3e712f79ebbe8d0e" + integrity sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw== + dependencies: + big-integer "^1.6.44" + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -3032,6 +3147,13 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" +bundle-name@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bundle-name/-/bundle-name-3.0.0.tgz#ba59bcc9ac785fb67ccdbf104a2bf60c099f0e1a" + integrity sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw== + dependencies: + run-applescript "^5.0.0" + busboy@^1.0.0: version "1.6.0" resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" @@ -3505,6 +3627,13 @@ debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: dependencies: ms "2.1.2" +debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" @@ -3520,6 +3649,24 @@ deepmerge@^4.2.2, deepmerge@^4.3.1: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== +default-browser-id@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/default-browser-id/-/default-browser-id-3.0.0.tgz#bee7bbbef1f4e75d31f98f4d3f1556a14cea790c" + integrity sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA== + dependencies: + bplist-parser "^0.2.0" + untildify "^4.0.0" + +default-browser@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/default-browser/-/default-browser-4.0.0.tgz#53c9894f8810bf86696de117a6ce9085a3cbc7da" + integrity sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA== + dependencies: + bundle-name "^3.0.0" + default-browser-id "^3.0.0" + execa "^7.1.1" + titleize "^3.0.0" + defaults@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" @@ -3527,6 +3674,19 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" +define-lazy-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz#dbb19adfb746d7fc6d734a06b72f4a00d021255f" + integrity sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg== + +define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5" + integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + degenerator@^3.0.2: version "3.0.4" resolved "https://registry.yarnpkg.com/degenerator/-/degenerator-3.0.4.tgz#07ccf95bc11044a37a6efc2f66029fb636e31f24" @@ -3602,6 +3762,13 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -3752,7 +3919,7 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" -enhanced-resolve@^5.0.0, enhanced-resolve@^5.14.0, enhanced-resolve@^5.7.0: +enhanced-resolve@^5.0.0, enhanced-resolve@^5.12.0, enhanced-resolve@^5.14.0, enhanced-resolve@^5.7.0: version "5.15.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35" integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg== @@ -3777,11 +3944,81 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" +es-abstract@^1.19.0, es-abstract@^1.20.4: + version "1.22.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.1.tgz#8b4e5fc5cefd7f1660f0f8e1a52900dfbc9d9ccc" + integrity sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw== + dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.1" + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.2.1" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.10" + is-weakref "^1.0.2" + object-inspect "^1.12.3" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.0" + safe-array-concat "^1.0.0" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.7" + string.prototype.trimend "^1.0.6" + string.prototype.trimstart "^1.0.6" + typed-array-buffer "^1.0.0" + typed-array-byte-length "^1.0.0" + typed-array-byte-offset "^1.0.0" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.10" + es-module-lexer@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.3.0.tgz#6be9c9e0b4543a60cd166ff6f8b4e9dae0b0c16f" integrity sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA== +es-set-tostringtag@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz#338d502f6f674301d710b80c8592de8a15f09cd8" + integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg== + dependencies: + get-intrinsic "^1.1.3" + has "^1.0.3" + has-tostringtag "^1.0.0" + +es-shim-unscopables@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241" + integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== + dependencies: + has "^1.0.3" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -3829,6 +4066,57 @@ eslint-config-prettier@^8.8.0: resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348" integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== +eslint-import-resolver-node@^0.3.7: + version "0.3.7" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7" + integrity sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA== + dependencies: + debug "^3.2.7" + is-core-module "^2.11.0" + resolve "^1.22.1" + +eslint-import-resolver-typescript@^3.5.5: + version "3.5.5" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.5.tgz#0a9034ae7ed94b254a360fbea89187b60ea7456d" + integrity sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw== + dependencies: + debug "^4.3.4" + enhanced-resolve "^5.12.0" + eslint-module-utils "^2.7.4" + get-tsconfig "^4.5.0" + globby "^13.1.3" + is-core-module "^2.11.0" + is-glob "^4.0.3" + synckit "^0.8.5" + +eslint-module-utils@^2.7.4: + version "2.8.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" + integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== + dependencies: + debug "^3.2.7" + +eslint-plugin-import@^2.27.5: + version "2.27.5" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz#876a6d03f52608a3e5bb439c2550588e51dd6c65" + integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow== + dependencies: + array-includes "^3.1.6" + array.prototype.flat "^1.3.1" + array.prototype.flatmap "^1.3.1" + debug "^3.2.7" + doctrine "^2.1.0" + eslint-import-resolver-node "^0.3.7" + eslint-module-utils "^2.7.4" + has "^1.0.3" + is-core-module "^2.11.0" + is-glob "^4.0.3" + minimatch "^3.1.2" + object.values "^1.1.6" + resolve "^1.22.1" + semver "^6.3.0" + tsconfig-paths "^3.14.1" + eslint-plugin-prettier@^4.2.1: version "4.2.1" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" @@ -3993,6 +4281,21 @@ execa@^5.0.0: signal-exit "^3.0.3" strip-final-newline "^2.0.0" +execa@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-7.1.1.tgz#3eb3c83d239488e7b409d48e8813b76bb55c9c43" + integrity sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^4.3.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" + exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" @@ -4086,7 +4389,7 @@ fast-diff@^1.1.2: resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== -fast-glob@^3.2.9: +fast-glob@^3.2.9, fast-glob@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.0.tgz#7c40cb491e1e2ed5664749e87bfb516dbe8727c0" integrity sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA== @@ -4385,6 +4688,21 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + +functions-have-names@^1.2.2, functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + gauge@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" @@ -4410,7 +4728,7 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.3: +get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82" integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== @@ -4432,11 +4750,26 @@ get-stream@^5.0.0: dependencies: pump "^3.0.0" -get-stream@^6.0.0: +get-stream@^6.0.0, get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + +get-tsconfig@^4.5.0: + version "4.6.2" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.6.2.tgz#831879a5e6c2aa24fe79b60340e2233a1e0f472e" + integrity sha512-E5XrT4CbbXcXWy+1jChlZmrmCwd5KGx502kDCXJJ7y898TtWW9FwoG5HfOLVRKmlmDGkWN2HM9Ho+/Y8F0sJDg== + dependencies: + resolve-pkg-maps "^1.0.0" + get-uri@3: version "3.0.2" resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-3.0.2.tgz#f0ef1356faabc70e1f9404fa3b66b2ba9bfc725c" @@ -4524,6 +4857,13 @@ globals@^13.19.0: dependencies: type-fest "^0.20.2" +globalthis@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -4536,6 +4876,17 @@ globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" +globby@^13.1.3: + version "13.2.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-13.2.2.tgz#63b90b1bf68619c2135475cbd4e71e66aa090592" + integrity sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w== + dependencies: + dir-glob "^3.0.1" + fast-glob "^3.3.0" + ignore "^5.2.4" + merge2 "^1.4.1" + slash "^4.0.0" + gopd@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" @@ -4565,6 +4916,11 @@ handlebars@^4.7.6: optionalDependencies: uglify-js "^3.1.4" +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -4575,6 +4931,13 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + dependencies: + get-intrinsic "^1.1.1" + has-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" @@ -4708,6 +5071,11 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +human-signals@^4.3.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" + integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== + iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" @@ -4732,7 +5100,7 @@ ieee754@^1.1.13, ieee754@^1.1.4, ieee754@^1.2.1: resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -ignore@^5.2.0: +ignore@^5.2.0, ignore@^5.2.4: version "5.2.4" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== @@ -4831,6 +5199,15 @@ inquirer@8.2.5: through "^2.3.6" wrap-ansi "^7.0.0" +internal-slot@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" + integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== + dependencies: + get-intrinsic "^1.2.0" + has "^1.0.3" + side-channel "^1.0.4" + interpret@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" @@ -4859,11 +5236,27 @@ is-arguments@^1.0.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" + integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + is-typed-array "^1.1.10" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -4871,7 +5264,15 @@ is-binary-path@~2.1.0: dependencies: binary-extensions "^2.0.0" -is-callable@^1.1.3: +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== @@ -4883,11 +5284,23 @@ is-core-module@^2.11.0: dependencies: has "^1.0.3" +is-date-object@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + is-docker@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== +is-docker@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200" + integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ== + is-expression@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/is-expression/-/is-expression-4.0.0.tgz#c33155962abf21d0afd2552514d67d2ec16fd2ab" @@ -4925,11 +5338,30 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-inside-container@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-inside-container/-/is-inside-container-1.0.0.tgz#e81fba699662eb31dbdaf26766a61d4814717ea4" + integrity sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA== + dependencies: + is-docker "^3.0.0" + is-interactive@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" @@ -4945,7 +5377,7 @@ is-promise@^2.0.0: resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1" integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== -is-regex@^1.0.3: +is-regex@^1.0.3, is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== @@ -4953,12 +5385,38 @@ is-regex@^1.0.3: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" + is-stream@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-typed-array@^1.1.10, is-typed-array@^1.1.3: +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + +is-typed-array@^1.1.10, is-typed-array@^1.1.3, is-typed-array@^1.1.9: version "1.1.10" resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.10.tgz#36a5b5cb4189b575d1a3e4b08536bfb485801e3f" integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A== @@ -4974,7 +5432,14 @@ is-unicode-supported@^0.1.0: resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== -is-wsl@^2.1.1: +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-wsl@^2.1.1, is-wsl@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== @@ -4991,6 +5456,11 @@ isarray@^1.0.0, isarray@~1.0.0: resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -5486,6 +5956,13 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== +json5@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" + integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== + dependencies: + minimist "^1.2.0" + json5@^2.2.2, json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" @@ -5875,6 +6352,11 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== + minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" @@ -5896,7 +6378,7 @@ minimatch@^8.0.2: dependencies: brace-expansion "^2.0.1" -minimist@^1.2.5, minimist@^1.2.6: +minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== @@ -6412,6 +6894,13 @@ npm-run-path@^4.0.0, npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.1.0.tgz#bc62f7f3f6952d9894bd08944ba011a6ee7b7e00" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== + dependencies: + path-key "^4.0.0" + npmlog@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" @@ -6434,11 +6923,35 @@ object-assign@^4, object-assign@^4.1.1: resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-inspect@^1.9.0: +object-inspect@^1.12.3, object-inspect@^1.9.0: version "1.12.3" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" + +object.values@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" + integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + obliterator@^2.0.1: version "2.0.4" resolved "https://registry.yarnpkg.com/obliterator/-/obliterator-2.0.4.tgz#fa650e019b2d075d745e44f1effeb13a2adbe816" @@ -6470,6 +6983,13 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + open@7: version "7.4.2" resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" @@ -6478,6 +6998,16 @@ open@7: is-docker "^2.0.0" is-wsl "^2.1.1" +open@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/open/-/open-9.1.0.tgz#684934359c90ad25742f5a26151970ff8c6c80b6" + integrity sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg== + dependencies: + default-browser "^4.0.0" + define-lazy-prop "^3.0.0" + is-inside-container "^1.0.0" + is-wsl "^2.2.0" + optionator@^0.8.1: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" @@ -6683,6 +7213,11 @@ path-key@^3.0.0, path-key@^3.1.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" @@ -7177,6 +7712,15 @@ regenerator-runtime@^0.13.11: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== +regexp.prototype.flags@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" + integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + functions-have-names "^1.2.3" + relateurl@^0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" @@ -7223,12 +7767,17 @@ resolve-from@^5.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + resolve.exports@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.1.6, resolve@^1.15.1, resolve@^1.20.0: +resolve@^1.1.6, resolve@^1.15.1, resolve@^1.20.0, resolve@^1.22.1: version "1.22.2" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== @@ -7274,6 +7823,13 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" +run-applescript@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/run-applescript/-/run-applescript-5.0.0.tgz#e11e1c932e055d5c6b40d98374e0268d9b11899c" + integrity sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg== + dependencies: + execa "^5.0.0" + run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" @@ -7293,6 +7849,16 @@ rxjs@7.8.1, rxjs@^7.5.5, rxjs@^7.8.1: dependencies: tslib "^2.1.0" +safe-array-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.0.tgz#2064223cba3c08d2ee05148eedbc563cd6d84060" + integrity sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + has-symbols "^1.0.3" + isarray "^2.0.5" + safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" @@ -7303,6 +7869,15 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" + safe-regex2@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/safe-regex2/-/safe-regex2-2.0.0.tgz#b287524c397c7a2994470367e0185e1916b1f5b9" @@ -7469,6 +8044,11 @@ slash@^3.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== + slick@^1.12.2: version "1.12.2" resolved "https://registry.yarnpkg.com/slick/-/slick-1.12.2.tgz#bd048ddb74de7d1ca6915faa4a57570b3550c2d7" @@ -7578,6 +8158,33 @@ string-length@^4.0.1: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" +string.prototype.trim@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz#a68352740859f6893f14ce3ef1bb3037f7a90533" + integrity sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + +string.prototype.trimend@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" + integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + +string.prototype.trimstart@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" + integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + string_decoder@^1.1.1, string_decoder@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -7619,6 +8226,11 @@ strip-final-newline@^2.0.0: resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" @@ -7706,6 +8318,14 @@ symbol-observable@4.0.0: resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== +synckit@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb559437f9f167eb6bc46b3c9818fa3" + integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q== + dependencies: + "@pkgr/utils" "^2.3.1" + tslib "^2.5.0" + tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" @@ -7775,6 +8395,11 @@ tiny-lru@^11.0.1: resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-11.0.1.tgz#629d6ddd88bd03c0929722680167f1feadf576f2" integrity sha512-iNgFugVuQgBKrqeO/mpiTTgmBsTP0WL6yeuLfLs/Ctf0pI/ixGqIRm8sDCwMcXGe9WWvt2sGXI5mNqZbValmJg== +titleize@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/titleize/-/titleize-3.0.0.tgz#71c12eb7fdd2558aa8a44b0be83b8a76694acd53" + integrity sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ== + tlds@1.240.0: version "1.240.0" resolved "https://registry.yarnpkg.com/tlds/-/tlds-1.240.0.tgz#3d3d776d97aa079e43ef4d2f9ef9845e55cff08e" @@ -7824,6 +8449,11 @@ tree-kill@1.2.2: resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== +ts-api-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.1.tgz#8144e811d44c749cd65b2da305a032510774452d" + integrity sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A== + ts-jest@29.1.0: version "29.1.0" resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.0.tgz#4a9db4104a49b76d2b368ea775b6c9535c603891" @@ -7885,6 +8515,16 @@ tsconfig-paths@4.2.0, tsconfig-paths@^4.1.2: minimist "^1.2.6" strip-bom "^3.0.0" +tsconfig-paths@^3.14.1: + version "3.14.2" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" + integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== + dependencies: + "@types/json5" "^0.0.29" + json5 "^1.0.2" + minimist "^1.2.6" + strip-bom "^3.0.0" + tslib@2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" @@ -7900,7 +8540,7 @@ tslib@^1.11.1, tslib@^1.8.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.1, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.5.0: +tslib@^2.0.1, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.5.0, tslib@^2.6.0: version "2.6.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.0.tgz#b295854684dbda164e181d259a22cd779dcd7bc3" integrity sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA== @@ -7949,6 +8589,45 @@ type-is@^1.6.4, type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +typed-array-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" + integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + is-typed-array "^1.1.10" + +typed-array-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" + integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" + integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-length@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" + integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + is-typed-array "^1.1.9" + typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" @@ -7981,6 +8660,16 @@ uid@2.0.2: dependencies: "@lukeed/csprng" "^1.0.0" +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" @@ -7996,6 +8685,11 @@ unpipe@1.0.0, unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== +untildify@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" + integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== + update-browserslist-db@^1.0.11: version "1.0.11" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" @@ -8189,7 +8883,18 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" -which-typed-array@^1.1.2: +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + +which-typed-array@^1.1.10, which-typed-array@^1.1.2: version "1.1.10" resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.10.tgz#74baa2789991905c2076abb317103b866c64e69e" integrity sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==