From 99bd750fcf8215a1fa9f08a208be9788bb5e2ada Mon Sep 17 00:00:00 2001 From: Yash Kumar Verma Date: Sat, 27 Feb 2021 10:19:11 +0530 Subject: [PATCH 01/71] chore(ci): update leaderboard link --- .github/workflows/labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index c87da0d..654dbdc 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -12,4 +12,4 @@ jobs: echo ${{ github.event.label.name }} SCORE=${{ github.event.label.name }} echo $SCORE - curl --data "score=$SCORE" --request POST https://wocleaderboard-backend.herokuapp.com/updateLeaderBoard/ \ No newline at end of file + curl --data "score=$SCORE" --request POST https://woc-backend.gigalixirapp.com/updateLeaderBoard/ From e8a7956d26ae02a8e5517766e1fb800e69b11bc6 Mon Sep 17 00:00:00 2001 From: Tanay Raj Date: Sat, 27 Feb 2021 10:23:22 +0530 Subject: [PATCH 02/71] feat(user): show logged in user list (#109) Co-authored-by: Yash Kumar Verma --- src/application/application.schema.ts | 7 ++++--- src/application/application.service.ts | 9 +++++++-- src/dashboard/dashboard.controller.ts | 18 ++++++++++++++++-- src/user/user.schema.ts | 5 +++-- src/user/user.service.ts | 1 + views/dashboard/data.hbs | 3 +++ views/dashboard/details.hbs | 4 ++-- views/dashboard/dev.hbs | 1 - 8 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/application/application.schema.ts b/src/application/application.schema.ts index 339a068..ef3ef16 100644 --- a/src/application/application.schema.ts +++ b/src/application/application.schema.ts @@ -1,8 +1,8 @@ import * as mongoose from 'mongoose'; +import { Document, Schema as MongooseSchema } from 'mongoose'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; -import { Document } from 'mongoose'; import { User } from '../user/user.schema'; export type ApplicationDocument = Application & Document; @@ -21,7 +21,7 @@ export class Application { @Prop({ required: true, unique: true }) name: string; - @Prop({ type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }) + @Prop({ type: MongooseSchema.Types.ObjectId, ref: 'User', required: true }) admin: User; @Prop({ required: true }) @@ -48,7 +48,8 @@ export class Application { creationDate: Date; /** list of participants */ - @Prop({ type: [mongoose.Schema.Types.ObjectId], ref: 'User', required: true, default: [] }) + // @Prop({ type: [MongooseSchema.Types.ObjectId], ref: 'User', required: true, default: [] }) + @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'User', required: true, default: [] }]) participants: Array; } diff --git a/src/application/application.service.ts b/src/application/application.service.ts index 4197f1b..27c0833 100644 --- a/src/application/application.service.ts +++ b/src/application/application.service.ts @@ -4,7 +4,7 @@ import { InjectModel } from '@nestjs/mongoose'; import { Application, ApplicationDocument } from './application.schema'; import { isValidObjectId, Model } from 'mongoose'; import { v4 as generateUUID } from 'uuid'; -import { User } from '../user/user.schema'; +import { User, UserDocument } from '../user/user.schema'; import { LoggedInUser } from '../auth/interface/loggedInUser.interface'; @Injectable() @@ -33,7 +33,7 @@ export class ApplicationService { } } - async delete(id: String) { + async delete(id: string) { try { const deleteApp = await this.applicationModel.findByIdAndDelete({ _id: id }); } catch (e) { @@ -46,6 +46,11 @@ export class ApplicationService { return this.applicationModel.find(); } + async findUsersGrantedAccess(id: string) { + const data = await this.applicationModel.findOne({ _id: id }).populate('participants', 'name collegeEmail'); + return data; + } + async findOneById(id: string) { if (isValidObjectId(id)) { const item = await this.applicationModel.findOne({ _id: id }); diff --git a/src/dashboard/dashboard.controller.ts b/src/dashboard/dashboard.controller.ts index 1e489f5..6492bfd 100644 --- a/src/dashboard/dashboard.controller.ts +++ b/src/dashboard/dashboard.controller.ts @@ -1,8 +1,9 @@ -import { Controller, Get, Logger, Res, UseGuards, Request, Inject, Delete, Param, Post } from '@nestjs/common'; +import { Controller, Get, Logger, Res, UseGuards, Request, Inject, Delete, Param, Post, Req } from '@nestjs/common'; import { Response } from 'express'; import { JwtAuthGuard } from '../auth/guards/jwt.guard'; import { UserService } from '../user/user.service'; import { LoggedInUser } from '../auth/interface/loggedInUser.interface'; +import { User, UserDocument } from '../user/user.schema'; import { SCOPE } from '../account/minions/scopeMapper.minion'; import { ApplicationService } from '../application/application.service'; @@ -66,7 +67,6 @@ export class DashboardController { const loggedInUser: LoggedInUser = req.user; const user = await this.userService.findOneById(loggedInUser.id); const applications = await this.applicationService.findAllByOwner(user); - return res.render('dashboard/dev.hbs', { user, app: { @@ -86,4 +86,18 @@ export class DashboardController { } res.redirect('/dashboard/dev'); } + + @Get('/dev/details/:id') + @UseGuards(JwtAuthGuard) + async showUserList(@Request() req, @Res() res: Response, @Param('id') id: string) { + try { + const loggedInUser: LoggedInUser = req.user; + const userDetails = await this.applicationService.findUsersGrantedAccess(id); + res.render('dashboard/details.hbs',{ + userDetails:userDetails.participants + }) + } catch (e) { + res.render('error.hbs'); + } + } } diff --git a/src/user/user.schema.ts b/src/user/user.schema.ts index 575da17..64bde4f 100644 --- a/src/user/user.schema.ts +++ b/src/user/user.schema.ts @@ -2,10 +2,11 @@ import * as mongoose from 'mongoose'; +import { Document, Schema as MongooseSchema } from 'mongoose'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Application } from '../application/application.schema'; -import { Document } from 'mongoose'; + export type UserDocument = User & Document; @Schema() export class User { @@ -65,7 +66,7 @@ export class User { profile: string[]; /** Applications created by User */ - @Prop({ type: [mongoose.Schema.Types.ObjectId], ref: 'User', required: true, default: [] }) + @Prop({ type: [MongooseSchema.Types.ObjectId], ref: 'User', required: true, default: [] }) authorizedApplications: Array; } diff --git a/src/user/user.service.ts b/src/user/user.service.ts index e709ac2..ee24bcd 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -109,6 +109,7 @@ export class UserService { return this.userModel.findOne({ _id: userId }); } + async update(id: string, updateUserDto: UpdateUserDto) { const { name, collegeEmail, registrationNumber } = updateUserDto; const regNumber = new RegistrationNumberWorker(registrationNumber); diff --git a/views/dashboard/data.hbs b/views/dashboard/data.hbs index 5ece054..a55f383 100644 --- a/views/dashboard/data.hbs +++ b/views/dashboard/data.hbs @@ -37,6 +37,9 @@
    {{name}}
  • Support Email - {{supportEmail}}
  • Scope - {{scope}}
  • + {{#each participants}} + {{this.name}} + {{/each}} {{/each}} diff --git a/views/dashboard/details.hbs b/views/dashboard/details.hbs index f3cd84c..a9eb2eb 100644 --- a/views/dashboard/details.hbs +++ b/views/dashboard/details.hbs @@ -108,10 +108,10 @@ - {{#each data.userData}} + {{#each userDetails}} {{@index}} - {{name}} + {{this.name}} {{/each}} diff --git a/views/dashboard/dev.hbs b/views/dashboard/dev.hbs index 35cbc88..e0e0652 100644 --- a/views/dashboard/dev.hbs +++ b/views/dashboard/dev.hbs @@ -83,7 +83,6 @@

    {{description}}

    - {{!-- client id starts--}}

    From 2ffe8c0a40341f834332e1cf5940c40ef5840a90 Mon Sep 17 00:00:00 2001 From: KARANDEEP SINGH <50829119+kdsinghcoder@users.noreply.github.com> Date: Sat, 27 Feb 2021 10:40:44 +0530 Subject: [PATCH 03/71] refactor(views): add partials to avoid code duplication (#121) --- src/main.ts | 5 ++++- views/dashboard/dashboard.hbs | 17 +---------------- views/dashboard/data.hbs | 19 ++----------------- views/dashboard/details.hbs | 17 +---------------- views/dashboard/dev.hbs | 17 +---------------- views/dashboard/profile.hbs | 17 +---------------- views/partials/header.hbs | 16 ++++++++++++++++ 7 files changed, 26 insertions(+), 82 deletions(-) create mode 100644 views/partials/header.hbs diff --git a/src/main.ts b/src/main.ts index 335f405..eeeb325 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,7 +2,7 @@ import * as config from 'config'; import * as cookieParser from 'cookie-parser'; import * as helmet from 'helmet'; import * as rateLimit from 'express-rate-limit'; - +import * as hbs from 'hbs'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; import { AppModule } from './app.module'; @@ -23,7 +23,10 @@ async function bootstrap() { /** configuring public and views directory */ app.useStaticAssets(join(__dirname, '../..', 'public')); app.setBaseViewsDir(join(__dirname, '../..', 'views')); + hbs.registerPartials(join(__dirname, '../../views', 'partials')); + app.setViewEngine('hbs'); + console.log(__dirname); /** configuring swaggerUI */ const options = new DocumentBuilder() diff --git a/views/dashboard/dashboard.hbs b/views/dashboard/dashboard.hbs index 4d9886d..daf6013 100644 --- a/views/dashboard/dashboard.hbs +++ b/views/dashboard/dashboard.hbs @@ -12,22 +12,7 @@ {{!-- dashboard header starts --}} -

    - -
    + {{> header }} {{!-- dashboard header ends --}}
    diff --git a/views/dashboard/data.hbs b/views/dashboard/data.hbs index a55f383..558a4db 100644 --- a/views/dashboard/data.hbs +++ b/views/dashboard/data.hbs @@ -12,22 +12,7 @@ {{!-- dashboard header starts --}} -
    - -
    + {{> header }} {{!-- dashboard header ends --}}
    @@ -45,4 +30,4 @@ - + \ No newline at end of file diff --git a/views/dashboard/details.hbs b/views/dashboard/details.hbs index a9eb2eb..52cb08f 100644 --- a/views/dashboard/details.hbs +++ b/views/dashboard/details.hbs @@ -72,22 +72,7 @@ {{!-- dashboard header starts --}} -
    - -
    + {{> header }} {{!-- dashboard header ends --}}
    diff --git a/views/dashboard/dev.hbs b/views/dashboard/dev.hbs index e0e0652..ead5778 100644 --- a/views/dashboard/dev.hbs +++ b/views/dashboard/dev.hbs @@ -38,22 +38,7 @@ {{!-- dashboard header starts --}} -
    - -
    + {{> header }} {{!-- dashboard header ends --}}
    diff --git a/views/dashboard/profile.hbs b/views/dashboard/profile.hbs index 41ab49e..65e5628 100644 --- a/views/dashboard/profile.hbs +++ b/views/dashboard/profile.hbs @@ -20,22 +20,7 @@ {{!-- dashboard header starts --}} -
    - -
    + {{> header }} {{!-- dashboard header ends --}}
    diff --git a/views/partials/header.hbs b/views/partials/header.hbs new file mode 100644 index 0000000..e43e246 --- /dev/null +++ b/views/partials/header.hbs @@ -0,0 +1,16 @@ +
    + +
    \ No newline at end of file From d5faf6ba485fa68f40be24c33351c54ab984fe9e Mon Sep 17 00:00:00 2001 From: KARANDEEP SINGH <50829119+kdsinghcoder@users.noreply.github.com> Date: Sat, 27 Feb 2021 10:49:13 +0530 Subject: [PATCH 04/71] docs(readme): add status badges (#114) --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4e8a0b3..2252daa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ -# Authentico - -![Ensure Build](https://github.com/YashKumarVerma/authentico-backend/workflows/Ensure%20Build/badge.svg) +# UniAuth Backend +![GitHub issues](https://img.shields.io/github/issues/UniAuth/uniauth-backend) +![GitHub pull requests](https://img.shields.io/github/issues-pr/Uniauth/uniauth-backend) +![GitHub last commit](https://img.shields.io/github/last-commit/uniauth/uniauth-backend) +![Gitlab code coverage](https://img.shields.io/gitlab/coverage/uniauth/uniauth-backend/master) +![GitHub top language](https://img.shields.io/github/languages/top/uniauth/uniauth-backend) +![Docker Automated build](https://img.shields.io/docker/automated/UniAuth/uniauth-backend) +[![CodeFactor](https://www.codefactor.io/repository/github/uniauth/uniauth-backend/badge)](https://www.codefactor.io/repository/github/uniauth/uniauth-backend) +![Ensure Build](https://github.com/UniAuth/uniauth-backend/workflows/Ensure%20Build/badge.svg) ## Objective From 301b7e3060e7511eb544b9c0c5896b8a49424674 Mon Sep 17 00:00:00 2001 From: HARSH PANDEY <54094722+MASTERCHIEF011@users.noreply.github.com> Date: Sat, 27 Feb 2021 11:22:27 +0530 Subject: [PATCH 05/71] fix(application): error alert on creation (#125) --- views/dashboard/dev.hbs | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/views/dashboard/dev.hbs b/views/dashboard/dev.hbs index ead5778..685b20d 100644 --- a/views/dashboard/dev.hbs +++ b/views/dashboard/dev.hbs @@ -74,21 +74,21 @@ Client ID

    -

    - - - - +
    -
    + + + + +

    {{!-- client id ends --}} @@ -99,9 +99,10 @@ Client Secret

    - -
    - Edit + Edit diff --git a/views/profile/edit.hbs b/views/profile/edit.hbs index 31d1dcf..c91a172 100644 --- a/views/profile/edit.hbs +++ b/views/profile/edit.hbs @@ -33,7 +33,7 @@
    -
    +
    + + \ No newline at end of file From 9b7bbcb9b964114dfab429a8de1acb1e6920ceb3 Mon Sep 17 00:00:00 2001 From: HARSH PANDEY <54094722+MASTERCHIEF011@users.noreply.github.com> Date: Sun, 28 Feb 2021 15:08:06 +0530 Subject: [PATCH 10/71] chore(ci): integrated codecov coverage (#133) --- .github/workflows/workflow.yml | 26 ++++++++++++++++++++++++++ test/jest-e2e.json | 1 + 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..3d28865 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,26 @@ +name: Codecov coverage + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: 8 + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2.1.4 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and test + run: | + npm install + npm test + env: + CI: true + - name: Upload coverage to Codecov + run: ./bin/codecov diff --git a/test/jest-e2e.json b/test/jest-e2e.json index e9d912f..443d653 100644 --- a/test/jest-e2e.json +++ b/test/jest-e2e.json @@ -3,6 +3,7 @@ "rootDir": ".", "testEnvironment": "node", "testRegex": ".e2e-spec.ts$", + "collectCoverage":true, "transform": { "^.+\\.(t|j)s$": "ts-jest" } From 26c716b9e036d6ccab811561eb2d17270b745caa Mon Sep 17 00:00:00 2001 From: Tanay Raj Date: Sun, 28 Feb 2021 15:13:11 +0530 Subject: [PATCH 11/71] fixX(application): fix application count(#134) --- src/application/application.service.ts | 11 ++++++++++- src/dashboard/dashboard.controller.ts | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/application/application.service.ts b/src/application/application.service.ts index 27c0833..b10dbf8 100644 --- a/src/application/application.service.ts +++ b/src/application/application.service.ts @@ -11,7 +11,9 @@ import { LoggedInUser } from '../auth/interface/loggedInUser.interface'; export class ApplicationService { private readonly logger = new Logger('application'); - constructor(@InjectModel(Application.name) private applicationModel: Model) {} + constructor(@InjectModel(Application.name) private applicationModel: Model, + @InjectModel('User') private userModel: Model + ) {} async create(createApplicationDto: CreateApplicationDto, authorizedUser: LoggedInUser): Promise { try { @@ -35,7 +37,14 @@ export class ApplicationService { async delete(id: string) { try { + const AppUser = await this.applicationModel.findOne({ _id: id }).populate('participants','_id'); + AppUser.participants.forEach(async (user)=>{ + const User = await this.userModel.findById(user) + User.authorizedApplications = User.authorizedApplications.filter(_id => _id.toString() !== id) + await User.save() + }) const deleteApp = await this.applicationModel.findByIdAndDelete({ _id: id }); + } catch (e) { this.logger.error(e); throw new ConflictException(e.message); diff --git a/src/dashboard/dashboard.controller.ts b/src/dashboard/dashboard.controller.ts index a6b378c..7e32c59 100644 --- a/src/dashboard/dashboard.controller.ts +++ b/src/dashboard/dashboard.controller.ts @@ -85,6 +85,7 @@ export class DashboardController { const user = await this.applicationService.findOneById(id); if (JSON.stringify(user.admin) === JSON.stringify(loggedInUser.id)) { const action = await this.applicationService.delete(id); + } res.redirect('/dashboard/dev'); } From 5100896f39c07a8e987430bc7ac6d550e6e23ac7 Mon Sep 17 00:00:00 2001 From: HARSH PANDEY <54094722+MASTERCHIEF011@users.noreply.github.com> Date: Sun, 28 Feb 2021 23:48:10 +0530 Subject: [PATCH 12/71] fix(ui): onclick copy to clipboard function (#144) --- views/dashboard/dev.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/dashboard/dev.hbs b/views/dashboard/dev.hbs index 685b20d..45bbd1d 100644 --- a/views/dashboard/dev.hbs +++ b/views/dashboard/dev.hbs @@ -102,7 +102,7 @@ - -
    +
    +

    + Edit Profile Details +

    +
    -
    + +
    + + +
    - - - -
    - +
    + + +
    + +
    + + +
    + +
    + +
    -
    +
    -
    + + +
    + + + + + + From 928aa282758af3d436a69a801e62d7dc8fa2ae8a Mon Sep 17 00:00:00 2001 From: KARANDEEP SINGH <50829119+kdsinghcoder@users.noreply.github.com> Date: Mon, 1 Mar 2021 00:00:51 +0530 Subject: [PATCH 17/71] Fixed all linting issues (#140) Co-authored-by: Yash Kumar Verma --- src/account/account.controller.ts | 3 +- src/account/account.service.spec.ts | 4 +-- src/app.module.ts | 2 -- src/application/application.controller.ts | 1 - src/application/application.schema.ts | 3 -- src/application/application.service.spec.ts | 3 +- src/application/application.service.ts | 22 +++++++------- src/application/dto/create-application.dto.ts | 2 +- src/auth/auth.service.spec.ts | 16 ++-------- src/auth/auth.service.ts | 2 +- src/auxiliary/exceptions/mongo.exceptions.ts | 2 +- src/config/mongoose.config.ts | 2 -- src/dashboard/dashboard.controller.ts | 30 ++++++++++++++++++- src/dashboard/dashboard.service.ts | 6 ++-- src/mailer/mailer.module.ts | 2 +- src/mailer/mailer.service.spec.ts | 1 - src/mailer/mailer.service.ts | 6 ++-- src/main.ts | 1 - src/user/user.repository.ts | 4 +-- src/user/user.schema.ts | 3 -- src/user/user.service.spec.ts | 6 ++-- src/user/user.service.ts | 3 +- 22 files changed, 60 insertions(+), 64 deletions(-) diff --git a/src/account/account.controller.ts b/src/account/account.controller.ts index 37f1206..96eb53a 100644 --- a/src/account/account.controller.ts +++ b/src/account/account.controller.ts @@ -21,7 +21,6 @@ import { CreateUserDtoWithCaptcha } from '../user/dto/create-user.dto'; import { ApplicationService } from '../application/application.service'; import { AccessUserDetailsDto } from './dto/access-user-details.dto'; import { MailerService } from '../mailer/mailer.service'; -import { findConfigFile } from 'typescript'; import { RequestPasswordResetDto } from '../user/dto/request-password-reset.dto'; import { ResetPasswordDto } from '../user/dto/reset-password.dto'; import { appData } from '../../config/appData'; @@ -214,7 +213,7 @@ export class AccountController { ) { try { const isValidToken = await this.mailerService.checkPasswordResetToken(token); - const response = await this.userService.reset(resetPasswordDto, isValidToken); + await this.userService.reset(resetPasswordDto, isValidToken); const templateData = { server: { message: 'password changed successfully', diff --git a/src/account/account.service.spec.ts b/src/account/account.service.spec.ts index aff0e7c..43dd7f2 100644 --- a/src/account/account.service.spec.ts +++ b/src/account/account.service.spec.ts @@ -1,9 +1,9 @@ -import { getModelToken, MongooseModule } from '@nestjs/mongoose'; +import { getModelToken } from '@nestjs/mongoose'; import { Test, TestingModule } from '@nestjs/testing'; import { Model } from 'mongoose'; import { ApplicationService } from '../application/application.service'; import { UserService } from '../user/user.service'; -import { User, UserDocument, UserSchema } from '../user/user.schema'; +import { User, UserDocument } from '../user/user.schema'; import { AccountService } from './account.service'; import { JwtModule } from '@nestjs/jwt'; import { accessTokenJwtConstants } from './constants/access_token.constants'; diff --git a/src/app.module.ts b/src/app.module.ts index 3281c76..962774c 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -1,6 +1,4 @@ import * as config from 'config'; - -import { AccountController } from './account/account.controller'; import { AccountModule } from './account/account.module'; import { AppController } from './app.controller'; import { ApplicationModule } from './application/application.module'; diff --git a/src/application/application.controller.ts b/src/application/application.controller.ts index bcb1381..261e556 100644 --- a/src/application/application.controller.ts +++ b/src/application/application.controller.ts @@ -13,7 +13,6 @@ import { NotFoundException, Logger, } from '@nestjs/common'; -import { ApiBearerAuth, ApiTags } from '@nestjs/swagger'; import { JwtAuthGuard } from '../auth/guards/jwt.guard'; import { LoggedInUser } from '../auth/interface/loggedInUser.interface'; import { AuthorizedUser } from '../user/interface/user.interface'; diff --git a/src/application/application.schema.ts b/src/application/application.schema.ts index ef3ef16..89507cf 100644 --- a/src/application/application.schema.ts +++ b/src/application/application.schema.ts @@ -1,8 +1,5 @@ -import * as mongoose from 'mongoose'; - import { Document, Schema as MongooseSchema } from 'mongoose'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; - import { User } from '../user/user.schema'; export type ApplicationDocument = Application & Document; diff --git a/src/application/application.service.spec.ts b/src/application/application.service.spec.ts index f2dbdb4..c783d0f 100644 --- a/src/application/application.service.spec.ts +++ b/src/application/application.service.spec.ts @@ -1,11 +1,10 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { Model, model } from 'mongoose'; +import { Model } from 'mongoose'; import { User, UserDocument, UserSchema } from '../user/user.schema'; import { ApplicationService } from './application.service'; import { getModelToken, MongooseModule } from '@nestjs/mongoose'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; import * as mongooseUniquevalidator from 'mongoose-unique-validator'; -import { UserService } from '../user/user.service'; import { Application, ApplicationSchema } from './application.schema'; const mockUser = (mock?: Partial): Partial => ({ diff --git a/src/application/application.service.ts b/src/application/application.service.ts index b10dbf8..825c0ce 100644 --- a/src/application/application.service.ts +++ b/src/application/application.service.ts @@ -11,8 +11,9 @@ import { LoggedInUser } from '../auth/interface/loggedInUser.interface'; export class ApplicationService { private readonly logger = new Logger('application'); - constructor(@InjectModel(Application.name) private applicationModel: Model, - @InjectModel('User') private userModel: Model + constructor( + @InjectModel(Application.name) private applicationModel: Model, + @InjectModel('User') private userModel: Model, ) {} async create(createApplicationDto: CreateApplicationDto, authorizedUser: LoggedInUser): Promise { @@ -37,14 +38,13 @@ export class ApplicationService { async delete(id: string) { try { - const AppUser = await this.applicationModel.findOne({ _id: id }).populate('participants','_id'); - AppUser.participants.forEach(async (user)=>{ - const User = await this.userModel.findById(user) - User.authorizedApplications = User.authorizedApplications.filter(_id => _id.toString() !== id) - await User.save() - }) - const deleteApp = await this.applicationModel.findByIdAndDelete({ _id: id }); - + const AppUser = await this.applicationModel.findOne({ _id: id }).populate('participants', '_id'); + AppUser.participants.forEach(async (user) => { + const User = await this.userModel.findById(user); + User.authorizedApplications = User.authorizedApplications.filter((_id) => _id.toString() !== id); + await User.save(); + }); + await this.applicationModel.findByIdAndDelete({ _id: id }); } catch (e) { this.logger.error(e); throw new ConflictException(e.message); @@ -82,7 +82,7 @@ export class ApplicationService { async pushUserIntoApplicationParticipantList(application: Application, user: User) { try { - const result = await this.applicationModel.findOneAndUpdate( + await this.applicationModel.findOneAndUpdate( { name: application.name }, { $addToSet: { participants: user }, diff --git a/src/application/dto/create-application.dto.ts b/src/application/dto/create-application.dto.ts index fdd2d4b..23eb196 100644 --- a/src/application/dto/create-application.dto.ts +++ b/src/application/dto/create-application.dto.ts @@ -1,4 +1,4 @@ -import { IsArray, IsEmail, IsNotEmpty, MaxLength, MinLength, Validate } from 'class-validator'; +import { IsArray, IsEmail, IsNotEmpty, MaxLength, MinLength } from 'class-validator'; import { ApiProperty } from '@nestjs/swagger'; diff --git a/src/auth/auth.service.spec.ts b/src/auth/auth.service.spec.ts index 08c2fc4..2b6b79b 100644 --- a/src/auth/auth.service.spec.ts +++ b/src/auth/auth.service.spec.ts @@ -1,8 +1,5 @@ -import * as mongooseUniquevalidator from 'mongoose-unique-validator'; - -import { MongooseModule, getModelToken } from '@nestjs/mongoose'; -import { User, UserDocument, UserSchema } from '../user/user.schema'; - +import { getModelToken } from '@nestjs/mongoose'; +import { User, UserDocument } from '../user/user.schema'; import { Model } from 'mongoose'; import { Test } from '@nestjs/testing'; import { TestingModule } from '@nestjs/testing/testing-module'; @@ -10,18 +7,9 @@ import { AuthService } from './auth.service'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; import { UserService } from '../user/user.service'; import { UserModule } from '../user/user.module'; -import { PassportModule } from '@nestjs/passport'; import { JwtModule } from '@nestjs/jwt'; import { newJWTConstants } from './constants/auth.constants'; -const mockUser = (mock?: Partial): Partial => ({ - name: 'some user', - batch: '19', - branch: 'BCE', - personalEmail: 'someone@example.com', - collegeEmail: 'someoe@edu.in', -}); - /** mocking definitions */ describe('Auth Service', () => { let testingModule: TestingModule; diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index b7e6ddc..ee7d00a 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -1,5 +1,5 @@ import { JwtService } from '@nestjs/jwt'; -import { Body, Inject, Injectable, Logger, UnauthorizedException, UsePipes, ValidationPipe } from '@nestjs/common'; +import { Body, Inject, Injectable, Logger, UnauthorizedException } from '@nestjs/common'; import { newJWTConstants } from './constants/auth.constants'; import { LoginDto } from './dto/login.dto'; import { UserService } from '../user/user.service'; diff --git a/src/auxiliary/exceptions/mongo.exceptions.ts b/src/auxiliary/exceptions/mongo.exceptions.ts index 0a7a4eb..7441845 100644 --- a/src/auxiliary/exceptions/mongo.exceptions.ts +++ b/src/auxiliary/exceptions/mongo.exceptions.ts @@ -1,4 +1,4 @@ -import { BadGatewayException, BadRequestException, Catch, ConflictException, ExceptionFilter } from '@nestjs/common'; +import { BadRequestException, Catch, ExceptionFilter } from '@nestjs/common'; import { Error } from 'mongoose'; diff --git a/src/config/mongoose.config.ts b/src/config/mongoose.config.ts index 9bbfa59..44cc054 100644 --- a/src/config/mongoose.config.ts +++ b/src/config/mongoose.config.ts @@ -1,7 +1,5 @@ import {} from '@nestjs/mongoose'; -import * as config from 'config'; - /** * initialize database connection based on config file(s) */ diff --git a/src/dashboard/dashboard.controller.ts b/src/dashboard/dashboard.controller.ts index d6bfd1d..0f70558 100644 --- a/src/dashboard/dashboard.controller.ts +++ b/src/dashboard/dashboard.controller.ts @@ -5,6 +5,7 @@ import { UserService } from '../user/user.service'; import { LoggedInUser } from '../auth/interface/loggedInUser.interface'; import { SCOPE } from '../account/minions/scopeMapper.minion'; import { ApplicationService } from '../application/application.service'; +import { UpdateUserDto } from '../user/dto/update-user.dto'; import { appData } from '../../config/appData'; @Controller('dashboard') @@ -85,8 +86,35 @@ export class DashboardController { const loggedInUser: LoggedInUser = req.user; const user = await this.applicationService.findOneById(id); if (JSON.stringify(user.admin) === JSON.stringify(loggedInUser.id)) { - const action = await this.applicationService.delete(id); + await this.applicationService.delete(id); } res.redirect('/dashboard/dev'); } + + @Get('/:id/edit') + @UseGuards(JwtAuthGuard) + async showEditForm(@Res() res: Response, @Param('id') id: string) { + const user = await this.userService.findOneById(id); + return res.render('profile/edit.hbs', { user }); + } + + @Post('/:id/edit') + @UseGuards(JwtAuthGuard) + async PostEditForm(@Res() res: Response, @Param('id') id: string, @Body() updateUserDto: UpdateUserDto) { + await this.userService.update(id, updateUserDto); + return res.redirect('/dashboard/'); + } + + @Get('/dev/details/:id') + @UseGuards(JwtAuthGuard) + async showUserList(@Request() req, @Res() res: Response, @Param('id') id: string) { + try { + const userDetails = await this.applicationService.findUsersGrantedAccess(id); + res.render('dashboard/details.hbs', { + userDetails: userDetails.participants, + }); + } catch (e) { + res.render('error.hbs'); + } + } } diff --git a/src/dashboard/dashboard.service.ts b/src/dashboard/dashboard.service.ts index ffde30d..295011f 100644 --- a/src/dashboard/dashboard.service.ts +++ b/src/dashboard/dashboard.service.ts @@ -1,10 +1,8 @@ import { Injectable } from '@nestjs/common'; -import { CreateDashboardDto } from './dto/create-dashboard.dto'; -import { UpdateDashboardDto } from './dto/update-dashboard.dto'; @Injectable() export class DashboardService { - create(createDashboardDto: CreateDashboardDto) { + create() { return 'This action adds a new dashboard'; } @@ -16,7 +14,7 @@ export class DashboardService { return `This action returns a #${id} dashboard`; } - update(id: number, updateDashboardDto: UpdateDashboardDto) { + update(id: number) { return `This action updates a #${id} dashboard`; } diff --git a/src/mailer/mailer.module.ts b/src/mailer/mailer.module.ts index 3241885..9bed929 100644 --- a/src/mailer/mailer.module.ts +++ b/src/mailer/mailer.module.ts @@ -1,4 +1,4 @@ -import { JwtModule, JwtService } from '@nestjs/jwt'; +import { JwtModule } from '@nestjs/jwt'; import { User, UserSchema } from '../user/user.schema'; import { MailerController } from './mailer.controller'; diff --git a/src/mailer/mailer.service.spec.ts b/src/mailer/mailer.service.spec.ts index 2f1fb3f..fc19911 100644 --- a/src/mailer/mailer.service.spec.ts +++ b/src/mailer/mailer.service.spec.ts @@ -6,7 +6,6 @@ import { User, UserDocument, UserSchema } from '../user/user.schema'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; import { confirmEmailTokenConstants } from './constants/confirmEmailToken.constants'; import { MailerService } from './mailer.service'; -import * as config from 'config'; import { UserService } from '../user/user.service'; const mockUser = (mock?: Partial): Partial => ({ diff --git a/src/mailer/mailer.service.ts b/src/mailer/mailer.service.ts index c0ffe99..cb53a86 100644 --- a/src/mailer/mailer.service.ts +++ b/src/mailer/mailer.service.ts @@ -2,7 +2,7 @@ import { Inject, Injectable, Logger, UnauthorizedException } from '@nestjs/commo import * as config from 'config'; import * as nodemailer from 'nodemailer'; import { JwtService } from '@nestjs/jwt'; -import { Model, ObjectId } from 'mongoose'; +import { Model } from 'mongoose'; import { confirmEmailTokenConstants } from './constants/confirmEmailToken.constants'; import { InjectModel } from '@nestjs/mongoose'; import { User, UserDocument } from '../user/user.schema'; @@ -68,7 +68,7 @@ export class MailerService { const token = await this.generateJwt({ email }); const link = `http://localhost:5000/account/register/verify/${token}`; - const mailDetails = await transporter.sendMail({ + await transporter.sendMail({ from: 'ultimateraze011@gmail.com', // sender address to: email, // list of receivers subject: 'Hello ✔', // Subject line @@ -91,7 +91,7 @@ export class MailerService { const token = await this.generateJwt({ email }); const link = `http://localhost:5000/account/password/reset/${token}`; - const mailDetails = await transporter.sendMail({ + await transporter.sendMail({ from: 'ultimateraze011@gmail.com', // sender address to: email, // list of receivers subject: 'Hello ✔', // Subject line diff --git a/src/main.ts b/src/main.ts index eeeb325..0524a1f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,5 @@ import * as config from 'config'; import * as cookieParser from 'cookie-parser'; -import * as helmet from 'helmet'; import * as rateLimit from 'express-rate-limit'; import * as hbs from 'hbs'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; diff --git a/src/user/user.repository.ts b/src/user/user.repository.ts index 8663aa7..2447a4d 100644 --- a/src/user/user.repository.ts +++ b/src/user/user.repository.ts @@ -1,8 +1,6 @@ -import { Injectable, UseFilters } from '@nestjs/common'; +import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; -import { MongoExceptionFilter } from '../auxiliary/exceptions/mongo.exceptions'; -import { CreateUserDto } from './dto/create-user.dto'; import { User, UserDocument } from './user.schema'; /** diff --git a/src/user/user.schema.ts b/src/user/user.schema.ts index 64bde4f..1b9b63a 100644 --- a/src/user/user.schema.ts +++ b/src/user/user.schema.ts @@ -1,7 +1,4 @@ // import * as mongoose from 'mongoose'; - -import * as mongoose from 'mongoose'; - import { Document, Schema as MongooseSchema } from 'mongoose'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; diff --git a/src/user/user.service.spec.ts b/src/user/user.service.spec.ts index b7f36d7..3a27e96 100644 --- a/src/user/user.service.spec.ts +++ b/src/user/user.service.spec.ts @@ -10,7 +10,7 @@ import { UserService } from './user.service'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; const mockUser = (mock?: Partial): Partial => ({ - name:'some user', + name: 'some user', batch: '19', branch: 'BCE', personalEmail: 'someone@example.com', @@ -61,14 +61,14 @@ describe('User Service', () => { }).compile(); service = testingModule.get(UserService); - model = testingModule.get>(getModelToken(User.name)); + testingModule.get>(getModelToken(User.name)); }); afterEach(() => { jest.clearAllMocks(); }); - it('should be defined', async() => { + it('should be defined', async () => { await expect(service).toBeDefined(); }); diff --git a/src/user/user.service.ts b/src/user/user.service.ts index ee24bcd..4ea00a2 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -89,7 +89,7 @@ export class UserService { async pushApplicationIntoUserParticipantList(application: Application, user: User) { try { - const result = await this.userModel.findOneAndUpdate( + await this.userModel.findOneAndUpdate( { registrationNumber: user.registrationNumber }, { $addToSet: { authorizedApplications: application }, @@ -109,7 +109,6 @@ export class UserService { return this.userModel.findOne({ _id: userId }); } - async update(id: string, updateUserDto: UpdateUserDto) { const { name, collegeEmail, registrationNumber } = updateUserDto; const regNumber = new RegistrationNumberWorker(registrationNumber); From ea448841fcedb196e616884a79b137a9e2ec4e35 Mon Sep 17 00:00:00 2001 From: KARANDEEP SINGH <50829119+kdsinghcoder@users.noreply.github.com> Date: Mon, 1 Mar 2021 00:01:54 +0530 Subject: [PATCH 18/71] compose file added (#75) --- docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9c9ca8e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.0' +services: + uniauth: + build: . + image: uniauth:1 + ports: + - '80:80' + environment: + - database = "mongodb://127.0.0.1:27017/authentico" From a510219abadb7baf3db7c647cf5408f6c8ada422 Mon Sep 17 00:00:00 2001 From: HARSH PANDEY <54094722+MASTERCHIEF011@users.noreply.github.com> Date: Mon, 1 Mar 2021 08:06:05 +0530 Subject: [PATCH 19/71] tests(user): eliminate outdated test (#148) --- src/dashboard/dashboard.controller.ts | 2 +- src/user/user.controller.spec.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dashboard/dashboard.controller.ts b/src/dashboard/dashboard.controller.ts index 0f70558..c48b0c6 100644 --- a/src/dashboard/dashboard.controller.ts +++ b/src/dashboard/dashboard.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get, Logger, Res, UseGuards, Request, Inject, Delete, Param, Post } from '@nestjs/common'; +import { Controller, Get, Logger, Res, UseGuards, Request, Inject, Delete, Param, Post, Body } from '@nestjs/common'; import { Response } from 'express'; import { JwtAuthGuard } from '../auth/guards/jwt.guard'; import { UserService } from '../user/user.service'; diff --git a/src/user/user.controller.spec.ts b/src/user/user.controller.spec.ts index 08d6d79..a5890fb 100644 --- a/src/user/user.controller.spec.ts +++ b/src/user/user.controller.spec.ts @@ -46,12 +46,6 @@ describe('UserController', () => { }); }); - describe('.findAll()', () => { - it('should be defined', () => { - expect(controller.findAll).toBeDefined(); - }); - }); - describe('.findOne()', () => { it('should be defined', () => { expect(controller.findOne).toBeDefined(); From 0676142bb76972495bc7a142368ebecf0deda808 Mon Sep 17 00:00:00 2001 From: Yash Kumar Verma Date: Sun, 7 Mar 2021 13:10:40 +0530 Subject: [PATCH 20/71] chore(npm): update lockfile --- yarn.lock | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 5d516ea..48517a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2401,7 +2401,7 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -concat-stream@^1.5.2, concat-stream@~1.6.0: +concat-stream@^1.4.7, concat-stream@^1.5.2, concat-stream@~1.6.0: version "1.6.2" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== @@ -2529,6 +2529,15 @@ cosmiconfig@^6.0.0: path-type "^4.0.0" yaml "^1.7.2" +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -5449,6 +5458,14 @@ loglevel@^1.6.4: resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.7.1.tgz#005fde2f5e6e47068f935ff28573e125ef72f197" integrity sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw== +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -6243,6 +6260,11 @@ os-name@^3.1.0: macos-release "^2.2.0" windows-release "^3.1.0" +os-shim@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" + integrity sha1-a2LDeRz3kJ6jXtRuF2WLtBfLORc= + os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -6639,6 +6661,15 @@ postgres-interval@^1.1.0: dependencies: xtend "^4.0.0" +pre-commit@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/pre-commit/-/pre-commit-1.2.2.tgz#dbcee0ee9de7235e57f79c56d7ce94641a69eec6" + integrity sha1-287g7p3nI15X95xW186UZBpp7sY= + dependencies: + cross-spawn "^5.0.1" + spawn-sync "^1.0.15" + which "1.2.x" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -6710,6 +6741,11 @@ prr@~1.0.1: resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= + psl@^1.1.28: version "1.8.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" @@ -7482,6 +7518,14 @@ sparse-bitfield@^3.0.3: dependencies: memory-pager "^1.0.2" +spawn-sync@^1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" + integrity sha1-sAeZVX63+wyDdsKdROih6mfldHY= + dependencies: + concat-stream "^1.4.7" + os-shim "^0.1.2" + spdx-correct@^3.0.0: version "3.1.1" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" @@ -8562,6 +8606,13 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= +which@1.2.x: + version "1.2.14" + resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" + integrity sha1-mofEN48D6CfOyvGs31bHNsAcFOU= + dependencies: + isexe "^2.0.0" + which@^1.2.9: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" @@ -8670,6 +8721,11 @@ y18n@^4.0.0: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= + yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" From 6c47c0ace7d4767d9a9269793dc19578680f2113 Mon Sep 17 00:00:00 2001 From: Yash Kumar Verma Date: Sun, 7 Mar 2021 13:33:08 +0530 Subject: [PATCH 21/71] chore(eslint): fix eslint warnings --- src/account/account.service.spec.ts | 12 ++++-------- src/application/application.service.spec.ts | 13 ++++++------- src/auth/auth.service.spec.ts | 14 +++++--------- src/dashboard/dashboard.controller.spec.ts | 21 ++++++++++----------- src/dashboard/dashboard.controller.ts | 2 +- src/dashboard/dashboard.service.spec.ts | 1 - src/mailer/mailer.service.spec.ts | 16 ++++++++-------- src/user/user.service.spec.ts | 4 ++-- 8 files changed, 36 insertions(+), 47 deletions(-) diff --git a/src/account/account.service.spec.ts b/src/account/account.service.spec.ts index 43dd7f2..96ace97 100644 --- a/src/account/account.service.spec.ts +++ b/src/account/account.service.spec.ts @@ -1,19 +1,16 @@ -import { getModelToken } from '@nestjs/mongoose'; import { Test, TestingModule } from '@nestjs/testing'; -import { Model } from 'mongoose'; -import { ApplicationService } from '../application/application.service'; -import { UserService } from '../user/user.service'; -import { User, UserDocument } from '../user/user.schema'; + +import { AccountModule } from './account.module'; import { AccountService } from './account.service'; +import { ApplicationService } from '../application/application.service'; import { JwtModule } from '@nestjs/jwt'; +import { UserService } from '../user/user.service'; import { accessTokenJwtConstants } from './constants/access_token.constants'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; -import { AccountModule } from './account.module'; describe('AccountService', () => { let testingModule: TestingModule; let service: AccountService; - let model: Model; beforeEach(async () => { testingModule = await Test.createTestingModule({ @@ -51,7 +48,6 @@ describe('AccountService', () => { }).compile(); service = testingModule.get(AccountService); - model = testingModule.get>(getModelToken(User.name)); }); it('should be defined', () => { diff --git a/src/application/application.service.spec.ts b/src/application/application.service.spec.ts index c783d0f..b6349a8 100644 --- a/src/application/application.service.spec.ts +++ b/src/application/application.service.spec.ts @@ -1,13 +1,14 @@ +import * as mongooseUniquevalidator from 'mongoose-unique-validator'; + +import { Application, ApplicationSchema } from './application.schema'; +import { MongooseModule, getModelToken } from '@nestjs/mongoose'; import { Test, TestingModule } from '@nestjs/testing'; -import { Model } from 'mongoose'; import { User, UserDocument, UserSchema } from '../user/user.schema'; + import { ApplicationService } from './application.service'; -import { getModelToken, MongooseModule } from '@nestjs/mongoose'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; -import * as mongooseUniquevalidator from 'mongoose-unique-validator'; -import { Application, ApplicationSchema } from './application.schema'; -const mockUser = (mock?: Partial): Partial => ({ +const mockUser = (): Partial => ({ name: 'some user', batch: '19', branch: 'BCE', @@ -18,7 +19,6 @@ const mockUser = (mock?: Partial): Partial => ({ describe('ApplicationService', () => { let testingModule: TestingModule; let service: ApplicationService; - let model: Model; beforeEach(async () => { testingModule = await Test.createTestingModule({ @@ -58,7 +58,6 @@ describe('ApplicationService', () => { }).compile(); service = testingModule.get(ApplicationService); - model = testingModule.get>(getModelToken(User.name)); }); afterEach(() => { diff --git a/src/auth/auth.service.spec.ts b/src/auth/auth.service.spec.ts index 2b6b79b..9c36ad0 100644 --- a/src/auth/auth.service.spec.ts +++ b/src/auth/auth.service.spec.ts @@ -1,20 +1,16 @@ -import { getModelToken } from '@nestjs/mongoose'; -import { User, UserDocument } from '../user/user.schema'; -import { Model } from 'mongoose'; +import { AuthService } from './auth.service'; +import { JwtModule } from '@nestjs/jwt'; import { Test } from '@nestjs/testing'; import { TestingModule } from '@nestjs/testing/testing-module'; -import { AuthService } from './auth.service'; -import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; -import { UserService } from '../user/user.service'; import { UserModule } from '../user/user.module'; -import { JwtModule } from '@nestjs/jwt'; +import { UserService } from '../user/user.service'; import { newJWTConstants } from './constants/auth.constants'; +import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; /** mocking definitions */ describe('Auth Service', () => { let testingModule: TestingModule; let service: AuthService; - let model: Model; beforeEach(async () => { testingModule = await Test.createTestingModule({ @@ -38,7 +34,7 @@ describe('Auth Service', () => { }).compile(); service = testingModule.get(AuthService); - model = testingModule.get>(getModelToken(User.name)); + // model = testingModule.get>(getModelToken(User.name)); }); afterEach(() => { diff --git a/src/dashboard/dashboard.controller.spec.ts b/src/dashboard/dashboard.controller.spec.ts index 333ccf4..6ccd9d6 100644 --- a/src/dashboard/dashboard.controller.spec.ts +++ b/src/dashboard/dashboard.controller.spec.ts @@ -1,7 +1,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { DashboardController } from './dashboard.controller'; import { UserService } from '../user/user.service'; -import {ApplicationService} from '../application/application.service' +import { ApplicationService } from '../application/application.service'; describe('DashboardController', () => { let controller: DashboardController; @@ -22,7 +22,7 @@ describe('DashboardController', () => { remove: jest.fn(() => true), }), }, - { + { provide: ApplicationService, useFactory: () => ({ create: jest.fn(() => true), @@ -32,8 +32,8 @@ describe('DashboardController', () => { findAllByParticipant: jest.fn(() => true), pushUserIntoApplicationParticipantList: jest.fn(() => true), findOneByIdAndSecret: jest.fn(() => true), - }) - } + }), + }, ], }).compile(); @@ -49,20 +49,19 @@ describe('DashboardController', () => { expect(controller.showDashboard).toBeDefined(); }); }); - describe('.showProfile()',() => { - it('should be defined',() => { + describe('.showProfile()', () => { + it('should be defined', () => { expect(controller.showProfile).toBeDefined(); }); }); - describe('.showData()',() => { - it('should be defined',() => { + describe('.showData()', () => { + it('should be defined', () => { expect(controller.showData).toBeDefined(); }); }); - describe('.showDev()',() => { - it('should be defined',() => { + describe('.showDev()', () => { + it('should be defined', () => { expect(controller.showDev).toBeDefined(); }); }); - }); diff --git a/src/dashboard/dashboard.controller.ts b/src/dashboard/dashboard.controller.ts index c48b0c6..74a5fc7 100644 --- a/src/dashboard/dashboard.controller.ts +++ b/src/dashboard/dashboard.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get, Logger, Res, UseGuards, Request, Inject, Delete, Param, Post, Body } from '@nestjs/common'; +import { Controller, Get, Logger, Res, UseGuards, Request, Inject, Param, Post, Body } from '@nestjs/common'; import { Response } from 'express'; import { JwtAuthGuard } from '../auth/guards/jwt.guard'; import { UserService } from '../user/user.service'; diff --git a/src/dashboard/dashboard.service.spec.ts b/src/dashboard/dashboard.service.spec.ts index b5147ae..5b444eb 100644 --- a/src/dashboard/dashboard.service.spec.ts +++ b/src/dashboard/dashboard.service.spec.ts @@ -41,5 +41,4 @@ describe('DashboardService', () => { expect(service.remove).toBeDefined(); }); }); - }); diff --git a/src/mailer/mailer.service.spec.ts b/src/mailer/mailer.service.spec.ts index fc19911..8d871f7 100644 --- a/src/mailer/mailer.service.spec.ts +++ b/src/mailer/mailer.service.spec.ts @@ -1,14 +1,14 @@ -import { JwtModule } from '@nestjs/jwt'; -import { getModelToken, MongooseModule } from '@nestjs/mongoose'; +import { MongooseModule, getModelToken } from '@nestjs/mongoose'; import { Test, TestingModule } from '@nestjs/testing'; -import { Model } from 'mongoose'; import { User, UserDocument, UserSchema } from '../user/user.schema'; -import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; -import { confirmEmailTokenConstants } from './constants/confirmEmailToken.constants'; + +import { JwtModule } from '@nestjs/jwt'; import { MailerService } from './mailer.service'; import { UserService } from '../user/user.service'; +import { confirmEmailTokenConstants } from './constants/confirmEmailToken.constants'; +import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; -const mockUser = (mock?: Partial): Partial => ({ +const mockUser = (): Partial => ({ name: 'some user', batch: '19', branch: 'BCE', @@ -19,7 +19,7 @@ const mockUser = (mock?: Partial): Partial => ({ describe('MailerService', () => { let testingModule: TestingModule; let service: MailerService; - let model: Model; + // let model: Model; beforeEach(async () => { testingModule = await Test.createTestingModule({ @@ -44,7 +44,7 @@ describe('MailerService', () => { }).compile(); service = testingModule.get(MailerService); - model = testingModule.get>(getModelToken(User.name)); + // model = testingModule.get>(getModelToken(User.name)); }); it('should be defined', () => { diff --git a/src/user/user.service.spec.ts b/src/user/user.service.spec.ts index 3a27e96..6b825c5 100644 --- a/src/user/user.service.spec.ts +++ b/src/user/user.service.spec.ts @@ -9,7 +9,7 @@ import { TestingModule } from '@nestjs/testing/testing-module'; import { UserService } from './user.service'; import { rootMongooseTestModule } from '../../test-utils/MongooseTestModule'; -const mockUser = (mock?: Partial): Partial => ({ +const mockUser = (): Partial => ({ name: 'some user', batch: '19', branch: 'BCE', @@ -29,7 +29,7 @@ const mockUser = (mock?: Partial): Partial => ({ describe('User Service', () => { let testingModule: TestingModule; let service: UserService; - let model: Model; + // let model: Model; beforeEach(async () => { testingModule = await Test.createTestingModule({ From b86689a8cd3773ee0526fccfc8ec34b13ea6a342 Mon Sep 17 00:00:00 2001 From: Priyanshu Sharma <59313375+priyanshu20@users.noreply.github.com> Date: Sat, 13 Mar 2021 14:56:42 +0530 Subject: [PATCH 22/71] chore(ci): remove lables workflow (#151) fixes #149 --- .github/workflows/labels.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml deleted file mode 100644 index 654dbdc..0000000 --- a/.github/workflows/labels.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: 'Label Actions' -on: - pull_request: - types: labeled - -jobs: - add-score: - runs-on: ubuntu-latest - if: startsWith(github.event.label.name, 'user') - steps: - - run: | - echo ${{ github.event.label.name }} - SCORE=${{ github.event.label.name }} - echo $SCORE - curl --data "score=$SCORE" --request POST https://woc-backend.gigalixirapp.com/updateLeaderBoard/ From 9815a0585d0848a87a6b8dbb833ea9241f28b614 Mon Sep 17 00:00:00 2001 From: Aryaman Grover <56519273+Aryaman1706@users.noreply.github.com> Date: Tue, 16 Mar 2021 22:55:47 +0530 Subject: [PATCH 23/71] chore(docker): add ignore file, minor fixes (#150) --- .dockerignore | 3 +++ Dockerfile | 13 ++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..753e7f8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +package-lock.json +yarn.lock +node_modules/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index bb865a1..2f1d5ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM node:15.3.0-alpine3.10 +FROM node:lts-alpine3.10 -# Labls +# Labels LABEL maintainer="Yash Kumar Verma yk.verma2000@gmail.com" # Document environment configurations @@ -11,20 +11,19 @@ ENV database ='mongodb://127.0.0.1:27017/authentico' WORKDIR /app # Only copy the package.json file to work directory -COPY package.json /app - +COPY package.json . # Install all Packages RUN npm install # Copy all other source code to work directory -ADD . /app +COPY . . # Build the project RUN npm run build -RUN docker compose up +# RUN docker compose up # run the server -CMD ["npm", "start:dev"] +CMD ["npm", "run", "start:dev"] EXPOSE 80 From 283d186b814d23bfe1c066329587191bc48eed25 Mon Sep 17 00:00:00 2001 From: Yash Kumar Verma Date: Thu, 18 Mar 2021 12:50:50 +0530 Subject: [PATCH 24/71] chore(config): add welcome bot --- .github/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/config.yml diff --git a/.github/config.yml b/.github/config.yml new file mode 100644 index 0000000..a850536 --- /dev/null +++ b/.github/config.yml @@ -0,0 +1,13 @@ +# Comment to be posted to on first time issues +newIssueWelcomeComment: > + Thank you for opening an issue. Make sure that you star the project as it encourages our contributors to work hard :) + +# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome + +# Comment to be posted to on PRs from first time contributors in your repository +newPRWelcomeComment: > + Thanks for opening this pull request! Please check out our contributing guidelines and support our work by starring us :star: + +# Comment to be posted to on pull requests merged by a first time user +firstPRMergeComment: > + Congrats on merging your first pull request! Thanks a lot! Did you star the repo yet? From d77e794abf646c654ece79da974e262cad10aa69 Mon Sep 17 00:00:00 2001 From: Aniket Biswas <51146347+aniketbiswas21@users.noreply.github.com> Date: Thu, 18 Mar 2021 16:02:02 +0530 Subject: [PATCH 25/71] fix(app): fixed findAllByParticipants method (#171) --- src/application/application.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/application/application.service.ts b/src/application/application.service.ts index 825c0ce..fe96525 100644 --- a/src/application/application.service.ts +++ b/src/application/application.service.ts @@ -76,7 +76,9 @@ export class ApplicationService { } async findAllByParticipant(user: User): Promise> { - const item = await this.applicationModel.find({ participants: user }); + const item = await this.applicationModel.find({ + participants: { $in: [user] }, + }); return item; } From b9c2ac78775c4e03f18704ec7186b9020cfdfeb6 Mon Sep 17 00:00:00 2001 From: Saumya008 Date: Sun, 21 Mar 2021 10:39:08 +0530 Subject: [PATCH 26/71] feat(ui): add card for user profile (#174) --- views/dashboard/profile.hbs | 63 ++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 18 deletions(-) diff --git a/views/dashboard/profile.hbs b/views/dashboard/profile.hbs index d39fce5..c98f8d3 100644 --- a/views/dashboard/profile.hbs +++ b/views/dashboard/profile.hbs @@ -8,32 +8,59 @@ - {{!-- dashboard header starts --}} {{> header }} {{!-- dashboard header ends --}} +
    +
    +
    +

    {{user.name}} +

    +

    +
    + + + + +  {{user.collegeEmail}}
    +
    -
    - Name : {{user.name}}
    - College Email : {{user.collegeEmail}}
    - Branch : {{user.branch}}
    - Batch : {{user.batch}}
    - Registration Number : {{user.registrationNumber}}
    +
    + + + +   {{user.branch}}
    +
    +
    + + + +  {{user.batch}}
    +
    +
    + + + +  {{user.registrationNumber}}
    +
    -
    +
    - Edit + +
    +
    - \ No newline at end of file + From 4f81214bacd089ef64e50aeba9d59673a4226cf3 Mon Sep 17 00:00:00 2001 From: Saumya008 Date: Sun, 21 Mar 2021 19:09:58 +0530 Subject: [PATCH 27/71] fix(ui): delete button in application card (#176) --- views/dashboard/dev.hbs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/views/dashboard/dev.hbs b/views/dashboard/dev.hbs index 846c179..ba76e49 100644 --- a/views/dashboard/dev.hbs +++ b/views/dashboard/dev.hbs @@ -58,16 +58,18 @@ {{!-- first application card start --}}
    -

    {{name}} + +

    + {{name}}
    - +

    {{description}} @@ -316,4 +318,4 @@ - \ No newline at end of file + From 325b2ba324ca7f37cb55839fc0e48b907b3287d9 Mon Sep 17 00:00:00 2001 From: jnatishay78 Date: Sun, 21 Mar 2021 23:49:00 +0530 Subject: [PATCH 28/71] feat(ui): add navbar logo to edit profile page (#177) - add the UniAuth logo to edit page navbar - takes user to homepage of dashboard --- views/profile/edit.hbs | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/views/profile/edit.hbs b/views/profile/edit.hbs index c3b9ec0..d45b01d 100644 --- a/views/profile/edit.hbs +++ b/views/profile/edit.hbs @@ -13,19 +13,18 @@ {{!-- dashboard header starts --}}

    @@ -88,4 +87,4 @@ - \ No newline at end of file + From e174d834c55b1ff663888c07f361479d193b04fc Mon Sep 17 00:00:00 2001 From: Aniket Biswas <51146347+aniketbiswas21@users.noreply.github.com> Date: Mon, 22 Mar 2021 19:39:12 +0530 Subject: [PATCH 29/71] fix(app): fixed minimum description condition (#179) --- src/application/dto/create-application.dto.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/application/dto/create-application.dto.ts b/src/application/dto/create-application.dto.ts index 23eb196..a584ffb 100644 --- a/src/application/dto/create-application.dto.ts +++ b/src/application/dto/create-application.dto.ts @@ -19,7 +19,6 @@ export class CreateApplicationDto { name: string; @IsNotEmpty() - @MinLength(15) @MaxLength(100) description: string; From 2662ec4304b312e4ebb2649d2a1046eb3baee676 Mon Sep 17 00:00:00 2001 From: jnatishay78 Date: Tue, 23 Mar 2021 08:27:28 +0530 Subject: [PATCH 30/71] fet(ui): redesign center card of profile edit page #163 (#178) --- views/profile/edit.hbs | 97 +++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 53 deletions(-) diff --git a/views/profile/edit.hbs b/views/profile/edit.hbs index d45b01d..e046892 100644 --- a/views/profile/edit.hbs +++ b/views/profile/edit.hbs @@ -27,62 +27,53 @@
    -
    -
    -

    - Edit Profile Details -

    -
    - -
    -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    - -
    - - - - -
    +
    +

    Edit Profile Details +


    +
    +
    +
    + + +
    + +
    + + +
    + +
    + + + +

    +
    + +
    +
    +
    - - +
    From c42fbe7227370389b1e3b932c36e8a4f1711ed3b Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:31:13 +0530 Subject: [PATCH 31/71] chore(deps): bump @nestjs/swagger from 4.7.5 to 4.8.0 (#180) Bumps [@nestjs/swagger](https://github.com/nestjs/swagger) from 4.7.5 to 4.8.0. - [Release notes](https://github.com/nestjs/swagger/releases) - [Changelog](https://github.com/nestjs/swagger/blob/master/.release-it.json) - [Commits](https://github.com/nestjs/swagger/compare/4.7.5...4.8.0) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 3dde0e7..9a427f0 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@nestjs/mongoose": "^7.2.1", "@nestjs/passport": "^7.1.5", "@nestjs/platform-express": "^7.0.0", - "@nestjs/swagger": "^4.7.5", + "@nestjs/swagger": "^4.8.0", "@vitspot/vit-registration-number": "^1.0.1", "class-transformer": "^0.3.1", "class-validator": "^0.12.2", diff --git a/yarn.lock b/yarn.lock index 48517a6..8683df9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -672,10 +672,10 @@ "@types/jsonwebtoken" "8.5.0" jsonwebtoken "8.5.1" -"@nestjs/mapped-types@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nestjs/mapped-types/-/mapped-types-0.1.1.tgz#2fa9ff0f1ddbe66d5d1c80ae59df21c0ed0d1361" - integrity sha512-FROYmmZ2F+tLJP/aHasPMX40iUHQPtEAzOAcfAp21baebN5iLUrdyTuphoXjIqubfPFSwtnAGpVm9kLJjQ//ig== +"@nestjs/mapped-types@0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@nestjs/mapped-types/-/mapped-types-0.4.0.tgz#352b9a661d6d36863cf48b2057616cef1b2c802d" + integrity sha512-TVtd/aTb7EqPhVczdeuvzF9dY0fyE3ivvCstc2eO+AkNqrfzSG1kXYYiUUznKjd0qDa8g2TmPSmHUQ21AXsV1Q== "@nestjs/mongoose@^7.2.1": version "7.2.1" @@ -708,13 +708,13 @@ fs-extra "9.0.1" pluralize "8.0.0" -"@nestjs/swagger@^4.7.5": - version "4.7.5" - resolved "https://registry.yarnpkg.com/@nestjs/swagger/-/swagger-4.7.5.tgz#3f1ef36a81921decbbc384e46be2c515c63ce438" - integrity sha512-Qoj7lnvWoCIdJL50b85fdc+v2X9OY8HXaN9ngbBxAAfqLch0YfHgGdU95oBAtV6GYKbAGBqMCsmogr1TzWENwQ== +"@nestjs/swagger@^4.8.0": + version "4.8.0" + resolved "https://registry.yarnpkg.com/@nestjs/swagger/-/swagger-4.8.0.tgz#7ebfeb0d59e0c27ff40beb429d7311b752c0dca4" + integrity sha512-YU+ahCOoOTZwSHrODHBiQDCqi7GWEjmSFg3Tot/lwVuQ321/3fIOz/lf+ehVQ5DFr7nVMhB7BRWFJLtE/+NhqQ== dependencies: - "@nestjs/mapped-types" "0.1.1" - lodash "4.17.20" + "@nestjs/mapped-types" "0.4.0" + lodash "4.17.21" path-to-regexp "3.2.0" "@nestjs/testing@^7.6.1": @@ -5436,10 +5436,10 @@ lodash.toarray@^4.4.0: resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561" integrity sha1-JMS/zWsvuji/0FlNsRedjptlZWE= -lodash@4.17.20, lodash@^4.15.0, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== +lodash@4.17.21, lodash@^4.15.0, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-symbols@^4.0.0: version "4.0.0" From 5db9d22d85de85ae4532b634280013d9b32bd71a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:31:57 +0530 Subject: [PATCH 32/71] chore(deps-dev): bump @typescript-eslint/eslint-plugin from 3.9.1 to 4.0.0 (#181) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.9.1 to 4.0.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.0.0/packages/eslint-plugin) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 158 +++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 153 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 9a427f0..8238288 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@types/passport-google-oauth20": "^2.0.4", "@types/passport-jwt": "^3.0.3", "@types/supertest": "^2.0.8", - "@typescript-eslint/eslint-plugin": "3.9.1", + "@typescript-eslint/eslint-plugin": "4.0.0", "@typescript-eslint/parser": "3.9.1", "bcrypt": "^5.0.0", "eslint": "7.7.0", diff --git a/yarn.lock b/yarn.lock index 8683df9..eaa5c2a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -725,11 +725,32 @@ optional "0.1.4" tslib "2.0.3" +"@nodelib/fs.scandir@2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" + integrity sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA== + dependencies: + "@nodelib/fs.stat" "2.0.4" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.4", "@nodelib/fs.stat@^2.0.2": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz#a3f2dd61bab43b8db8fa108a121cfffe4c676655" + integrity sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q== + "@nodelib/fs.stat@^1.1.2": version "1.1.3" resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== +"@nodelib/fs.walk@^1.2.3": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz#cce9396b30aa5afe9e3756608f5831adcb53d063" + integrity sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow== + dependencies: + "@nodelib/fs.scandir" "2.1.4" + fastq "^1.6.0" + "@nuxtjs/opencollective@0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz#620ce1044f7ac77185e825e1936115bb38e2681c" @@ -1142,12 +1163,13 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.9.1.tgz#8cf27b6227d12d66dd8dc1f1a4b04d1daad51c2e" - integrity sha512-XIr+Mfv7i4paEdBf0JFdIl9/tVxyj+rlilWIfZ97Be0lZ7hPvUbS5iHt9Glc8kRI53dsr0PcAEudbf8rO2wGgg== +"@typescript-eslint/eslint-plugin@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.0.0.tgz#99349a501447fed91de18346705c0c65cf603bee" + integrity sha512-5e6q1TR7gS2P+8W2xndCu7gBh3BzmYEo70OyIdsmCmknHha/yNbz2vdevl+tP1uoaMOcrzg4gyrAijuV3DDBHA== dependencies: - "@typescript-eslint/experimental-utils" "3.9.1" + "@typescript-eslint/experimental-utils" "4.0.0" + "@typescript-eslint/scope-manager" "4.0.0" debug "^4.1.1" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" @@ -1165,6 +1187,18 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" +"@typescript-eslint/experimental-utils@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.0.0.tgz#fbec21a3b5ab59127edb6ce2e139ed378cc50eb5" + integrity sha512-hbX6zR+a/vcpFVNJYN/Nbd7gmaMosDTxHEKcvmhWeWcq/0UDifrqmCfkkodbAKL46Fn4ekSBMTyq2zlNDzcQxw== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/scope-manager" "4.0.0" + "@typescript-eslint/types" "4.0.0" + "@typescript-eslint/typescript-estree" "4.0.0" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + "@typescript-eslint/parser@3.9.1": version "3.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.9.1.tgz#ab7983abaea0ae138ff5671c7c7739d8a191b181" @@ -1176,11 +1210,24 @@ "@typescript-eslint/typescript-estree" "3.9.1" eslint-visitor-keys "^1.1.0" +"@typescript-eslint/scope-manager@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.0.0.tgz#8c9e3b3b8cdf5a1fbe671d9fad73ff67bc027ea8" + integrity sha512-9gcWUPoWo7gk/+ZQPg7L1ySRmR5HLIy3Vu6/LfhQbuzIkGm6v2CGIjpVRISoDLFRovNRDImd4aP/sa8O4yIEBg== + dependencies: + "@typescript-eslint/types" "4.0.0" + "@typescript-eslint/visitor-keys" "4.0.0" + "@typescript-eslint/types@3.9.1": version "3.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.9.1.tgz#b2a6eaac843cf2f2777b3f2464fb1fbce5111416" integrity sha512-15JcTlNQE1BsYy5NBhctnEhEoctjXOjOK+Q+rk8ugC+WXU9rAcS2BYhoh6X4rOaXJEpIYDl+p7ix+A5U0BqPTw== +"@typescript-eslint/types@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.0.0.tgz#ec1f9fc06b8558a1d5afa6e337182d08beece7f5" + integrity sha512-bK+c2VLzznX2fUWLK6pFDv3cXGTp7nHIuBMq1B9klA+QCsqLHOOqe5TQReAQDl7DN2RfH+neweo0oC5hYlG7Rg== + "@typescript-eslint/typescript-estree@3.9.1": version "3.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.9.1.tgz#fd81cada74bc8a7f3a2345b00897acb087935779" @@ -1195,6 +1242,20 @@ semver "^7.3.2" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.0.0.tgz#2244c63de2f2190bc5718eb0fb3fd2c437d42097" + integrity sha512-ewFMPi2pMLDNIXGMPdf8r7El2oPSZw9PEYB0j+WcpKd7AX2ARmajGa7RUHTukllWX2bj4vWX6JLE1Oih2BMokA== + dependencies: + "@typescript-eslint/types" "4.0.0" + "@typescript-eslint/visitor-keys" "4.0.0" + debug "^4.1.1" + globby "^11.0.1" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + "@typescript-eslint/visitor-keys@3.9.1": version "3.9.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.9.1.tgz#92af3747cdb71509199a8f7a4f00b41d636551d1" @@ -1202,6 +1263,14 @@ dependencies: eslint-visitor-keys "^1.1.0" +"@typescript-eslint/visitor-keys@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.0.0.tgz#e2bbb69d98076d6a3f06abcb2048225a74362c33" + integrity sha512-sTouJbv6rjVJeTE4lpSBVYXq/u5K3gbB6LKt7ccFEZPTZB/VeQ0ssUz9q5Hx++sCqBbdF8PzrrgvEnicXAR6NQ== + dependencies: + "@typescript-eslint/types" "4.0.0" + eslint-visitor-keys "^2.0.0" + "@vitspot/vit-registration-number@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@vitspot/vit-registration-number/-/vit-registration-number-1.0.1.tgz#e3067d5745504c03e0c3198d8bed3eb28733ae7a" @@ -1608,6 +1677,11 @@ array-union@^1.0.1: dependencies: array-uniq "^1.0.1" +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-uniq@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" @@ -2818,6 +2892,13 @@ dir-glob@2.0.0: arrify "^1.0.1" path-type "^3.0.0" +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + doctrine@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" @@ -3217,6 +3298,11 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== +eslint-visitor-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" + integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== + eslint@7.7.0: version "7.7.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.7.0.tgz#18beba51411927c4b64da0a8ceadefe4030d6073" @@ -3544,6 +3630,18 @@ fast-glob@^2.0.2: merge2 "^1.2.3" micromatch "^3.1.10" +fast-glob@^3.1.1: + version "3.2.5" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661" + integrity sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + picomatch "^2.2.1" + fast-json-stable-stringify@2.1.0, fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -3559,6 +3657,13 @@ fast-safe-stringify@2.0.7: resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz#124aa885899261f68aedb42a7c080de9da608743" integrity sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA== +fastq@^1.6.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.11.0.tgz#bb9fb955a07130a918eb63c1f5161cc32a5d0858" + integrity sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g== + dependencies: + reusify "^1.0.4" + faye-websocket@0.11.x: version "0.11.3" resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.3.tgz#5c0e9a8968e8912c286639fde977a8b209f2508e" @@ -3949,6 +4054,13 @@ glob-parent@^5.0.0, glob-parent@~5.1.0: dependencies: is-glob "^4.0.1" +glob-parent@^5.1.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + glob-to-regexp@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" @@ -3983,6 +4095,18 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" +globby@^11.0.1: + version "11.0.3" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" + integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.1.1" + ignore "^5.1.4" + merge2 "^1.3.0" + slash "^3.0.0" + globby@^8.0.1: version "8.0.2" resolved "https://registry.yarnpkg.com/globby/-/globby-8.0.2.tgz#5697619ccd95c5275dbb2d6faa42087c1a941d8d" @@ -4253,6 +4377,11 @@ ignore@^4.0.6: resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== +ignore@^5.1.4: + version "5.1.8" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" + integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== + import-fresh@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" @@ -5597,7 +5726,7 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -merge2@^1.2.3: +merge2@^1.2.3, merge2@^1.3.0: version "1.4.1" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== @@ -6779,6 +6908,11 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + quote-stream@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/quote-stream/-/quote-stream-1.0.2.tgz#84963f8c9c26b942e153feeb53aae74652b7e0b2" @@ -7102,6 +7236,11 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rimraf@2.6.3: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" @@ -7133,6 +7272,13 @@ run-async@^2.4.0: resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + rxjs@6.6.3, rxjs@^6.5.4, rxjs@^6.6.0: version "6.6.3" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.3.tgz#8ca84635c4daa900c0d3967a6ee7ac60271ee552" From 4be5560d3cf8130b37de3b190ca1dfe8533fb73c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:32:04 +0530 Subject: [PATCH 33/71] chore(deps): [security] bump node-notifier from 8.0.0 to 8.0.2 (#182) Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.2. **This update includes a security fix.** - [Release notes](https://github.com/mikaelbr/node-notifier/releases) - [Changelog](https://github.com/mikaelbr/node-notifier/blob/master/CHANGELOG.md) - [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.2) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- yarn.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yarn.lock b/yarn.lock index eaa5c2a..939b210 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6075,9 +6075,9 @@ node-modules-regexp@^1.0.0: integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= node-notifier@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.0.tgz#a7eee2d51da6d0f7ff5094bc7108c911240c1620" - integrity sha512-46z7DUmcjoYdaWyXouuFNNfUo6eFa94t23c53c+lG/9Cvauk4a98rAUp9672X5dxGdQmLpPzTxzu8f/OeEPaFA== + version "8.0.2" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5" + integrity sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg== dependencies: growly "^1.3.0" is-wsl "^2.2.0" @@ -7379,9 +7379,9 @@ scope-analyzer@^2.0.1: integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== semver@7.x, semver@^7.2.1, semver@^7.3.2: - version "7.3.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" - integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== dependencies: lru-cache "^6.0.0" @@ -8555,7 +8555,7 @@ uuid@8.3.0: resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.0.tgz#ab738085ca22dc9a8c92725e459b1d507df5d6ea" integrity sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ== -uuid@8.3.1, uuid@^8.3.0: +uuid@8.3.1: version "8.3.1" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.1.tgz#2ba2e6ca000da60fce5a196954ab241131e05a31" integrity sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg== @@ -8565,7 +8565,7 @@ uuid@^3.0.0, uuid@^3.3.2, uuid@^3.3.3: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -uuid@^8.3.2: +uuid@^8.3.0, uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== From cbff76b5b08b83627e148b0086c4f3a1bce981fc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:32:11 +0530 Subject: [PATCH 34/71] chore(deps): bump express-rate-limit from 5.2.3 to 5.2.6 (#183) Bumps [express-rate-limit](https://github.com/nfriedly/express-rate-limit) from 5.2.3 to 5.2.6. - [Release notes](https://github.com/nfriedly/express-rate-limit/releases) - [Commits](https://github.com/nfriedly/express-rate-limit/compare/v5.2.3...v5.2.6) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8238288..1ad8f22 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "config": "^3.3.2", "cookie-parser": "^1.4.5", "crypto": "^1.0.1", - "express-rate-limit": "^5.2.3", + "express-rate-limit": "^5.2.6", "hbs": "^4.1.1", "helmet": "^4.2.0", "mongoose": "^5.11.11", diff --git a/yarn.lock b/yarn.lock index 939b210..54a9fef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3502,10 +3502,10 @@ expect@^26.6.2: jest-message-util "^26.6.2" jest-regex-util "^26.0.0" -express-rate-limit@^5.2.3: - version "5.2.3" - resolved "https://registry.yarnpkg.com/express-rate-limit/-/express-rate-limit-5.2.3.tgz#ae73b3dc723decd697797611bd96e9b34a912f6c" - integrity sha512-cjQH+oDrEPXxc569XvxhHC6QXqJiuBT6BhZ70X3bdAImcnHnTNMVuMAJaT0TXPoRiEErUrVPRcOTpZpM36VbOQ== +express-rate-limit@^5.2.6: + version "5.2.6" + resolved "https://registry.yarnpkg.com/express-rate-limit/-/express-rate-limit-5.2.6.tgz#b454e1be8a252081bda58460e0a25bf43ee0f7b0" + integrity sha512-nE96xaxGfxiS5jP3tD3kIW1Jg9yQgX0rXCs3rCkZtmbWHEGyotwaezkLj7bnB41Z0uaOLM8W4AX6qHao4IZ2YA== express@4.17.1: version "4.17.1" From b40b5c46085ca7eb91a8ca358eca55eca72263fc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:32:24 +0530 Subject: [PATCH 35/71] chore(deps-dev): bump @nestjs/cli from 7.5.3 to 7.5.6 (#185) Bumps [@nestjs/cli](https://github.com/nestjs/nest-cli) from 7.5.3 to 7.5.6. - [Release notes](https://github.com/nestjs/nest-cli/releases) - [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json) - [Commits](https://github.com/nestjs/nest-cli/compare/7.5.3...7.5.6) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 430 ++++++++++++++++++++++++++++----------------------- 2 files changed, 240 insertions(+), 192 deletions(-) diff --git a/package.json b/package.json index 1ad8f22..cb177c8 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "uuid": "^8.3.2" }, "devDependencies": { - "@nestjs/cli": "^7.0.0", + "@nestjs/cli": "^7.5.6", "@nestjs/schematics": "^7.0.0", "@nestjs/testing": "^7.6.1", "@types/bcrypt": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 54a9fef..b921e7b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,10 +18,10 @@ rxjs "6.6.3" source-map "0.7.3" -"@angular-devkit/core@11.0.1": - version "11.0.1" - resolved "https://registry.yarnpkg.com/@angular-devkit/core/-/core-11.0.1.tgz#7125b07ac7d66a8fdaaf612a3b757817d23b8107" - integrity sha512-ui3g7w/0SpU9oq8uwN9upR8Y1eOXZ+P2p3NyDydBrR7ZEfEkRLS1mhozN/ib8farrwK5N3kIIJxMb5t3187Hng== +"@angular-devkit/core@11.2.0": + version "11.2.0" + resolved "https://registry.yarnpkg.com/@angular-devkit/core/-/core-11.2.0.tgz#a9198a391723e865fc6b369752c176cd5ed1d452" + integrity sha512-qqYEH8m/bwpngoLDMFuth8ykvoHxQ3aHHnAWfRXz9NXydwSfathG0VSYCctB126sK39JKIn+xq16CQAExxNu+Q== dependencies: ajv "6.12.6" fast-json-stable-stringify "2.1.0" @@ -29,18 +29,18 @@ rxjs "6.6.3" source-map "0.7.3" -"@angular-devkit/schematics-cli@0.1100.1": - version "0.1100.1" - resolved "https://registry.yarnpkg.com/@angular-devkit/schematics-cli/-/schematics-cli-0.1100.1.tgz#6d3cd6a7639a45ef64f221470ff7927b265184ee" - integrity sha512-6iGauhYKSkgsqA8HK7sul7lrVzrkxXAghGd3FcTHtXsmjh/leBezi7R82MphzcoYAOQ36COLMcOJnYurVG1Y6g== +"@angular-devkit/schematics-cli@0.1102.0": + version "0.1102.0" + resolved "https://registry.yarnpkg.com/@angular-devkit/schematics-cli/-/schematics-cli-0.1102.0.tgz#cd06ece7b410ef209a69ca7afb61f3a2e96a2c72" + integrity sha512-BkIoRf7L+3al+QIYWrgUlpNQP01tPSynPdTNb7z13tCHVv8Ag1CR5SJn1O8IGfFz7NxfX0Me0s7zyNTZ1QaWQQ== dependencies: - "@angular-devkit/core" "11.0.1" - "@angular-devkit/schematics" "11.0.1" - "@schematics/schematics" "0.1100.1" + "@angular-devkit/core" "11.2.0" + "@angular-devkit/schematics" "11.2.0" + "@schematics/schematics" "0.1102.0" ansi-colors "4.1.1" inquirer "7.3.3" minimist "1.2.5" - symbol-observable "2.0.3" + symbol-observable "3.0.0" "@angular-devkit/schematics@11.0.0": version "11.0.0" @@ -51,13 +51,13 @@ ora "5.1.0" rxjs "6.6.3" -"@angular-devkit/schematics@11.0.1": - version "11.0.1" - resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-11.0.1.tgz#d0826cde52a2c015b24a7c6f3b4df31665eb67ed" - integrity sha512-rAOnAndcybEH398xf5wzmcUPCoCi0dKiOo/+1dkKU5aTxynw1OUnANt5K6A+ZZTGnJmfjtP0ovkZGYun9IUDxQ== +"@angular-devkit/schematics@11.2.0": + version "11.2.0" + resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-11.2.0.tgz#82192578ff2a9fb01a9d8c56237f4fc98946e757" + integrity sha512-sMDacACJbA4pykiqgJf/RdW0damcf4mDqErGgEqs/bGG+SBUb8+wgt4cQnUwwVX5V2nMdvv7f0A84rgR6I3G2w== dependencies: - "@angular-devkit/core" "11.0.1" - ora "5.1.0" + "@angular-devkit/core" "11.2.0" + ora "5.3.0" rxjs "6.6.3" "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.8.3": @@ -613,32 +613,32 @@ call-me-maybe "^1.0.1" glob-to-regexp "^0.3.0" -"@nestjs/cli@^7.0.0": - version "7.5.3" - resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-7.5.3.tgz#80a97faebf03e60650aab91bd77a775fc398f9bb" - integrity sha512-PgpdXaNNtWMRAnDzMEXjbCXDiJWoNcmnKa6HhJ9iLJaqdXkIILiLthJx64sZxB6GiE4UYWjbX/KuPH3N2dx/6Q== +"@nestjs/cli@^7.5.6": + version "7.5.6" + resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-7.5.6.tgz#f52a7cf6215149c2e561070b5edf40debecb06b7" + integrity sha512-nJCoKFleVV6NCkezc+cokJCVnDQBJoxmBVggQ1XfJ6Lvjy9TFQfG2J/nDdVurxpm7mlJm/Yg/rbXxaiUZVcJAQ== dependencies: - "@angular-devkit/core" "11.0.1" - "@angular-devkit/schematics" "11.0.1" - "@angular-devkit/schematics-cli" "0.1100.1" + "@angular-devkit/core" "11.2.0" + "@angular-devkit/schematics" "11.2.0" + "@angular-devkit/schematics-cli" "0.1102.0" "@nestjs/schematics" "^7.1.0" - "@types/webpack" "4.41.25" + "@types/webpack" "4.41.26" chalk "3.0.0" - chokidar "3.4.3" + chokidar "3.5.1" cli-table3 "0.5.1" commander "4.1.1" - fork-ts-checker-webpack-plugin "6.0.2" + fork-ts-checker-webpack-plugin "6.1.0" inquirer "7.3.3" node-emoji "1.10.0" - ora "5.1.0" + ora "5.3.0" os-name "4.0.0" rimraf "3.0.2" shelljs "0.8.4" tree-kill "1.2.2" tsconfig-paths "3.9.0" tsconfig-paths-webpack-plugin "3.3.0" - typescript "4.0.5" - webpack "5.4.0" + typescript "4.1.5" + webpack "5.11.0" webpack-node-externals "2.5.2" "@nestjs/common@^7.0.0": @@ -760,13 +760,13 @@ consola "^2.15.0" node-fetch "^2.6.1" -"@schematics/schematics@0.1100.1": - version "0.1100.1" - resolved "https://registry.yarnpkg.com/@schematics/schematics/-/schematics-0.1100.1.tgz#aa91b86ad4190a338d5c643bce16e29d72c6815e" - integrity sha512-Y5J/qafyZtsu6spEFywGLjYMqEgONSDx9m8c8KL4c45+KqqerQeh2QQHims3G0brKUFIK3nCw95zqw+RMsGcsA== +"@schematics/schematics@0.1102.0": + version "0.1102.0" + resolved "https://registry.yarnpkg.com/@schematics/schematics/-/schematics-0.1102.0.tgz#f47d8fb6d9029ffe646ab9680ac5b2833322df1e" + integrity sha512-0mN6qGnI31GVNYAKDdZ6ISiJMtN8Z0rekpJ/xNHK/lDNl/QkoJVBHDf68oEcNE8dvWMq86ULpznCdT1IBQ7YFA== dependencies: - "@angular-devkit/core" "11.0.1" - "@angular-devkit/schematics" "11.0.1" + "@angular-devkit/core" "11.2.0" + "@angular-devkit/schematics" "11.2.0" "@sinonjs/commons@^1.7.0": version "1.8.1" @@ -1139,10 +1139,10 @@ "@types/source-list-map" "*" source-map "^0.7.3" -"@types/webpack@4.41.25": - version "4.41.25" - resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.25.tgz#4d3b5aecc4e44117b376280fbfd2dc36697968c4" - integrity sha512-cr6kZ+4m9lp86ytQc1jPOJXgINQyz3kLLunZ57jznW+WIAL0JqZbGubQk4GlD42MuQL5JGOABrxdpqqWeovlVQ== +"@types/webpack@4.41.26": + version "4.41.26" + resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.26.tgz#27a30d7d531e16489f9c7607c747be6bc1a459ef" + integrity sha512-7ZyTfxjCRwexh+EJFwRUM+CDB2XvgHl4vfuqf1ZKrgGvcS5BrNvPQqJh3tsZ0P6h6Aa1qClVHaJZszLPzpqHeA== dependencies: "@types/anymatch" "*" "@types/node" "*" @@ -1276,149 +1276,149 @@ resolved "https://registry.yarnpkg.com/@vitspot/vit-registration-number/-/vit-registration-number-1.0.1.tgz#e3067d5745504c03e0c3198d8bed3eb28733ae7a" integrity sha512-aU5S1VXdSD1VLh6lI3n2qkZrJXK3ZIXozm/FvVB73pKITvOrTpYpgApRQ4aqke6nNXePtKH671rEMFwp/OjpAg== -"@webassemblyjs/ast@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964" - integrity sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA== +"@webassemblyjs/ast@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.1.tgz#76c6937716d68bf1484c15139f5ed30b9abc8bb4" + integrity sha512-uMu1nCWn2Wxyy126LlGqRVlhdTOsO/bsBRI4dNq3+6SiSuRKRQX6ejjKgh82LoGAPSq72lDUiQ4FWVaf0PecYw== dependencies: - "@webassemblyjs/helper-module-context" "1.9.0" - "@webassemblyjs/helper-wasm-bytecode" "1.9.0" - "@webassemblyjs/wast-parser" "1.9.0" + "@webassemblyjs/helper-module-context" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/wast-parser" "1.9.1" -"@webassemblyjs/floating-point-hex-parser@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz#3c3d3b271bddfc84deb00f71344438311d52ffb4" - integrity sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA== +"@webassemblyjs/floating-point-hex-parser@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.1.tgz#9eb0ff90a1cdeef51f36ba533ed9f06b5cdadd09" + integrity sha512-5VEKu024RySmLKTTBl9q1eO/2K5jk9ZS+2HXDBLA9s9p5IjkaXxWiDb/+b7wSQp6FRdLaH1IVGIfOex58Na2pg== -"@webassemblyjs/helper-api-error@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz#203f676e333b96c9da2eeab3ccef33c45928b6a2" - integrity sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw== +"@webassemblyjs/helper-api-error@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.1.tgz#ad89015c4246cd7f5ed0556700237f8b9c2c752f" + integrity sha512-y1lGmfm38djrScwpeL37rRR9f1D6sM8RhMpvM7CYLzOlHVboouZokXK/G88BpzW0NQBSvCCOnW5BFhten4FPfA== -"@webassemblyjs/helper-buffer@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz#a1442d269c5feb23fcbc9ef759dac3547f29de00" - integrity sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA== +"@webassemblyjs/helper-buffer@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.1.tgz#186e67ac25f9546ea7939759413987f157524133" + integrity sha512-uS6VSgieHbk/m4GSkMU5cqe/5TekdCzQso4revCIEQ3vpGZgqSSExi4jWpTWwDpAHOIAb1Jfrs0gUB9AA4n71w== -"@webassemblyjs/helper-code-frame@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz#647f8892cd2043a82ac0c8c5e75c36f1d9159f27" - integrity sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA== +"@webassemblyjs/helper-code-frame@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.1.tgz#aab177b7cc87a318a8f8664ad68e2c3828ebc42b" + integrity sha512-ZQ2ZT6Evk4DPIfD+92AraGYaFIqGm4U20e7FpXwl7WUo2Pn1mZ1v8VGH8i+Y++IQpxPbQo/UyG0Khs7eInskzA== dependencies: - "@webassemblyjs/wast-printer" "1.9.0" + "@webassemblyjs/wast-printer" "1.9.1" -"@webassemblyjs/helper-fsm@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz#c05256b71244214671f4b08ec108ad63b70eddb8" - integrity sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw== +"@webassemblyjs/helper-fsm@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.1.tgz#527e91628e84d13d3573884b3dc4c53a81dcb911" + integrity sha512-J32HGpveEqqcKFS0YbgicB0zAlpfIxJa5MjxDxhu3i5ltPcVfY5EPvKQ1suRguFPehxiUs+/hfkwPEXom/l0lw== -"@webassemblyjs/helper-module-context@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz#25d8884b76839871a08a6c6f806c3979ef712f07" - integrity sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g== +"@webassemblyjs/helper-module-context@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.1.tgz#778670b3d471f7cf093d1e7c0dde431b54310e16" + integrity sha512-IEH2cMmEQKt7fqelLWB5e/cMdZXf2rST1JIrzWmf4XBt3QTxGdnnLvV4DYoN8pJjOx0VYXsWg+yF16MmJtolZg== dependencies: - "@webassemblyjs/ast" "1.9.0" + "@webassemblyjs/ast" "1.9.1" -"@webassemblyjs/helper-wasm-bytecode@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz#4fed8beac9b8c14f8c58b70d124d549dd1fe5790" - integrity sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw== +"@webassemblyjs/helper-wasm-bytecode@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.1.tgz#563f59bcf409ccf469edde168b9426961ffbf6df" + integrity sha512-i2rGTBqFUcSXxyjt2K4vm/3kkHwyzG6o427iCjcIKjOqpWH8SEem+xe82jUk1iydJO250/CvE5o7hzNAMZf0dQ== -"@webassemblyjs/helper-wasm-section@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz#5a4138d5a6292ba18b04c5ae49717e4167965346" - integrity sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw== +"@webassemblyjs/helper-wasm-section@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.1.tgz#f7988f94c12b01b99a16120cb01dc099b00e4798" + integrity sha512-FetqzjtXZr2d57IECK+aId3D0IcGweeM0CbAnJHkYJkcRTHP+YcMb7Wmc0j21h5UWBpwYGb9dSkK/93SRCTrGg== dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/helper-buffer" "1.9.0" - "@webassemblyjs/helper-wasm-bytecode" "1.9.0" - "@webassemblyjs/wasm-gen" "1.9.0" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-buffer" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/wasm-gen" "1.9.1" -"@webassemblyjs/ieee754@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz#15c7a0fbaae83fb26143bbacf6d6df1702ad39e4" - integrity sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg== +"@webassemblyjs/ieee754@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.9.1.tgz#3b715871ca7d75784717cf9ceca9d7b81374b8af" + integrity sha512-EvTG9M78zP1MmkBpUjGQHZc26DzPGZSLIPxYHCjQsBMo60Qy2W34qf8z0exRDtxBbRIoiKa5dFyWer/7r1aaSQ== dependencies: "@xtuc/ieee754" "^1.2.0" -"@webassemblyjs/leb128@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.9.0.tgz#f19ca0b76a6dc55623a09cffa769e838fa1e1c95" - integrity sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw== +"@webassemblyjs/leb128@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.9.1.tgz#b2ecaa39f9e8277cc9c707c1ca8b2aa7b27d0b72" + integrity sha512-Oc04ub0vFfLnF+2/+ki3AE+anmW4sv9uNBqb+79fgTaPv6xJsOT0dhphNfL3FrME84CbX/D1T9XT8tjFo0IIiw== dependencies: "@xtuc/long" "4.2.2" -"@webassemblyjs/utf8@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.9.0.tgz#04d33b636f78e6a6813227e82402f7637b6229ab" - integrity sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w== +"@webassemblyjs/utf8@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.9.1.tgz#d02d9daab85cda3211e43caf31dca74c260a73b0" + integrity sha512-llkYtppagjCodFjo0alWOUhAkfOiQPQDIc5oA6C9sFAXz7vC9QhZf/f8ijQIX+A9ToM3c9Pq85X0EX7nx9gVhg== -"@webassemblyjs/wasm-edit@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz#3fe6d79d3f0f922183aa86002c42dd256cfee9cf" - integrity sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw== - dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/helper-buffer" "1.9.0" - "@webassemblyjs/helper-wasm-bytecode" "1.9.0" - "@webassemblyjs/helper-wasm-section" "1.9.0" - "@webassemblyjs/wasm-gen" "1.9.0" - "@webassemblyjs/wasm-opt" "1.9.0" - "@webassemblyjs/wasm-parser" "1.9.0" - "@webassemblyjs/wast-printer" "1.9.0" - -"@webassemblyjs/wasm-gen@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz#50bc70ec68ded8e2763b01a1418bf43491a7a49c" - integrity sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA== +"@webassemblyjs/wasm-edit@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.1.tgz#e27a6bdbf78e5c72fa812a2fc3cbaad7c3e37578" + integrity sha512-S2IaD6+x9B2Xi8BCT0eGsrXXd8UxAh2LVJpg1ZMtHXnrDcsTtIX2bDjHi40Hio6Lc62dWHmKdvksI+MClCYbbw== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-buffer" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/helper-wasm-section" "1.9.1" + "@webassemblyjs/wasm-gen" "1.9.1" + "@webassemblyjs/wasm-opt" "1.9.1" + "@webassemblyjs/wasm-parser" "1.9.1" + "@webassemblyjs/wast-printer" "1.9.1" + +"@webassemblyjs/wasm-gen@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.1.tgz#56a0787d1fa7994fdc7bea59004e5bec7189c5fc" + integrity sha512-bqWI0S4lBQsEN5FTZ35vYzfKUJvtjNnBobB1agCALH30xNk1LToZ7Z8eiaR/Z5iVECTlBndoRQV3F6mbEqE/fg== dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/helper-wasm-bytecode" "1.9.0" - "@webassemblyjs/ieee754" "1.9.0" - "@webassemblyjs/leb128" "1.9.0" - "@webassemblyjs/utf8" "1.9.0" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/ieee754" "1.9.1" + "@webassemblyjs/leb128" "1.9.1" + "@webassemblyjs/utf8" "1.9.1" -"@webassemblyjs/wasm-opt@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz#2211181e5b31326443cc8112eb9f0b9028721a61" - integrity sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A== +"@webassemblyjs/wasm-opt@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.1.tgz#fbdf8943a825e6dcc4cd69c3e092289fa4aec96c" + integrity sha512-gSf7I7YWVXZ5c6XqTEqkZjVs8K1kc1k57vsB6KBQscSagDNbAdxt6MwuJoMjsE1yWY1tsuL+pga268A6u+Fdkg== dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/helper-buffer" "1.9.0" - "@webassemblyjs/wasm-gen" "1.9.0" - "@webassemblyjs/wasm-parser" "1.9.0" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-buffer" "1.9.1" + "@webassemblyjs/wasm-gen" "1.9.1" + "@webassemblyjs/wasm-parser" "1.9.1" -"@webassemblyjs/wasm-parser@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz#9d48e44826df4a6598294aa6c87469d642fff65e" - integrity sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA== +"@webassemblyjs/wasm-parser@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.1.tgz#5e8352a246d3f605312c8e414f7990de55aaedfa" + integrity sha512-ImM4N2T1MEIond0MyE3rXvStVxEmivQrDKf/ggfh5pP6EHu3lL/YTAoSrR7shrbKNPpeKpGesW1LIK/L4kqduw== dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/helper-api-error" "1.9.0" - "@webassemblyjs/helper-wasm-bytecode" "1.9.0" - "@webassemblyjs/ieee754" "1.9.0" - "@webassemblyjs/leb128" "1.9.0" - "@webassemblyjs/utf8" "1.9.0" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-api-error" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/ieee754" "1.9.1" + "@webassemblyjs/leb128" "1.9.1" + "@webassemblyjs/utf8" "1.9.1" -"@webassemblyjs/wast-parser@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz#3031115d79ac5bd261556cecc3fa90a3ef451914" - integrity sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw== - dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/floating-point-hex-parser" "1.9.0" - "@webassemblyjs/helper-api-error" "1.9.0" - "@webassemblyjs/helper-code-frame" "1.9.0" - "@webassemblyjs/helper-fsm" "1.9.0" +"@webassemblyjs/wast-parser@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-parser/-/wast-parser-1.9.1.tgz#e25ef13585c060073c1db0d6bd94340fdeee7596" + integrity sha512-2xVxejXSvj3ls/o2TR/zI6p28qsGupjHhnHL6URULQRcXmryn3w7G83jQMcT7PHqUfyle65fZtWLukfdLdE7qw== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/floating-point-hex-parser" "1.9.1" + "@webassemblyjs/helper-api-error" "1.9.1" + "@webassemblyjs/helper-code-frame" "1.9.1" + "@webassemblyjs/helper-fsm" "1.9.1" "@xtuc/long" "4.2.2" -"@webassemblyjs/wast-printer@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz#4935d54c85fef637b00ce9f52377451d00d47899" - integrity sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA== +"@webassemblyjs/wast-printer@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.9.1.tgz#b9f38e93652037d4f3f9c91584635af4191ed7c1" + integrity sha512-tDV8V15wm7mmbAH6XvQRU1X+oPGmeOzYsd6h7hlRLz6QpV4Ec/KKxM8OpLtFmQPLCreGxTp+HuxtH4pRIZyL9w== dependencies: - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/wast-parser" "1.9.0" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/wast-parser" "1.9.1" "@xtuc/long" "4.2.2" "@xtuc/ieee754@^1.2.0": @@ -2249,10 +2249,10 @@ cheerio@^1.0.0-rc.3: lodash "^4.15.0" parse5 "^3.0.1" -chokidar@3.4.3, chokidar@^3.1.1, chokidar@^3.4.2: - version "3.4.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b" - integrity sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ== +chokidar@3.5.1, chokidar@^3.1.1, chokidar@^3.4.2: + version "3.5.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" + integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== dependencies: anymatch "~3.1.1" braces "~3.0.2" @@ -2262,7 +2262,7 @@ chokidar@3.4.3, chokidar@^3.1.1, chokidar@^3.4.2: normalize-path "~3.0.0" readdirp "~3.5.0" optionalDependencies: - fsevents "~2.1.2" + fsevents "~2.3.1" chokidar@^2.0.4: version "2.1.8" @@ -2342,6 +2342,11 @@ cli-spinners@^2.4.0: resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.5.0.tgz#12763e47251bf951cb75c201dfa58ff1bcb2d047" integrity sha512-PC+AmIuK04E6aeSs/pUccSujsTzBhu4HzC2dL+CfJB/Jcc2qTRbEwZQDfIUpt2Xl8BodYBEq8w4fc0kU2I9DjQ== +cli-spinners@^2.5.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.0.tgz#36c7dc98fb6a9a76bd6238ec3f77e2425627e939" + integrity sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q== + cli-table3@0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.5.1.tgz#0252372d94dfc40dbd8df06005f48f31f656f202" @@ -3763,6 +3768,14 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + findit2@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/findit2/-/findit2-2.2.3.tgz#58a466697df8a6205cdfdbf395536b8bd777a5f6" @@ -3819,10 +3832,10 @@ forever-agent@~0.6.1: resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= -fork-ts-checker-webpack-plugin@6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.0.2.tgz#3c490536b302c60cd8fc4654cffd7d15225859f4" - integrity sha512-3WrR/gNMcOAJ+macFpYTXxbt/xZDF9MLCYsPU3j9IUmS8LAvi8WoTiI001z1A8qkgmDtkoh6MTytTQqf8/7aOA== +fork-ts-checker-webpack-plugin@6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.1.0.tgz#7581a6ccd7cbbed9ecce3de64fb1f599d7a2990b" + integrity sha512-xLNufWQ1dfQUdZe48TGQlER/0OkcMnUB6lfbN9Tt13wsYyo+2DwcCbnOaPBo1PoFow/WL8pJPktGIdbJaHxAnw== dependencies: "@babel/code-frame" "^7.8.3" "@types/json-schema" "^7.0.5" @@ -3945,10 +3958,10 @@ fsevents@^2.1.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.2.1.tgz#1fb02ded2036a8ac288d507a65962bd87b97628d" integrity sha512-bTLYHSeC0UH/EFXS9KqWnXuOl/wHK5Z/d+ghd5AsFMYN7wIGkUCOJyzy88+wJKkZPGON8u4Z9f6U4FdgURE9qA== -fsevents@~2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" - integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== function-bind@^1.1.1: version "1.1.1" @@ -5498,6 +5511,13 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + lockfile@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/lockfile/-/lockfile-1.0.4.tgz#07f819d25ae48f87e538e6578b6964a4981a5609" @@ -6368,6 +6388,20 @@ ora@5.1.0: strip-ansi "^6.0.0" wcwidth "^1.0.1" +ora@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.3.0.tgz#fb832899d3a1372fe71c8b2c534bbfe74961bb6f" + integrity sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g== + dependencies: + bl "^4.0.3" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + log-symbols "^4.0.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -6452,6 +6486,13 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -6753,6 +6794,13 @@ pkg-dir@^4.1.0, pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" +pkg-dir@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760" + integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA== + dependencies: + find-up "^5.0.0" + pluralize@8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" @@ -8004,10 +8052,10 @@ swagger-ui-express@^4.1.5: dependencies: swagger-ui-dist "^3.18.1" -symbol-observable@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-2.0.3.tgz#5b521d3d07a43c351055fa43b8355b62d33fd16a" - integrity sha512-sQV7phh2WCYAn81oAkakC5qjq2Ml0g8ozqz03wOGnx9dDlG1de6yrF+0RAzSJD8fPUow3PTSMf2SAbOGxb93BA== +symbol-observable@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-3.0.0.tgz#eea8f6478c651018e059044268375c408c15c533" + integrity sha512-6tDOXSHiVjuCaasQSWTmHUWn4PuG7qa3+1WT031yTc/swT7+rLiw3GOrFxaH1E3lLP09dH3bVuVDf2gK5rxG3Q== symbol-tree@^3.2.4: version "3.2.4" @@ -8034,6 +8082,11 @@ tapable@^2.0.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.1.1.tgz#b01cc1902d42a7bb30514e320ce21c456f72fd3f" integrity sha512-Wib1S8m2wdpLbmQz0RBEVosIyvb/ykfKXf3ZIDqvWoMg/zTNm6G/tDSuUM61J1kNCDXWJrLHGSFeMhAG+gAGpQ== +tapable@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b" + integrity sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw== + tar-stream@^2.1.4: version "2.2.0" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" @@ -8418,21 +8471,16 @@ typescript@2.9.1: resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.1.tgz#fdb19d2c67a15d11995fd15640e373e09ab09961" integrity sha512-h6pM2f/GDchCFlldnriOhs1QHuwbnmj6/v7499eMHqPeW4V2G0elua2eIc2nu8v2NdHV0Gm+tzX83Hr6nUFjQA== -typescript@4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389" - integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ== +typescript@4.1.5, typescript@^4.0.3: + version "4.1.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72" + integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA== typescript@^3.7.4: version "3.9.7" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== -typescript@^4.0.3: - version "4.1.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9" - integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ== - uglify-js@^3.1.4: version "3.12.1" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.12.1.tgz#78307f539f7b9ca5557babb186ea78ad30cc0375" @@ -8682,17 +8730,17 @@ webpack-sources@^2.1.1: source-list-map "^2.0.1" source-map "^0.6.1" -webpack@5.4.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.4.0.tgz#4fdc6ec8a0ff9160701fb8f2eb8d06b33ecbae0f" - integrity sha512-udpYTyqz8toTTdaOsL2QKPLeZLt2IEm9qY7yTXuFEQhKu5bk0yQD9BtAdVQksmz4jFbbWOiWmm3NHarO0zr/ng== +webpack@5.11.0: + version "5.11.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.11.0.tgz#1647abc060441d86d01d8835b8f0fc1dae2fe76f" + integrity sha512-ubWv7iP54RqAC/VjixgpnLLogCFbAfSOREcSWnnOlZEU8GICC5eKmJSu6YEnph2N2amKqY9rvxSwgyHxVqpaRw== dependencies: "@types/eslint-scope" "^3.7.0" "@types/estree" "^0.0.45" - "@webassemblyjs/ast" "1.9.0" - "@webassemblyjs/helper-module-context" "1.9.0" - "@webassemblyjs/wasm-edit" "1.9.0" - "@webassemblyjs/wasm-parser" "1.9.0" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-module-context" "1.9.1" + "@webassemblyjs/wasm-edit" "1.9.1" + "@webassemblyjs/wasm-parser" "1.9.1" acorn "^8.0.4" browserslist "^4.14.5" chrome-trace-event "^1.0.2" @@ -8705,9 +8753,9 @@ webpack@5.4.0: loader-runner "^4.1.0" mime-types "^2.1.27" neo-async "^2.6.2" - pkg-dir "^4.2.0" + pkg-dir "^5.0.0" schema-utils "^3.0.0" - tapable "^2.0.0" + tapable "^2.1.1" terser-webpack-plugin "^5.0.3" watchpack "^2.0.0" webpack-sources "^2.1.1" From 07c4c5a55fa52a982062ed91ff5952586633254e Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:45:06 +0530 Subject: [PATCH 36/71] chore(deps-dev): bump @typescript-eslint/parser from 3.9.1 to 3.10.1 (#184) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.9.1 to 3.10.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.10.1/packages/parser) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 54 ++++++++++++++++++++++++++-------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index cb177c8..5ad0c81 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@types/passport-jwt": "^3.0.3", "@types/supertest": "^2.0.8", "@typescript-eslint/eslint-plugin": "4.0.0", - "@typescript-eslint/parser": "3.9.1", + "@typescript-eslint/parser": "3.10.1", "bcrypt": "^5.0.0", "eslint": "7.7.0", "eslint-config-prettier": "^6.10.0", diff --git a/yarn.lock b/yarn.lock index b921e7b..4ba45c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1176,14 +1176,14 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.9.1.tgz#b140b2dc7a7554a44f8a86fb6fe7cbfe57ca059e" - integrity sha512-lkiZ8iBBaYoyEKhCkkw4SAeatXyBq9Ece5bZXdLe1LWBUwTszGbmbiqmQbwWA8cSYDnjWXp9eDbXpf9Sn0hLAg== +"@typescript-eslint/experimental-utils@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686" + integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.9.1" - "@typescript-eslint/typescript-estree" "3.9.1" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/typescript-estree" "3.10.1" eslint-scope "^5.0.0" eslint-utils "^2.0.0" @@ -1199,15 +1199,15 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.9.1.tgz#ab7983abaea0ae138ff5671c7c7739d8a191b181" - integrity sha512-y5QvPFUn4Vl4qM40lI+pNWhTcOWtpZAJ8pOEQ21fTTW4xTJkRplMjMRje7LYTXqVKKX9GJhcyweMz2+W1J5bMg== +"@typescript-eslint/parser@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467" + integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.9.1" - "@typescript-eslint/types" "3.9.1" - "@typescript-eslint/typescript-estree" "3.9.1" + "@typescript-eslint/experimental-utils" "3.10.1" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/typescript-estree" "3.10.1" eslint-visitor-keys "^1.1.0" "@typescript-eslint/scope-manager@4.0.0": @@ -1218,23 +1218,23 @@ "@typescript-eslint/types" "4.0.0" "@typescript-eslint/visitor-keys" "4.0.0" -"@typescript-eslint/types@3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.9.1.tgz#b2a6eaac843cf2f2777b3f2464fb1fbce5111416" - integrity sha512-15JcTlNQE1BsYy5NBhctnEhEoctjXOjOK+Q+rk8ugC+WXU9rAcS2BYhoh6X4rOaXJEpIYDl+p7ix+A5U0BqPTw== +"@typescript-eslint/types@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" + integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== "@typescript-eslint/types@4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.0.0.tgz#ec1f9fc06b8558a1d5afa6e337182d08beece7f5" integrity sha512-bK+c2VLzznX2fUWLK6pFDv3cXGTp7nHIuBMq1B9klA+QCsqLHOOqe5TQReAQDl7DN2RfH+neweo0oC5hYlG7Rg== -"@typescript-eslint/typescript-estree@3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.9.1.tgz#fd81cada74bc8a7f3a2345b00897acb087935779" - integrity sha512-IqM0gfGxOmIKPhiHW/iyAEXwSVqMmR2wJ9uXHNdFpqVvPaQ3dWg302vW127sBpAiqM9SfHhyS40NKLsoMpN2KA== +"@typescript-eslint/typescript-estree@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853" + integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w== dependencies: - "@typescript-eslint/types" "3.9.1" - "@typescript-eslint/visitor-keys" "3.9.1" + "@typescript-eslint/types" "3.10.1" + "@typescript-eslint/visitor-keys" "3.10.1" debug "^4.1.1" glob "^7.1.6" is-glob "^4.0.1" @@ -1256,10 +1256,10 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.9.1.tgz#92af3747cdb71509199a8f7a4f00b41d636551d1" - integrity sha512-zxdtUjeoSh+prCpogswMwVUJfEFmCOjdzK9rpNjNBfm6EyPt99x3RrJoBOGZO23FCt0WPKUCOL5mb/9D5LjdwQ== +"@typescript-eslint/visitor-keys@3.10.1": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931" + integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ== dependencies: eslint-visitor-keys "^1.1.0" From 561d4928e2f5616c229025aca662da2bc339df89 Mon Sep 17 00:00:00 2001 From: vismitap <47056243+vismitap@users.noreply.github.com> Date: Wed, 24 Mar 2021 16:57:56 +0530 Subject: [PATCH 37/71] fix(ui): remove excess spaces and added word-wrap (#186) --- views/dashboard/dev.hbs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/views/dashboard/dev.hbs b/views/dashboard/dev.hbs index ba76e49..57e37a9 100644 --- a/views/dashboard/dev.hbs +++ b/views/dashboard/dev.hbs @@ -11,7 +11,8 @@