diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c6c8b36 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a174046 --- /dev/null +++ b/.env.example @@ -0,0 +1,90 @@ +##---------------------------------------------------------------## +# PROJECT INFORMATIONS +##---------------------------------------------------------------## +## 1. Project code name and description +PROJECT_NAME = typescript-express-mongoose-api-boilerplate +PROJECT_DISPLAY_NAME = Express Typescript MongoDB +PROJECT_DESCRIPTION = Fully featured backend API with Express, Typescript,MongoDB, JWT Authentication, Swagger, Docker, Unit Test, E2E Test, Code Coverage, Continuous Integration, Continuous Deployment, and more... +DOMAIN_NAME = api.example.com +FRONTEND_URL = http://localhost:3000 + +## 2. Express Js And Node Js Http Server +PORT = 9004 +NODE_ENV = development +KEEP_ALIVE_TIMEOUT = 60000 +PARAMETER_LIMIT = 100000 +MAXIMUM_REQUEST_BODY_SIZE = '50mb' + +## 3. Mongo Db Database +DB_URL = mongodb://localhost:27017/typescript-express-mongoose-api-boilerplate_dev + +## 4. Log +LOG_FORMAT = dev +LOG_DIR = ../logs + +## 5. Cors +ORIGIN = * +CREDENTIALS = false + + + +##---------------------------------------------------------------## +# SECURITY AND AUTHENTICATION +##---------------------------------------------------------------## +## 1. Json Web Token (JWT) +JWT_SECRET = thisisasamplesecret +JWT_ACCESS_EXPIRATION_MINUTES = 30 +JWT_REFRESH_EXPIRATION_DAYS = 30 +JWT_RESET_PASSWORD_EXPIRATION_MINUTES = 10 +JWT_VERIFY_EMAIL_EXPIRATION_MINUTES = 10 + +## 2. Others security secrets +SECRET_KEY = a unique secret to identify the application. Not confusible with JWT_SECRET + + + +##---------------------------------------------------------------## +# DATA VALIDATIONS AND CONSTRAINTS +##---------------------------------------------------------------## +## 1. Password +MIN_PASSWORD_LENGTH = 8 +MAX_PASSWORD_LENGTH = 255 + +## 2. Username, include firstname, lastname, familyname, etc. +MIN_USERNAME_LENGTH = 1 +MAX_USERNAME_LENGTH = 50 +MAX_USER_FULLNAME_LENGTH = 70 + +## 3. Email +MIN_EMAIL_LENGTH = 3 +MAX_EMAIL_LENGTH = 255 + + + +##---------------------------------------------------------------## +# SMTP AND EMAIL CONFIGURATION OR SERVICES FOR SENDING EMAILS +##---------------------------------------------------------------## +## 1. Smtp +SMTP_HOST = mail.example.com +SMTP_PORT = 587 +SMTP_USERNAME = no-reply@exampe.com +SMTP_PASSWORD = 'SecretPassword' + +## 2. Admin email and Email Sender +EMAIL_FROM = no-reply@example.com +EMAIL_ADMIN = admin@mail.com + + + +##---------------------------------------------------------------## +# UPLOADING FILES CONFIGURATIONS +##---------------------------------------------------------------## +UPLOAD_ALLOWED_FILE_TYPES = audio,video,image,document +UPLOAD_AUDIO_ALLOWED_FILE_TYPES = mp3,wav,ogg +UPLOAD_AUDIO_DISALLOWED_FILE_TYPES = nothing +UPLOAD_IMAGE_ALLOWED_FILE_TYPES = jpeg,jpg,png,gif +UPLOAD_IMAGE_DISALLOWED_FILE_TYPES = nothing +UPLOAD_VIDEO_ALLOWED_FILE_TYPES = mp4,avi,mkv,wmv +UPLOAD_VIDEO_DISALLOWED_FILE_TYPES = nothing +UPLOAD_DOCUMENT_ALLOWED_FILE_TYPES = pdf,doc,docx,xls,xlsx,ppt,pptx,txt +UPLOAD_DOCUMENT_DISALLOWED_FILE_TYPES = nothing diff --git a/.env.test.example b/.env.test.example new file mode 100644 index 0000000..a7bddf6 --- /dev/null +++ b/.env.test.example @@ -0,0 +1,90 @@ +##---------------------------------------------------------------## +# PROJECT INFORMATIONS +##---------------------------------------------------------------## +## 1. Project code name and description +PROJECT_NAME = typescript-express-mongoose-api-boilerplate +PROJECT_DISPLAY_NAME = Express Typescript MongoDB +PROJECT_DESCRIPTION = Fully featured backend API with Express, Typescript,MongoDB, JWT Authentication, Swagger, Docker, Unit Test, E2E Test, Code Coverage, Continuous Integration, Continuous Deployment, and more... +DOMAIN_NAME = api.example.com +FRONTEND_URL = http://localhost:3000 + +## 2. Express Js And Node Js Http Server +PORT = 9004 +NODE_ENV = test +KEEP_ALIVE_TIMEOUT = 60000 +PARAMETER_LIMIT = 100000 +MAXIMUM_REQUEST_BODY_SIZE = '50mb' + +## 3. Mongo Db Database +DB_URL = mongodb://localhost:27017/typescript-express-mongoose-api-boilerplate_test + +## 4. Log +LOG_FORMAT = dev +LOG_DIR = ../logs + +## 5. Cors +ORIGIN = * +CREDENTIALS = false + + + +##---------------------------------------------------------------## +# SECURITY AND AUTHENTICATION +##---------------------------------------------------------------## +## 1. Json Web Token (JWT) +JWT_SECRET = thisisasamplesecret +JWT_ACCESS_EXPIRATION_MINUTES = 30 +JWT_REFRESH_EXPIRATION_DAYS = 30 +JWT_RESET_PASSWORD_EXPIRATION_MINUTES = 10 +JWT_VERIFY_EMAIL_EXPIRATION_MINUTES = 10 + +## 2. Others security secrets +SECRET_KEY = a unique secret to identify the application. Not confusible with JWT_SECRET + + + +##---------------------------------------------------------------## +# DATA VALIDATIONS AND CONSTRAINTS +##---------------------------------------------------------------## +## 1. Password +MIN_PASSWORD_LENGTH = 8 +MAX_PASSWORD_LENGTH = 255 + +## 2. Username, include firstname, lastname, familyname, etc. +MIN_USERNAME_LENGTH = 1 +MAX_USERNAME_LENGTH = 50 +MAX_USER_FULLNAME_LENGTH = 70 + +## 3. Email +MIN_EMAIL_LENGTH = 3 +MAX_EMAIL_LENGTH = 255 + + + +##---------------------------------------------------------------## +# SMTP AND EMAIL CONFIGURATION OR SERVICES FOR SENDING EMAILS +##---------------------------------------------------------------## +## 1. Smtp +SMTP_HOST = mail.example.com +SMTP_PORT = 587 +SMTP_USERNAME = no-reply@exampe.com +SMTP_PASSWORD = 'SecretPassword' + +## 2. Admin email and Email Sender +EMAIL_FROM = no-reply@example.com +EMAIL_ADMIN = admin@mail.com + + + +##---------------------------------------------------------------## +# UPLOADING FILES CONFIGURATIONS +##---------------------------------------------------------------## +UPLOAD_ALLOWED_FILE_TYPES = audio,video,image,document +UPLOAD_AUDIO_ALLOWED_FILE_TYPES = mp3,wav,ogg +UPLOAD_AUDIO_DISALLOWED_FILE_TYPES = nothing +UPLOAD_IMAGE_ALLOWED_FILE_TYPES = jpeg,jpg,png,gif +UPLOAD_IMAGE_DISALLOWED_FILE_TYPES = nothing +UPLOAD_VIDEO_ALLOWED_FILE_TYPES = mp4,avi,mkv,wmv +UPLOAD_VIDEO_DISALLOWED_FILE_TYPES = nothing +UPLOAD_DOCUMENT_ALLOWED_FILE_TYPES = pdf,doc,docx,xls,xlsx,ppt,pptx,txt +UPLOAD_DOCUMENT_DISALLOWED_FILE_TYPES = nothing diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..d41855d --- /dev/null +++ b/.eslintignore @@ -0,0 +1,4 @@ +/dist +/node_modules +/coverage +/logs diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..fd3bf85 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,23 @@ +{ + "parser": "@typescript-eslint/parser", + "extends": ["prettier", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"], + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "rules": { + "@typescript-eslint/explicit-member-accessibility": 0, + "@typescript-eslint/explicit-function-return-type": 0, + "@typescript-eslint/no-parameter-properties": 0, + "@typescript-eslint/interface-name-prefix": 0, + "@typescript-eslint/explicit-module-boundary-types": 0, + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/ban-types": "off", + "@typescript-eslint/no-var-requires": "off" + }, + "settings": { + "import/resolver": { + "typescript": {} + } + } +} diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml new file mode 100644 index 0000000..8ce7b48 --- /dev/null +++ b/.github/workflows/test-build.yaml @@ -0,0 +1,28 @@ +name: Node.js CI/CD + +on: + push: + branches: + - main + +jobs: + test-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install Dependencies + run: yarn install + + - name: Run Tests + run: yarn test + + - name: Build + run: yarn run build diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6c727a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,132 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* +trash/* +trash +public/uploads/* diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..3612c10 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,11 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +## Run lint-staged +npx lint-staged + +## Run prettier +yarn prettier:check + +## Run tests +yarn test diff --git a/.huskyrc b/.huskyrc new file mode 100644 index 0000000..4d077c8 --- /dev/null +++ b/.huskyrc @@ -0,0 +1,5 @@ +{ + "hooks": { + "pre-commit": "lint-staged" + } +} diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 0000000..d2fe776 --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,5 @@ +{ + "*.ts": [ + "npm run lint" + ] +} \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..73d6c5d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "printWidth": 80, + "tabWidth": 2, + "useTabs": false, + "singleQuote": true, + "trailingComma": "es5", + "bracketSpacing": true, + "semi": true, + "arrowParens": "always", + "endOfLine": "lf" +} \ No newline at end of file diff --git a/.swcrc b/.swcrc new file mode 100644 index 0000000..6df0036 --- /dev/null +++ b/.swcrc @@ -0,0 +1,77 @@ +{ + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": false, + "dynamicImport": true, + "decorators": true + }, + "transform": { + "legacyDecorator": true, + "decoratorMetadata": true + }, + "target": "es2017", + "externalHelpers": false, + "keepClassNames": true, + "loose": false, + "minify": { + "compress": true, + "mangle": true + }, + "baseUrl": "src", + "paths": { + + "@/*": [ + "*" + ], + "@config": [ + "config" + ], + "@config/*": [ + "config/*" + ], + "@controllers/*": [ + "controllers/*" + ], + "@database": [ + "database" + ], + "@databases": [ + "databases" + ], + "@entities/*": [ + "entities/*" + ], + "@exceptions/*": [ + "exceptions/*" + ], + "@interfaces/*": [ + "interfaces/*" + ], + "@middlewares/*": [ + "middlewares/*" + ], + "@routes/*": [ + "routes/*" + ], + "@services/*": [ + "services/*" + ], + "@utils/*": [ + "utils/*" + ], + "@features/*": [ + "features/*" + ], + "@features": [ + "features" + ], + "@crons": [ + "crons" + ] + } + }, + "module": { + "type": "commonjs" + } +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..00ccfd7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,35 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node-terminal", + "request": "launch", + "name": "Dev typescript-express-starter", + "command": "npm run dev" + }, + { + "type": "node-terminal", + "request": "launch", + "name": "Start typescript-express-starter", + "command": "npm run start" + }, + { + "type": "node-terminal", + "request": "launch", + "name": "Test typescript-express-starter", + "command": "npm run test" + }, + { + "type": "node-terminal", + "request": "launch", + "name": "Lint typescript-express-starter", + "command": "npm run lint" + }, + { + "type": "node-terminal", + "request": "launch", + "name": "Lint:Fix typescript-express-starter", + "command": "npm run lint:fix" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..620d436 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "editor.formatOnSave": false, + "nuxt.isNuxtApp": false, + "files.eol": "\n", + "cSpell.words": [ + "asynciterable", + "fieldname", + "maxlength", + "precommit", + "typesafe" + ] +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f314cc7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +# The MIT License (MIT) + +Copyright (c) 2023-present Justin Dah-kenangnon + +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in +> all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +> THE SOFTWARE. \ No newline at end of file diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..9a55c73 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,57 @@ +module.exports = { + apps: [ + { + // App env + env: { + NODE_ENV: 'production', + }, + // auto restart + autorestart: true, + + // application name (default to script filename without extension) + name: 'type-safe-nodejs-api', + + // time + time: true, + + // mode to start your app, can be “cluster” or “fork”, default fork + exec_mode: 'cluster', + + //number of app instance to be launched + instances: 1, // Or a number of instances. Default to max available cpu core + + // script path relative to pm2 start + script: 'dist/index.js', + + // string containing all arguments passed via CLI to script + args: 'start', + + // enable watch & restart feature, if a file change in the folder or subfolder, your app will get reloaded + watch: false, + + ignore_watch: [ + './node_modules', + './dist', + './public', + './.DS_Store', + './package.json', + './yarn.lock', + ], // ignore files change + + // your app will be restarted if it exceeds the amount of memory specified. human-friendly format : it can be “10M”, “100K”, “2G” and so on… + max_memory_restart: '250M', + + // log date format (see log section) + log_date_format: 'DD-MM-YYYY HH:mm:ss.SSS', + + // error file path (default to $HOME/.pm2/logs/XXXerr.log) + error_file: './logs/pm2.error.log', + + // out file path (default to $HOME/.pm2/logs/XXXout.log) + out_file: './logs/pm2.out.log', + + // Set a cron job to restart the app every day at 00:00 + cron_restart: '0 0 * * *', + }, + ], +}; diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..8cabdcf --- /dev/null +++ b/jest.config.js @@ -0,0 +1,22 @@ +const { pathsToModuleNameMapper } = require('ts-jest'); +const { compilerOptions } = require('./tsconfig.json'); + +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + setupFiles: ['./jest.setup.js'], + transform: { + '^.+\\.tsx?$': [ + 'ts-jest', + { + // ts-jest configuration goes here + }, + ], + }, + roots: ['/tests'], + testMatch: ['/tests/**/*.spec.ts'], + moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { + prefix: '/src', + }), +}; diff --git a/jest.setup.js b/jest.setup.js new file mode 100644 index 0000000..fa9bfe2 --- /dev/null +++ b/jest.setup.js @@ -0,0 +1,4 @@ +const path = require('path'); +require('dotenv').config({ + path: path.join(__dirname, `../.env.${process.env.NODE_ENV || 'test'}.local`), +}); diff --git a/nodemon.json b/nodemon.json new file mode 100644 index 0000000..f9b2cef --- /dev/null +++ b/nodemon.json @@ -0,0 +1,12 @@ +{ + "watch": [ + "src", + ".env.*.local" + ], + "ext": "js,ts,json", + "ignore": [ + "src/logs/*", + "src/**/*.{spec,test}.ts" + ], + "exec": "ts-node -r tsconfig-paths/register --transpile-only src/index.ts" +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..74e25dc --- /dev/null +++ b/package.json @@ -0,0 +1,134 @@ +{ + "name": "typesafe-ts-express-api-mongoose", + "version": "0.0.0", + "description": "Express + TypeScript + Mongoose + MongoDB ╰┈➤ Boilerplate", + "author": "Justin Dah-kenangnon ", + "license": "MIT", + "scripts": { + "dev": "yarn prettier:write && cross-env NODE_ENV=development nodemon", + "start:dev": "yarn build && cross-env NODE_ENV=development && pm2 start ecosystem.config.js", + "prod:start": "yarn build && cross-env NODE_ENV=production && pm2 start ecosystem.config.js", + "prod:restart": "yarn build && cross-env NODE_ENV=production && pm2 restart ecosystem.config.js", + "build": "swc src -d dist --source-maps --copy-files", + "deploy": "yarn install && yarn prettier:check && yarn prod:restart", + "lint": "eslint 'src/**/*.{js,ts}' --ignore-path .gitignore --quiet --fix", + "lint:fix": "yarn lint -- --fix", + "prepare": "husky install", + "precommit": "lint-staged", + "prettier:base": "prettier --parser typescript --single-quote", + "prettier:check": "yarn prettier:base -- --list-different \"src/**/*.{ts,tsx}\"", + "prettier:write": "yarn prettier:base -- --write \"src/**/*.{ts,tsx}\"", + "test": "jest --coverage", + "cm": "git add . && cz" + }, + "husky": { + "hooks": { + "prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true", + "pre-commit": "yarn prettier:write && yarn precommit" + } + }, + "lint-staged": { + "*.ts": [ + "yarn lint" + ] + }, + "keywords": [ + "express", + "typescript", + "mongoose", + "postgres", + "boilerplate", + "starter-template", + "starter", + "starter-kit", + "mongodb", + "typesafe-ts-express-api-mongoose", + "expressjs" + ], + "dependencies": { + "bcrypt": "^5.0.1", + "class-validator": "^0.14.0", + "compression": "^1.7.4", + "cookie-parser": "^1.4.6", + "cors": "^2.8.5", + "dotenv": "^16.0.1", + "express": "^4.18.1", + "helmet": "^5.1.1", + "hpp": "^0.2.3", + "http-status": "^1.6.2", + "i18n": "^0.15.1", + "joi": "^17.9.2", + "jsonwebtoken": "^9.0.2", + "moment": "^2.29.4", + "mongodb": "^6.1.0", + "mongoose": "^7.5.3", + "morgan": "^1.10.0", + "multer": "^1.4.5-lts.1", + "node-schedule": "^2.1.1", + "nodemailer": "^6.9.3", + "passport": "^0.6.0", + "passport-jwt": "^4.0.1", + "pug": "^3.0.2", + "reflect-metadata": "^0.1.13", + "swagger-jsdoc": "^6.2.8", + "swagger-ui-express": "^5.0.0", + "tslib": "^2.6.2", + "typedi": "^0.10.0", + "validator": "^13.11.0", + "winston": "^3.8.1", + "winston-daily-rotate-file": "^4.7.1" + }, + "devDependencies": { + "@swc/cli": "^0.1.57", + "@swc/core": "^1.2.220", + "@types/bcrypt": "^5.0.0", + "@types/compression": "^1.7.2", + "@types/cookie-parser": "^1.4.3", + "@types/cors": "^2.8.12", + "@types/express": "^4.17.13", + "@types/hpp": "^0.2.2", + "@types/i18n": "^0.13.6", + "@types/jest": "^29.5.11", + "@types/jsonwebtoken": "^9.0.3", + "@types/mock-fs": "^4.13.4", + "@types/morgan": "^1.9.3", + "@types/multer": "^1.4.8", + "@types/node": "^16.11.10", + "@types/node-schedule": "^2.1.0", + "@types/nodemailer": "^6.4.8", + "@types/passport": "^1.0.12", + "@types/passport-jwt": "^3.0.9", + "@types/pug": "^2.0.6", + "@types/swagger-jsdoc": "^6.0.1", + "@types/swagger-ui-express": "^4.1.4", + "@types/validator": "^13.11.2", + "@typescript-eslint/eslint-plugin": "^5.29.0", + "@typescript-eslint/parser": "^5.29.0", + "commitizen": "^4.3.0", + "cross-env": "^7.0.3", + "cz-conventional-changelog": "^3.3.0", + "eslint": "^8.50.0", + "eslint-config-prettier": "^8.5.0", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-prettier": "5.0.0", + "husky": "^8.0.0", + "jest": "^29.7.0", + "jest-mock-extended": "^3.0.5", + "lint-staged": "^15.2.0", + "mocha": "^10.2.0", + "mock-fs": "^5.2.0", + "nodemon": "^3.0.1", + "nyc": "^15.1.0", + "prettier": "^3.0.3", + "ts-jest": "^29.1.2", + "ts-node": "^10.9.2", + "tsc-alias": "^1.7.0", + "tsconfig-paths": "^4.0.0", + "typescript": "^5.3.3" + }, + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } + } +} diff --git a/public/.gitkeep b/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/css/.gitkeep b/public/css/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/imgs/.gitkeep b/public/imgs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/js/.gitkeep b/public/js/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..da921b8 --- /dev/null +++ b/readme.md @@ -0,0 +1,436 @@ +# typescript-express-mongoose-api-boilerplate + +> +> +> Express + TypeScript + Mongoose to build a production ready RESTful API. +> +> + + +

+ + Commitizen friendly + + + Build Status + + + Coverage Status + + + License: MIT + +

+
+

+One Commit/Week-Month Supported +

+
+ + +> [!IMPORTANT] +> +> We are committed to actively maintaining this project with at least one commit per week or month. Check out our [Commit Policy](https://github.com/Dahkenangnon/Dahkenangnon/blob/main/MyCommitPolicy.md) for more details. We believe this project is production-ready, and we encourage you to adopt it without hesitation. +> + +> [!TIP] +> +> Before adopting this project, we recommend reading our [Open Source Project Guidelines](https://github.com/Dahkenangnon/Dahkenangnon/blob/main/MyCommitPolicy.md). If you want to stay informed about updates to this project, send a simple "Hello" to oss@dah-kenangnon.com to subscribe to our notifications. +> +> For any discussions or questions, join us on our Telegram channel: https://t.me/oss_dah_kenangnon +____ +## Table of Contents + +- [typescript-express-mongoose-api-boilerplate](#typescript-express-mongoose-api-boilerplate) + - [Table of Contents](#table-of-contents) + - [Getting Started](#getting-started) + - [Features](#features) + - [Git Hooks and Commits](#git-hooks-and-commits) + - [Eslint and Prettier](#eslint-and-prettier) + - [Environment Variables](#environment-variables) + - [API Documentation](#api-documentation) + - [API Endpoints](#api-endpoints) + - [Error Handling](#error-handling) + - [Validation](#validation) + - [Authentication](#authentication) + - [Authorization](#authorization) + - [Logging](#logging) + - [paginate](#paginate) + - [Contributing](#contributing) + - [License](#license) + + +## Getting Started + +1. Clone the repo: + +```bash + +# clone the repo +git clone --depth 1 https://github.com/Dahkenangnon/typescript-express-mongoose-api-boilerplate.git + +# move to the project folder +cd typescript-express-mongoose-api-boilerplate + +# remove current origin repository +npx rimraf ./.git +``` + +2. Install the dependencies: + +```bash +yarn install +``` + +3. Set the environment variables: + +```bash +cp .env.example .env.development.local +cp .env.test.example .env.test.local + + +# open .env.test.local and .env.development.local and modify the environment variables to fit your needs +``` + +5. Run the server: + +```bash +# Run the server +yarn dev + +# Run the server in production mode +yarn deploy +``` + + +## Features + +- **TypeScript**: written in TypeScript +- **Express.js**: with [express](https://expressjs.com) +- **NoSQL database**: [MongoDB](https://www.mongodb.org) object data modeling using [Mongoose](https://mongoosejs.com/#/) +- **Authentication and authorization**: using [passport](http://www.passportjs.org) +- **Validation**: request data validation using [Joi](https://github.com/hapijs/joi) +- **Logging**: using [winston](https://github.com/winstonjs/winston) and [morgan](https://github.com/expressjs/morgan) +- **Testing**: unit, integration and e2e tests using [Jest](https://jestjs.io) and [Supertest](https://www.npmjs.com/package/supertest) and [ts-jest](https://kulshekhar.github.io/ts-jest/) +- **Error handling**: centralized error handling mechanism +- **API documentation**: with [swagger-jsdoc](https://github.com/Surnet/swagger-jsdoc) and [swagger-ui-express](https://github.com/scottie1984/swagger-ui-express) - `In progress` +- **Process management**: advanced production process management using [PM2](https://pm2.keymetrics.io) +- **Dependency management**: with [NPM](https://www.npmjs.com) +- **Environment variables**: using [dotenv](https://github.com/motdotla/dotenv) and [cross-env](https://github.com/kentcdodds/cross-env#readme) +- **Security**: set security HTTP headers using [helmet](https://helmetjs.github.io) +- **Santizing**: sanitize request data against xss and query injection +- **CORS**: Cross-Origin Resource-Sharing enabled using [cors](https://github.com/expressjs/cors) +- **Compression**: gzip compression with [compression](https://github.com/expressjs/compression) +- **Linting**: with [ESLint](https://eslint.org) and [Prettier](https://prettier.io) +- **Editor config**: consistent editor configuration using [EditorConfig](https://editorconfig.org) +- **Beautiful cron job**. Group your crons job in class, identified by annotion `@Schedule` they will be automatically runned by the app. +- **Use aliases**. Do `import from '@/utils/...` instead of `import from '../../../utils/...'` +- **Clean and simple yet powerful architecture**: Controller, Routes, Validations, Crons, Services, Entities, etc... organized by class and inheritance. +- **Less TypeError-prone**: Built with Typescript with strict mode, you will have less error at runtime. No ts-ignore comment allowed +- **Proper App Start**: All environment variables are checked and the app will not start if something is missing. +- **CRUD**: CRUD operation are handle only in base controller, focus on building real feature in your controller. +- **Commitizen friendly**: Use `yarn cm` to commit your changes. It will add your changes in the git index and guide you to write a good commit message. +- **Testing**: Jest is used for testing. You can run `yarn test` to run all tests. +- **CI/CD**: Github actions is used for CI/CD. You can find the workflow in `.github/workflows` folder. + + +## Git Hooks and Commits +We use http://commitizen.github.io/cz-cli/ along with Husky to force ourself to adopt standard commit and run test and prettier before any commit. + +So, We encourage to run this: + +```bash +# This force you to run prettier, test and enforce standard commit message +yarn cm # Same as: git add . && git commit ... +``` + +Instead of + +```bash +# You're free to do whatever you want but not recommended +git add . && git commit ... # Same as: git add . && git commit ... +``` + + +## Eslint and Prettier + +Linting is done using [ESLint](https://eslint.org/) and [Prettier](https://prettier.io). + +To modify the ESLint configuration, update the `.eslintrc.json` file. To modify the Prettier configuration, update the `.prettierrc.json` file. + +To prevent a certain file or directory from being linted, add it to `.eslintignore` and `.prettierignore`. + +To maintain a consistent coding style across different IDEs, the project contains `.editorconfig` + +```bash +# run ESLint +yarn lint + +# fix ESLint errors +yarn lint:fix + +# run prettier +yarn prettier:write + +# prettier check +yarn prettier:check + +``` + +## Environment Variables + +The environment variables can be found and modified in the `.env.example` file. +Just copy it to `.env.development.local` and `.env.production.local` and modify the values. + +## API Documentation +When running in development mode, a Swagger API documentation is available at the `/api-docs` endpoint. +To customize the API documentation edit the `src/features/*/docs/index.yaml` file. + +### API Endpoints + +List of available routes: + +**Auth routes**:\ +`POST /v1/auth/register` - register\ +`POST /v1/auth/login` - login\ +`POST /v1/auth/refresh-tokens` - refresh auth tokens\ +`POST /v1/auth/forgot-password` - send reset password email\ +`POST /v1/auth/reset-password` - reset password\ +`POST /v1/auth/send-verification-email` - send verification email\ +`POST /v1/auth/verify-email` - verify email + +**User routes**:\ +`POST /v1/users` - create a user\ +`GET /v1/users` - get all users\ +`GET /v1/users/:id` - get user\ +`PATCH /v1/users/:id` - update user\ +`DELETE /v1/users/:id` - delete user + +**Message routes**:\ +`POST /v1/messages` - create a message\ +`GET /v1/messages` - get all messages\ +`GET /v1/messages/:id` - get message\ +`PATCH /v1/messages/:id` - update message\ +`DELETE /v1/messages/:id` - delete message + +## Error Handling + +The app has a centralized error handling mechanism. + +Controllers should try to catch the errors and forward them to the error handling middleware (by calling `next(error)`). For convenience, you can also wrap the controller inside the catchAsync utility wrapper, which forwards the error. + +```typescript +import catchAsync from '@/utils/catchAsync'; + +// Instead of writing this with try/catch: +export class UserController extends BaseController< + IUser, + IUserMethods, + UserModel +>{ + +// other methods + + public login = catchAsync(async (req: Request, res: Response): Promise => { + try { + // Do something + } catch (error) { + next(error); + } + }); + +// other methods +} + + +// You can write this simply as: +export class UserController extends BaseController< + IUser, + IUserMethods, + UserModel +> { + + // other methods + +public login = catchAsync(async (req: Request, res: Response): Promise => { + // Do something + }); + + // other methods +} +``` + +The error handling middleware sends an error response, which has the following format: + +```json +{ + "code": 404, + "message": "Not found" +} +``` + +When running in development mode, the error response also contains the error stack. + +The app has a utility ApiError class to which you can attach a response code and a message, and then throw it from anywhere (catchAsync will catch it). + +For example, if you are trying to get a user from the DB who is not found, and you want to send a 404 error, the code should look something like: + +```typescript + +export class UserService extends BaseService< + IUser, + IUserMethods, + UserModel +> { + constructor() { + super(User); + } +// Other methods + +public async findUnder18(id: number): Promise { + const data: User = await this.service.findOne({ age: { $gt: 18 } }); + + if (!data) throw new ApiError(httpStatus.NOT_FOUND, "User doesn't exist"); + return data; +} + + // Other methods +} +``` + +## Validation + +Request data is validated using [Joi](https://joi.dev/). Check the [documentation](https://joi.dev/api/) for more details on how to write Joi validation schemas. + +The validation schemas are defined in the `src/**/validations` directory and are used in the each routes by providing them as parameters to the `validate` middleware. + +```typescript + +export class UserRoute extends BaseRoute { + constructor(app: express.Application) { + // Other routes + this.router.get('/:id', auth(), validate(UserValidation.readOne), this.controller.readOne); + } +} + +``` + +Note that validation for each feature are grouped into a class. Above is `UserValidation` class. This is to make easier maintenance. + +## Authentication + +To require authentication for certain routes, you can use the `auth` middleware. + +```typescript +this.router.get('/:id', auth(), validate(UserValidation.readOne), this.controller.readOne); +``` + +These routes require a valid JWT access token in the Authorization request header using the Bearer schema. If the request does not contain a valid access token, an Unauthorized (401) error is thrown. + +**Generating Access Tokens**: + +An access token can be generated by making a successful call to the register (`POST /v1/auth/register`) or login (`POST /v1/auth/login`) endpoints. The response of these endpoints also contains refresh tokens (explained below). + +An access token is valid for 30 minutes. You can modify this expiration time by changing the `JWT_ACCESS_EXPIRATION_MINUTES` environment variable in the .env.{env}.local file. + +**Refreshing Access Tokens**: + +After the access token expires, a new access token can be generated, by making a call to the refresh token endpoint (`POST /v1/auth/refresh-tokens`) and sending along a valid refresh token in the request body. This call returns a new access token and a new refresh token. + +A refresh token is valid for 30 days. You can modify this expiration time by changing the `JWT_REFRESH_EXPIRATION_DAYS` environment variable in the .env.{env}.local file. + +## Authorization + +The `auth` middleware can also be used to require certain rights/permissions to access a route. + +```typescript +this.router.get('', auth('manageUsers'), validate(UserValidation.readManyPaginated), this.controller.readManyPaginated); +``` + +In the example above, an authenticated user can access this route only if that user has the `manageUsers` permission. + +The permissions are role-based. You can view the permissions/rights of each role in the `src/config/roles.ts` file. + +If the user making the request does not have the required permissions to access this route, a Forbidden (403) error is thrown. + +## Logging + +Import the logger from `src/utils/logger.ts`. It is using the [Winston](https://github.com/winstonjs/winston) logging library. + +Logging should be done according to the following severity levels (ascending order from most important to least important): + +```typescript +import { logger } from '@/utils/logger'; + +logger.error('message'); // level 0 +logger.warn('message'); // level 1 +logger.info('message'); // level 2 +logger.http('message'); // level 3 +logger.verbose('message'); // level 4 +logger.debug('message'); // level 5 +``` + +In development mode, log messages of all severity levels will be printed to the console. + +In production mode, only `info`, `warn`, and `error` logs will be printed to the console.\ +It is up to the server (or process manager) to actually read them from the console and store them in log files.\ +This app uses pm2 in production mode, which is already configured to store the logs in log files. + +Note: API request information (request url, response code, timestamp, etc.) are also automatically logged (using [morgan](https://github.com/expressjs/morgan)). + +## paginate + +All request to get a list of documents (e.g., GET /v1/users) can be paginated by simply including the pagination parameters (page and limit) in the query string. + +Pagination is forced by default. This means that if the client does not specify the pagination parameters in the query string, the response will contain the first page of results (limit = 10 by default). + +```typescript +export abstract class BaseController< + IModelType extends IBaseModel, + IModelMethods, + MongooseModel extends Model, +> { + // Other methods + + public readManyPaginated = catchAsync(async (req: Request, res: Response) => { + const filter = pick(req.query, this.filterFields as string[]); + const options = pick(req.query, this.optionsFields); + const data = await this.service.readManyPaginated(filter, options); + res.status(httpStatus.OK).send(data); + }); + + // Other methods +} +``` + +The `filter` param is an object to be used in a WHERE clause (e.g., { name: 'John Doe' }).\ + +The `options` param can have the following (optional) fields: + +```javascript +const options = { + sortBy: 'name:desc', // sort order. + limit: 5, // maximum results per page + page: 2, // page number +}; +``` + +The options features also supports sorting by multiple criteria (separated by a comma): `sortBy: name:desc,role:asc` + +The `paginate` method returns a Promise, which fulfills with an object having the following properties: + +```json +{ + "datas": [], + "page": 2, + "limit": 5, + "totalPages": 10, + "totalResults": 48 +} +``` +## Contributing + +Contributions are more than welcome! + +## License +This project is brought to you by [Justin Dah-kenangnon](https://dah-kenangnon.com/) and licensed with the [MIT](LICENSE) diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..d031e0a Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/abstracts/controller.base.ts b/src/abstracts/controller.base.ts new file mode 100644 index 0000000..ce1815a --- /dev/null +++ b/src/abstracts/controller.base.ts @@ -0,0 +1,185 @@ +import { IBaseModel } from './model.base'; +import { BaseService } from './service.base'; +import { Model } from 'mongoose'; +import pick from '@/utils/pick/pick'; +import { Request, Response } from 'express'; +import httpStatus from 'http-status'; +import catchAsync from '@/utils/error/catchAsync'; + +/** + * Base class for controllers + */ +export abstract class BaseController< + IModelType extends IBaseModel, + IModelMethods, + MongooseModel extends Model, +> { + /** The Main service this CRUD controller is for. Note that the controller can use any other service it want */ + protected service: BaseService; + /** Filter options to pick from the request in readMany operation */ + protected filterFields: Array = [ + 'createdAt', + 'updatedAt', + '_id', + ]; + /** Options to pick from the request in readMany operation, e.g. sortBy, limit, page */ + protected optionsFields: Array = ['sortBy', 'limit', 'page']; + /** Fields to populate in readOne operation and readMany operation */ + protected populateFields: Array = []; + /** Filter options based on which, we can process update many operations */ + protected updateManyFilterFields: Array = []; + /** Filter options based on which, we can process delete many operations */ + protected deleteManyFilterFields: Array = []; + + constructor( + service: BaseService, + filterFields: Array, + optionsFields: Array, + populateFields: Array = [], + updateManyFilterFields: Array = [], + deleteManyFilterFields: Array = [] + ) { + this.service = service; + this.filterFields = filterFields; + this.optionsFields = optionsFields; + this.populateFields = populateFields; + this.updateManyFilterFields = updateManyFilterFields; + this.deleteManyFilterFields = deleteManyFilterFields; + } + + /** + * Read one item by id + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public readOne = catchAsync(async (req: Request, res: Response) => { + const item = await this.service.readOne({ id: req.params.id }); + res.status(httpStatus.OK).send(item); + }); + + /** + * Read all items + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public readMany = catchAsync(async (_req: Request, res: Response) => { + const items = await this.service.readMany({}); + res.status(httpStatus.OK).send(items); + }); + + /** + * Create one item + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public createOne = catchAsync(async (req: Request, res: Response) => { + const newItem = await this.service.createOne(req.body); + res.status(httpStatus.OK).send(newItem); + }); + + /** + * Create many items, e.g. bulk insert. + * + * Note: req.body must be an array of items + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public createMany = catchAsync(async (req: Request, res: Response) => { + const newItems = await this.service.createMany(req.body); + res.status(httpStatus.OK).send(newItems); + }); + + /** + * Update one item by id + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public updateOne = catchAsync(async (req: Request, res: Response) => { + const updatedItem = await this.service.updateOne( + { id: req.params.id }, + req.body + ); + res.status(httpStatus.OK).send(updatedItem); + }); + + /** + * Update many items by filter + * + * Note: req.body must be an object of fields to update and + * this.updateManyFilterFields must be an array of fields to filter by + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public updateMany = catchAsync(async (req: Request, res: Response) => { + const filter = pick(req.query, this.updateManyFilterFields as string[]); + const data: Partial = req.body; + const updatedItems = await this.service.updateMany(filter, data); + res.status(httpStatus.OK).send(updatedItems); + }); + + /** + * Delete one item by id + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public deleteOne = catchAsync(async (req: Request, res: Response) => { + const id = req.params.id; + const deletedItem = await this.service.deleteOne({ id }); + res.status(httpStatus.OK).send(deletedItem); + }); + + /** + * Delete many items by filter + * + * @example + * + * // Using ids and other fields to filter what to delete + * const q = { + * id: [1, 2, 3], + * title: 'hello', + * isArchived: true, + * }; + * + * const qUrl = '/api/v1/messages?id=1&id=2&id=3&title=hello&isArchived=true'; + * + * // To delete all element where ids are in [1, 2, 3], we can pass {id: [1, 2, 3]}. + * const qUrl = '/api/v1/messages?id=1&id=2&id=3' + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public deleteMany = catchAsync(async (req: Request, res: Response) => { + const filter = pick(req.query, this.deleteManyFilterFields as string[]); + const deletedItems = await this.service.deleteMany(filter); + res.status(httpStatus.OK).send(deletedItems); + }); + + /** + * Read many items with pagination + * + * @param req The express request object + * @param res The express response object + * @returns Promise + */ + public readManyPaginated = catchAsync(async (req: Request, res: Response) => { + const filter = pick(req.query, this.filterFields as string[]); + const options = pick(req.query, this.optionsFields); + const data = await this.service.readManyPaginated(filter, options); + res.status(httpStatus.OK).send(data); + }); +} diff --git a/src/abstracts/crons.base.ts b/src/abstracts/crons.base.ts new file mode 100644 index 0000000..01c0b17 --- /dev/null +++ b/src/abstracts/crons.base.ts @@ -0,0 +1,40 @@ +/** + * Cron job base class + */ +export default abstract class CronBase { + [key: string]: Function | any | undefined; + /** The cron job group name */ + static cronGroupName: string; + /** Called before the cron class is registered */ + beforeRegister(): void | Promise { + return; + } + /** Called after the cron class is registered */ + afterRegister(): void | Promise { + return; + } + /** Called before the cron class is unregistered */ + beforeUnregister(): void | Promise { + return; + } + /** Called after the cron class is unregistered */ + afterUnregister(): void | Promise { + return; + } + /** Called before the first methods of the cron class is started */ + beforeStart(): void | Promise { + return; + } + /** Called after the last methods of the cron class is started */ + afterStart(): void | Promise { + return; + } + /** Called before the first methods of the cron class is stopped */ + beforeStop(): void | Promise { + return; + } + /** Called after the last methods of the cron class is stopped */ + afterStop(): void | Promise { + return; + } +} diff --git a/src/abstracts/feature.base.ts b/src/abstracts/feature.base.ts new file mode 100644 index 0000000..23ed4f9 --- /dev/null +++ b/src/abstracts/feature.base.ts @@ -0,0 +1,24 @@ +import express from 'express'; +import CronBase from './crons.base'; +import http from 'http'; + +export default abstract class Feature { + /** Express application */ + public app: express.Application; + /** Name of the feature */ + public name?: string; + /** Description of the feature */ + public description?: string; + /** List of cron jobs defined in this feature*/ + public crons: CronBase[] = []; + public routes: any; + public server?: http.Server; + + constructor(app: express.Application, name?: string, description?: string) { + this.app = app; + this.name = name || this.constructor.name; + this.description = description || this.name; + } + + public abstract init(): void; +} diff --git a/src/abstracts/model.base.ts b/src/abstracts/model.base.ts new file mode 100644 index 0000000..eee5dcb --- /dev/null +++ b/src/abstracts/model.base.ts @@ -0,0 +1,9 @@ +/** + * Each model interface should extend this base model + */ +export interface IBaseModel { + id?: string; + _id?: string; + createdAt?: string; + updatedAt?: string; +} diff --git a/src/abstracts/route.base.ts b/src/abstracts/route.base.ts new file mode 100644 index 0000000..0330566 --- /dev/null +++ b/src/abstracts/route.base.ts @@ -0,0 +1,26 @@ +import { Router } from 'express'; +import express from 'express'; +import { BaseController } from './controller.base'; + +/** + * Base class for routes + */ +export abstract class BaseRoute> { + /** Base route for this feature route */ + public path: string; + /** Express router */ + public router: Router; + /** Express application */ + public app: express.Application; + /** Controller for this feature route */ + public controller: T; + + constructor(app: express.Application, path: string, Controller: any) { + this.app = app; + this.path = path; + this.router = Router(); + this.controller = new Controller() as T; + } + + public abstract registerRoutes(): void; +} diff --git a/src/abstracts/service.base.ts b/src/abstracts/service.base.ts new file mode 100644 index 0000000..0a2eb01 --- /dev/null +++ b/src/abstracts/service.base.ts @@ -0,0 +1,146 @@ +import { Model } from 'mongoose'; +import { IBaseModel } from './model.base'; +import { UpdateWriteOpResult } from 'mongoose'; +import { DeleteResult } from 'mongodb'; + +/** + * Mongoose Service Base class. + * + * Example of use: + * + * ```ts + * import { BaseService } from '@/abstracts/service.base'; + * + * // ... import IModelType, IModelMethods, MongooseModel from the model file + * + * MessageService extends BaseService {} + * ``` + */ +export abstract class BaseService< + IModelType extends IBaseModel, + IModelMethods, + MongooseModel extends Model, +> { + /** The mongoose object this service is belonged to */ + protected model: MongooseModel; + constructor(model: MongooseModel) { + this.model = model; + } + + /** + * Create a new document in the database + * + * @param data Data to create a new model with + * @returns Promise + */ + async createOne(data: any) { + const newModel = new this.model(data); + return await newModel.save(); + } + + /** + * Create many documents in the database in same time + * + * @param data Array of object data to create many models with + * @returns Promise + */ + async createMany(data: any[]) { + return await this.model.insertMany(data); + } + + /** + * Read many documents from the database based on the filter + * + * @param filter The filter to apply on the query + * @returns Promise + */ + async readMany(filter: any) { + return await this.model.find(filter); + } + + /** + * Read many paginated documents from the database based on the filter and options + * + * @param filter Filter to apply on the query + * @param options Options to apply on the query can be: limit, page, sortBy for pagination purpose + * @returns + */ + async readManyPaginated(filter: any, options: any) { + // options.populate = 'author'; + return await (this.model as any).paginate(filter, options); + } + + /** + * Read one document from the database based on the filter + * + * @param filter Filter to apply on the query + * @returns Promise + */ + async readOne(filter: any) { + if (filter.id) { + filter._id = filter.id; + delete filter.id; + } + + return await this.model.findOne(filter); + } + + /** + * Update one document from the database based on the filter + * + * @param filter The filter to apply on the query + * @param data The data to update the document with + * @returns Promise + */ + async updateOne(filter: any, data: any) { + if (filter.id) { + filter._id = filter.id; + delete filter.id; + } + return await this.model.findOneAndUpdate(filter, data, { new: true }); + } + + /** + * Update many documents from the database based on the filter + * + * @param filter The filter to apply on the query + * @param data The data to update the documents with. + * This is an object not an array of objects + * @returns Promise + */ + async updateMany(filter: any, data: any): Promise { + if (filter.id) { + filter._id = filter.id; + delete filter.id; + } + return await this.model.updateMany(filter, data); + } + + /** + * Delete one document from the database based on the filter + * + * @param filter The filter to apply on the query + * @returns Promise + */ + async deleteOne(filter: any) { + if (filter.id) { + filter._id = filter.id; + delete filter.id; + } + return await this.model.findOneAndDelete(filter); + } + + /** + * Delete many documents from the database based on the filter + * + * @param filter The filter to apply on the query + * @returns Promise + */ + async deleteMany(filter: any): Promise { + if (filter.id) { + filter._id = filter.id; + delete filter.id; + } + return await this.model.deleteMany(filter); + } +} diff --git a/src/abstracts/validation.base.ts b/src/abstracts/validation.base.ts new file mode 100644 index 0000000..b60bd64 --- /dev/null +++ b/src/abstracts/validation.base.ts @@ -0,0 +1,120 @@ +import config from '@config'; +import jwt from 'jsonwebtoken'; + +/** + * Base validation class + */ +export abstract class BaseValidation { + /** + * Custom validation for password + * + * @param value Request value + * @param helpers Helpers from Joi + * @returns The validated value or throws an error + */ + public static password = (value: any, helpers: any) => { + if (value.length < config.validation.password.min) { + return helpers.message( + `password must be at least ${config.validation.password.min} characters` + ); + } + if (!value.match(/\d/) || !value.match(/[a-zA-Z]/)) { + return helpers.message( + 'password must contain at least 1 letter and 1 number' + ); + } + return value; + }; + + /** + * Validate if a string (value) is a Json Web Token string + * + * @param value The value to validate + * @param helpers Helpers from Joi + * @returns The validated value or throws an error + */ + public static jwt = (value: any, helpers: any) => { + if (!value) { + return helpers.message({ message: 'No token provided.' }); + } + + try { + const decoded = jwt.decode(value); + if (!decoded) { + return helpers.message({ message: 'Invalid token.' }); + } + } catch (err) { + return helpers.message({ message: 'Invalid token.' }); + } + + return value; + }; + + /** + * Custom validation for mongo object id + * + * @param value The value to validate + * @param helpers Helpers from Joi + * @returns The validated value or throws an error + */ + public static rowId = (value: any, helpers: any) => { + if (!value.match(/^[0-9a-fA-F]{24}$/)) { + return helpers.message('Invalid object id'); + } + return value; + }; + + /** + * Ensure that a string is a valid name length based on the config constraint + * + * @param value The value to validate + * @param helpers Helpers from Joi + * @returns The validated value or throws an error + */ + public static nameConstraint = (value: any, helpers: any) => { + if ( + value.length < config.validation.username.min || + value.length > config.validation.username.max + ) { + return helpers.message( + `A name must be at least ${config.validation.password.min} characters` + ); + } + return value; + }; + + /** + * Ensure that a string is a valid full username length based on the config constraint + * + * @param value The value to validate + * @param helpers Helpers from Joi + * @returns The validated value or throws an error + */ + public static fullNameConstraint = (value: any, helpers: any) => { + if (value.length < 1 || value.length > config.validation.userFullname.max) { + return helpers.message( + `A full name must be at least ${config.validation.password.min} characters` + ); + } + return value; + }; + + /** + * Ensure that a string has a valid email length based on the config constraint + * + * @param value The value to validate + * @param helpers Helpers from Joi + * @returns The validated value or throws an error + */ + public static emailConstraint = (value: any, helpers: any) => { + if ( + value.length < config.validation.email.min || + value.length > config.validation.email.max + ) { + return helpers.message( + `An email must be at least ${config.validation.password.min} characters` + ); + } + return value; + }; +} diff --git a/src/app.ts b/src/app.ts new file mode 100644 index 0000000..c2a253e --- /dev/null +++ b/src/app.ts @@ -0,0 +1,156 @@ +import 'reflect-metadata'; +import cookieParser from 'cookie-parser'; +import cors from 'cors'; +import express, { + NextFunction, + Response, + Request, + RequestHandler, + ErrorRequestHandler, +} from 'express'; +import helmet from 'helmet'; +import hpp from 'hpp'; +import morgan from 'morgan'; +import compression from 'compression'; +import config from '@config'; +import { connectDB } from '@database'; +import { logger, stream } from '@/utils/logger'; +import Features from '@features'; +import http from 'http'; +import passport from 'passport'; +import { jwtStrategy } from '@config/passport'; +import { errorConverter, errorHandler } from '@middlewares/error'; +import httpStatus from 'http-status'; +import ApiError from './utils/error/ApiError'; +import path from 'path'; +import bodyParser from 'body-parser'; +import i18n from 'i18n'; +import swaggerJSDoc from 'swagger-jsdoc'; +import swaggerUi from 'swagger-ui-express'; +import packageJson from '../package.json'; +import { EmailUtils } from './utils/email'; +export default class App { + /** Express Application */ + public app: express.Application; + /** Environment */ + public env: string; + /** Is Production */ + public isProduction: boolean; + /** Port */ + public port: string | number; + /** Features (Business Logics and functionalities) */ + public features: Features; + /** Server */ + public server: http.Server; + + constructor() { + this.app = express(); + this.env = config.env || 'production'; // Defaulting to production to avoid accidental leak of sensitive data + this.port = config.port || 3000; + this.isProduction = config.isProduction; + this.server = http.createServer(this.app); + this.server.keepAliveTimeout = config.keepAliveTimeout; + this.features = new Features(this.app, this.server); + } + + public listen() { + this.preMiddleware(); + + if (!this.isProduction) { + this.swaggerDoc(); + } + this.features.init(); + + this.postMiddleware(); + + // We listen on the http server to allow easy socket.io integration + this.server.listen(this.port, () => { + logger.info(`🚀 App Started 🚀 `); + }); + } + + public async bootstrap() { + const isConnectedToEmailServer = + await EmailUtils.getInstance().connectToEmailServer(['test']); + + if (!isConnectedToEmailServer) { + throw new ApiError( + httpStatus.INTERNAL_SERVER_ERROR, + this.env !== 'production' + ? 'Unable to connect to email server. Make sure you have configured the SMTP options in .env. If you are in dev env, please pass the `skipEnvs` option to the `connectToEmailServer` method.' + : 'App bootstrap failed. Please contact the administrator' + ); + } + + await connectDB(); + } + + private preMiddleware() { + this.app.set('trust proxy', 1); + this.app.use(morgan(config.logFormat, { stream })); + this.app.use( + cors({ origin: config.origin, credentials: config.credentials }) + ); + this.app.use(passport.initialize()); + passport.use('jwt', jwtStrategy); + this.app.use(hpp()); + this.app.use(helmet()); + this.app.use( + bodyParser.urlencoded({ + limit: config.maximumRequestBodySize, + parameterLimit: config.parameterLimit, + extended: true, + }) + ); + this.app.use(compression()); + this.app.use(express.json()); + this.app.use(express.urlencoded({ extended: true })); + this.app.use(cookieParser()); + this.app.use(express.static(path.join(`${__dirname}/../public`))); + i18n.configure({ + locales: ['en', 'fr'], + directory: path.join(__dirname, 'locales', 'emails'), + defaultLocale: 'en', + objectNotation: true, + }); + this.app.use(i18n.init); + this.app.use(((req: Request, res: Response, next: NextFunction) => { + res.locals.__ = req.__; + next(); + }) as RequestHandler); + } + + private swaggerDoc() { + const options = { + swaggerDefinition: { + info: { + title: config.projectName ?? packageJson.name, + version: packageJson.version, + description: config.projectDescription, + license: { + name: packageJson.license ?? 'MIT', + url: 'https://choosealicense.com/licenses/mit/', + }, + }, + }, + // Maybe, you can change it to use json instead of yaml + apis: ['src/features/**/docs/*.yaml'], + }; + + const specs = swaggerJSDoc(options); + this.app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(specs)); + } + + private postMiddleware() { + const notFoundHandler = ( + _req: Request, + _res: Response, + next: NextFunction + ) => { + next(new ApiError(httpStatus.NOT_FOUND, 'URL Not Found')); + }; + this.app.use(notFoundHandler as RequestHandler); + this.app.use(errorConverter as ErrorRequestHandler); + this.app.use(errorHandler as ErrorRequestHandler); + } +} diff --git a/src/config/index.ts b/src/config/index.ts new file mode 100644 index 0000000..c9bbe39 --- /dev/null +++ b/src/config/index.ts @@ -0,0 +1,403 @@ +import dotenv from 'dotenv'; +import path from 'path'; +import Joi from 'joi'; +import { logger } from '@/utils/logger'; + +/** Load the environment variables from the .env file depending on the NODE_ENV value. Use production default to avoid leaving sensible infos */ +dotenv.config({ + path: path.join( + __dirname, + `../../.env.${process.env.NODE_ENV || 'production'}.local` + ), +}); + +/** + * Main configuration class. + * @example // How to use the config class + * + * import config from '@/config'; + * + * console.log(config.port); // 3000 + */ +export class Config { + /** Singleton instance */ + private static instance: Config; + + /** Environment variables */ + public env: string; + /** Whether the application is in production or not */ + public isProduction: boolean; + /** Whether the application is in development or not */ + public port: number; + /** Http Keep alive timeout */ + public keepAliveTimeout: number; + /** Http Domaine name */ + public domaineName: string; + /** Http Parameter limit */ + public parameterLimit: number; + /** Http Request body size */ + public maximumRequestBodySize: number; + + /** The frontend app url (Used for password reset) */ + public frontendUrl: string; + /** Project code name */ + public projectName: string; + /** Project display name */ + public projectDisplayName: string; + /** Project description */ + public projectDescription: string; + + /** Where to store log file */ + public logDir: string; + /** Log format */ + public logFormat: string; + + /** CORS origin */ + public origin: string; + /** CORS credentials */ + public credentials: boolean; + + /** General secret used for general purpose */ + public secretKey: string; + /** JWT access token expiration in minutes */ + public jwt: { + secret: string; + accessExpirationMinutes: number; + refreshExpirationDays: number; + resetPasswordExpirationMinutes: number; + verifyEmailExpirationMinutes: number; + }; + + /** Database configuration vars */ + public db: { + uri: string; + options: { + useNewUrlParser: boolean; + useUnifiedTopology: boolean; + }; + }; + + /** Upload file type */ + public upload: { + allowedFileTypes: string[]; + filesTypes: { + audio: { + allowed: string[]; + disallowed: string[]; + }; + image?: { + allowed: string[]; + disallowed: string[]; + }; + video?: { + allowed: string[]; + disallowed: string[]; + }; + document: { + allowed: string[]; + disallowed: string[]; + }; + }; + }; + + /** Email sending configurations */ + public email: { + smtp: { + host: string; + port: number; + auth: { + user: string; + pass: string; + }; + }; + from: string; + }; + + // Data validation constraints + public validation: { + password: { + min: number; + max: number; + }; + username: { + min: number; + max: number; + }; + userFullname: { + max: number; + }; + email: { + min: number; + max: number; + }; + }; + + public isEnvSetAndValid = false; + public envVarsSchema: Joi.ObjectSchema | undefined; + + private constructor() { + /** Joi Schema to validate the env vars */ + this.envVarsSchema = Joi.object() + .keys({ + // PROJECT + PROJECT_NAME: Joi.string() + .required() + .description('Project code name (no spacial chars, no spaces)'), + PROJECT_DISPLAY_NAME: Joi.string() + .required() + + .description('Project display name'), + PROJECT_DESCRIPTION: Joi.string() + + .required() + .description('Project description'), + FRONTEND_URL: Joi.string() + + .required() + .description('Frontend app url, used for password reset'), + + // Data Validation Constraints + MIN_PASSWORD_LENGTH: Joi.number() + .default(8) + .description('Minimum password length'), + MAX_PASSWORD_LENGTH: Joi.number() + .default(255) + .description('Maximum password length'), + MIN_USERNAME_LENGTH: Joi.number() + .default(1) + .description('Minimum username length'), + MAX_USERNAME_LENGTH: Joi.number() + .default(50) + .description('Maximum username length'), + MAX_USER_FULLNAME_LENGTH: Joi.number() + .default(70) + .description('Maximum user fullname length'), + MIN_EMAIL_LENGTH: Joi.number() + .default(3) + .description('Minimum email length'), + MAX_EMAIL_LENGTH: Joi.number() + .default(255) + .description('Maximum email length'), + + // NODE + NODE_ENV: Joi.string() + .valid('production', 'development', 'test') + .required(), + SECRET_KEY: Joi.string() + + .required() + .description('General purpose secret key. Not widely used.'), + LOG_FORMAT: Joi.string() + + .required() + .description('Log format'), + LOG_DIR: Joi.string() + + .required() + .description('Log directory'), + PORT: Joi.number() + .default(3000) + .description('Port number to run the server on'), + + // HTTP + KEEP_ALIVE_TIMEOUT: Joi.number() + .required() + .description('Http keep alive timeout'), + PARAMETER_LIMIT: Joi.number() + .required() + .description('Http parameter limit'), + MAXIMUM_REQUEST_BODY_SIZE: Joi.string() + .required() + + .description('Http request body size'), + DOMAIN_NAME: Joi.string() + .required() + + .description('Application full domaine name'), + + // DB + DB_URL: Joi.string() + + .required() + .description('DB URL is required'), + + // CORS + ORIGIN: Joi.string().required().description('CORS origin'), + CREDENTIALS: Joi.boolean() + .default(false) + .description('CORS credentials'), + + // JWT + JWT_SECRET: Joi.string().required().description('JWT secret key'), + JWT_ACCESS_EXPIRATION_MINUTES: Joi.number() + .default(30) + .description('Minutes after which access tokens expire'), + JWT_REFRESH_EXPIRATION_DAYS: Joi.number() + .default(30) + .description('Days after which refresh tokens expire'), + JWT_RESET_PASSWORD_EXPIRATION_MINUTES: Joi.number() + .default(10) + .description('Minutes after which reset password token expires'), + JWT_VERIFY_EMAIL_EXPIRATION_MINUTES: Joi.number() + .default(10) + .description('Minutes after which verify email token expires'), + + // EMAIL + SMTP_HOST: Joi.string().description('Server that will send the emails'), + SMTP_PORT: Joi.number().description( + 'Port to connect to the email server' + ), + SMTP_USERNAME: Joi.string().description('Username for email server'), + SMTP_PASSWORD: Joi.string().description('Password for email server'), + EMAIL_FROM: Joi.string() + .required() + .description('The from field in the emails sent by the app'), + // twilio + TWILIO_ACCOUNT_SID: Joi.string().description('Twilio account SID'), + TWILIO_AUTH_TOKEN: Joi.string().description('Twilio auth token'), + TWILIO_PHONE_NUMBER: Joi.string().description('Twilio phone number'), + + // UPLOAD + UPLOAD_ALLOWED_FILE_TYPES: Joi.string().description( + 'Upload allowed file types' + ), + UPLOAD_AUDIO_ALLOWED_FILE_TYPES: Joi.string().description( + 'Upload allowed audio file types' + ), + UPLOAD_AUDIO_DISALLOWED_FILE_TYPES: Joi.string() + .description('Upload disallowed audio file types') + .optional(), + UPLOAD_IMAGE_ALLOWED_FILE_TYPES: Joi.string().description( + 'Upload allowed image file types' + ), + UPLOAD_IMAGE_DISALLOWED_FILE_TYPES: Joi.string().description( + 'Upload disallowed image file types' + ), + UPLOAD_VIDEO_ALLOWED_FILE_TYPES: Joi.string().description( + 'Upload allowed video file types' + ), + UPLOAD_VIDEO_DISALLOWED_FILE_TYPES: Joi.string().description( + 'Upload disallowed video file types' + ), + UPLOAD_DOCUMENT_ALLOWED_FILE_TYPES: Joi.string().description( + 'Upload allowed document file types' + ), + UPLOAD_DOCUMENT_DISALLOWED_FILE_TYPES: Joi.string().description( + 'Upload disallowed document file types' + ), + }) + .unknown(); + + // Validate env vars + const { value: envVars, error } = this.envVarsSchema + .prefs({ errors: { label: 'key' }, abortEarly: true }) + .validate(process.env); + + // Throw error if env vars are not valid + if (error) { + logger.error(error); + throw new Error( + `Sorry! Cannot continue without environnement setup ? ${error.message}` + ); + } + + this.isEnvSetAndValid = true; + + // If we are here, then the env vars are valid + this.env = envVars.NODE_ENV; + this.isProduction = envVars.NODE_ENV === 'production'; + this.port = envVars.PORT; + this.keepAliveTimeout = envVars.KEEP_ALIVE_TIMEOUT; + this.domaineName = envVars.DOMAIN_NAME; + this.maximumRequestBodySize = envVars.MAXIMUM_REQUEST_BODY_SIZE; + this.parameterLimit = envVars.PARAMETER_LIMIT; + this.db = { + uri: envVars.DB_URL, + options: { + useNewUrlParser: true, + useUnifiedTopology: true, + }, + }; + this.secretKey = envVars.SECRET_KEY; + this.logDir = envVars.LOG_DIR; + this.logFormat = envVars.LOG_FORMAT; + this.origin = envVars.ORIGIN; + this.credentials = envVars.CREDENTIALS === 'true'; + this.frontendUrl = envVars.FRONTEND_URL; + this.projectName = envVars.PROJECT_NAME; + this.projectDisplayName = envVars.PROJECT_DISPLAY_NAME; + this.projectDescription = envVars.PROJECT_DESCRIPTION; + this.jwt = { + secret: envVars.JWT_SECRET, + accessExpirationMinutes: envVars.JWT_ACCESS_EXPIRATION_MINUTES, + refreshExpirationDays: envVars.JWT_REFRESH_EXPIRATION_DAYS, + resetPasswordExpirationMinutes: + envVars.JWT_RESET_PASSWORD_EXPIRATION_MINUTES, + verifyEmailExpirationMinutes: envVars.JWT_VERIFY_EMAIL_EXPIRATION_MINUTES, + }; + this.email = { + smtp: { + host: envVars.SMTP_HOST, + port: envVars.SMTP_PORT, + auth: { + user: envVars.SMTP_USERNAME, + pass: envVars.SMTP_PASSWORD, + }, + }, + from: envVars.EMAIL_FROM, + }; + + this.validation = { + password: { + min: envVars.MIN_PASSWORD_LENGTH, + max: envVars.MAX_PASSWORD_LENGTH, + }, + username: { + min: envVars.MIN_USERNAME_LENGTH, + max: envVars.MAX_USERNAME_LENGTH, + }, + userFullname: { + max: envVars.MAX_USER_FULLNAME_LENGTH, + }, + email: { + min: envVars.MIN_EMAIL_LENGTH, + max: envVars.MAX_EMAIL_LENGTH, + }, + }; + + this.upload = { + allowedFileTypes: envVars.UPLOAD_ALLOWED_FILE_TYPES?.split(','), + filesTypes: { + audio: { + allowed: envVars.UPLOAD_AUDIO_ALLOWED_FILE_TYPES?.split(','), + disallowed: envVars.UPLOAD_AUDIO_DISALLOWED_FILE_TYPES?.split(','), + }, + image: { + allowed: envVars.UPLOAD_IMAGE_ALLOWED_FILE_TYPES?.split(','), + disallowed: envVars.UPLOAD_IMAGE_DISALLOWED_FILE_TYPES?.split(','), + }, + video: { + allowed: envVars.UPLOAD_VIDEO_ALLOWED_FILE_TYPES?.split(','), + disallowed: envVars.UPLOAD_VIDEO_DISALLOWED_FILE_TYPES?.split(','), + }, + document: { + allowed: envVars.UPLOAD_DOCUMENT_ALLOWED_FILE_TYPES?.split(','), + disallowed: envVars.UPLOAD_DOCUMENT_DISALLOWED_FILE_TYPES?.split(','), + }, + }, + }; + } + + /** + * Get the singleton instance of the Config class + * @returns {Config} The singleton instance + */ + public static getInstance(): Config { + if (!Config.instance) { + Config.instance = new Config(); + } + return Config.instance; + } +} + +export default Config.getInstance(); diff --git a/src/config/passport.ts b/src/config/passport.ts new file mode 100644 index 0000000..21de358 --- /dev/null +++ b/src/config/passport.ts @@ -0,0 +1,42 @@ +import { Strategy as JwtStrategy, ExtractJwt } from 'passport-jwt'; +import config from '@config'; +import { tokenTypes } from './tokens'; +import UserService from '@features/user/services'; +import { Container } from 'typedi'; +import { logger } from '@/utils/logger'; +import ApiError from '@/utils/error/ApiError'; +import httpStatus from 'http-status'; + +/** Jwt options */ +const jwtOptions = { + secretOrKey: config.jwt.secret, + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), +}; + +/** + * Verifies the token extracted from the request + * + * @param payload The payload extracted from the token + * @param done The callback to be called when finished + * @returns Promise + */ +export const jwtVerify = async (payload: any, done: any) => { + const userService = Container.get(UserService); + + try { + if (payload.type !== tokenTypes.ACCESS) { + logger.error('Invalid token type'); + throw new ApiError(httpStatus.UNAUTHORIZED, 'Invalid token type'); + } + const user = await userService.readOne({ id: payload.sub }); + if (!user) { + return done(null, false); + } + done(null, user); + } catch (error) { + logger.error('JwtVerify: ', error); + done(error, false); + } +}; + +export const jwtStrategy = new JwtStrategy(jwtOptions, jwtVerify); diff --git a/src/config/roles.ts b/src/config/roles.ts new file mode 100644 index 0000000..6e8fb2c --- /dev/null +++ b/src/config/roles.ts @@ -0,0 +1,8 @@ +const allRoles = { + user: [], + admin: ['getUsers', 'manageUsers'], + team: [], +}; + +export const roles = Object.keys(allRoles); +export const roleRights = new Map(Object.entries(allRoles)); diff --git a/src/config/tokens.ts b/src/config/tokens.ts new file mode 100644 index 0000000..c3b38db --- /dev/null +++ b/src/config/tokens.ts @@ -0,0 +1,6 @@ +export const tokenTypes = { + ACCESS: 'access', + REFRESH: 'refresh', + RESET_PASSWORD: 'resetPassword', + VERIFY_EMAIL: 'verifyEmail', +}; diff --git a/src/crons/index.ts b/src/crons/index.ts new file mode 100644 index 0000000..2622c5b --- /dev/null +++ b/src/crons/index.ts @@ -0,0 +1,326 @@ +import CronBase from '@/abstracts/crons.base'; +import { logger } from '@/utils/logger'; +import * as schedule from 'node-schedule'; + +/** Cron job decorator options */ +export interface JobOptions { + timezone?: string; + runOnInit?: boolean; + enabled?: boolean; + stopOnError?: boolean; + runOnMissed?: boolean; + runOnComplete?: boolean; + name?: string; // Added to identify jobs by name +} + +/** + * Schedule a cron job using a decorator + * + * @param cronExpression Regular cron expression + * @param options Cron job decorator options + * @returns The scheduled job + */ +export function Schedule(cronExpression: string, options?: JobOptions) { + return function (_target: any, key: string, descriptor: PropertyDescriptor) { + const originalMethod = descriptor.value; + const name = options?.name || key; // Default to method name if no name is provided + + descriptor.value = function (...args: any[]) { + // Create a scheduled job using the provided cron expression and options + return CronContainer.scheduleJob( + name, + cronExpression, + async () => { + await originalMethod.apply(this, args); + }, + options + ); + }; + // This is used to identify scheduled methods in the cronGroup class + descriptor.value.isScheduled = true; + }; +} + +/** + * Cron Job Manager using `node-schedule` module + * To use other cron module, just update the CronContainer.scheduleJob method + */ +export class CronContainer { + private static instance: CronContainer; + static getInstance() { + if ( + CronContainer.instance === undefined || + CronContainer.instance === null + ) { + CronContainer.instance = new CronContainer(); + } + return CronContainer.instance; + } + + /** Hold all cron jobs. Cron jobs are class schedule methods */ + static jobs: Record = {}; + /** Hold all canceled cron jobs. */ + static canceledJobs: Record = {}; + /** Hold cron job group name. Here group are classes which methods can be scheduled */ + private cronChildren: CronBase[] = []; + + /** + * Register a cron job group class + * @param cronGroup A cron job group class + * @returns void + */ + public register(cronGroup: CronBase) { + // Execute the beforeRegister method of the cronGroup + if ( + cronGroup.beforeRegister && + typeof cronGroup.beforeRegister === 'function' + ) { + cronGroup.beforeRegister(); + } + this.cronChildren.push(cronGroup); + + // Execute the afterRegister method of the cronGroup + if ( + cronGroup.afterRegister && + typeof cronGroup.afterRegister === 'function' + ) { + cronGroup.afterRegister(); + } + } + + /** + * Unregister a cron job group class + * + * @param cronGroup A cron job group class + * @returns void + */ + public unRegister(cronGroup: CronBase) { + const index = this.cronChildren.indexOf(cronGroup); + if (index !== -1) { + // Execute the beforeUnregister method of the cronGroup + if ( + cronGroup.beforeUnregister && + typeof cronGroup.beforeUnregister === 'function' + ) { + cronGroup.beforeUnregister(); + } + this.cronChildren.splice(index, 1); + // Execute the afterUnregister method of the cronGroup + if ( + cronGroup.afterUnregister && + typeof cronGroup.afterUnregister === 'function' + ) { + cronGroup.afterUnregister(); + } + } + } + + /** + * Start all cron jobs registered + * + * This should be called after all cron jobs are registered and only once on application startup + */ + public start() { + this.cronChildren.forEach((cronGroup) => { + const methods = Object.getOwnPropertyNames( + Object.getPrototypeOf(cronGroup) + ); + let i = 0; + const n = methods.length; + methods.forEach((method) => { + const fn = cronGroup[method]; + if (typeof fn === 'function' && fn?.isScheduled) { + // Execute the beforeStart first method of the cronGroup + if ( + i === 0 && + cronGroup.beforeStart && + typeof cronGroup.beforeStart === 'function' + ) { + cronGroup.beforeStart(); + } + + // Execute the scheduled method + fn.call(cronGroup); + + // Execute the afterStart last method of the cronGroup + if ( + i === n - 1 && + cronGroup.afterStart && + typeof cronGroup.afterStart === 'function' + ) { + cronGroup.afterStart(); + } + i++; + } + }); + }); + logger.info( + `CronContainer started with: ${CronContainer.getRunningJobCount()} running jobs which are: ${CronContainer.getAllJobNames().join( + ', ' + )}` + ); + } + + /** + * Schedule a cron job using `node-schedule` module and store it in the jobs list + * + * When needed to change cron module, this is the only method to change + * @see https://www.npmjs.com/package/node-schedule + * @param name The name of the scheduled job + * @param cronExpression Regular cron expression + * @param callback Callback function which will be executed on the scheduled time + * @param options Cron job decorator options + * @returns The scheduled job + */ + static scheduleJob( + name: string, + cronExpression: string, + callback: (...args: any[]) => Promise, + options?: JobOptions + ) { + const job = schedule.scheduleJob(cronExpression, async () => { + try { + await callback(); + } catch (error) { + console.error(`Error executing scheduled task [${name}]:`, error); + if (options?.stopOnError) { + job.cancel(); + } + } + }); + + if (options?.runOnInit) { + job.invoke(); + } + + this.jobs[name] = job; + + return job; + } + + // Below methods have to be reviewed + + /** + * Get a scheduled job by name + * + * @param name The name of the scheduled job + * @returns The scheduled job + */ + static getJob(name: string) { + return this.jobs[name] || null; + } + + /** + * Cancel a scheduled job by name and remove it from the jobs list + * + * @param name The name of the scheduled job + */ + static cancelJob(name: string) { + const job = this.jobs[name] || null; + if (job) { + job.cancel(); + delete this.jobs[name]; + } + } + + /** + * Cancel all scheduled jobs and remove them from the jobs list + * + * @returns void + */ + static cancelAllJobs() { + for (const name in Object.keys(this.jobs)) { + this.cancelJob(name); + } + } + + /** + * Reschedule a scheduled job by name + * + * Change the scheduled time/infos of a job + * + * @param name The name of the scheduled job + * @param cronExpression Regular cron expression + * @returns True if the job was rescheduled, false otherwise + */ + static rescheduleJob(name: string, cronExpression: string) { + const job = this.jobs[name]; + if (job) { + return job.reschedule(cronExpression); + } + return false; + } + + /** + * Reschedule all scheduled jobs + * + * Change the scheduled time/infos of all jobs + * + * @param cronExpression Regular cron expression + * @returns An array of True/False values if the job was rescheduled or not + * @see rescheduleJob + */ + static rescheduleAllJobs(cronExpression: string) { + const rescheduled = []; + for (const name in Object.keys(this.jobs)) { + rescheduled.push(this.rescheduleJob(name, cronExpression)); + } + return rescheduled; + } + + /** + * Get the number of scheduled jobs + * + * @returns The number of scheduled jobs + */ + static getRunningJobCount(): number { + return Object.values(this.jobs).filter( + (job) => job.nextInvocation() !== null + ).length; + } + + /** + * Get the list of scheduled jobs + * + * @returns An array of scheduled jobs + */ + static getRunningJobs() { + return Object.values(this.jobs).filter( + (job) => job.nextInvocation() !== null + ); + } + + /** + * Get the list of scheduled jobs names + * + * @returns An array of scheduled jobs names + */ + static getAllJobs() { + return Object.values(this.jobs); + } + + /** + * Get the list of scheduled jobs names + * + * @returns An array of scheduled jobs names + */ + static getAllJobNames() { + return Object.keys(this.jobs); + } + + /** + * Start a scheduled job by name + * + * @param name The name of the scheduled job + * @returns void + * @see invoke + */ + static startAllJobs() { + for (const name in Object.keys(this.jobs)) { + const job = this.jobs[name]; + job.invoke(); + } + } +} + +export const cronContainer = CronContainer.getInstance(); diff --git a/src/database/index.ts b/src/database/index.ts new file mode 100644 index 0000000..0c880f2 --- /dev/null +++ b/src/database/index.ts @@ -0,0 +1,15 @@ +import { logger } from '@/utils/logger'; +import config from '@config'; +import { ConnectOptions, connect } from 'mongoose'; + +/** MongoDB connection options connection function */ +export const connectDB = async () => { + return await connect(config.db.uri, config.db.options as ConnectOptions) + .then(() => { + logger.info('🟢 The database is connected.'); + }) + .catch((error: Error) => { + logger.error(`❌ Unable to connect to the database: ${error.message}`); + throw error; // Transfer the error to the caller + }); +}; diff --git a/src/features/.DS_Store b/src/features/.DS_Store new file mode 100644 index 0000000..657bd55 Binary files /dev/null and b/src/features/.DS_Store differ diff --git a/src/features/auth/.DS_Store b/src/features/auth/.DS_Store new file mode 100644 index 0000000..e6a2463 Binary files /dev/null and b/src/features/auth/.DS_Store differ diff --git a/src/features/auth/controllers/index.ts b/src/features/auth/controllers/index.ts new file mode 100644 index 0000000..412e3c6 --- /dev/null +++ b/src/features/auth/controllers/index.ts @@ -0,0 +1,116 @@ +import { Request, Response } from 'express'; +import httpStatus from 'http-status'; +import AuthService from '@/features/auth/services'; +import UserService from '@/features/user/services'; +import emailService from '@/utils/email'; +import Container from 'typedi'; +import { IUser } from '@/features/user/entities/user.entity'; +import { BaseController } from '@/abstracts/controller.base'; +import catchAsync from '@/utils/error/catchAsync'; +import { IToken, ITokenMethods, TokenModel } from '../entities/token.entity'; + +export default class AuthController extends BaseController< + IToken, + ITokenMethods, + TokenModel +> { + public userService = Container.get(UserService); + + constructor() { + const filterFields = [] as (keyof IToken)[]; + const populateFields = [] as (keyof IToken)[]; + const optionsFields = [] as (keyof IToken)[]; + const updateManyFilterFields = [] as (keyof IToken)[]; + const deleteManyFilterFields = [] as (keyof IToken)[]; + const service = Container.get(AuthService); + super( + service, + filterFields, + optionsFields, + populateFields, + updateManyFilterFields, + deleteManyFilterFields + ); + } + + public register = catchAsync(async (req: Request, res: Response) => { + const user = await this.userService.createOne(req.body); + const tokens = await (this.service as AuthService).generateAuthTokens(user); + const verifyEmailToken = await ( + this.service as AuthService + ).generateVerifyEmailToken(user as unknown as IUser); + await emailService.sendVerificationEmail( + user.email as string, + verifyEmailToken + ); + + res.status(httpStatus.CREATED).send({ user, tokens }); + }); + + public login = catchAsync( + async (req: Request, res: Response): Promise => { + const { email, password } = req.body; + const user = await (this.service as AuthService).login(email, password); + const tokens = await (this.service as AuthService).generateAuthTokens( + user + ); + res.send({ user, tokens }); + } + ); + + public logout = catchAsync(async (req: Request, res: Response) => { + await (this.service as AuthService).logout(req.body.refreshToken); + res.status(httpStatus.NO_CONTENT).send(); + }); + + public refreshTokens = catchAsync(async (req: Request, res: Response) => { + const tokens = await (this.service as AuthService).refreshAuth( + req.body.refreshToken + ); + res.send({ ...tokens }); + }); + + public forgotPassword = catchAsync(async (req: Request, res: Response) => { + const resetPasswordToken = await ( + this.service as AuthService + ).generateResetPasswordToken(req.body.email); + await emailService.sendResetPasswordEmail( + req.body.email, + resetPasswordToken + ); + res.status(httpStatus.NO_CONTENT).send(); + }); + + public resetPassword = catchAsync(async (req: Request, res: Response) => { + await (this.service as AuthService).resetPassword( + req.query.token as string, + req.body.password + ); + res.status(httpStatus.NO_CONTENT).send(); + }); + + public sendVerificationEmail = catchAsync( + async (req: Request, res: Response) => { + const verifyEmailToken = await ( + this.service as AuthService + ).generateVerifyEmailToken(req.user as IUser); + await emailService.sendVerificationEmail( + (req.user as IUser).email as string, + verifyEmailToken + ); + res.status(httpStatus.NO_CONTENT).send(); + } + ); + + public verifyEmail = catchAsync(async (req: Request, res: Response) => { + await (this.service as AuthService).verifyEmail(req.query.token as string); + res.status(httpStatus.NO_CONTENT).send(); + }); + + public blacklistToken = catchAsync(async (req: Request, res: Response) => { + await (this.service as AuthService).blacklistToken( + req.body.token as string + ); + res.status(httpStatus.NO_CONTENT).send(); + }); +} diff --git a/src/features/auth/crons/index.ts b/src/features/auth/crons/index.ts new file mode 100644 index 0000000..e556f5e --- /dev/null +++ b/src/features/auth/crons/index.ts @@ -0,0 +1,15 @@ +import CronBase from '@/abstracts/crons.base'; +import { Schedule } from '@/crons'; + +export default class AuthCronJobs extends CronBase { + public name = 'AuthCronJobs'; + + @Schedule('* * * * *', { + runOnInit: true, + stopOnError: true, + name: 'auth-sample', + }) + public async sample() { + console.log("AuthCronJobs - sample: I'll run every minute. See you soon!"); + } +} diff --git a/src/features/auth/docs/index.yaml b/src/features/auth/docs/index.yaml new file mode 100644 index 0000000..5b3d8a6 --- /dev/null +++ b/src/features/auth/docs/index.yaml @@ -0,0 +1,2 @@ +# Please see https://swagger.io/docs/specification/basic-structure/ +# To Customize your config file \ No newline at end of file diff --git a/src/features/auth/entities/token.entity.ts b/src/features/auth/entities/token.entity.ts new file mode 100644 index 0000000..2930a9d --- /dev/null +++ b/src/features/auth/entities/token.entity.ts @@ -0,0 +1,72 @@ +import { tokenTypes } from '@config/tokens'; +import toJSON from '@utils/mongoose/toJSON.plugin'; +import paginate from '@/utils/mongoose/paginate.plugin'; +import { Schema, model, Model } from 'mongoose'; +import { IBaseModel } from '@/abstracts/model.base'; + +export interface IToken extends IBaseModel { + token: string; + user: Schema.Types.ObjectId; + type: string; + expires: Date; + blacklisted?: boolean; +} + +/** Custom Methods */ +//export interface ITokenMethods {} +// You can use the interface when you want to add static method +export type ITokenMethods = {}; + +/** + * Mongoose model + */ +export type TokenModel = Model; + +/** + * Mongoose Schema + */ +const tokenSchema = new Schema( + { + token: { + type: String, + required: true, + index: true, + }, + user: { + type: Schema.Types.ObjectId, + ref: 'User', + required: true, + }, + type: { + type: String, + enum: [ + tokenTypes.REFRESH, + tokenTypes.RESET_PASSWORD, + tokenTypes.VERIFY_EMAIL, + ], + required: true, + }, + expires: { + type: Date, + required: true, + }, + blacklisted: { + type: Boolean, + default: false, + }, + }, + { + timestamps: true, + } +); + +tokenSchema.plugin(toJSON); +tokenSchema.plugin(paginate); + +/** + * Token mongoose model + * + * @typedef Token + */ +const Token = model('Token', tokenSchema); +export default Token; diff --git a/src/features/auth/index.ts b/src/features/auth/index.ts new file mode 100644 index 0000000..71246d2 --- /dev/null +++ b/src/features/auth/index.ts @@ -0,0 +1,25 @@ +import Feature from '../../abstracts/feature.base'; +import AuthCronJobs from './crons'; +import { AuthRoute } from './routes'; +import express from 'express'; +import { cronContainer } from '../../crons'; +import http from 'http'; + +export default class AuthFeature extends Feature { + public routes: AuthRoute; + public crons: AuthCronJobs[]; + + constructor(app: express.Application, server?: http.Server) { + super(app, 'Auth', 'User authentication'); + this.server = server; + this.routes = new AuthRoute(this.app); + this.crons = [new AuthCronJobs()]; + } + + public init(): void { + this.routes.registerRoutes(); + this.crons.forEach((cron) => { + cronContainer.register(cron); + }); + } +} diff --git a/src/features/auth/routes/index.ts b/src/features/auth/routes/index.ts new file mode 100644 index 0000000..e59f01b --- /dev/null +++ b/src/features/auth/routes/index.ts @@ -0,0 +1,55 @@ +import AuthController from '../controllers'; +import express from 'express'; +import AuthValidation from '../validations'; +import validate from '@middlewares/validate'; +import { BaseRoute } from '@/abstracts/route.base'; + +export class AuthRoute extends BaseRoute { + constructor(app: express.Application) { + super(app, '/v1/auth', AuthController); + this.router.post( + '/register', + validate(AuthValidation.register), + this.controller.register + ); + this.router.post( + '/login', + validate(AuthValidation.login), + this.controller.login + ); + this.router.post( + '/logout', + validate(AuthValidation.logout), + this.controller.logout + ); + this.router.post( + '/refresh-tokens', + validate(AuthValidation.refreshTokens), + this.controller.refreshTokens + ); + this.router.post( + '/forgot-password', + validate(AuthValidation.forgotPassword), + this.controller.forgotPassword + ); + this.router.post( + '/reset-password', + validate(AuthValidation.resetPassword), + this.controller.resetPassword + ); + this.router.post( + '/verify-email', + validate(AuthValidation.verifyEmail), + this.controller.verifyEmail + ); + this.router.post( + '/blacklist-token', + validate(AuthValidation.blacklistToken), + this.controller.blacklistToken + ); + } + + public registerRoutes() { + this.app.use(this.path, this.router); + } +} diff --git a/src/features/auth/services/index.ts b/src/features/auth/services/index.ts new file mode 100644 index 0000000..dcbcd0b --- /dev/null +++ b/src/features/auth/services/index.ts @@ -0,0 +1,378 @@ +import httpStatus from 'http-status'; +import { tokenTypes } from '@config/tokens'; +import UserService from '@/features/user/services'; +import Container, { Service } from 'typedi'; +import Token, { + IToken, + ITokenMethods, + TokenModel, +} from '../entities/token.entity'; +import { BaseService } from '@/abstracts/service.base'; +import moment, { Moment } from 'moment'; +import config from '@/config'; +import jwt from 'jsonwebtoken'; +import ApiError from '@/utils/error/ApiError'; +import { logger } from '@/utils/logger'; +import { IUser } from '@/features/user/entities/user.entity'; + +@Service() +export default class AuthService extends BaseService< + IToken, + ITokenMethods, + TokenModel +> { + public userService = Container.get(UserService); + + constructor() { + super(Token); + } + + /** + * Login with username and password + * + * @param {string} email The user email + * @param {string} password The user password + * @returns {Promise} Authenticated user if any + * @throws {ApiError} If user credentials are wrong + */ + async login(email: string, password: string): Promise { + const user = await this.userService.readOne({ email: email }); + if (!user || !(await user.isPasswordMatch(password))) { + throw new ApiError( + httpStatus.UNAUTHORIZED, + 'Incorrect email or password' + ); + } + return user; + } + + /** + * Logout user by removing the refresh token from the database + * + * @param {string} refreshToken The previous refresh token sent to the client who request the logout + * @returns {Promise} The promise resolves when the refresh token is removed + * Note: Keep silence if the refresh token is not found + */ + async logout(refreshToken: string): Promise { + const refreshTokenDoc = await this.readOne({ + token: refreshToken, + type: tokenTypes.REFRESH, + blacklisted: false, + }); + if (refreshTokenDoc) { + return await this.deleteOne({ id: refreshTokenDoc.id }); + } + } + + /** + * Regenerate new pair of access token and refresh token to be sent to the client + * + * Note: The old refresh token is deleted from the database + * and we check for token blacklisting before generating the new pair + * + * @param {string} refreshToken The previous refresh token sent to the client who request the refresh + * @returns {Promise} The promise resolves with the new pair of access token and refresh token + * @throws {ApiError} If the refresh token is not found + */ + async refreshAuth(refreshToken: string): Promise { + try { + const refreshTokenDoc = await this.verifyToken( + refreshToken, + tokenTypes.REFRESH + ); + + // If token is blacklisted, the user is not allowed to refresh, deny the request + if (refreshTokenDoc.blacklisted) { + throw new ApiError( + httpStatus.FORBIDDEN, + 'You are not allowed to do this action.' + ); + } + + const user = await this.userService.readOne({ id: refreshTokenDoc.user }); + // Ensure that the user exists + if (!user) { + throw new ApiError( + httpStatus.FORBIDDEN, + 'No integrated user found to refresh' + ); + } + + // Remove the previous refresh token to ensure user don't have multiple refresh tokens active + await this.deleteOne({ id: refreshTokenDoc.id }); + + // When the refresh token is valid, a new pair of access token and refresh token is generated + return this.generateAuthTokens(user); + } catch (error) { + logger.error('AuthService: refreshAuth: ', error); + throw new ApiError(httpStatus.UNAUTHORIZED, 'Please authenticate'); + } + } + + /** + * Reset password of a user + * + * @param {string} resetPasswordToken The reset password token sent to the user email + * @param {string} newPassword The new user password as raw string not hashed (hashing is done in the user model) + * @returns {Promise} The promise resolves when the password is reset + * @throws {ApiError} If the reset password token is not found or the user is not found + */ + async resetPassword( + resetPasswordToken: string, + newPassword: string + ): Promise { + try { + const resetPasswordTokenDoc = await this.verifyToken( + resetPasswordToken, + tokenTypes.RESET_PASSWORD + ); + const user = await this.userService.readOne({ + id: resetPasswordTokenDoc.user, + }); + if (!user) { + throw new ApiError( + httpStatus.FORBIDDEN, + 'No integrated user found to reset password' + ); + } + await this.userService.updateOne( + { id: user.id }, + { password: newPassword } + ); + await this.deleteMany({ user: user.id, type: tokenTypes.RESET_PASSWORD }); + } catch (error) { + logger.error('AuthService: resetPassword: ', error); + throw new ApiError(httpStatus.UNAUTHORIZED, 'Password reset failed'); + } + } + + /** + * Set the user email as verified based on the verify email token validity + * + * @param {string} verifyEmailToken The previous verify email token sent to the client who request the verification + * @returns {Promise} The promise resolves when the email is verified + * @throws {ApiError} If the verify email token is not found or the user is not found + */ + async verifyEmail(verifyEmailToken: string): Promise { + try { + const verifyEmailTokenDoc = await this.verifyToken( + verifyEmailToken, + tokenTypes.VERIFY_EMAIL + ); + const user = await this.userService.readOne({ + id: verifyEmailTokenDoc.user, + }); + if (!user) { + throw new ApiError( + httpStatus.FORBIDDEN, + 'No integrated user found to verify email' + ); + } + await this.deleteMany({ user: user.id, type: tokenTypes.VERIFY_EMAIL }); + await this.userService.updateOne( + { id: user.id }, + { isEmailVerified: true } + ); + } catch (error) { + throw new ApiError(httpStatus.UNAUTHORIZED, 'Email verification failed'); + } + } + + /** + * Sign the payload into a JWT token to be used as a Bearer token or other token (e.g. refresh token) + * + * @param {ObjectId} userId The user id to whom this token will belong to + * @param {Moment} expires Expiration date of the token as a Moment object + * @param {string} type The type of the token (e.g. access, refresh, resetPassword, verifyEmail) + * @param {string} [secret] The secret key to sign the token with. This is from the config file + * @returns {string} The signed token as a string + */ + public generateToken( + userId: string, + expires: Moment, + type: string, + secret: string = config.jwt.secret + ): string { + const payload = { + sub: userId, + iat: moment().unix(), + exp: expires.unix(), + type, + }; + return jwt.sign(payload, secret); + } + + /** + * Save a token to the database and ensure no more than one token for the user exists + * + * @param {string} token The token to save + * @param {ObjectId} userId The user id + * @param {Moment} expires Expiration date of the token as a Moment object + * @param {string} type The type of the token (e.g. access, refresh, resetPassword, verifyEmail) + * @param {boolean} [blacklisted] Whether this token is blacklisted or not + * @returns {Promise} The saved token as a document + */ + async saveToken( + token: string, + userId: string, + expires: Moment, + type: string, + blacklisted = false + ): Promise { + await this.deleteMany({ user: userId, type }); + + const tokenDoc = await this.createOne({ + token, + user: userId, + expires: expires.toDate(), + type, + blacklisted, + }); + + return tokenDoc as unknown as IToken; + } + + /** + * Verify token and return token doc (or throw an error if it is not valid) + * + * @param {string} token The token to verify + * @param {string} type The given token type + * @returns {Promise} The token document if it is valid + * @throws {ApiError} If the token is not valid + */ + async verifyToken(token: string, type: string): Promise { + const payload = jwt.verify(token, config.jwt.secret); + const tokenDoc = await this.readOne({ + token, + type, + user: payload.sub, + blacklisted: false, + }); + if (!tokenDoc) { + throw new ApiError(httpStatus.FORBIDDEN, 'Unrecognized token'); + } + return tokenDoc; + } + + /** + * Generate auth tokens + * + * @param {User} user The user to generate tokens for + * @returns {Promise} The object contains the access token and the refresh token + */ + async generateAuthTokens(user: IUser): Promise { + const accessTokenExpires = moment().add( + config.jwt.accessExpirationMinutes, + 'minutes' + ); + const accessToken = this.generateToken( + user.id as string, + accessTokenExpires, + tokenTypes.ACCESS + ); + + const refreshTokenExpires = moment().add( + config.jwt.refreshExpirationDays, + 'days' + ); + const refreshToken = this.generateToken( + user.id as string, + refreshTokenExpires, + tokenTypes.REFRESH + ); + + // Save new token + await this.saveToken( + refreshToken, + user.id as string, + refreshTokenExpires, + tokenTypes.REFRESH + ); + + return { + access: { + token: accessToken, + expires: accessTokenExpires.toDate(), + }, + refresh: { + token: refreshToken, + expires: refreshTokenExpires.toDate(), + }, + }; + } + + /** + * Generate reset password token + * + * @param {string} email The user email to generate token for + * @returns {Promise} The reset password token + * @throws {ApiError} If no user is found with this email + */ + async generateResetPasswordToken(email: string): Promise { + const user = await this.userService.readOne({ email: email }); + if (!user) { + throw new ApiError( + httpStatus.NOT_FOUND, + 'No integrated user found with this information' + ); + } + const expires = moment().add( + config.jwt.resetPasswordExpirationMinutes, + 'minutes' + ); + const resetPasswordToken = this.generateToken( + user.id, + expires, + tokenTypes.RESET_PASSWORD + ); + await this.saveToken( + resetPasswordToken, + user.id, + expires, + tokenTypes.RESET_PASSWORD + ); + return resetPasswordToken; + } + + /** + * Generate verify email token + * + * @param {IUser} user The user to generate token for + * @returns {Promise} The verify email token + */ + async generateVerifyEmailToken(user: IUser): Promise { + const expires = moment().add( + config.jwt.verifyEmailExpirationMinutes, + 'minutes' + ); + const verifyEmailToken = this.generateToken( + user.id as string, + expires, + tokenTypes.VERIFY_EMAIL + ); + await this.saveToken( + verifyEmailToken, + user.id as string, + expires, + tokenTypes.VERIFY_EMAIL + ); + return verifyEmailToken; + } + + /** + * Black list a token + * + * @param token Token to blacklist + * @returns {Promise} The token document if it is valid + */ + async blacklistToken(token: string): Promise { + const tokenDoc = await this.readOne({ token }); + + if (tokenDoc) { + tokenDoc.blacklisted = true; + await tokenDoc.save(); + return tokenDoc; + } + // Silently fail if the token is not found + } +} diff --git a/src/features/auth/validations/index.ts b/src/features/auth/validations/index.ts new file mode 100644 index 0000000..500652e --- /dev/null +++ b/src/features/auth/validations/index.ts @@ -0,0 +1,58 @@ +import { BaseValidation } from '@/abstracts/validation.base'; +import Joi from 'joi'; + +export default class AuthValidation extends BaseValidation { + public static login = { + body: Joi.object().keys({ + email: Joi.string().required().email().custom(this.emailConstraint), + password: Joi.string().required().custom(this.password), + }), + }; + public static register = { + body: Joi.object().keys({ + firstName: Joi.string().custom(this.nameConstraint), + lastName: Joi.string().custom(this.nameConstraint), + email: Joi.string().required().email().custom(this.emailConstraint), + password: Joi.string().required().custom(this.password), + }), + }; + + public static logout = { + body: Joi.object().keys({ + refreshToken: Joi.string().required().custom(this.jwt), + }), + }; + + public static refreshTokens = { + body: Joi.object().keys({ + refreshToken: Joi.string().required().custom(this.jwt), + }), + }; + + public static forgotPassword = { + body: Joi.object().keys({ + email: Joi.string().email().custom(this.emailConstraint).required(), + }), + }; + + public static resetPassword = { + query: Joi.object().keys({ + token: Joi.string().required().custom(this.jwt), + }), + body: Joi.object().keys({ + password: Joi.string().required().custom(this.password), + }), + }; + + public static verifyEmail = { + query: Joi.object().keys({ + token: Joi.string().required().custom(this.jwt), + }), + }; + + public static blacklistToken = { + body: Joi.object().keys({ + token: Joi.string().required().custom(this.jwt), + }), + }; +} diff --git a/src/features/index.ts b/src/features/index.ts new file mode 100644 index 0000000..47a6ca5 --- /dev/null +++ b/src/features/index.ts @@ -0,0 +1,33 @@ +import express from 'express'; +import AuthFeature from './auth'; +import UserFeature from './user'; +import MessageFeature from './message'; +import Feature from '../abstracts/feature.base'; +import { logger } from '@/utils/logger'; +import { cronContainer } from '@/crons'; +import http from 'http'; + +export default class Features { + /** The express application */ + public app: express.Application; + /** Business features container */ + public featuresLists: Feature[] = []; + /** Http server */ + public server: http.Server | undefined; + constructor(app: express.Application, server?: http.Server) { + this.app = app; + this.server = server; + this.featuresLists.push(new AuthFeature(this.app, this.server)); + this.featuresLists.push(new UserFeature(this.app, this.server)); + this.featuresLists.push(new MessageFeature(this.app, this.server)); + } + + public init() { + this.featuresLists.forEach((feature: Feature) => { + feature.init(); + logger.info(`➔ #${feature?.name} Ready`); + }); + cronContainer.start(); + logger.info('✅ All Features Bootstrapped'); + } +} diff --git a/src/features/message/.gitkeep b/src/features/message/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/features/message/controllers/index.ts b/src/features/message/controllers/index.ts new file mode 100644 index 0000000..680fb22 --- /dev/null +++ b/src/features/message/controllers/index.ts @@ -0,0 +1,47 @@ +import { Container } from 'typedi'; +import MessageService from '../services'; +import { + IMessage, + IMessageMethods, + MessageModel, +} from '../entities/message.entity'; +import { BaseController } from '@/abstracts/controller.base'; + +export class MessageController extends BaseController< + IMessage, + IMessageMethods, + MessageModel +> { + constructor() { + const filterFields = [ + 'id', + 'title', + 'author', + 'createdAt', + 'updatedAt', + 'isArchived', + ] as (keyof IMessage)[]; + const populateFields: (keyof IMessage)[] = ['author']; + const optionsFields = ['sortBy', 'limit', 'page']; + const updateManyFilterFields = [ + 'createdAt', + 'updatedAt', + 'isArchived', + ] as (keyof IMessage)[]; + const deleteManyFilterFields = [ + 'id', + 'createdAt', + 'updatedAt', + 'isArchived', + ] as (keyof IMessage)[]; + const service = Container.get(MessageService); + super( + service, + filterFields, + optionsFields, + populateFields, + updateManyFilterFields, + deleteManyFilterFields + ); + } +} diff --git a/src/features/message/crons/index.ts b/src/features/message/crons/index.ts new file mode 100644 index 0000000..a4f925a --- /dev/null +++ b/src/features/message/crons/index.ts @@ -0,0 +1,17 @@ +import CronBase from '@/abstracts/crons.base'; +import { Schedule } from '@/crons'; + +export default class MessageCronJobs extends CronBase { + public name = 'MessageCronJobs'; + + @Schedule('*/5 * * * *', { + runOnInit: true, + stopOnError: true, + name: 'message-sample', + }) + public async sample() { + console.log( + "MessageCronJobs - sample: I'll run every 5 minutes. See you soon!" + ); + } +} diff --git a/src/features/message/docs/index.yaml b/src/features/message/docs/index.yaml new file mode 100644 index 0000000..7b56315 --- /dev/null +++ b/src/features/message/docs/index.yaml @@ -0,0 +1,122 @@ +# Please see https://swagger.io/docs/specification/basic-structure/ +# To Customize your config file +tags: +- name: messages + description: messages API + +paths: +# [GET] messages + /v1/messages: + get: + tags: + - messages + summary: Find All Messages + responses: + 200: + description: 'OK' + 500: + description: 'Server Error' + +# [POST] messages + post: + tags: + - messages + summary: Add Message + parameters: + - name: body + in: body + description: message Data + required: true + schema: + $ref: '#/definitions/v1/messages' + responses: + 201: + description: 'Created' + 400: + description: 'Bad Request' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# [GET] messages/id + /v1/messages/{id}: + get: + tags: + - messages + summary: Find Message By Id + parameters: + - name: id + in: path + description: Message Id + required: true + responses: + 200: + description: 'OK' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# [PUT] messages/id + put: + tags: + - messages + summary: Update Message By Id + parameters: + - name: id + in: path + description: message Id + required: true + - name: body + in: body + description: message Data + required: true + schema: + $ref: '#/definitions/v1/messages' + responses: + 200: + description: 'OK' + 400: + description: 'Bad Request' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# [DELETE] messages/id + delete: + tags: + - messages + summary: Delete Message By Id + parameters: + - name: id + in: path + description: message Id + required: true + responses: + 200: + description: 'OK' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# definitions +definitions: + messages: + type: object + required: + - title + - content + properties: + title: + type: string + description: message title + password: + type: string + description: message content + +schemes: + - https + - http diff --git a/src/features/message/entities/message.entity.ts b/src/features/message/entities/message.entity.ts new file mode 100644 index 0000000..2397142 --- /dev/null +++ b/src/features/message/entities/message.entity.ts @@ -0,0 +1,51 @@ +import toJSON from '@utils/mongoose/toJSON.plugin'; +import paginate from '@/utils/mongoose/paginate.plugin'; +import { Schema, model, Model } from 'mongoose'; +import { IBaseModel } from '@/abstracts/model.base'; + +/** + * Typescript Interface + */ +export interface IMessage extends IBaseModel { + title: string; + content: string; + thumbnail?: string; + author: Schema.Types.ObjectId; + isArchived?: boolean; +} + +/** Custom Methods */ +//export interface IMessageMethods {} +export type IMessageMethods = {}; + +/** + * Mongoose model + */ +export type MessageModel = Model; + +/** + * Mongoose Schema + */ +const messageSchema = new Schema( + { + title: { type: String, required: true }, + content: { type: String, required: true }, + thumbnail: { type: String }, + author: { type: Schema.Types.ObjectId, ref: 'User', required: true }, + isArchived: { type: Boolean, default: false }, + }, + { + timestamps: true, + } +); + +messageSchema.plugin(toJSON); +messageSchema.plugin(paginate); + +/** + * Message mongoose model + * + * @typedef Message + */ +const Message = model('Message', messageSchema); +export default Message; diff --git a/src/features/message/index.ts b/src/features/message/index.ts new file mode 100644 index 0000000..770a90f --- /dev/null +++ b/src/features/message/index.ts @@ -0,0 +1,26 @@ +import Feature from '../../abstracts/feature.base'; +import express from 'express'; +import { MessageRoute } from './routes'; +import MessageCronJobs from './crons'; +import { cronContainer } from '../../crons'; +import CronBase from '@/abstracts/crons.base'; +import http from 'http'; + +export default class MessageFeature extends Feature { + public routes: MessageRoute; + public crons: CronBase[] = []; + + constructor(app: express.Application, server?: http.Server) { + super(app, 'Message', 'Messaging'); + this.server = server; + this.routes = new MessageRoute(this.app); + this.crons = [new MessageCronJobs()]; + } + + public init(): void { + this.routes.registerRoutes(); + this.crons.forEach((cron) => { + cronContainer.register(cron); + }); + } +} diff --git a/src/features/message/routes/index.ts b/src/features/message/routes/index.ts new file mode 100644 index 0000000..d6e68cc --- /dev/null +++ b/src/features/message/routes/index.ts @@ -0,0 +1,67 @@ +import { MessageController } from '../controllers'; +import MessageValidation from '../validations'; +import validate from '@middlewares/validate'; +import express from 'express'; +import auth from '@middlewares/auth'; +import { BaseRoute } from '@/abstracts/route.base'; + +export class MessageRoute extends BaseRoute { + constructor(app: express.Application) { + super(app, '/v1/messages', MessageController); + this.router.get( + '', + auth(), + validate(MessageValidation.readManyPaginated), + this.controller.readManyPaginated + ); + this.router.get( + '/:id', + auth(), + validate(MessageValidation.readOne), + this.controller.readOne + ); + this.router.post( + '', + auth(), + validate(MessageValidation.createOne), + this.controller.createOne + ); + this.router.patch( + '/:id', + auth(), + validate(MessageValidation.updateOne), + this.controller.updateOne + ); + this.router.delete( + '/:id', + auth(), + validate(MessageValidation.deleteOne), + this.controller.deleteOne + ); + + this.router.post( + '/many', + auth(), + validate(MessageValidation.createMany), + this.controller.createMany + ); + + this.router.delete( + '/many', + auth(), + validate(MessageValidation.deleteMany), + this.controller.deleteMany + ); + + this.router.patch( + '/many', + auth(), + validate(MessageValidation.updateMany), + this.controller.updateMany + ); + } + + public registerRoutes() { + this.app.use(this.path, this.router); + } +} diff --git a/src/features/message/services/index.ts b/src/features/message/services/index.ts new file mode 100644 index 0000000..91e9285 --- /dev/null +++ b/src/features/message/services/index.ts @@ -0,0 +1,17 @@ +import { Service } from 'typedi'; +import Message, { + IMessage, + IMessageMethods, + MessageModel, +} from '../entities/message.entity'; +import { BaseService } from '@/abstracts/service.base'; +@Service() +export default class MessageService extends BaseService< + IMessage, + IMessageMethods, + MessageModel +> { + constructor() { + super(Message); + } +} diff --git a/src/features/message/validations/index.ts b/src/features/message/validations/index.ts new file mode 100644 index 0000000..574fc15 --- /dev/null +++ b/src/features/message/validations/index.ts @@ -0,0 +1,103 @@ +import { BaseValidation } from '@/abstracts/validation.base'; +import Joi from 'joi'; + +export default class MessageValidation extends BaseValidation { + public static createOne = { + body: Joi.object().keys({ + title: Joi.string().required(), + content: Joi.string().required(), + thumbnail: Joi.any(), + isArchived: Joi.boolean(), + author: Joi.string().required().custom(this.rowId), + + /** Our multer middleware automatically add {fileField}_metadata + * to the req body to allow controller access uploaded files infos + * + * e.g: thumbnail_metadata: { fieldname: 'thumbnail', originalname: 'image.png', encoding: '7bit', mimetype: 'image/png', destination: 'uploads/', filename: 'image-1619119857878.png', path: 'uploads/image-1619119857878.png', size: 1024 } + * */ + '*_metadata': Joi.object().pattern( + /.*/, + Joi.object().pattern(/.*/, Joi.any()) + ), + }), + }; + + public static updateOne = { + params: Joi.object().keys({ + id: Joi.string().required().custom(this.rowId), + }), + body: Joi.object() + .keys({ + title: Joi.string(), + content: Joi.string(), + author: Joi.string().custom(this.rowId), + thumbnail: Joi.any(), + isArchived: Joi.boolean(), + '*_metadata': Joi.object().pattern( + /.*/, + Joi.object().pattern(/.*/, Joi.any()) + ), + }) + .min(1), + }; + + public static readManyPaginated = { + query: Joi.object().keys({ + title: Joi.string(), + author: Joi.string().custom(this.rowId), + isArchived: Joi.boolean(), + createdAt: Joi.date(), + updatedAt: Joi.date(), + limit: Joi.number().integer(), + page: Joi.number().integer(), + sortBy: Joi.string(), + }), + }; + + public static readOne = { + params: Joi.object().keys({ + id: Joi.string().required().custom(this.rowId), + }), + }; + + public static deleteOne = { + params: Joi.object().keys({ + id: Joi.string().required().custom(this.rowId), + }), + }; + + public static createMany = { + body: Joi.array().items(this.createOne.body), + }; + + public static updateMany = { + query: Joi.object() + .keys({ + id: Joi.alternatives().try( + Joi.string().custom(this.rowId), + Joi.array().items(Joi.string().custom(this.rowId)).min(1).max(100) + ), + author: Joi.string().custom(this.rowId), + isArchived: Joi.boolean(), + createdAt: Joi.date(), + updatedAt: Joi.date(), + }) + .min(1), + body: this.updateOne.body, + }; + + public static deleteMany = { + query: Joi.object() + .keys({ + id: Joi.alternatives().try( + Joi.string().custom(this.rowId), + Joi.array().items(Joi.string().custom(this.rowId)).min(1).max(100) + ), + author: Joi.string().custom(this.rowId), + isArchived: Joi.boolean(), + createdAt: Joi.date(), + updatedAt: Joi.date(), + }) + .min(1), + }; +} diff --git a/src/features/user/controllers/index.ts b/src/features/user/controllers/index.ts new file mode 100644 index 0000000..939dc93 --- /dev/null +++ b/src/features/user/controllers/index.ts @@ -0,0 +1,40 @@ +import { Container } from 'typedi'; +import UserService from '../services'; +import { IUser, IUserMethods, UserModel } from '../entities/user.entity'; +import { BaseController } from '@/abstracts/controller.base'; + +export class UserController extends BaseController< + IUser, + IUserMethods, + UserModel +> { + constructor() { + const filterFields = [ + 'id', + 'email', + 'createdAt', + 'updatedAt', + ] as (keyof IUser)[]; + const populateFields = [] as (keyof IUser)[]; + const optionsFields = ['sortBy', 'limit', 'page']; + const updateManyFilterFields = [ + 'id', + 'createdAt', + 'updatedAt', + ] as (keyof IUser)[]; + const deleteManyFilterFields = [ + 'id', + 'createdAt', + 'updatedAt', + ] as (keyof IUser)[]; + const service = Container.get(UserService); + super( + service, + filterFields, + optionsFields, + populateFields, + updateManyFilterFields, + deleteManyFilterFields + ); + } +} diff --git a/src/features/user/crons/index.ts b/src/features/user/crons/index.ts new file mode 100644 index 0000000..ba6f703 --- /dev/null +++ b/src/features/user/crons/index.ts @@ -0,0 +1,17 @@ +import CronBase from '@/abstracts/crons.base'; +import { Schedule } from '@/crons'; + +export default class UserCronJobs extends CronBase { + public name = 'UserCronJobs'; + + @Schedule('*/10 * * * *', { + runOnInit: false, + stopOnError: false, + name: 'user-sample', + }) + public async sample() { + console.log( + "UserCronJobs - sample: I'll run every 10 minutes. See you soon!" + ); + } +} diff --git a/src/features/user/docs/index.yaml b/src/features/user/docs/index.yaml new file mode 100644 index 0000000..e036458 --- /dev/null +++ b/src/features/user/docs/index.yaml @@ -0,0 +1,123 @@ +# Please see https://swagger.io/docs/specification/basic-structure/ +# To Customize your config file + +tags: +- name: users + description: users API + +paths: +# [GET] users + /v1/users: + get: + tags: + - users + summary: Find All Users + responses: + 200: + description: 'OK' + 500: + description: 'Server Error' + +# [POST] users + post: + tags: + - users + summary: Add User + parameters: + - name: body + in: body + description: user Data + required: true + schema: + $ref: '#/definitions/v1/users' + responses: + 201: + description: 'Created' + 400: + description: 'Bad Request' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# [GET] users/id + /v1/users/{id}: + get: + tags: + - users + summary: Find User By Id + parameters: + - name: id + in: path + description: User Id + required: true + responses: + 200: + description: 'OK' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# [PUT] users/id + put: + tags: + - users + summary: Update User By Id + parameters: + - name: id + in: path + description: user Id + required: true + - name: body + in: body + description: user Data + required: true + schema: + $ref: '#/definitions/v1/users' + responses: + 200: + description: 'OK' + 400: + description: 'Bad Request' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# [DELETE] users/id + delete: + tags: + - users + summary: Delete User By Id + parameters: + - name: id + in: path + description: user Id + required: true + responses: + 200: + description: 'OK' + 409: + description: 'Conflict' + 500: + description: 'Server Error' + +# definitions +definitions: + users: + type: object + required: + - email + - password + properties: + email: + type: string + description: user Email + password: + type: string + description: user Password + +schemes: + - https + - http diff --git a/src/features/user/entities/user.entity.ts b/src/features/user/entities/user.entity.ts new file mode 100644 index 0000000..f65606b --- /dev/null +++ b/src/features/user/entities/user.entity.ts @@ -0,0 +1,181 @@ +import toJSON from '@utils/mongoose/toJSON.plugin'; +import paginate from '@/utils/mongoose/paginate.plugin'; +import validator from 'validator'; +import bcrypt from 'bcrypt'; +import { Schema, model, Model } from 'mongoose'; +import { IBaseModel } from '@/abstracts/model.base'; +import config from '@/config'; + +/** + * User interface + * + * If any array in this interface , use Types.Array or Types.DocumentArray from mongoose + * @see https://mongoosejs.com/docs/typescript/schemas.html#arrays + * + * @example + * + * import { Schema, Model, Types } from 'mongoose'; + + interface BlogPost { + _id: Types.ObjectId; + title: string; + } + + interface User { + tags: Types.Array; + blogPosts: Types.DocumentArray; + } + + const schema = new Schema>({ + tags: [String], + blogPosts: [{ title: String }] + }); + + // For example, this would work: + const user = new User({ blogPosts: [] }); + + user.blogPosts.push({ title: 'test' }); // Would not work if you did `blogPosts: BlogPost[]` + */ +export interface IUser extends IBaseModel { + firstName: string; + lastName: string; + password: string; + role: string; + email: string; + avatar?: string; + avatar_metadata?: any; + isEmailVerified?: boolean; +} + +/** All custom defined methods on the User model */ +export interface IUserMethods { + /** + * Check if password matches the user's password + * + * @param {string} password + * @returns {Promise} + */ + isPasswordMatch(password: string): string; +} + +/** + * User mongoose model + */ +export interface UserModel extends Model { + /** + * Check if email is taken + * @param {string} email - The user's email + * @param {ObjectId} [excludeUserId] - The id of the user to be excluded + * @returns {Promise} + */ + isEmailTaken(email: string, excludeUserId?: string): number; +} + +/** + * User Schema + * @private + */ +const userSchema = new Schema( + { + firstName: { + type: String, + required: true, + trim: true, + minlength: config.validation.username.min, + maxlength: config.validation.username.max, + }, + lastName: { + type: String, + required: true, + minlength: config.validation.username.min, + maxlength: config.validation.username.max, + trim: true, + }, + email: { + type: String, + required: true, + unique: true, + trim: true, + minlength: config.validation.email.min, + maxlength: config.validation.email.max, + lowercase: true, + validate(value: string) { + if (!validator.isEmail(value)) { + throw new Error('Invalid email'); + } + }, + }, + password: { + type: String, + required: true, + minlength: config.validation.password.min, // Should be set to 12 in production + maxlength: config.validation.password.max, + private: true, // used by the toJSON plugin to hide the password field when calling toJson() + }, + role: { + type: String, + enum: ['user', 'admin'], + default: 'user', + }, + isEmailVerified: { + type: Boolean, + default: true, + }, + avatar: { + type: String, + }, + avatar_metadata: { + type: Object, + }, + }, + { timestamps: true } +); + +userSchema.plugin(toJSON as any); +userSchema.plugin(paginate as any); + +/** Static method isEmailTaken */ +userSchema.static( + 'isEmailTaken', + async function isEmailTaken(email: string, excludeUserId: string) { + if (excludeUserId) { + return !!(await this.findOne({ email, _id: { $ne: excludeUserId } })); + } + + const user = await this.findOne({ email }); + return !!user; + } +); + +/** Method isPasswordMatch */ +userSchema.method( + 'isPasswordMatch', + async function isPasswordMatch(password: string) { + return bcrypt.compare(password, this.password); + } +); + +/** Hook pre save */ +userSchema.pre('save', async function (next) { + if (this.isModified('password')) { + this.password = await bcrypt.hash(this.password, 8); + } + next(); +}); + +userSchema.pre('findOneAndUpdate', async function (next) { + const update = this.getUpdate() as any; + const password = update.password; + if (password) { + update.password = await bcrypt.hash(password, 8); + } + next(); +}); + +/** + * User mongoose model + * + * @typedef User + */ +const User = model('User', userSchema); +export default User; diff --git a/src/features/user/index.ts b/src/features/user/index.ts new file mode 100644 index 0000000..f1f68ae --- /dev/null +++ b/src/features/user/index.ts @@ -0,0 +1,25 @@ +import Feature from '../../abstracts/feature.base'; +import express from 'express'; +import { UserRoute } from './routes'; +import UserCronJobs from './crons'; +import CronBase from '@/abstracts/crons.base'; +import { cronContainer } from '../../crons'; +import http from 'http'; + +export default class UserFeature extends Feature { + public routes: UserRoute; + public crons: CronBase[] = []; + constructor(app: express.Application, server?: http.Server) { + super(app, 'User', 'User management'); + this.server = server; + this.routes = new UserRoute(this.app); + this.crons = [new UserCronJobs()]; + } + + public init(): void { + this.routes.registerRoutes(); + this.crons.forEach((cron) => { + cronContainer.register(cron); + }); + } +} diff --git a/src/features/user/routes/index.ts b/src/features/user/routes/index.ts new file mode 100644 index 0000000..e96b277 --- /dev/null +++ b/src/features/user/routes/index.ts @@ -0,0 +1,68 @@ +import { UserController } from '../controllers'; +import UserValidation from '../validations'; +import validate from '@middlewares/validate'; +import express from 'express'; +import auth from '@middlewares/auth'; +import { BaseRoute } from '@/abstracts/route.base'; +import fileUploader from '@/middlewares/uploader'; + +export class UserRoute extends BaseRoute { + constructor(app: express.Application) { + super(app, '/v1/users', UserController); + this.router.get( + '', + validate(UserValidation.readManyPaginated), + this.controller.readManyPaginated + ); + this.router.get( + '/:id', + validate(UserValidation.readOne), + this.controller.readOne + ); + this.router.post( + '', + auth(), + validate(UserValidation.createOne), + this.controller.createOne + ); + this.router.patch( + '/:id', + auth(), + fileUploader.uploader('users').single('avatar'), + fileUploader.updateSingleFileField('avatar', 'users'), + validate(UserValidation.updateOne), + this.controller.updateOne + ); + this.router.delete( + '/:id', + auth(), + validate(UserValidation.deleteOne), + this.controller.deleteOne + ); + + this.router.post( + '/many', + auth(), + validate(UserValidation.createMany), + this.controller.createMany + ); + + this.router.delete( + '/many', + auth(), + validate(UserValidation.deleteMany), + this.controller.deleteMany + ); + + this.router.patch( + '/many', + auth(), + validate(UserValidation.updateMany), + this.controller.updateMany + ); + } + + public registerRoutes() { + this.app.use(this.path, this.router); + } +} diff --git a/src/features/user/services/index.ts b/src/features/user/services/index.ts new file mode 100644 index 0000000..2a3454e --- /dev/null +++ b/src/features/user/services/index.ts @@ -0,0 +1,13 @@ +import { Service } from 'typedi'; +import User, { IUser, IUserMethods, UserModel } from '../entities/user.entity'; +import { BaseService } from '@/abstracts/service.base'; +@Service() +export default class UserService extends BaseService< + IUser, + IUserMethods, + UserModel +> { + constructor() { + super(User); + } +} diff --git a/src/features/user/validations/index.ts b/src/features/user/validations/index.ts new file mode 100644 index 0000000..c51aad7 --- /dev/null +++ b/src/features/user/validations/index.ts @@ -0,0 +1,101 @@ +import { BaseValidation } from '@/abstracts/validation.base'; +import Joi from 'joi'; + +export default class UserValidation extends BaseValidation { + public static createOne = { + body: Joi.object().keys({ + avatar: Joi.any(), + firstName: Joi.string().required().custom(this.nameConstraint), + lastName: Joi.string().required().custom(this.nameConstraint), + email: Joi.string().required().email().custom(this.emailConstraint), + password: Joi.string().required().custom(this.password), + + /** Our multer middleware automatically add {fileField}_metadata + * to the req body to allow controller access uploaded files infos + * + * e.g: avatar_metadata: { fieldname: 'avatar', originalname: 'image.png', encoding: '7bit', mimetype: 'image/png', destination: 'uploads/', filename: 'image-1619119857878.png', path: 'uploads/image-1619119857878.png', size: 1024 } + * */ + '*_metadata': Joi.object().pattern( + /.*/, + Joi.object().pattern(/.*/, Joi.any()) + ), + }), + }; + + public static updateOne = { + params: Joi.object().keys({ + id: Joi.string().required().custom(this.rowId), + }), + body: Joi.object() + .keys({ + firstName: Joi.string().custom(this.nameConstraint), + lastName: Joi.string().custom(this.nameConstraint), + password: Joi.string().custom(this.password), + isEmailVerified: Joi.boolean(), + avatar: Joi.any(), + '*_metadata': Joi.object().pattern( + /.*/, + Joi.object().pattern(/.*/, Joi.any()) + ), + }) + .min(1), + }; + + public static readManyPaginated = { + query: Joi.object().keys({ + email: Joi.string().custom(this.emailConstraint), + createdAt: Joi.date(), + updatedAt: Joi.date(), + limit: Joi.number().integer(), + page: Joi.number().integer(), + sortBy: Joi.string(), + }), + }; + + public static readOne = { + params: Joi.object().keys({ + id: Joi.string().required().custom(this.rowId), + }), + }; + + public static deleteOne = { + params: Joi.object().keys({ + id: Joi.string().required().custom(this.rowId), + }), + }; + + public static createMany = { + body: Joi.array().items(this.createOne.body), + }; + + public static updateMany = { + query: Joi.object() + .keys({ + id: Joi.alternatives().try( + Joi.string().custom(this.rowId), + Joi.array().items(Joi.string().custom(this.rowId)).min(1).max(100) + ), // Ensure that the array is not too big to avoid performance issues or abuse + email: Joi.string().custom(this.emailConstraint), + isEmailVerified: Joi.boolean(), + createdAt: Joi.date(), + updatedAt: Joi.date(), + }) + .min(1), + body: this.updateOne.body, + }; + + public static deleteMany = { + query: Joi.object() + .keys({ + id: Joi.alternatives().try( + Joi.string().custom(this.rowId), + Joi.array().items(Joi.string().custom(this.rowId)).min(1).max(100) + ), // Ensure that the array is not too big to avoid performance issues or abuse + email: Joi.string().custom(this.emailConstraint), + isEmailVerified: Joi.boolean(), + createdAt: Joi.date(), + updatedAt: Joi.date(), + }) + .min(1), + }; +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..67e8c66 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,43 @@ +import '@config'; +import App from './app'; +import { logger } from './utils/logger'; + +function handleOrQuit(app?: App) { + process.on('unhandledRejection', (reason: any) => { + logger.error('Unhandled Rejection at:', reason); + }); + + process.on('uncaughtException', (error: Error) => { + logger.error('Uncaught Exception thrown:', error); + process.exit(1); + }); + + process.on('SIGTERM', () => { + console.log('SIGTERM received'); + if (app) { + app.server.close(() => { + logger.error('Process terminated'); + }); + } + }); +} + +const app = new App(); + +app + .bootstrap() + .then(() => { + logger.info( + `\n +##---------------------------------------------------------------## \n + 🟢 Application Ready To Handle Requests \n +##---------------------------------------------------------------##\n` + ); + app.listen(); + }) + .catch((error) => { + logger.error(`🔴 Bootstrapping Error: ${error}.`); + process.exit(1); + }); + +handleOrQuit(app); diff --git a/src/locales/email/en.json b/src/locales/email/en.json new file mode 100644 index 0000000..7eee540 --- /dev/null +++ b/src/locales/email/en.json @@ -0,0 +1,11 @@ +{ + "resetPassword": { + "subject": "Reset Password", + "body": "Dear user,\nTo reset your password, click on this link: {{resetPasswordUrl}}\nIf you did not request any password resets, then ignore this email." + }, + "verifyEmail": { + "subject": "Email Verification", + "body": "Dear user,\nTo verify your email, click on this link: {{verificationEmailUrl}}\nIf you did not create an account, then ignore this email." + } + } + \ No newline at end of file diff --git a/src/locales/email/fr.json b/src/locales/email/fr.json new file mode 100644 index 0000000..dd5cea6 --- /dev/null +++ b/src/locales/email/fr.json @@ -0,0 +1,10 @@ +{ + "resetPassword": { + "subject": "Reinitialisation du mot de passe", + "body": "Bonjour,\n\nPour réinitialiser votre mot de passe, cliquez sur le lien suivant: {{resetPasswordUrl}}\n\nSi vous n'avez pas demandé de réinitialisation de mot de passe, ignorez ce message.\n\nCordialement,\n" + }, + "verifyEmail": { + "subject": "Vérification de l'adresse email", + "body": "Cher utilisateur,\nPour vérifier votre adresse email, cliquez sur le lien suivant: {{verificationEmailUrl}}\nSi vous n'avez pas créé de compte, ignorez ce message.\n\nCordialement,\n" + } + } \ No newline at end of file diff --git a/src/locales/emails/en.json b/src/locales/emails/en.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/locales/emails/en.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/locales/emails/fr.json b/src/locales/emails/fr.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/locales/emails/fr.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/middlewares/auth.ts b/src/middlewares/auth.ts new file mode 100644 index 0000000..7ac4a14 --- /dev/null +++ b/src/middlewares/auth.ts @@ -0,0 +1,52 @@ +import httpStatus from 'http-status'; +import ApiError from '../utils/error/ApiError'; +import { roleRights } from '../config/roles'; +import passport from 'passport'; +import { NextFunction, Request, RequestHandler, Response } from 'express'; +import { IUser } from '@/features/user/entities/user.entity'; +import { logger } from '@/utils/logger'; + +type VerifyCallback = (err: any, user: any, info: any) => Promise; + +export const createVerifyCallback = + (req: Request, requiredRights: string[]): VerifyCallback => + async (err, user, info) => { + if (err || info || !user) { + throw new ApiError(httpStatus.UNAUTHORIZED, 'Authentication failed'); + } + + req.user = user as IUser; + + if (requiredRights.length) { + const userRights = roleRights.get(user.role); + if ( + !requiredRights.every( + (requiredRight: string) => + (userRights as string[])?.includes(requiredRight) + ) + ) { + throw new ApiError( + httpStatus.FORBIDDEN, + "You don't have enough permissions" + ); + } + } + }; + +const auth = (...requiredRights: string[]) => + ((req: Request, res: Response, next: NextFunction): void => { + return passport.authenticate( + 'jwt', + { session: false }, + (err: any, user: any, info: any) => { + createVerifyCallback(req, requiredRights)(err, user, info) + .then(() => next()) + .catch((err) => { + logger.error('Auth ', err); + next(err); + }); + } + )(req, res, next); + }) as RequestHandler; + +export default auth; diff --git a/src/middlewares/error.ts b/src/middlewares/error.ts new file mode 100644 index 0000000..d2e6a15 --- /dev/null +++ b/src/middlewares/error.ts @@ -0,0 +1,74 @@ +import httpStatus from 'http-status'; +import config from '@config'; +import { logger } from '@/utils/logger'; +import ApiError from '@/utils/error/ApiError'; +import { Request, Response, NextFunction } from 'express'; +import mongoose from 'mongoose'; + +/** + * Convert any other error to ApiError + * + * This is a middleware that converts any error to ApiError. + * @see app.ts for usage + * @param {Error} err - Error + * @param {Request} req - Request + * @param {Response} res - Response + * @param {NextFunction} next - NextFunction + * @returns {Function} - Express NextFunction + * + */ +export const errorConverter = ( + err: any, + _req: Request, + _res: Response, + next: NextFunction +): void => { + let error = err; + if (!(error instanceof ApiError)) { + const statusCode = + error.statusCode || error instanceof mongoose.Error + ? httpStatus.BAD_REQUEST + : httpStatus.INTERNAL_SERVER_ERROR; + const message = error.message || httpStatus[statusCode]; + error = new ApiError(statusCode, message, false, err.stack); + } + next(error); +}; + +/** + * Handle ApiError and send response + * + * This is a middleware that handles ApiError and sends the response. + * @see app.ts for usage + * @param {ApiError} err - ApiError + * @param {Request} req - Request + * @param {Response} res - Response + * @param {NextFunction} next - NextFunction + * @returns {Function} - Express NextFunction + */ +export const errorHandler = ( + err: any, + _req: Request, + res: Response, + _next: NextFunction +) => { + let { statusCode, message } = err; + if (config.env === 'production' && !err.isOperational) { + statusCode = httpStatus.INTERNAL_SERVER_ERROR; + message = httpStatus[httpStatus.INTERNAL_SERVER_ERROR]; + } + + res.locals.errorMessage = err.message; + + const response = { + code: statusCode, + message, + ...(config.env === 'development' && { stack: err.stack }), + }; + + if (config.env === 'development') { + logger.error(err); + } + + res.status(statusCode).send(response); +}; diff --git a/src/middlewares/uploader.ts b/src/middlewares/uploader.ts new file mode 100644 index 0000000..32e05a3 --- /dev/null +++ b/src/middlewares/uploader.ts @@ -0,0 +1,169 @@ +import multer, { FileFilterCallback, Multer, StorageEngine } from 'multer'; +import fs from 'fs'; +import { Request, Response, NextFunction, RequestHandler } from 'express'; +import config from '../config'; +import path from 'path'; + +interface IUploadRules { + allowed: string[]; + disallowed: string[]; +} + +export class FileUploadService { + private static instance: FileUploadService; + private constructor() { + // Private constructor, singleton + } + + public static getInstance(): FileUploadService { + if (!FileUploadService.instance) { + FileUploadService.instance = new FileUploadService(); + } + return FileUploadService.instance; + } + + public getStorage(destination: string): StorageEngine { + if (!fs.existsSync(`public/uploads/${destination}`)) { + fs.mkdirSync(`public/uploads/${destination}`, { recursive: true }); + } + + return multer.diskStorage({ + destination: (_req, _file, cb) => + cb(null, `public/uploads/${destination}`), + filename: (_req, file, cb) => { + const uniqueSuffix = Date.now() + '_' + Math.round(Math.random() * 1e9); + + //@TODO: Dangerous trick. Client can send dangerous file extension. + // When client are not trustworthy, don't use it. Or use filter + /** @see https://github.com/expressjs/multer/issues/170#issuecomment-123402678 */ + const ext = path.extname(file.originalname); + const filename = `${uniqueSuffix}${ext}`; + + cb(null, filename); + }, + }); + } + + public formatFileSize(bytes: number): string { + if (bytes === 0) return '0 B'; + const units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; + const k = 1024; + const decimals = 2; + const i = Math.floor(Math.log(bytes) / Math.log(k)); + const size = parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)); + return size + ' ' + units[i]; + } + + /** + * Multer filter function + * + * @param req The request object + * @param file The file to check against + * @param cb The callback function + * @returns any + */ + public fileFilter( + _req: Request, + file: Express.Multer.File, + cb: FileFilterCallback + ): void { + // Get the MIME type of the uploaded file + const fileType = file.mimetype.split('/')[0]; + + // Check if the fileType is in the allowedFileTypes array + if (!(config.upload.allowedFileTypes as string[])?.includes(fileType)) { + return cb(null, false); // Reject the file + } + + const fileExtension = file.originalname?.split('.').pop()?.toLowerCase(); + + // Determine the category (audio, image, video, document) based on fileType + let category = 'unknown'; + if ( + fileType === 'audio' && + (config.upload?.filesTypes?.audio?.allowed as string[])?.includes( + fileExtension as string + ) + ) { + category = 'audio'; + } else if ( + fileType === 'image' && + (config.upload?.filesTypes?.image?.allowed as string[])?.includes( + fileExtension as string + ) + ) { + category = 'image'; + } else if ( + fileType === 'video' && + (config.upload?.filesTypes?.video?.allowed as string[])?.includes( + fileExtension as string + ) + ) { + category = 'video'; + } else if ( + (fileType === 'document' || fileType === 'application') && + (config.upload?.filesTypes?.document?.allowed as string[]).includes( + fileExtension as string + ) + ) { + category = 'document'; + } + + // If the category is not found, reject the file + if (category == 'unknown') { + return cb(null, false); + } + + // Check if the file extension is disallowed for this category + if ( + ( + (config.upload?.filesTypes as Record)[ + category + ] as IUploadRules + )?.disallowed?.includes(fileExtension as string) + ) { + return cb(null, false); // Reject the file + } + + // File passed all checks, accept it + cb(null, true); + } + + public uploader( + destination: string, + limits: Record = { fieldSize: 1e8, fileSize: 1e7, files: 1 } + ): Multer { + return multer({ + storage: this.getStorage(destination), + fileFilter: this.fileFilter, + limits, + }); + } + + // Get the file metadata from file object + public fileMetadata(file: Express.Multer.File): Record { + return { + mimetype: file.mimetype, + size: this.formatFileSize(file.size), + originalname: file.originalname, + }; + } + + public updateSingleFileField( + fieldName: string, + destination: string + ): RequestHandler { + return ((req: Request, _res: Response, next: NextFunction) => { + if (req.file) { + req.body[fieldName] = `/uploads/${destination}/${req.file.filename}`; + req.body[`${fieldName}_metadata`] = this.fileMetadata(req.file); + req.body[`${fieldName}_metadata`].extension = req.body[fieldName] + .split('.') + .pop(); + } + next(); + }) as RequestHandler; + } +} + +export default FileUploadService.getInstance(); diff --git a/src/middlewares/validate.ts b/src/middlewares/validate.ts new file mode 100644 index 0000000..e7694dc --- /dev/null +++ b/src/middlewares/validate.ts @@ -0,0 +1,59 @@ +import Joi from 'joi'; +import httpStatus from 'http-status'; +import pick from '../utils/pick/pick'; +import ApiError from '../utils/error/ApiError'; +import { Schema } from 'joi'; +import { NextFunction, Request, RequestHandler, Response } from 'express'; +/** + * Validate request against a Joi schema + * + * @param {Joi.Schema} schema - Joi schema to validate against + * @param schema can be a Joi.Schema or a plain object + * @returns {Function} - Express NextFunction if validation passes, otherwise throws an ApiError + * @throws {ApiError} - If validation fails, throws an ApiError with httpStatus 400 (Bad Request) + * @example + * + * import validate from '@middlewares/validate'; + * import Joi from 'joi'; + * + * // Joi schema + * const schema = Joi.object({ + * email: Joi.string().email().required(), + * password: Joi.string().required(), + * }); + * + * // Controller to execute after validation passes + * const login = (req, res) => { + * const { email, password } = req.body; + * const user = await authService.login(email, password); + * res.send(user); + * }; + * + * // Validate against the schema and execute the controller after validation passes + * router.post('/login', validate(schema), login); + */ +const validate = (schema: Schema | object) => + ((req: Request, _res: Response, next: NextFunction) => { + const validSchema = pick(schema, [ + 'params', + 'query', + 'body', + 'files', + 'file', + ]); + const object = pick(req, Object.keys(validSchema)); + const { value, error } = Joi.compile(validSchema) + .prefs({ errors: { label: 'key' }, abortEarly: false }) + .validate(object); + + if (error) { + const errorMessage = error.details + .map((details) => details.message) + .join(', '); + next(new ApiError(httpStatus.BAD_REQUEST, errorMessage)); + } + Object.assign(req, value); + next(); + }) as RequestHandler; + +export default validate; diff --git a/src/types/express.d.ts b/src/types/express.d.ts new file mode 100644 index 0000000..0f71358 --- /dev/null +++ b/src/types/express.d.ts @@ -0,0 +1,9 @@ +import { IUser } from '@features/user/entities/user.entity'; +declare module 'express' { + export interface Request { + /** Authenticated user object + * It's automatically added by the auth middleware + */ + user: IUser; + } +} diff --git a/src/utils/email/index.ts b/src/utils/email/index.ts new file mode 100644 index 0000000..7d27cea --- /dev/null +++ b/src/utils/email/index.ts @@ -0,0 +1,152 @@ +import config from '@config'; +import { logger } from '@/utils/logger'; +import nodemailer, { Transporter } from 'nodemailer'; +import path from 'path'; +import * as pug from 'pug'; +import i18n from 'i18n'; +import filesystem from '../os/filesystem'; + +type TemplateName = keyof typeof mailTemplateMap; + +const mailTemplateMap = { + resetPassword: 'reset-password', + verifyEmail: 'verify-email', + notifyAdmin: 'notify-admin', + notifyUser: 'notify-user', + emailUserAfterRegistration: 'email-user-after-registration', +}; + +/** + * Email sending utility + */ +export class EmailUtils { + private static instance: EmailUtils; + private transporter: Transporter; + private isConnectingToEmailServer = false; + + private constructor() { + this.transporter = nodemailer.createTransport(config.email.smtp); + } + + /** + * Try to connect to the email server + * + * + * Note: True is not a guarantee that the connection is successful. + * It can means that the connection is successful or the environment is skipped. + * + * @param skipEnvs Environments to skip connecting to email server + * @returns Promise True if connected, false otherwise. + */ + public async connectToEmailServer( + skipEnvs: string[] = ['test'] + ): Promise { + this.transporter = nodemailer.createTransport(config.email.smtp); + + if (skipEnvs.includes(config.env)) { + console.log('Env: ' + config.env + ' is skipped'); + return true; + } else { + try { + await this.transporter.verify(); + logger.info('🟢 Connected to email server'); + this.isConnectingToEmailServer = true; + return true; + } catch (error) { + logger.warn( + '🔴 Unable to connect to email server. Make sure you have configured the SMTP options in .env' + ); + + return false; + } + } + } + + public static getInstance(): EmailUtils { + if (!EmailUtils.instance) { + EmailUtils.instance = new EmailUtils(); + } + return EmailUtils.instance; + } + + public async sendEmail( + to: string, + subject: string, + text?: string, + html?: string + ): Promise { + if (!this.isConnectingToEmailServer) { + const isConnected = await this.connectToEmailServer(); + + // Don't try to send email if the connection is failed + if (!isConnected) { + return; + } + + this.isConnectingToEmailServer = true; + } + + const mailOptions = { from: config.email.from, to, subject }; + if (text) { + Object.assign(mailOptions, { text }); + } + if (html) { + Object.assign(mailOptions, { html }); + } + await this.transporter.sendMail(mailOptions); + } + + private compileTemplate( + templateName: TemplateName, + templateData: object, + locale: string + ): string { + const templatePath = path.join( + filesystem.rootDir(), + 'src', + 'views', + 'emails', + locale, + `${mailTemplateMap[templateName]}.pug` + ); + const compiledTemplate = pug.compileFile(templatePath); + return compiledTemplate(templateData); + } + + public async sendResetPasswordEmail( + to: string, + token: string, + locale = 'en' + ): Promise { + i18n.setLocale(locale); + + const subject = i18n.__('resetPassword.subject'); + const resetPasswordUrl = `${config.frontendUrl}/reset-password?token=${token}`; + const html = this.compileTemplate( + 'resetPassword', + { resetPasswordUrl, email: to }, + locale + ); + + await this.sendEmail(to, subject, undefined, html); + } + + public async sendVerificationEmail( + to: string, + token: string, + locale = 'en' + ): Promise { + i18n.setLocale(locale); + + const subject = i18n.__('verifyEmail.subject'); + const verificationEmailUrl = `${config.frontendUrl}/verify-email?token=${token}`; + const html = this.compileTemplate( + 'verifyEmail', + { verificationEmailUrl, email: to }, + locale + ); + await this.sendEmail(to, subject, undefined, html); + } +} + +export default EmailUtils.getInstance(); diff --git a/src/utils/error/ApiError.ts b/src/utils/error/ApiError.ts new file mode 100644 index 0000000..390d8d5 --- /dev/null +++ b/src/utils/error/ApiError.ts @@ -0,0 +1,26 @@ +export default class ApiError extends Error { + /** Http status code */ + statusCode: number; + /** Whether programmer error or unexpected error + * @see {@link https://levelup.gitconnected.com/distinction-between-operational-error-and-programmer-error-in-nodejs-bd77bca8da1} + */ + isOperational: boolean; + /** Stack trace */ + stack?: string; + + constructor( + statusCode: number, + message: string, + isOperational = true, + stack = '' + ) { + super(message); + this.statusCode = statusCode; + this.isOperational = isOperational; + if (stack) { + this.stack = stack; + } else { + Error.captureStackTrace(this, this.constructor); + } + } +} diff --git a/src/utils/error/catchAsync.ts b/src/utils/error/catchAsync.ts new file mode 100644 index 0000000..97303af --- /dev/null +++ b/src/utils/error/catchAsync.ts @@ -0,0 +1,41 @@ +import { NextFunction, Request, RequestHandler, Response } from 'express'; + +/* + * Catch async errors + * + * The purpose of this function is to catch async errors in `fn` and pass them to the next middleware. + * + * It allows to avoid writing try/catch blocks in each controller. + * + * @example + * + * // Instead of writing this: + * + * export const getMe = async (req: Request, res: Response, next: NextFunction) => { + * try { + * + * // Do something + * + * } catch (error) { + * next(error); + * } + * + * // You can write this: + * + * export const getMe = catchAsync(async (req: Request, res: Response, next: NextFunction) => { + * + * // Do something + * + * }); + * + * @param {Function} fn - The function to execute. Generally a controller but can be any function middleware like function. + * @returns Promise + */ +const catchAsync = ( + fn: (req: Request, res: Response, next: NextFunction) => Promise +) => + ((req: Request, res: Response, next: NextFunction) => { + Promise.resolve(fn(req, res, next)).catch((err) => next(err)); + }) as RequestHandler; + +export default catchAsync; diff --git a/src/utils/logger/index.ts b/src/utils/logger/index.ts new file mode 100644 index 0000000..c23550b --- /dev/null +++ b/src/utils/logger/index.ts @@ -0,0 +1,67 @@ +import { existsSync, mkdirSync } from 'fs'; +import winston from 'winston'; +import winstonDaily from 'winston-daily-rotate-file'; +import fileSystemUtils from '@/utils/os/filesystem'; + +// logs dir +const logDir = fileSystemUtils.getLogDir(); + +// Create the log directory if it does not exist +if (!existsSync(logDir)) { + mkdirSync(logDir); +} + +// Define log format +const logFormat = winston.format.printf( + ({ timestamp, level, message }) => `${timestamp} ${level}: ${message}` +); + +// Create the logger +const logger = winston.createLogger({ + format: winston.format.combine( + winston.format.timestamp({ + format: 'YYYY-MM-DD HH:mm:ss', + }), + logFormat + ), + transports: [ + // debug log setting + new winstonDaily({ + level: 'debug', + datePattern: 'YYYY-MM-DD', + dirname: logDir + '/debug', + filename: `%DATE%.log`, + maxFiles: 30, // 30 Days saved + json: false, + zippedArchive: true, + }), + // error log setting + new winstonDaily({ + level: 'error', + datePattern: 'YYYY-MM-DD', + dirname: logDir + '/error', + filename: `%DATE%.log`, + maxFiles: 30, // 30 Days saved + handleExceptions: true, + json: false, + zippedArchive: true, + }), + ], +}); + +logger.add( + new winston.transports.Console({ + format: winston.format.combine( + winston.format.splat(), + winston.format.colorize() + ), + }) +); + +const stream = { + write: (message: string) => { + logger.info(message.substring(0, message.lastIndexOf('\n'))); + }, +}; + +export { logger, stream }; diff --git a/src/utils/mongoose/paginate.plugin.ts b/src/utils/mongoose/paginate.plugin.ts new file mode 100644 index 0000000..1cd4bbb --- /dev/null +++ b/src/utils/mongoose/paginate.plugin.ts @@ -0,0 +1,75 @@ +import { Schema, Query, Document } from 'mongoose'; + +interface PaginateOptions { + sortBy?: string; + populate?: string; + limit?: number; + page?: number; +} + +interface PaginateResult { + results: T[]; + page: number; + limit: number; + totalPages: number; + totalResults: number; +} + +const paginate = (schema: Schema): void => { + schema.statics.paginate = async function ( + filter: any, + options: PaginateOptions = {} + ): Promise> { + let sort = ''; + if (options.sortBy) { + const sortingCriteria: string[] = []; + options.sortBy.split(',').forEach((sortOption: string) => { + const [key, order] = sortOption.split(':'); + sortingCriteria.push((order === 'desc' ? '-' : '') + key); + }); + sort = sortingCriteria.join(' '); + } else { + sort = 'createdAt'; + } + + const limit = + options.limit && parseInt(String(options.limit), 10) > 0 + ? parseInt(String(options.limit), 10) + : 10; + const page = + options.page && parseInt(String(options.page), 10) > 0 + ? parseInt(String(options.page), 10) + : 1; + const skip = (page - 1) * limit; + + const countPromise = this.countDocuments(filter).exec(); + let docsPromise: Query = this.find(filter) + .sort(sort) + .skip(skip) + .limit(limit); + + if (options.populate) { + const populateFields = options.populate.split(','); + populateFields.forEach((field) => { + docsPromise = docsPromise.populate(field); + }); + } + + const docs = await docsPromise.exec(); + + return Promise.all([countPromise, docs]).then((values) => { + const [totalResults, results] = values; + const totalPages = Math.ceil(totalResults / limit); + const result = { + results, + page, + limit, + totalPages, + totalResults, + }; + return Promise.resolve(result); + }); + }; +}; + +export default paginate; diff --git a/src/utils/mongoose/toJSON.plugin.ts b/src/utils/mongoose/toJSON.plugin.ts new file mode 100644 index 0000000..34e4665 --- /dev/null +++ b/src/utils/mongoose/toJSON.plugin.ts @@ -0,0 +1,48 @@ +import { Schema } from 'mongoose'; + +type TransformFunction = (doc: any, ret: any, options: any) => any; + +const deleteAtPath = (obj: any, path: string[], index: number): void => { + if (index === path.length - 1) { + delete obj[path[index]]; + return; + } + if (obj[path[index]]) { + deleteAtPath(obj[path[index]], path, index + 1); + } +}; + +const toJSON = (schema: Schema): void => { + let transform: TransformFunction | undefined; + if ( + (schema as any).options.toJSON && + (schema as any).options.toJSON.transform + ) { + transform = (schema as any).options.toJSON.transform; + } + + (schema as any).options.toJSON = Object.assign( + (schema as any).options.toJSON || {}, + { + transform(doc: any, ret: { [key: string]: any }, options: any) { + Object.keys(schema.paths).forEach((path) => { + const schemaPath = schema.paths[path]; + if (schemaPath.options && schemaPath.options.private) { + deleteAtPath(ret, path.split('.'), 0); + } + }); + + ret.id = ret._id.toString(); + delete ret._id; + delete ret.__v; + //delete ret.createdAt; + //delete ret.updatedAt; + if (transform) { + return transform(doc, ret, options); + } + }, + } + ); +}; + +export default toJSON; diff --git a/src/utils/os/filesystem.ts b/src/utils/os/filesystem.ts new file mode 100644 index 0000000..8b28b65 --- /dev/null +++ b/src/utils/os/filesystem.ts @@ -0,0 +1,101 @@ +import path from 'path'; +import fs from 'fs'; + +export class FileSystemUtils { + private static instance: FileSystemUtils; + + public static getInstance(): FileSystemUtils { + if (!FileSystemUtils.instance) { + FileSystemUtils.instance = new FileSystemUtils(); + } + return FileSystemUtils.instance; + } + + /** + * Get the path to the project root directory. + * @returns string - The path to the project root directory + */ + public getProjectDir(): string { + return path.resolve(__dirname, '../../'); + } + + public rootDir(): string { + return path.resolve(__dirname, '../../../'); + } + + public getLogDir(): string { + return path.resolve(this.rootDir(), 'logs'); + } + + /** + * Remove a file from the filesystem + * + * @param filePath The path to the file to remove + * @returns {Promise} + */ + public removeFile(filePath: string): Promise { + return new Promise((resolve, reject) => { + fs.unlink(filePath, (err) => { + if (err) { + reject(err); + } + resolve(true); + }); + }); + } + + /** + * Remove a directory from the filesystem + * + * @param filePath The path to the file to remove + * @params {boolean} recursive Remove the directory recursively + * @returns {Promise} + */ + public removeDir(dirPath: string, recursive = false): Promise { + return new Promise((resolve, reject) => { + fs.rmdir(dirPath, { recursive }, (err) => { + if (err) { + reject(err); + } + resolve(true); + }); + }); + } + + /** + * Check if a file exists + * + * @param filePath The path to the file to check + * @returns {Promise} + */ + async fileExists(filePath: string): Promise { + return new Promise((resolve) => { + fs.access(filePath, fs.constants.F_OK, (err) => { + if (err) { + resolve(false); + } + resolve(true); + }); + }); + } + + /** + * Write data to a file + * + * @param filePath The path to the file to write + * @param data The data to write to the file + * @returns {Promise} + */ + async saveFile(filePath: string, data: any): Promise { + return new Promise((resolve, reject) => { + fs.writeFile(filePath, data, (err) => { + if (err) { + reject(err); + } + resolve(true); + }); + }); + } +} + +export default FileSystemUtils.getInstance(); diff --git a/src/utils/pick/pick.ts b/src/utils/pick/pick.ts new file mode 100644 index 0000000..2116d9a --- /dev/null +++ b/src/utils/pick/pick.ts @@ -0,0 +1,17 @@ +/** + * Creates an object composed of the picked object properties. + * + * @param {Object} object - The source object + * @param {any[]} keys - The keys to pick + * @returns {Object} - The new object + */ +const pick = (object: { [key: string]: any }, keys: string[]) => { + return keys.reduce((obj: { [key: string]: any }, key: string) => { + if (object && Object.prototype.hasOwnProperty.call(object, key)) { + obj[key] = object[key]; + } + return obj; + }, {}); +}; + +export default pick; diff --git a/src/views/emails/en/reset-password.pug b/src/views/emails/en/reset-password.pug new file mode 100644 index 0000000..d1a77e4 --- /dev/null +++ b/src/views/emails/en/reset-password.pug @@ -0,0 +1,58 @@ +html + head + title Hi #{email} + style(type='text/css') + | body { + | font-family: Arial, sans-serif; + | background-color: #f5f5f5; + | margin: 0; + | padding: 0; + | } + | a { + | color: #fff !important; + | text-decoration: none; + | } + + | .container { + | max-width: 600px; + | margin: 0 auto; + | padding: 20px; + | background-color: #ffffff; + | border-radius: 10px; /* Google border radius */ + | box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2); /* Google box shadow */ + | } + | .header { + | text-align: center; + | background-color: #000; + | color: #fff; + | padding: 20px; + | border-top-left-radius: 10px; /* Google border radius */ + | border-top-right-radius: 10px; /* Google border radius */ + | } + | .content { + | padding: 20px; + | font-size: 16px; + | color: #333; + | } + | .reset-password-button { + | display: block; + | width: 100%; + | padding: 15px; + | background-color: #000 !important; + | color: #fff !important; + | text-align: center; + | text-decoration: none; + | border-radius: 10px; /* Google border radius */ + | margin-top: 20px; + | } + + body + div.container + div.header + h1 + | Hi #{email} ! + div.content + p + | You requested to reset your password. Please click on the link below to reset your password. + a.reset-password-button(href=resetPasswordUrl) + | Reset my password diff --git a/src/views/emails/en/verify-email.pug b/src/views/emails/en/verify-email.pug new file mode 100644 index 0000000..ccee2e8 --- /dev/null +++ b/src/views/emails/en/verify-email.pug @@ -0,0 +1,58 @@ +html + head + title Hi #{email} + style(type='text/css') + | body { + | font-family: Arial, sans-serif; + | background-color: #f5f5f5; + | margin: 0; + | padding: 0; + | } + | a { + | color: #fff !important; + | text-decoration: none; + | } + + | .container { + | max-width: 600px; + | margin: 0 auto; + | padding: 20px; + | background-color: #ffffff; + | border-radius: 10px; /* Google border radius */ + | box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Google box shadow */ + | } + | .header { + | text-align: center; + | background-color: #000; + | color: #fff; + | padding: 20px; + | border-top-left-radius: 10px; /* Google border radius */ + | border-top-right-radius: 10px; /* Google border radius */ + | } + | .content { + | padding: 20px; + | font-size: 16px; + | color: #333; + | } + | .verification-button { + | display: block; + | width: 100%; + | padding: 15px; + | background-color: #000; + | color: #fff; + | text-align: center; + | text-decoration: none; + | border-radius: 10px; /* Google border radius */ + | margin-top: 20px; + | } + + body + div.container + div.header + h1 + | Hi #{email} ! + div.content + p + | Thank you for creating an account. Please click on the link below to verify your email address. + a.verification-button(href=verificationEmailUrl) + | Verify my email address diff --git a/src/views/emails/fr/reset-password.pug b/src/views/emails/fr/reset-password.pug new file mode 100644 index 0000000..afa541e --- /dev/null +++ b/src/views/emails/fr/reset-password.pug @@ -0,0 +1,58 @@ +html + head + title Bonjour #{email} + style(type='text/css') + | body { + | font-family: Arial, sans-serif; + | background-color: #f5f5f5; + | margin: 0; + | padding: 0; + | } + | a { + | color: #fff !important; + | text-decoration: none; + | } + + | .container { + | max-width: 600px; + | margin: 0 auto; + | padding: 20px; + | background-color: #ffffff; + | border-radius: 10px; /* Google border radius */ + | box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2); /* Google box shadow */ + | } + | .header { + | text-align: center; + | background-color: #000; + | color: #fff; + | padding: 20px; + | border-top-left-radius: 10px; /* Google border radius */ + | border-top-right-radius: 10px; /* Google border radius */ + | } + | .content { + | padding: 20px; + | font-size: 16px; + | color: #333; + | } + | .reset-password-button { + | display: block; + | width: 100%; + | padding: 15px; + | background-color: #000 !important; + | color: #fff !important; + | text-align: center; + | text-decoration: none; + | border-radius: 10px; /* Google border radius */ + | margin-top: 20px; + | } + + body + div.container + div.header + h1 + | Bonjour #{email} + div.content + p + | Vous avez demandé à réinitialiser votre mot de passe. Veuillez cliquer sur le lien ci-dessous pour réinitialiser votre mot de passe. + a.reset-password-button(href=resetPasswordUrl) + | Réinitialiser mon mot de passe diff --git a/src/views/emails/fr/verify-email.pug b/src/views/emails/fr/verify-email.pug new file mode 100644 index 0000000..43510f6 --- /dev/null +++ b/src/views/emails/fr/verify-email.pug @@ -0,0 +1,58 @@ +html + head + title Bonjour #{email} + style(type='text/css') + | body { + | font-family: Arial, sans-serif; + | background-color: #f5f5f5; + | margin: 0; + | padding: 0; + | } + | a { + | color: #fff !important; + | text-decoration: none; + | } + + | .container { + | max-width: 600px; + | margin: 0 auto; + | padding: 20px; + | background-color: #ffffff; + | border-radius: 10px; /* Google border radius */ + | box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Google box shadow */ + | } + | .header { + | text-align: center; + | background-color: #000; + | color: #fff; + | padding: 20px; + | border-top-left-radius: 10px; /* Google border radius */ + | border-top-right-radius: 10px; /* Google border radius */ + | } + | .content { + | padding: 20px; + | font-size: 16px; + | color: #333; + | } + | .verification-button { + | display: block; + | width: 100%; + | padding: 15px; + | background-color: #000; + | color: #fff; + | text-align: center; + | text-decoration: none; + | border-radius: 10px; /* Google border radius */ + | margin-top: 20px; + | } + + body + div.container + div.header + h1 + | Bonjour #{email} + div.content + p + | Merci d'avoir créé un compte. Veuillez cliquer sur le lien ci-dessous pour vérifier votre adresse e-mail. + a.verification-button(href=verificationEmailUrl) + | Vérifier mon adresse e-mail diff --git a/tests/e2e/readme.md b/tests/e2e/readme.md new file mode 100644 index 0000000..344f632 --- /dev/null +++ b/tests/e2e/readme.md @@ -0,0 +1,3 @@ +# e2e Test + +Work in progress. diff --git a/tests/integration/.DS_Store b/tests/integration/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/tests/integration/.DS_Store differ diff --git a/tests/integration/.gitkeep b/tests/integration/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/integration/readme.md b/tests/integration/readme.md new file mode 100644 index 0000000..140273a --- /dev/null +++ b/tests/integration/readme.md @@ -0,0 +1,3 @@ +# Integration Test + +Work in progress. diff --git a/tests/unit/.DS_Store b/tests/unit/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/tests/unit/.DS_Store differ diff --git a/tests/unit/abstracts/controller.base.spec.ts b/tests/unit/abstracts/controller.base.spec.ts new file mode 100644 index 0000000..e7a55f8 --- /dev/null +++ b/tests/unit/abstracts/controller.base.spec.ts @@ -0,0 +1,162 @@ +import { BaseController } from '../../../src/abstracts/controller.base'; +import { BaseService } from '../../../src/abstracts/service.base'; +import { Document, Model } from 'mongoose'; +import { Request, Response } from 'express'; +import { mock, MockProxy } from 'jest-mock-extended'; +import httpStatus from 'http-status'; + +class MockModel {} +type MockModelMethods = {}; +class MockService extends BaseService< + MockModel, + MockModelMethods, + Model +> {} + +describe('BaseController', () => { + let service: MockProxy & MockService; + let req: MockProxy; + let res: MockProxy; + let controller: MockController; + let next: jest.Mock; + type T = Document & + MockModel & + Required<{ _id: unknown }>; + + class MockController extends BaseController< + MockModel, + MockModelMethods, + Model + > { + constructor( + service: BaseService< + MockModel, + MockModelMethods, + Model + > + ) { + super(service, [], [], []); + } + } + + beforeEach(() => { + service = mock(); + controller = new MockController(service); + req = mock(); + res = mock(); + res = { + ...res, + status: jest.fn().mockReturnThis() as any, + send: jest.fn() as any, + }; + next = jest.fn(); + }); + + it('should read one item', async () => { + const item = new MockModel() as T; + service.readOne.mockResolvedValue(item); + + await controller.readOne(req, res, next); + + expect(service.readOne).toHaveBeenCalledWith({ _id: req.params.id }); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(item); + }); + + it('should read many items', async () => { + const items = [new MockModel(), new MockModel()] as T[]; + service.readMany.mockResolvedValue(items); + + await controller.readMany(req, res, next); + + expect(service.readMany).toHaveBeenCalledWith({}); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(items); + }); + + it('should create one item', async () => { + const item = new MockModel() as T; + service.createOne.mockResolvedValue(item); + + await controller.createOne(req, res, next); + + expect(service.createOne).toHaveBeenCalledWith(req.body); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(item); + }); + + it('should create many items', async () => { + const items = [new MockModel(), new MockModel()] as T[]; + service.createMany.mockResolvedValue(items); + + await controller.createMany(req, res, next); + + expect(service.createMany).toHaveBeenCalledWith(req.body); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(items); + }); + + it('should update one item', async () => { + const item = new MockModel() as T; + service.updateOne.mockResolvedValue(item); + + await controller.updateOne(req, res, next); + + expect(service.updateOne).toHaveBeenCalledWith( + { id: req.params.id }, + req.body + ); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(item); + }); + + it('should delete one item', async () => { + const item = new MockModel() as T; + service.deleteOne.mockResolvedValue(item); + + await controller.deleteOne(req, res, next); + + expect(service.deleteOne).toHaveBeenCalledWith({ id: req.params.id }); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(item); + }); + + it('should read many items paginated', async () => { + const result = { + results: [new MockModel(), new MockModel()], + page: 1, + limit: 10, + totalPages: 1, + totalResults: 2, + }; + service.readManyPaginated.mockResolvedValue(result); + + await controller.readManyPaginated(req, res, next); + + expect(service.readManyPaginated).toHaveBeenCalledWith({}, {}); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(result); + }); + + it('should update many items', async () => { + const items = [new MockModel(), new MockModel()]; + service.updateMany.mockResolvedValue(items as any); + + await controller.updateMany(req, res, next); + + expect(service.updateMany).toHaveBeenCalledWith({}, req.body); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(items); + }); + + it('should delete many items', async () => { + const items = [new MockModel(), new MockModel()]; + service.deleteMany.mockResolvedValue(items as any); + + await controller.deleteMany(req, res, next); + + expect(service.deleteMany).toHaveBeenCalledWith({}); + expect(res.status).toHaveBeenCalledWith(httpStatus.OK); + expect(res.status(httpStatus.OK).send).toHaveBeenCalledWith(items); + }); +}); diff --git a/tests/unit/abstracts/cron.base.spec.ts b/tests/unit/abstracts/cron.base.spec.ts new file mode 100644 index 0000000..df3b86e --- /dev/null +++ b/tests/unit/abstracts/cron.base.spec.ts @@ -0,0 +1,47 @@ +import CronBase from '../../../src/abstracts/crons.base'; + +class TestCron extends CronBase { + static cronGroupName = 'test'; +} + +describe('CronBase', () => { + let testCron: TestCron; + + beforeEach(() => { + testCron = new TestCron(); + jest.spyOn(testCron, 'beforeRegister'); + jest.spyOn(testCron, 'afterRegister'); + jest.spyOn(testCron, 'beforeUnregister'); + jest.spyOn(testCron, 'afterUnregister'); + jest.spyOn(testCron, 'beforeStart'); + jest.spyOn(testCron, 'afterStart'); + jest.spyOn(testCron, 'beforeStop'); + jest.spyOn(testCron, 'afterStop'); + }); + + it('should call lifecycle methods', async () => { + await testCron.beforeRegister(); + expect(testCron.beforeRegister).toHaveBeenCalled(); + + await testCron.afterRegister(); + expect(testCron.afterRegister).toHaveBeenCalled(); + + await testCron.beforeUnregister(); + expect(testCron.beforeUnregister).toHaveBeenCalled(); + + await testCron.afterUnregister(); + expect(testCron.afterUnregister).toHaveBeenCalled(); + + await testCron.beforeStart(); + expect(testCron.beforeStart).toHaveBeenCalled(); + + await testCron.afterStart(); + expect(testCron.afterStart).toHaveBeenCalled(); + + await testCron.beforeStop(); + expect(testCron.beforeStop).toHaveBeenCalled(); + + await testCron.afterStop(); + expect(testCron.afterStop).toHaveBeenCalled(); + }); +}); diff --git a/tests/unit/abstracts/feature.base.spec.ts b/tests/unit/abstracts/feature.base.spec.ts new file mode 100644 index 0000000..ed50fb3 --- /dev/null +++ b/tests/unit/abstracts/feature.base.spec.ts @@ -0,0 +1,41 @@ +import express from 'express'; +import Feature from '../../../src/abstracts/feature.base'; + +class TestFeature extends Feature { + public init() { + // + } +} + +describe('Feature', () => { + let app: express.Application; + let testFeature: TestFeature; + + beforeEach(() => { + app = express(); + testFeature = new TestFeature(app, 'TestFeature', 'This is a test feature'); + }); + + it('should initialize properties correctly', () => { + expect(testFeature.app).toBe(app); + expect(testFeature.name).toBe('TestFeature'); + expect(testFeature.description).toBe('This is a test feature'); + expect(testFeature.crons).toEqual([]); + }); + + it('should use constructor name as default name', () => { + const feature = new TestFeature(app); + expect(feature.name).toBe('TestFeature'); + }); + + it('should use name as default description', () => { + const feature = new TestFeature(app, 'TestFeature'); + expect(feature.description).toBe('TestFeature'); + }); + + it('should call init method', () => { + jest.spyOn(testFeature, 'init'); + testFeature.init(); + expect(testFeature.init).toHaveBeenCalled(); + }); +}); diff --git a/tests/unit/abstracts/route.base.spec.ts b/tests/unit/abstracts/route.base.spec.ts new file mode 100644 index 0000000..23c62bf --- /dev/null +++ b/tests/unit/abstracts/route.base.spec.ts @@ -0,0 +1,46 @@ +import express from 'express'; +import { BaseController } from '../../../src/abstracts/controller.base'; +import { BaseRoute } from '../../../src/abstracts/route.base'; + +class TestController extends BaseController { + // +} + +class TestRoute extends BaseRoute { + public registerRoutes() { + // + this.router.get('/path/to/any', (_req, _res, _next) => { + // + }); + } +} + +describe('BaseRoute', () => { + let app: express.Application; + let testRoute: TestRoute; + + beforeEach(() => { + app = express(); + testRoute = new TestRoute(app, '/test', TestController); + }); + + it('should initialize properties correctly', () => { + expect(testRoute.app).toBe(app); + expect(testRoute.path).toBe('/test'); + expect(testRoute.router).toBeDefined(); + expect(testRoute.router.get).toBeDefined(); + expect(testRoute.router.post).toBeDefined(); + expect(testRoute.controller).toBeInstanceOf(TestController); + }); + + it('should call registerRoutes method', () => { + jest.spyOn(testRoute, 'registerRoutes'); + testRoute.registerRoutes(); + expect(testRoute.registerRoutes).toHaveBeenCalled(); + }); + + it('should register routes', () => { + testRoute.registerRoutes(); + expect(testRoute.router.stack).toHaveLength(1); + }); +}); diff --git a/tests/unit/abstracts/validation.base.spec.ts b/tests/unit/abstracts/validation.base.spec.ts new file mode 100644 index 0000000..ed322dc --- /dev/null +++ b/tests/unit/abstracts/validation.base.spec.ts @@ -0,0 +1,40 @@ +import { BaseValidation } from '../../../src/abstracts/validation.base'; +import _jwt from 'jsonwebtoken'; +import _config from '../../../src/config'; + +jest.mock('../../../src/config', () => ({ + jwt: { + password: { + min: 8, + max: 20, + }, + username: { + min: 30, + max: 50, + }, + userFullname: { + max: 70, + }, + email: { + min: 5, + max: 90, + }, + }, +})); +jest.mock('jsonwebtoken', () => ({ + decode: jest.fn(), +})); + +const helpers = { + message: jest.fn(), +}; + +describe('BaseValidation', () => { + it('should validate rowId', () => { + BaseValidation.rowId('60d6c7f9f9c3a6d327a4f6b2', helpers); + expect(helpers.message).not.toHaveBeenCalled(); + + BaseValidation.rowId('invalidRowId', helpers); + expect(helpers.message).toHaveBeenCalledWith('Invalid object id'); + }); +}); diff --git a/tests/unit/config/index.spec.ts b/tests/unit/config/index.spec.ts new file mode 100644 index 0000000..d40c5cb --- /dev/null +++ b/tests/unit/config/index.spec.ts @@ -0,0 +1,22 @@ +import { Config } from '../../../src/config'; + +describe('Config class', () => { + let config: Config; + + beforeAll(() => { + config = Config.getInstance(); + }); + + test('should create a singleton instance', () => { + const anotherConfigInstance = Config.getInstance(); + expect(anotherConfigInstance).toBe(config); + }); + + test('should correctly set environment variables', () => { + expect(config.isEnvSetAndValid).toBe(true); + }); + + test('should correctly set environment variables', () => { + expect(config.env).toBe('test'); + }); +}); diff --git a/tests/unit/config/roles.spec.ts b/tests/unit/config/roles.spec.ts new file mode 100644 index 0000000..3ec12d0 --- /dev/null +++ b/tests/unit/config/roles.spec.ts @@ -0,0 +1,13 @@ +import { roles, roleRights } from '../../../src/config/roles'; + +describe('Roles', () => { + it('should have correct roles', () => { + expect(roles).toEqual(['user', 'admin', 'team']); + }); + + it('should have correct rights for each role', () => { + expect(roleRights.get('user')).toEqual([]); + expect(roleRights.get('admin')).toEqual(['getUsers', 'manageUsers']); + expect(roleRights.get('team')).toEqual([]); + }); +}); diff --git a/tests/unit/config/tokens.spec.ts b/tests/unit/config/tokens.spec.ts new file mode 100644 index 0000000..b9e1380 --- /dev/null +++ b/tests/unit/config/tokens.spec.ts @@ -0,0 +1,12 @@ +import { tokenTypes } from '../../../src/config/tokens'; + +describe('Token Types', () => { + it('should have correct token types', () => { + expect(tokenTypes).toEqual({ + ACCESS: 'access', + REFRESH: 'refresh', + RESET_PASSWORD: 'resetPassword', + VERIFY_EMAIL: 'verifyEmail', + }); + }); +}); diff --git a/tests/unit/database/index.spec.ts b/tests/unit/database/index.spec.ts new file mode 100644 index 0000000..b0c7d03 --- /dev/null +++ b/tests/unit/database/index.spec.ts @@ -0,0 +1,36 @@ +import { connect } from 'mongoose'; +import { logger } from '../../../src/utils/logger'; +import config from '../../../src/config'; +import { connectDB } from '../../../src/database'; + +jest.mock('mongoose', () => ({ + connect: jest.fn(), +})); + +jest.mock('../../../src/utils/logger', () => ({ + logger: { + info: jest.fn(), + error: jest.fn(), + }, +})); + +describe('connectDB', () => { + it('should connect to the database', async () => { + (connect as jest.Mock).mockResolvedValueOnce(true); + + await connectDB(); + + expect(connect).toHaveBeenCalledWith(config.db.uri, config.db.options); + expect(logger.info).toHaveBeenCalledWith('🟢 The database is connected.'); + }); + + it('should throw an error if the connection fails', async () => { + const error = new Error('Unable to connect'); + (connect as jest.Mock).mockRejectedValueOnce(error); + + await expect(connectDB()).rejects.toThrow(error); + expect(logger.error).toHaveBeenCalledWith( + `❌ Unable to connect to the database: ${error.message}` + ); + }); +}); diff --git a/tests/unit/middlewares/auth.spec.ts b/tests/unit/middlewares/auth.spec.ts new file mode 100644 index 0000000..1cd2c86 --- /dev/null +++ b/tests/unit/middlewares/auth.spec.ts @@ -0,0 +1,54 @@ +import passport from 'passport'; +import { NextFunction, Request, Response } from 'express'; +import { roleRights } from '../../../src/config/roles'; +import { IUser } from '../../../src/features/user/entities/user.entity'; +import auth, { createVerifyCallback } from '../../../src/middlewares/auth'; + +jest.mock('passport', () => ({ + authenticate: jest.fn().mockImplementation(() => jest.fn()), +})); +jest.mock('../../../src/utils/logger'); + +describe('Auth', () => { + const mockRequest = { + user: null, + } as unknown as Request; + const mockResponse = {} as Response; + const mockNext = jest.fn() as NextFunction; + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('createVerifyCallback', () => { + it('should throw an error if user is not authenticated', async () => { + const callback = createVerifyCallback(mockRequest, []); + await expect(callback(new Error(), null, null)).rejects.toThrow( + 'Authentication failed' + ); + }); + + it('should add user to request object', async () => { + const mockUser = { role: 'user' } as IUser; + const callback = createVerifyCallback(mockRequest, []); + await callback(null, mockUser, null); + expect(mockRequest.user).toBe(mockUser); + }); + + it('should throw an error if user does not have required rights', async () => { + const mockUser = { role: 'user' } as IUser; + roleRights.set('user', ['right1']); + const callback = createVerifyCallback(mockRequest, ['right2']); + await expect(callback(null, mockUser, null)).rejects.toThrow( + "You don't have enough permissions" + ); + }); + }); + + describe('auth', () => { + it('should call passport authenticate', () => { + auth()(mockRequest, mockResponse, mockNext); + expect(passport.authenticate).toHaveBeenCalled(); + }); + }); +}); diff --git a/tests/unit/middlewares/error.spec.ts b/tests/unit/middlewares/error.spec.ts new file mode 100644 index 0000000..c75acf6 --- /dev/null +++ b/tests/unit/middlewares/error.spec.ts @@ -0,0 +1,38 @@ +import httpStatus from 'http-status'; +import { errorConverter, errorHandler } from '../../../src/middlewares/error'; +import ApiError from '../../../src/utils/error/ApiError'; +import mongoose from 'mongoose'; + +describe('Error Middlewares', () => { + describe('errorConverter', () => { + it('should convert a mongoose error to ApiError with status BAD_REQUEST', () => { + const mongooseError = new mongoose.Error('Mongoose error'); + const next = jest.fn(); + + errorConverter(mongooseError, {} as any, {} as any, next); + + expect(next).toHaveBeenCalledWith(expect.any(ApiError)); + expect(next).toHaveBeenCalledWith( + expect.objectContaining({ statusCode: httpStatus.BAD_REQUEST }) + ); + }); + }); + + describe('errorHandler', () => { + it('should send the status code and message of the error in the response', () => { + const apiError = new ApiError(httpStatus.BAD_REQUEST, 'Any error', true); + const res = { + status: jest.fn().mockReturnThis(), + send: jest.fn(), + locals: {}, + } as any; + + errorHandler(apiError, {} as any, res, {} as any); + + expect(res.status).toHaveBeenCalledWith(apiError.statusCode); + expect(res.send).toHaveBeenCalledWith( + expect.objectContaining({ message: apiError.message }) + ); + }); + }); +}); diff --git a/tests/unit/middlewares/uploader.spec.ts b/tests/unit/middlewares/uploader.spec.ts new file mode 100644 index 0000000..6cd7993 --- /dev/null +++ b/tests/unit/middlewares/uploader.spec.ts @@ -0,0 +1,152 @@ +import path from 'path'; +import mockFs from 'mock-fs'; +import fileUploader, { + FileUploadService, +} from '../../../src/middlewares/uploader'; +import { Request } from 'express'; + +beforeEach(() => { + // Simulate a file system with a /public/uploads directory + const mockFileSystem: any = {}; + mockFileSystem[`${path.join(__dirname, '../../../public/uploads')}`] = {}; + mockFs(mockFileSystem); +}); + +afterEach(() => { + // Restore the real file system after each test + mockFs.restore(); +}); + +describe('FileUploadService', () => { + describe('getInstance', () => { + it('should always return the same instance', () => { + const instance1 = FileUploadService.getInstance(); + const instance2 = FileUploadService.getInstance(); + expect(instance1).toBe(instance2); + }); + }); + + describe('getStorage', () => { + it('should return a multer storage object', () => { + const storage = fileUploader.getStorage('fake_dir'); + expect(storage).toHaveProperty('_removeFile'); + expect(storage).toHaveProperty('_handleFile'); + }); + }); + + describe('formatFileSize', () => { + it('should format file size correctly', () => { + const size = fileUploader.formatFileSize(1024); + expect(size).toBe('1 KB'); + }); + }); + + describe('fileFilter', () => { + it('should accept files with correct mime type', () => { + const req = {} as Request; // Mock request object + const callback = jest.fn(); + jest.mock('../../../src/config', () => ({ + upload: { + filesTypes: { + image: { + allowed: ['image/jpeg', 'image/png'], + disallowed: [], + }, + video: { + allowed: ['video/mp4'], + disallowed: [], + }, + }, + }, + })); + + // Test with allowed mimetype + const allowedFile = { + mimetype: 'image/jpeg', + originalname: 'test_image.jpeg', + } as Express.Multer.File; // Mock file object + fileUploader.fileFilter(req, allowedFile, callback); + expect(callback).toHaveBeenCalledWith(null, true); + + // Test with disallowed mimetype + const disallowedFile = { + mimetype: 'application/pdf', + originalname: 'document.pdf', + } as Express.Multer.File; // Mock file object + callback.mockReset(); // Reset the mock callback + fileUploader.fileFilter(req, disallowedFile, callback); + expect(callback).toHaveBeenCalledWith(null, false); + }); + }); + + describe('uploader', () => { + it('should return a multer object', () => { + const uploader = fileUploader.uploader('fake_dir'); + expect(uploader).toHaveProperty('single'); + expect(uploader).toHaveProperty('array'); + expect(uploader).toHaveProperty('fields'); + }); + }); + + describe('fileMetadata', () => { + it('should return correct file metadata', () => { + const metadata = fileUploader.fileMetadata({ + originalname: 'test.pdf', + mimetype: 'application/pdf', + size: 1024, + } as Express.Multer.File); + expect(metadata).toHaveProperty('originalname', 'test.pdf'); + expect(metadata).toHaveProperty('size', '1 KB'); + expect(metadata).toHaveProperty('mimetype', 'application/pdf'); + }); + }); + + describe('updateSingleFileField', () => { + it('should update request body with file information', () => { + const req = { + body: {}, + headers: {}, + file: { + originalname: 'test.jpeg', + size: 1024, + filename: 'test.jpeg', + mimetype: 'image/jpeg', + fieldname: 'avatar', + encoding: '7bit', + buffer: Buffer.from('Hello World'), + } as Express.Multer.File, + } as Request; + + const next = jest.fn(); + + // Before the call to the middleware, req.body.avatar should be undefined or {} or null + // it should be different to a string, even an empty string + expect(req.body).not.toHaveProperty('avatar', undefined); + expect(req).toHaveProperty('file'); + + // Run the upload middleware (Fake upload in memory) + fileUploader.uploader('fake_dir').single('avatar')( + req, + null as any, + next + ); + + // Run the middleware + fileUploader.updateSingleFileField('avatar', 'fake_dir')( + req as Request, + null as any, + next + ); + + // After the call to next(), req.body should be updated + expect(next).toHaveBeenCalled(); + expect(req.body).toHaveProperty('avatar', '/uploads/fake_dir/test.jpeg'); + expect(req.body).toHaveProperty('avatar_metadata', expect.any(Object)); + const avatar_metadata = req.body.avatar_metadata; + expect(avatar_metadata).toHaveProperty('originalname', 'test.jpeg'); + expect(avatar_metadata).toHaveProperty('size', '1 KB'); + expect(avatar_metadata).toHaveProperty('mimetype', 'image/jpeg'); + expect(avatar_metadata).toHaveProperty('extension', 'jpeg'); + }); + }); +}); diff --git a/tests/unit/middlewares/validate.spec.ts b/tests/unit/middlewares/validate.spec.ts new file mode 100644 index 0000000..499d927 --- /dev/null +++ b/tests/unit/middlewares/validate.spec.ts @@ -0,0 +1,54 @@ +import validate from '../../../src/middlewares/validate'; +import Joi from 'joi'; +import ApiError from '../../../src/utils/error/ApiError'; +import httpStatus from 'http-status'; +import { NextFunction, Request, Response } from 'express'; + +describe('validate', () => { + const mockReq = (body: any) => + ({ + body, + }) as Request; + + const mockRes = {} as Response; + let mockNext: jest.Mock; + + beforeEach(() => { + mockNext = jest.fn(); + }); + + it('should validate and pass for valid input', () => { + const schema = { + body: Joi.object().keys({ + name: Joi.string().required(), + }), + }; + + const req = mockReq({ name: 'John Doe' }); + + validate(schema)(req, mockRes, mockNext); + + expect(req.body).toEqual({ name: 'John Doe' }); + expect(mockNext).toHaveBeenCalledWith(); + }); + + it('should throw ApiError for invalid input', () => { + const schema = { + body: Joi.object().keys({ + name: Joi.string().required(), + }), + }; + + const req = mockReq({ name: 123 }); + + validate(schema)(req, mockRes, mockNext); + + expect(mockNext).toHaveBeenCalledWith(expect.any(ApiError)); + expect(mockNext).toHaveBeenCalledWith( + expect.objectContaining({ + statusCode: httpStatus.BAD_REQUEST, + message: expect.stringContaining('"name" must be a string'), + }) + ); + }); +}); diff --git a/tests/unit/utils/email/index.spec.ts b/tests/unit/utils/email/index.spec.ts new file mode 100644 index 0000000..455310f --- /dev/null +++ b/tests/unit/utils/email/index.spec.ts @@ -0,0 +1,58 @@ +import nodemailer from 'nodemailer'; +import { EmailUtils } from '../../../../src/utils/email'; +import config from '../../../../src/config'; +import { logger } from '../../../../src/utils/logger'; + +jest.mock('nodemailer', () => ({ + createTransport: jest.fn().mockReturnValue({ + verify: jest.fn(), + }), +})); + +jest.mock('../../../../src/config', () => ({ + email: { + smtp: 'smtp://localhost', + }, + env: 'test', +})); + +jest.mock('../../../../src/utils/logger', () => ({ + logger: { + info: jest.fn(), + warn: jest.fn(), + }, +})); + +describe('EmailUtils', () => { + let emailUtils: EmailUtils; + + beforeEach(() => { + emailUtils = EmailUtils.getInstance(); + }); + + describe('connectToEmailServer', () => { + it('should connect to email server in non-test environment', async () => { + config.env = 'development'; + const result = await emailUtils.connectToEmailServer(); + expect(result).toBe(true); + expect(logger.info).toHaveBeenCalledWith('🟢 Connected to email server'); + }); + + it('Should be able to skip some environnement when trying to connect', async () => { + const result1 = await emailUtils.connectToEmailServer(['test']); + expect(result1).toBe(true); + }); + + it('should handle connection error', async () => { + config.env = 'development'; + (nodemailer.createTransport().verify as jest.Mock).mockRejectedValueOnce( + new Error('Connection error') + ); + const result = await emailUtils.connectToEmailServer(); + expect(result).toBe(false); + expect(logger.warn).toHaveBeenCalledWith( + '🔴 Unable to connect to email server. Make sure you have configured the SMTP options in .env' + ); + }); + }); +}); diff --git a/tests/unit/utils/error/ApiError.spec.ts b/tests/unit/utils/error/ApiError.spec.ts new file mode 100644 index 0000000..1987bde --- /dev/null +++ b/tests/unit/utils/error/ApiError.spec.ts @@ -0,0 +1,18 @@ +import ApiError from '../../../../src/utils/error/ApiError'; + +describe('ApiError', () => { + it('should initialize with given values', () => { + const error = new ApiError(400, 'Test error', true, 'Test stack'); + + expect(error.statusCode).toBe(400); + expect(error.message).toBe('Test error'); + expect(error.isOperational).toBe(true); + expect(error.stack).toBe('Test stack'); + }); + + it('should capture stack trace if not provided', () => { + const error = new ApiError(400, 'Test error'); + + expect(error.stack).toBeDefined(); + }); +}); diff --git a/tests/unit/utils/error/catchAsync.spec.ts b/tests/unit/utils/error/catchAsync.spec.ts new file mode 100644 index 0000000..f6b4317 --- /dev/null +++ b/tests/unit/utils/error/catchAsync.spec.ts @@ -0,0 +1,34 @@ +import catchAsync from '.../../../src/utils/error/catchAsync'; +import { NextFunction, Request, Response } from 'express'; + +describe('catchAsync', () => { + let mockFn: jest.Mock; + let mockReq: Partial; + let mockRes: Partial; + let mockNext: jest.Mock; + + beforeEach(() => { + mockFn = jest.fn(); + mockReq = {}; + mockRes = {}; + mockNext = jest.fn(); + }); + + it('should call the function with req, res, and next', async () => { + const wrappedFn = catchAsync(mockFn); + + await wrappedFn(mockReq as Request, mockRes as Response, mockNext); + + expect(mockFn).toHaveBeenCalledWith(mockReq, mockRes, mockNext); + }); + + it('should pass errors to next', async () => { + const error = new Error('test error'); + mockFn.mockRejectedValueOnce(error); + const wrappedFn = catchAsync(mockFn); + + await wrappedFn(mockReq as Request, mockRes as Response, mockNext); + + expect(mockNext).toHaveBeenCalledWith(error); + }); +}); diff --git a/tests/unit/utils/mongoose/paginate.plugin.spec.ts b/tests/unit/utils/mongoose/paginate.plugin.spec.ts new file mode 100644 index 0000000..9cc06ae --- /dev/null +++ b/tests/unit/utils/mongoose/paginate.plugin.spec.ts @@ -0,0 +1,50 @@ +import { Schema, model, connect, disconnect, ConnectOptions } from 'mongoose'; +import paginate from '../../../../src/utils/mongoose/paginate.plugin'; +import config from '../../../../src/config'; +import mongoose from 'mongoose'; + +describe('paginate plugin', () => { + beforeAll(async () => { + await connect(config.db.uri, config.db.options as ConnectOptions); + }); + + afterAll(async () => { + // Remove all the data for all db collections + const { collections } = mongoose.connection; + const collectionKeys = Object.keys(collections); + + await Promise.all( + collectionKeys.map(async (key) => { + await collections[key].deleteMany({}); + }) + ); + + // Remove teh "users" collection from the db + await mongoose.connection.dropCollection('users'); + + await disconnect(); + }); + + it('should return paginated results', async () => { + const userSchema = new Schema({ name: String }, { timestamps: true }); + userSchema.plugin(paginate); + + const User = model('User', userSchema); + + await User.create([ + { name: 'User 1' }, + { name: 'User 2' }, + { name: 'User 3' }, + { name: 'User 4' }, + ]); + + const { results, totalPages, totalResults } = await (User as any).paginate( + {}, + { limit: 2, page: 1 } + ); + + expect(results.length).toEqual(2); + expect(totalPages).toEqual(2); + expect(totalResults).toEqual(4); + }); +}); diff --git a/tests/unit/utils/mongoose/toJSON.plugin.spec.ts b/tests/unit/utils/mongoose/toJSON.plugin.spec.ts new file mode 100644 index 0000000..bd1bb40 --- /dev/null +++ b/tests/unit/utils/mongoose/toJSON.plugin.spec.ts @@ -0,0 +1,64 @@ +import { Schema } from 'mongoose'; +import toJSON from '../../../../src/utils/mongoose/toJSON.plugin'; +import mongoose from 'mongoose'; + +describe('toJSON plugin', () => { + it('should transform _id to id and remove __v', () => { + const schema = new Schema({ name: String }, { timestamps: true }); + schema.plugin(toJSON); + const DahkenangnonModel = mongoose.model('DahkenangnonModel', schema); + + const doc = new DahkenangnonModel({ name: 'Justin' }); + const json = doc.toJSON(); + + expect(json).toHaveProperty('id'); + expect(json).not.toHaveProperty('_id'); + expect(json).not.toHaveProperty('__v'); + }); + + it('should remove private fields', () => { + const schema = new Schema({ + name: String, + secret: { type: String, private: true }, + }); + schema.plugin(toJSON); + const FignonModel = mongoose.model('FignonModelWithPrivateField', schema); + + const doc = new FignonModel({ + name: 'Fignon Framework', + secret: 'Fignon is the next big Php Middleware Runner you missed!', + }); + const json = doc.toJSON(); + + expect(json).toHaveProperty('id'); + expect(json).not.toHaveProperty('secret'); + }); + + it('should apply original transform function', () => { + const schema = new Schema( + { name: String }, + { + timestamps: true, + toJSON: { + transform: (_doc, ret) => { + ret.transformed = true; + return ret; + }, + }, + } + ); + schema.plugin(toJSON); + const CotonouModelTransform = mongoose.model( + 'CotonouModelTransform', + schema + ); + + const doc = new CotonouModelTransform({ + name: 'Cotonou is the capital of Benin Republic', + }); + const json = doc.toJSON(); + + expect(json).toHaveProperty('id'); + expect(json).toHaveProperty('transformed', true); + }); +}); diff --git a/tests/unit/utils/pick/pick.spec.ts b/tests/unit/utils/pick/pick.spec.ts new file mode 100644 index 0000000..324b6e0 --- /dev/null +++ b/tests/unit/utils/pick/pick.spec.ts @@ -0,0 +1,30 @@ +import pick from '../../../../src/utils/pick/pick'; + +describe('pick', () => { + it('should return an object with picked properties', () => { + const object = { a: 1, b: 2, c: 3 }; + const keys = ['a', 'c']; + const result = pick(object, keys); + expect(result).toEqual({ a: 1, c: 3 }); + }); + + it('should ignore non-existing properties', () => { + const object = { a: 1, b: 2, c: 3 }; + const keys = ['a', 'd']; + const result = pick(object, keys); + expect(result).toEqual({ a: 1 }); + }); + + it('should return an empty object if no keys are provided', () => { + const object = { a: 1, b: 2, c: 3 }; + const keys: string[] = []; + const result = pick(object, keys); + expect(result).toEqual({}); + }); + + it('should return an empty object if source object is null or undefined', () => { + const keys = ['a', 'b']; + const result = pick({}, keys); + expect(result).toEqual({}); + }); +}); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..39f38dc --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,105 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "target": "es2017", + "lib": [ + "es2017", + "esnext.asynciterable" + ], + "noImplicitOverride": false, + "strict": true, + "alwaysStrict": false, + "strictNullChecks": true, + "strictPropertyInitialization": false, + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "allowUnreachableCode": false, + "noFallthroughCasesInSwitch": true, + "typeRoots": [ + "node_modules/@types" + ], + "types": [ + "node", + "mocha", + "jest" + ], + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "module": "commonjs", + "pretty": true, + "sourceMap": false, + "declaration": false, + "outDir": "dist", + "allowJs": true, + "noEmit": false, + "esModuleInterop": true, + "resolveJsonModule": true, + "importHelpers": true, + "baseUrl": "src", + "paths": { + "@/*": [ + "*" + ], + "@config": [ + "config" + ], + "@config/*": [ + "config/*" + ], + "@controllers/*": [ + "controllers/*" + ], + "@database": [ + "database" + ], + "@databases": [ + "databases" + ], + "@entities/*": [ + "entities/*" + ], + "@exceptions/*": [ + "exceptions/*" + ], + "@interfaces/*": [ + "interfaces/*" + ], + "@middlewares/*": [ + "middlewares/*" + ], + "@routes/*": [ + "routes/*" + ], + "@services/*": [ + "services/*" + ], + "@utils/*": [ + "utils/*" + ], + "@features/*": [ + "features/*" + ], + "@features": [ + "features" + ], + "@crons": [ + "crons" + ] + } + }, + "include": [ + "src/**/*.ts", + "src/**/*.json", + "test/**/*.ts" + ], + "exclude": [ + "node_modules", + "logs" + ] +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..537f7f0 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,7115 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@aashutoshrathi/word-wrap@^1.2.3": + version "1.2.6" + resolved "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz" + integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== + +"@ampproject/remapping@^2.2.0": + version "2.2.1" + resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz" + integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@apidevtools/json-schema-ref-parser@^9.0.6": + version "9.1.2" + resolved "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz" + integrity sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg== + dependencies: + "@jsdevtools/ono" "^7.1.3" + "@types/json-schema" "^7.0.6" + call-me-maybe "^1.0.1" + js-yaml "^4.1.0" + +"@apidevtools/openapi-schemas@^2.0.4": + version "2.1.0" + resolved "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz" + integrity sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ== + +"@apidevtools/swagger-methods@^3.0.2": + version "3.0.2" + resolved "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz" + integrity sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg== + +"@apidevtools/swagger-parser@10.0.3": + version "10.0.3" + resolved "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.0.3.tgz" + integrity sha512-sNiLY51vZOmSPFZA5TF35KZ2HbgYklQnTSDnkghamzLb3EkNtcQnrBQEj5AOCxHpTtXpqMCRM1CrmV2rG6nw4g== + dependencies: + "@apidevtools/json-schema-ref-parser" "^9.0.6" + "@apidevtools/openapi-schemas" "^2.0.4" + "@apidevtools/swagger-methods" "^3.0.2" + "@jsdevtools/ono" "^7.1.3" + call-me-maybe "^1.0.1" + z-schema "^5.0.1" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.13": + version "7.22.13" + resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz" + integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w== + dependencies: + "@babel/highlight" "^7.22.13" + chalk "^2.4.2" + +"@babel/code-frame@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244" + integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA== + dependencies: + "@babel/highlight" "^7.23.4" + chalk "^2.4.2" + +"@babel/compat-data@^7.22.9": + version "7.22.20" + resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz" + integrity sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw== + +"@babel/compat-data@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98" + integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== + +"@babel/core@^7.11.6", "@babel/core@^7.12.3": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz" + integrity sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.22.13" + "@babel/generator" "^7.23.0" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-module-transforms" "^7.23.0" + "@babel/helpers" "^7.23.0" + "@babel/parser" "^7.23.0" + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.23.0" + "@babel/types" "^7.23.0" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/core@^7.7.5": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.9.tgz#b028820718000f267870822fec434820e9b1e4d1" + integrity sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.6" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helpers" "^7.23.9" + "@babel/parser" "^7.23.9" + "@babel/template" "^7.23.9" + "@babel/traverse" "^7.23.9" + "@babel/types" "^7.23.9" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/generator@^7.23.0", "@babel/generator@^7.7.2": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz" + integrity sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g== + dependencies: + "@babel/types" "^7.23.0" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + +"@babel/generator@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e" + integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw== + dependencies: + "@babel/types" "^7.23.6" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + +"@babel/helper-compilation-targets@^7.22.15": + version "7.22.15" + resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz" + integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw== + dependencies: + "@babel/compat-data" "^7.22.9" + "@babel/helper-validator-option" "^7.22.15" + browserslist "^4.21.9" + lru-cache "^5.1.1" + semver "^6.3.1" + +"@babel/helper-compilation-targets@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" + integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== + dependencies: + "@babel/compat-data" "^7.23.5" + "@babel/helper-validator-option" "^7.23.5" + browserslist "^4.22.2" + lru-cache "^5.1.1" + semver "^6.3.1" + +"@babel/helper-environment-visitor@^7.22.20": + version "7.22.20" + resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz" + integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== + +"@babel/helper-function-name@^7.23.0": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz" + integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== + dependencies: + "@babel/template" "^7.22.15" + "@babel/types" "^7.23.0" + +"@babel/helper-hoist-variables@^7.22.5": + version "7.22.5" + resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz" + integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-module-imports@^7.22.15": + version "7.22.15" + resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz" + integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w== + dependencies: + "@babel/types" "^7.22.15" + +"@babel/helper-module-transforms@^7.23.0": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz" + integrity sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.20" + +"@babel/helper-module-transforms@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1" + integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.20" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.8.0": + version "7.22.5" + resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz" + integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== + +"@babel/helper-simple-access@^7.22.5": + version "7.22.5" + resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz" + integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-split-export-declaration@^7.22.6": + version "7.22.6" + resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz" + integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-string-parser@^7.22.5": + version "7.22.5" + resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz" + integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== + +"@babel/helper-string-parser@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83" + integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ== + +"@babel/helper-validator-identifier@^7.22.20": + version "7.22.20" + resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz" + integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== + +"@babel/helper-validator-option@^7.22.15": + version "7.22.15" + resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz" + integrity sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA== + +"@babel/helper-validator-option@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" + integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== + +"@babel/helpers@^7.23.0": + version "7.23.1" + resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz" + integrity sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA== + dependencies: + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.23.0" + "@babel/types" "^7.23.0" + +"@babel/helpers@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.9.tgz#c3e20bbe7f7a7e10cb9b178384b4affdf5995c7d" + integrity sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ== + dependencies: + "@babel/template" "^7.23.9" + "@babel/traverse" "^7.23.9" + "@babel/types" "^7.23.9" + +"@babel/highlight@^7.22.13": + version "7.22.20" + resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz" + integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg== + dependencies: + "@babel/helper-validator-identifier" "^7.22.20" + chalk "^2.4.2" + js-tokens "^4.0.0" + +"@babel/highlight@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b" + integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A== + dependencies: + "@babel/helper-validator-identifier" "^7.22.20" + chalk "^2.4.2" + js-tokens "^4.0.0" + +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.0", "@babel/parser@^7.6.0", "@babel/parser@^7.9.6": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz" + integrity sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw== + +"@babel/parser@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.9.tgz#7b903b6149b0f8fa7ad564af646c4c38a77fc44b" + integrity sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA== + +"@babel/plugin-syntax-async-generators@^7.8.4": + version "7.8.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-bigint@^7.8.3": + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz" + integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-class-properties@^7.8.3": + version "7.12.13" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + +"@babel/plugin-syntax-import-meta@^7.8.3": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-jsx@^7.7.2": + version "7.23.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz" + integrity sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-numeric-separator@^7.8.3": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-object-rest-spread@^7.8.3": + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-chaining@^7.8.3": + version "7.8.3" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-top-level-await@^7.8.3": + version "7.14.5" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-typescript@^7.7.2": + version "7.22.5" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz" + integrity sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ== + dependencies: + "@babel/helper-plugin-utils" "^7.22.5" + +"@babel/template@^7.22.15", "@babel/template@^7.3.3": + version "7.22.15" + resolved "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz" + integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== + dependencies: + "@babel/code-frame" "^7.22.13" + "@babel/parser" "^7.22.15" + "@babel/types" "^7.22.15" + +"@babel/template@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.23.9.tgz#f881d0487cba2828d3259dcb9ef5005a9731011a" + integrity sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA== + dependencies: + "@babel/code-frame" "^7.23.5" + "@babel/parser" "^7.23.9" + "@babel/types" "^7.23.9" + +"@babel/traverse@^7.23.0": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz" + integrity sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw== + dependencies: + "@babel/code-frame" "^7.22.13" + "@babel/generator" "^7.23.0" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.23.0" + "@babel/types" "^7.23.0" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/traverse@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.9.tgz#2f9d6aead6b564669394c5ce0f9302bb65b9d950" + integrity sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg== + dependencies: + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.6" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.23.9" + "@babel/types" "^7.23.9" + debug "^4.3.1" + globals "^11.1.0" + +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.3.3", "@babel/types@^7.6.1", "@babel/types@^7.9.6": + version "7.23.0" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz" + integrity sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg== + dependencies: + "@babel/helper-string-parser" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + +"@babel/types@^7.23.6", "@babel/types@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.9.tgz#1dd7b59a9a2b5c87f8b41e52770b5ecbf492e002" + integrity sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q== + dependencies: + "@babel/helper-string-parser" "^7.23.4" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + +"@bcoe/v8-coverage@^0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" + integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== + +"@colors/colors@1.5.0": + version "1.5.0" + resolved "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz" + integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== + +"@commitlint/config-validator@^18.6.0": + version "18.6.0" + resolved "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-18.6.0.tgz" + integrity sha512-Ptfa865arNozlkjxrYG3qt6wT9AlhNUHeuDyKEZiTL/l0ftncFhK/KN0t/EAMV2tec+0Mwxo0FmhbESj/bI+1g== + dependencies: + "@commitlint/types" "^18.6.0" + ajv "^8.11.0" + +"@commitlint/execute-rule@^18.4.4": + version "18.4.4" + resolved "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-18.4.4.tgz" + integrity sha512-a37Nd3bDQydtg9PCLLWM9ZC+GO7X5i4zJvrggJv5jBhaHsXeQ9ZWdO6ODYR+f0LxBXXNYK3geYXJrCWUCP8JEg== + +"@commitlint/load@>6.1.1": + version "18.6.0" + resolved "https://registry.npmjs.org/@commitlint/load/-/load-18.6.0.tgz" + integrity sha512-RRssj7TmzT0bowoEKlgwg8uQ7ORXWkw7lYLsZZBMi9aInsJuGNLNWcMxJxRZbwxG3jkCidGUg85WmqJvRjsaDA== + dependencies: + "@commitlint/config-validator" "^18.6.0" + "@commitlint/execute-rule" "^18.4.4" + "@commitlint/resolve-extends" "^18.6.0" + "@commitlint/types" "^18.6.0" + chalk "^4.1.0" + cosmiconfig "^8.3.6" + cosmiconfig-typescript-loader "^5.0.0" + lodash.isplainobject "^4.0.6" + lodash.merge "^4.6.2" + lodash.uniq "^4.5.0" + resolve-from "^5.0.0" + +"@commitlint/resolve-extends@^18.6.0": + version "18.6.0" + resolved "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-18.6.0.tgz" + integrity sha512-k2Xp+Fxeggki2i90vGrbiLDMefPius3zGSTFFlRAPKce/SWLbZtI+uqE9Mne23mHO5lmcSV8z5m6ziiJwGpOcg== + dependencies: + "@commitlint/config-validator" "^18.6.0" + "@commitlint/types" "^18.6.0" + import-fresh "^3.0.0" + lodash.mergewith "^4.6.2" + resolve-from "^5.0.0" + resolve-global "^1.0.0" + +"@commitlint/types@^18.6.0": + version "18.6.0" + resolved "https://registry.npmjs.org/@commitlint/types/-/types-18.6.0.tgz" + integrity sha512-oavoKLML/eJa2rJeyYSbyGAYzTxQ6voG5oeX3OrxpfrkRWhJfm4ACnhoRf5tgiybx2MZ+EVFqC1Lw3W8/uwpZA== + dependencies: + chalk "^4.1.0" + +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + +"@dabh/diagnostics@^2.0.2": + version "2.0.3" + resolved "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz" + integrity sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA== + dependencies: + colorspace "1.1.x" + enabled "2.0.x" + kuler "^2.0.0" + +"@eslint-community/eslint-utils@^4.2.0": + version "4.4.0" + resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.4.0": + version "4.10.0" + resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== + +"@eslint-community/regexpp@^4.6.1": + version "4.9.0" + resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.0.tgz" + integrity sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ== + +"@eslint/eslintrc@^2.1.2": + version "2.1.2" + resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz" + integrity sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + +"@eslint/js@8.50.0": + version "8.50.0" + resolved "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz" + integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ== + +"@hapi/hoek@^9.0.0": + version "9.3.0" + resolved "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz" + integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== + +"@hapi/topo@^5.0.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz" + integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== + dependencies: + "@hapi/hoek" "^9.0.0" + +"@humanwhocodes/config-array@^0.11.11": + version "0.11.11" + resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz" + integrity sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA== + dependencies: + "@humanwhocodes/object-schema" "^1.2.1" + debug "^4.1.1" + minimatch "^3.0.5" + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^1.2.1": + version "1.2.1" + resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.3" + resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jest/console@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz" + integrity sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + slash "^3.0.0" + +"@jest/core@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz" + integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg== + dependencies: + "@jest/console" "^29.7.0" + "@jest/reporters" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + ci-info "^3.2.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-changed-files "^29.7.0" + jest-config "^29.7.0" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-resolve-dependencies "^29.7.0" + jest-runner "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + jest-watcher "^29.7.0" + micromatch "^4.0.4" + pretty-format "^29.7.0" + slash "^3.0.0" + strip-ansi "^6.0.0" + +"@jest/environment@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz" + integrity sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw== + dependencies: + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + jest-mock "^29.7.0" + +"@jest/expect-utils@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz" + integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== + dependencies: + jest-get-type "^29.6.3" + +"@jest/expect@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz" + integrity sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ== + dependencies: + expect "^29.7.0" + jest-snapshot "^29.7.0" + +"@jest/fake-timers@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz" + integrity sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ== + dependencies: + "@jest/types" "^29.6.3" + "@sinonjs/fake-timers" "^10.0.2" + "@types/node" "*" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-util "^29.7.0" + +"@jest/globals@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz" + integrity sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/types" "^29.6.3" + jest-mock "^29.7.0" + +"@jest/reporters@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz" + integrity sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg== + dependencies: + "@bcoe/v8-coverage" "^0.2.3" + "@jest/console" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@jridgewell/trace-mapping" "^0.3.18" + "@types/node" "*" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.2.9" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^6.0.0" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.1.3" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + jest-worker "^29.7.0" + slash "^3.0.0" + string-length "^4.0.1" + strip-ansi "^6.0.0" + v8-to-istanbul "^9.0.1" + +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== + dependencies: + "@sinclair/typebox" "^0.27.8" + +"@jest/source-map@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz" + integrity sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw== + dependencies: + "@jridgewell/trace-mapping" "^0.3.18" + callsites "^3.0.0" + graceful-fs "^4.2.9" + +"@jest/test-result@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz" + integrity sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA== + dependencies: + "@jest/console" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + collect-v8-coverage "^1.0.0" + +"@jest/test-sequencer@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz" + integrity sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw== + dependencies: + "@jest/test-result" "^29.7.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + slash "^3.0.0" + +"@jest/transform@^29.7.0": + version "29.7.0" + resolved "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz" + integrity sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw== + dependencies: + "@babel/core" "^7.11.6" + "@jest/types" "^29.6.3" + "@jridgewell/trace-mapping" "^0.3.18" + babel-plugin-istanbul "^6.1.1" + chalk "^4.0.0" + convert-source-map "^2.0.0" + fast-json-stable-stringify "^2.1.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + micromatch "^4.0.4" + pirates "^4.0.4" + slash "^3.0.0" + write-file-atomic "^4.0.2" + +"@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== + dependencies: + "@jest/schemas" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.3" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": + version "3.1.1" + resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz" + integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + +"@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": + version "1.4.15" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.19" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz" + integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@jridgewell/trace-mapping@^0.3.18": + version "0.3.22" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz" + integrity sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@jsdevtools/ono@^7.1.3": + version "7.1.3" + resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" + integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== + +"@mapbox/node-pre-gyp@^1.0.11": + version "1.0.11" + resolved "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz" + integrity sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ== + dependencies: + detect-libc "^2.0.0" + https-proxy-agent "^5.0.0" + make-dir "^3.1.0" + node-fetch "^2.6.7" + nopt "^5.0.0" + npmlog "^5.0.1" + rimraf "^3.0.2" + semver "^7.3.5" + tar "^6.1.11" + +"@messageformat/core@^3.0.0": + version "3.2.0" + resolved "https://registry.npmjs.org/@messageformat/core/-/core-3.2.0.tgz" + integrity sha512-ppbb/7OYqg/t4WdFk8VAfZEV2sNUq3+7VeBAo5sKFhmF786sh6gB7fUeXa2qLTDIcTHS49HivTBN7QNOU5OFTg== + dependencies: + "@messageformat/date-skeleton" "^1.0.0" + "@messageformat/number-skeleton" "^1.0.0" + "@messageformat/parser" "^5.1.0" + "@messageformat/runtime" "^3.0.1" + make-plural "^7.0.0" + safe-identifier "^0.4.1" + +"@messageformat/date-skeleton@^1.0.0": + version "1.0.1" + resolved "https://registry.npmjs.org/@messageformat/date-skeleton/-/date-skeleton-1.0.1.tgz" + integrity sha512-jPXy8fg+WMPIgmGjxSlnGJn68h/2InfT0TNSkVx0IGXgp4ynnvYkbZ51dGWmGySEK+pBiYUttbQdu5XEqX5CRg== + +"@messageformat/number-skeleton@^1.0.0": + version "1.2.0" + resolved "https://registry.npmjs.org/@messageformat/number-skeleton/-/number-skeleton-1.2.0.tgz" + integrity sha512-xsgwcL7J7WhlHJ3RNbaVgssaIwcEyFkBqxHdcdaiJzwTZAWEOD8BuUFxnxV9k5S0qHN3v/KzUpq0IUpjH1seRg== + +"@messageformat/parser@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@messageformat/parser/-/parser-5.1.0.tgz" + integrity sha512-jKlkls3Gewgw6qMjKZ9SFfHUpdzEVdovKFtW1qRhJ3WI4FW5R/NnGDqr8SDGz+krWDO3ki94boMmQvGke1HwUQ== + dependencies: + moo "^0.5.1" + +"@messageformat/runtime@^3.0.1": + version "3.0.1" + resolved "https://registry.npmjs.org/@messageformat/runtime/-/runtime-3.0.1.tgz" + integrity sha512-6RU5ol2lDtO8bD9Yxe6CZkl0DArdv0qkuoZC+ZwowU+cdRlVE1157wjCmlA5Rsf1Xc/brACnsZa5PZpEDfTFFg== + dependencies: + make-plural "^7.0.0" + +"@mole-inc/bin-wrapper@^8.0.1": + version "8.0.1" + resolved "https://registry.npmjs.org/@mole-inc/bin-wrapper/-/bin-wrapper-8.0.1.tgz" + integrity sha512-sTGoeZnjI8N4KS+sW2AN95gDBErhAguvkw/tWdCjeM8bvxpz5lqrnd0vOJABA1A+Ic3zED7PYoLP/RANLgVotA== + dependencies: + bin-check "^4.1.0" + bin-version-check "^5.0.0" + content-disposition "^0.5.4" + ext-name "^5.0.0" + file-type "^17.1.6" + filenamify "^5.0.2" + got "^11.8.5" + os-filter-obj "^2.0.0" + +"@mongodb-js/saslprep@^1.1.0": + version "1.1.0" + resolved "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.0.tgz" + integrity sha512-Xfijy7HvfzzqiOAhAepF4SGN5e9leLkMvg/OPOF97XemjfVCYN/oWa75wnkc6mltMSTwY+XlbhWgUOJmkFspSw== + dependencies: + sparse-bitfield "^3.0.3" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": + version "1.2.8" + resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@pkgr/core@^0.1.0": + version "0.1.1" + resolved "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz" + integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA== + +"@sideway/address@^4.1.3": + version "4.1.4" + resolved "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz" + integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw== + dependencies: + "@hapi/hoek" "^9.0.0" + +"@sideway/formula@^3.0.1": + version "3.0.1" + resolved "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz" + integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg== + +"@sideway/pinpoint@^2.0.0": + version "2.0.0" + resolved "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz" + integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== + +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + +"@sindresorhus/is@^4.0.0": + version "4.6.0" + resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz" + integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== + +"@sinonjs/commons@^3.0.0": + version "3.0.1" + resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz" + integrity sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^10.0.2": + version "10.3.0" + resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz" + integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== + dependencies: + "@sinonjs/commons" "^3.0.0" + +"@swc/cli@^0.1.57": + version "0.1.62" + resolved "https://registry.npmjs.org/@swc/cli/-/cli-0.1.62.tgz" + integrity sha512-kOFLjKY3XH1DWLfXL1/B5MizeNorHR8wHKEi92S/Zi9Md/AK17KSqR8MgyRJ6C1fhKHvbBCl8wboyKAFXStkYw== + dependencies: + "@mole-inc/bin-wrapper" "^8.0.1" + commander "^7.1.0" + fast-glob "^3.2.5" + semver "^7.3.8" + slash "3.0.0" + source-map "^0.7.3" + +"@swc/core-darwin-arm64@1.3.90": + version "1.3.90" + resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.90.tgz" + integrity sha512-he0w74HvcoufE6CZrB/U/VGVbc7021IQvYrn1geMACnq/OqMBqjdczNtdNfJAy87LZ4AOUjHDKEIjsZZu7o8nQ== + +"@swc/core-darwin-x64@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.90.tgz#e6d5c2118c6ad060f58ce9c7d246cf4c30420516" + integrity sha512-hKNM0Ix0qMlAamPe0HUfaAhQVbZEL5uK6Iw8v9ew0FtVB4v7EifQ9n41wh+yCj0CjcHBPEBbQU0P6mNTxJu/RQ== + +"@swc/core-linux-arm-gnueabihf@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.90.tgz#02cfecb0e5f3457e64e81eca70337c6dadba864d" + integrity sha512-HumvtrqTWE8rlFuKt7If0ZL7145H/jVc4AeziVjcd+/ajpqub7IyfrLCYd5PmKMtfeSVDMsxjG0BJ0HLRxrTJA== + +"@swc/core-linux-arm64-gnu@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.90.tgz#1ed87e65facc446880f5753fb89951da418f6ff5" + integrity sha512-tA7DqCS7YCwngwXZQeqQhhMm8BbydpaABw8Z/EDQ7KPK1iZ1rNjZw+aWvSpmNmEGmH1RmQ9QDS9mGRDp0faAeg== + +"@swc/core-linux-arm64-musl@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.90.tgz#531edd90f46aa7282e919178633f483f7ba073d6" + integrity sha512-p2Vtid5BZA36fJkNUwk5HP+HJlKgTru+Ghna7pRe45ghKkkRIUk3fhkgudEvfKfhT+3AvP+GTVQ+T9k0gc9S8w== + +"@swc/core-linux-x64-gnu@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.90.tgz#7b3937570964e290a0f382353d88fe8421ceb470" + integrity sha512-J6pDtWaulYGXuANERuvv4CqmUbZOQrRZBCRQGZQJ6a86RWpesZqckBelnYx48wYmkgvMkF95Y3xbI3WTfoSHzw== + +"@swc/core-linux-x64-musl@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.90.tgz#ae042d8dc84e086954a26308e4bccf6f38c1dafe" + integrity sha512-3Gh6EA3+0K+l3MqnRON7h5bZ32xLmfcVM6QiHHJ9dBttq7YOEeEoMOCdIPMaQxJmK1VfLgZCsPYRd66MhvUSkw== + +"@swc/core-win32-arm64-msvc@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.90.tgz#4952413bae4c5dbd7c150f7a626556fc6a2a3525" + integrity sha512-BNaw/iJloDyaNOFV23Sr53ULlnbmzSoerTJ10v0TjSZOEIpsS0Rw6xOK1iI0voDJnRXeZeWRSxEC9DhefNtN/g== + +"@swc/core-win32-ia32-msvc@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.90.tgz#ea5d417d3085dc521e6be6ecaef8c6ca59c4e5ec" + integrity sha512-SiyTethWAheE/JbxXCukAAciU//PLcmVZ2ME92MRuLMLmOhrwksjbaa7ukj9WEF3LWrherhSqTXnpj3VC1l/qw== + +"@swc/core-win32-x64-msvc@1.3.90": + version "1.3.90" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.90.tgz#af770b063fe7f32488a87cf0a9777e11932f7a3a" + integrity sha512-OpWAW5ljKcPJ3SQ0pUuKqYfwXv7ssIhVgrH9XP9ONtdgXKWZRL9hqJQkcL55FARw/gDjKanoCM47wsTNQL+ZZA== + +"@swc/core@^1.2.220": + version "1.3.90" + resolved "https://registry.npmjs.org/@swc/core/-/core-1.3.90.tgz" + integrity sha512-wptBxP4PldOnhmyDVj8qUcn++GRqyw1qc9wOTGtPNHz8cpuTfdfIgYGlhI4La0UYqecuaaIfLfokyuNePOMHPg== + dependencies: + "@swc/counter" "^0.1.1" + "@swc/types" "^0.1.5" + optionalDependencies: + "@swc/core-darwin-arm64" "1.3.90" + "@swc/core-darwin-x64" "1.3.90" + "@swc/core-linux-arm-gnueabihf" "1.3.90" + "@swc/core-linux-arm64-gnu" "1.3.90" + "@swc/core-linux-arm64-musl" "1.3.90" + "@swc/core-linux-x64-gnu" "1.3.90" + "@swc/core-linux-x64-musl" "1.3.90" + "@swc/core-win32-arm64-msvc" "1.3.90" + "@swc/core-win32-ia32-msvc" "1.3.90" + "@swc/core-win32-x64-msvc" "1.3.90" + +"@swc/counter@^0.1.1": + version "0.1.1" + resolved "https://registry.npmjs.org/@swc/counter/-/counter-0.1.1.tgz" + integrity sha512-xVRaR4u9hcYjFvcSg71Lz5Bo4//CyjAAfMxa7UsaDSYxAshflUkVJWiyVWrfxC59z2kP1IzI4/1BEpnhI9o3Mw== + +"@swc/types@^0.1.5": + version "0.1.5" + resolved "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz" + integrity sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw== + +"@szmarczak/http-timer@^4.0.5": + version "4.0.6" + resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz" + integrity sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w== + dependencies: + defer-to-connect "^2.0.0" + +"@tokenizer/token@^0.3.0": + version "0.3.0" + resolved "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz" + integrity sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A== + +"@tsconfig/node10@^1.0.7": + version "1.0.9" + resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz" + integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + +"@types/babel__core@^7.1.14": + version "7.20.5" + resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz" + integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== + dependencies: + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.6.8" + resolved "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz" + integrity sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.4.4" + resolved "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz" + integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": + version "7.20.5" + resolved "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz" + integrity sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ== + dependencies: + "@babel/types" "^7.20.7" + +"@types/bcrypt@^5.0.0": + version "5.0.0" + resolved "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.0.tgz" + integrity sha512-agtcFKaruL8TmcvqbndlqHPSJgsolhf/qPWchFlgnW1gECTN/nKbFcoFnvKAQRFfKbh+BO6A3SWdJu9t+xF3Lw== + dependencies: + "@types/node" "*" + +"@types/body-parser@*": + version "1.19.3" + resolved "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.3.tgz" + integrity sha512-oyl4jvAfTGX9Bt6Or4H9ni1Z447/tQuxnZsytsCaExKlmJiU8sFgnIBRzJUpKwB5eWn9HuBYlUlVA74q/yN0eQ== + dependencies: + "@types/connect" "*" + "@types/node" "*" + +"@types/cacheable-request@^6.0.1": + version "6.0.3" + resolved "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz" + integrity sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw== + dependencies: + "@types/http-cache-semantics" "*" + "@types/keyv" "^3.1.4" + "@types/node" "*" + "@types/responselike" "^1.0.0" + +"@types/compression@^1.7.2": + version "1.7.3" + resolved "https://registry.npmjs.org/@types/compression/-/compression-1.7.3.tgz" + integrity sha512-rKquEGjebqizyHNMOpaE/4FdYR5VQiWFeesqYfvJU0seSEyB4625UGhNOO/qIkH10S3wftiV7oefc8WdLZ/gCQ== + dependencies: + "@types/express" "*" + +"@types/connect@*": + version "3.4.36" + resolved "https://registry.npmjs.org/@types/connect/-/connect-3.4.36.tgz" + integrity sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w== + dependencies: + "@types/node" "*" + +"@types/cookie-parser@^1.4.3": + version "1.4.4" + resolved "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.4.4.tgz" + integrity sha512-Var+aj5I6ZgIqsQ05N2V8q5OBrFfZXtIGWWDSrEYLIbMw758obagSwdGcLCjwh1Ga7M7+wj0SDIAaAC/WT7aaA== + dependencies: + "@types/express" "*" + +"@types/cors@^2.8.12": + version "2.8.14" + resolved "https://registry.npmjs.org/@types/cors/-/cors-2.8.14.tgz" + integrity sha512-RXHUvNWYICtbP6s18PnOCaqToK8y14DnLd75c6HfyKf228dxy7pHNOQkxPtvXKp/hINFMDjbYzsj63nnpPMSRQ== + dependencies: + "@types/node" "*" + +"@types/express-serve-static-core@^4.17.33": + version "4.17.37" + resolved "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.37.tgz" + integrity sha512-ZohaCYTgGFcOP7u6aJOhY9uIZQgZ2vxC2yWoArY+FeDXlqeH66ZVBjgvg+RLVAS/DWNq4Ap9ZXu1+SUQiiWYMg== + dependencies: + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + "@types/send" "*" + +"@types/express@*", "@types/express@^4.17.13": + version "4.17.18" + resolved "https://registry.npmjs.org/@types/express/-/express-4.17.18.tgz" + integrity sha512-Sxv8BSLLgsBYmcnGdGjjEjqET2U+AKAdCRODmMiq02FgjwuV75Ut85DRpvFjyw/Mk0vgUOliGRU0UUmuuZHByQ== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "^4.17.33" + "@types/qs" "*" + "@types/serve-static" "*" + +"@types/graceful-fs@^4.1.3": + version "4.1.7" + resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.7.tgz" + integrity sha512-MhzcwU8aUygZroVwL2jeYk6JisJrPl/oov/gsgGCue9mkgl9wjGbzReYQClxiUgFDnib9FuHqTndccKeZKxTRw== + dependencies: + "@types/node" "*" + +"@types/hpp@^0.2.2": + version "0.2.3" + resolved "https://registry.npmjs.org/@types/hpp/-/hpp-0.2.3.tgz" + integrity sha512-EIbnUHlMgZ7lndrm6p8GZsFnnFnw1w17ZWwT5q/6Mb+62o8BqdpgKxvEZFTYVOqOsOhXEbFmWSzZXVurP0XSnQ== + dependencies: + "@types/express" "*" + +"@types/http-cache-semantics@*": + version "4.0.2" + resolved "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz" + integrity sha512-FD+nQWA2zJjh4L9+pFXqWOi0Hs1ryBCfI+985NjluQ1p8EYtoLvjLOKidXBtZ4/IcxDX4o8/E8qDS3540tNliw== + +"@types/http-errors@*": + version "2.0.2" + resolved "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.2.tgz" + integrity sha512-lPG6KlZs88gef6aD85z3HNkztpj7w2R7HmR3gygjfXCQmsLloWNARFkMuzKiiY8FGdh1XDpgBdrSf4aKDiA7Kg== + +"@types/i18n@^0.13.6": + version "0.13.6" + resolved "https://registry.npmjs.org/@types/i18n/-/i18n-0.13.6.tgz" + integrity sha512-LLbimAA0oQilgP4PJBFH7sRdBUjWLo6R1rf46SUgVzsUZeXH3PT1piXj4LNX5ECDi0bLg9RmQMmY1K2qawqJqA== + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": + version "2.0.4" + resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== + +"@types/istanbul-lib-report@*": + version "3.0.1" + resolved "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz" + integrity sha512-gPQuzaPR5h/djlAv2apEG1HVOyj1IUs7GpfMZixU0/0KXT3pm64ylHuMUI1/Akh+sq/iikxg6Z2j+fcMDXaaTQ== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^3.0.0": + version "3.0.2" + resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.2.tgz" + integrity sha512-kv43F9eb3Lhj+lr/Hn6OcLCs/sSM8bt+fIaP11rCYngfV6NVjzWXJ17owQtDQTL9tQ8WSLUrGsSJ6rJz0F1w1A== + dependencies: + "@types/istanbul-lib-report" "*" + +"@types/jest@^29.5.11": + version "29.5.11" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.11.tgz#0c13aa0da7d0929f078ab080ae5d4ced80fa2f2c" + integrity sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ== + dependencies: + expect "^29.0.0" + pretty-format "^29.0.0" + +"@types/json-schema@^7.0.6": + version "7.0.13" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz" + integrity sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ== + +"@types/json-schema@^7.0.9": + version "7.0.15" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + +"@types/jsonwebtoken@*", "@types/jsonwebtoken@^9.0.3": + version "9.0.3" + resolved "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz" + integrity sha512-b0jGiOgHtZ2jqdPgPnP6WLCXZk1T8p06A/vPGzUvxpFGgKMbjXJDjC5m52ErqBnIuWZFgGoIJyRdeG5AyreJjA== + dependencies: + "@types/node" "*" + +"@types/keyv@^3.1.4": + version "3.1.4" + resolved "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz" + integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg== + dependencies: + "@types/node" "*" + +"@types/mime@*": + version "3.0.2" + resolved "https://registry.npmjs.org/@types/mime/-/mime-3.0.2.tgz" + integrity sha512-Wj+fqpTLtTbG7c0tH47dkahefpLKEbB+xAZuLq7b4/IDHPl/n6VoXcyUQ2bypFlbSwvCr0y+bD4euTTqTJsPxQ== + +"@types/mime@^1": + version "1.3.3" + resolved "https://registry.npmjs.org/@types/mime/-/mime-1.3.3.tgz" + integrity sha512-Ys+/St+2VF4+xuY6+kDIXGxbNRO0mesVg0bbxEfB97Od1Vjpjx9KD1qxs64Gcb3CWPirk9Xe+PT4YiiHQ9T+eg== + +"@types/mock-fs@^4.13.4": + version "4.13.4" + resolved "https://registry.yarnpkg.com/@types/mock-fs/-/mock-fs-4.13.4.tgz#e73edb4b4889d44d23f1ea02d6eebe50aa30b09a" + integrity sha512-mXmM0o6lULPI8z3XNnQCpL0BGxPwx1Ul1wXYEPBGl4efShyxW2Rln0JOPEWGyZaYZMM6OVXM/15zUuFMY52ljg== + dependencies: + "@types/node" "*" + +"@types/morgan@^1.9.3": + version "1.9.6" + resolved "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.6.tgz" + integrity sha512-xfKogz5WcKww2DAiVT9zxMgrqQt+Shq8tDVeLT+otoj6dJnkRkyJxMF51mHtUc3JCPKGk5x1EBU0buuGpfftlQ== + dependencies: + "@types/node" "*" + +"@types/multer@^1.4.8": + version "1.4.8" + resolved "https://registry.npmjs.org/@types/multer/-/multer-1.4.8.tgz" + integrity sha512-VMZOW6mnmMMhA5m3fsCdXBwFwC+a+27/8gctNMuQC4f7UtWcF79KAFGoIfKZ4iqrElgWIa3j5vhMJDp0iikQ1g== + dependencies: + "@types/express" "*" + +"@types/node-schedule@^2.1.0": + version "2.1.1" + resolved "https://registry.npmjs.org/@types/node-schedule/-/node-schedule-2.1.1.tgz" + integrity sha512-FaqkbBizA+DinA0XWtAhdbEXykUkkqzBWT4BSnhn71z9C+vvcDgNcHvTP59nBhMg3o39E/ZY8zB/AQ6/HGuRag== + dependencies: + "@types/node" "*" + +"@types/node@*", "@types/node@^16.11.10": + version "16.18.54" + resolved "https://registry.npmjs.org/@types/node/-/node-16.18.54.tgz" + integrity sha512-oTmGy68gxZZ21FhTJVVvZBYpQHEBZxHKTsGshobMqm9qWpbqdZsA5jvsuPZcHu0KwpmLrOHWPdEfg7XDpNT9UA== + +"@types/nodemailer@^6.4.8": + version "6.4.11" + resolved "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-6.4.11.tgz" + integrity sha512-Ld2c0frwpGT4VseuoeboCXQ7UJIkK3X7Lx/4YsZEiUHtHsthWAOCYtf6PAiLhMtfwV0cWJRabLBS3+LD8x6Nrw== + dependencies: + "@types/node" "*" + +"@types/passport-jwt@^3.0.9": + version "3.0.10" + resolved "https://registry.npmjs.org/@types/passport-jwt/-/passport-jwt-3.0.10.tgz" + integrity sha512-D2A911g2uiFsq/XXFBxQjcBcK4c6zPF2gAx9blEfz2AOXx5UUwsd8ZcMTcPe8z9dhW8LQBYLjv+vug2dvnRevA== + dependencies: + "@types/express" "*" + "@types/jsonwebtoken" "*" + "@types/passport-strategy" "*" + +"@types/passport-strategy@*": + version "0.2.36" + resolved "https://registry.npmjs.org/@types/passport-strategy/-/passport-strategy-0.2.36.tgz" + integrity sha512-hotVZuaCt04LJYXfZD5B+5UeCcRVG8IjKaLLGTJ1eFp0wiFQA2XfsqslGGInWje+OysNNLPH/ducce5GXHDC1Q== + dependencies: + "@types/express" "*" + "@types/passport" "*" + +"@types/passport@*", "@types/passport@^1.0.12": + version "1.0.13" + resolved "https://registry.npmjs.org/@types/passport/-/passport-1.0.13.tgz" + integrity sha512-XXURryL+EZAWtbQFOHX1eNB+RJwz5XMPPz1xrGpEKr2xUZCXM4NCPkHMtZQ3B2tTSG/1IRaAcTHjczRA4sSFCw== + dependencies: + "@types/express" "*" + +"@types/pug@^2.0.6": + version "2.0.7" + resolved "https://registry.npmjs.org/@types/pug/-/pug-2.0.7.tgz" + integrity sha512-I469DU0UXNC1aHepwirWhu9YKg5fkxohZD95Ey/5A7lovC+Siu+MCLffva87lnfThaOrw9Vb1DUN5t55oULAAw== + +"@types/qs@*": + version "6.9.8" + resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.8.tgz" + integrity sha512-u95svzDlTysU5xecFNTgfFG5RUWu1A9P0VzgpcIiGZA9iraHOdSzcxMxQ55DyeRaGCSxQi7LxXDI4rzq/MYfdg== + +"@types/range-parser@*": + version "1.2.5" + resolved "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.5.tgz" + integrity sha512-xrO9OoVPqFuYyR/loIHjnbvvyRZREYKLjxV4+dY6v3FQR3stQ9ZxIGkaclF7YhI9hfjpuTbu14hZEy94qKLtOA== + +"@types/responselike@^1.0.0": + version "1.0.1" + resolved "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.1.tgz" + integrity sha512-TiGnitEDxj2X0j+98Eqk5lv/Cij8oHd32bU4D/Yw6AOq7vvTk0gSD2GPj0G/HkvhMoVsdlhYF4yqqlyPBTM6Sg== + dependencies: + "@types/node" "*" + +"@types/semver@^7.3.12": + version "7.5.6" + resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz" + integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== + +"@types/send@*": + version "0.17.2" + resolved "https://registry.npmjs.org/@types/send/-/send-0.17.2.tgz" + integrity sha512-aAG6yRf6r0wQ29bkS+x97BIs64ZLxeE/ARwyS6wrldMm3C1MdKwCcnnEwMC1slI8wuxJOpiUH9MioC0A0i+GJw== + dependencies: + "@types/mime" "^1" + "@types/node" "*" + +"@types/serve-static@*": + version "1.15.3" + resolved "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.3.tgz" + integrity sha512-yVRvFsEMrv7s0lGhzrggJjNOSmZCdgCjw9xWrPr/kNNLp6FaDfMC1KaYl3TSJ0c58bECwNBMoQrZJ8hA8E1eFg== + dependencies: + "@types/http-errors" "*" + "@types/mime" "*" + "@types/node" "*" + +"@types/stack-utils@^2.0.0": + version "2.0.1" + resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz" + integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== + +"@types/swagger-jsdoc@^6.0.1": + version "6.0.1" + resolved "https://registry.npmjs.org/@types/swagger-jsdoc/-/swagger-jsdoc-6.0.1.tgz" + integrity sha512-+MUpcbyxD528dECUBCEVm6abNuORdbuGjbrUdHDeAQ+rkPuo2a+L4N02WJHF3bonSSE6SJ3dUJwF2V6+cHnf0w== + +"@types/swagger-ui-express@^4.1.4": + version "4.1.4" + resolved "https://registry.npmjs.org/@types/swagger-ui-express/-/swagger-ui-express-4.1.4.tgz" + integrity sha512-h6dfIPFveCJKpStDtjrB+4pig4DAf9Uu2Z51RB7Fj3s6AifexmqhZxBoG50K/k3Afz7wyXsIAY5ZIDTlC2VjrQ== + dependencies: + "@types/express" "*" + "@types/serve-static" "*" + +"@types/triple-beam@^1.3.2": + version "1.3.3" + resolved "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.3.tgz" + integrity sha512-6tOUG+nVHn0cJbVp25JFayS5UE6+xlbcNF9Lo9mU7U0zk3zeUShZied4YEQZjy1JBF043FSkdXw8YkUJuVtB5g== + +"@types/validator@^13.11.2", "@types/validator@^13.7.10": + version "13.11.2" + resolved "https://registry.npmjs.org/@types/validator/-/validator-13.11.2.tgz" + integrity sha512-nIKVVQKT6kGKysnNt+xLobr+pFJNssJRi2s034wgWeFBUx01fI8BeHTW2TcRp7VcFu9QCYG8IlChTuovcm0oKQ== + +"@types/webidl-conversions@*": + version "7.0.1" + resolved "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.1.tgz" + integrity sha512-8hKOnOan+Uu+NgMaCouhg3cT9x5fFZ92Jwf+uDLXLu/MFRbXxlWwGeQY7KVHkeSft6RvY+tdxklUBuyY9eIEKg== + +"@types/whatwg-url@^8.2.1": + version "8.2.2" + resolved "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz" + integrity sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA== + dependencies: + "@types/node" "*" + "@types/webidl-conversions" "*" + +"@types/yargs-parser@*": + version "21.0.1" + resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.1.tgz" + integrity sha512-axdPBuLuEJt0c4yI5OZssC19K2Mq1uKdrfZBzuxLvaztgqUtFYZUNw7lETExPYJR9jdEoIg4mb7RQKRQzOkeGQ== + +"@types/yargs@^17.0.8": + version "17.0.25" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.25.tgz" + integrity sha512-gy7iPgwnzNvxgAEi2bXOHWCVOG6f7xsprVJH4MjlAWeBmJ7vh/Y1kwMtUrs64ztf24zVIRCpr3n/z6gm9QIkgg== + dependencies: + "@types/yargs-parser" "*" + +"@typescript-eslint/eslint-plugin@^5.29.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz" + integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag== + dependencies: + "@eslint-community/regexpp" "^4.4.0" + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/type-utils" "5.62.0" + "@typescript-eslint/utils" "5.62.0" + debug "^4.3.4" + graphemer "^1.4.0" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/parser@^5.29.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz" + integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== + dependencies: + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/typescript-estree" "5.62.0" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.62.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz" + integrity sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w== + dependencies: + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/visitor-keys" "5.62.0" + +"@typescript-eslint/type-utils@5.62.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz" + integrity sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew== + dependencies: + "@typescript-eslint/typescript-estree" "5.62.0" + "@typescript-eslint/utils" "5.62.0" + debug "^4.3.4" + tsutils "^3.21.0" + +"@typescript-eslint/types@5.62.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz" + integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ== + +"@typescript-eslint/typescript-estree@5.62.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz" + integrity sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA== + dependencies: + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/visitor-keys" "5.62.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.62.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz" + integrity sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@types/json-schema" "^7.0.9" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.62.0" + "@typescript-eslint/types" "5.62.0" + "@typescript-eslint/typescript-estree" "5.62.0" + eslint-scope "^5.1.1" + semver "^7.3.7" + +"@typescript-eslint/visitor-keys@5.62.0": + version "5.62.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz" + integrity sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw== + dependencies: + "@typescript-eslint/types" "5.62.0" + eslint-visitor-keys "^3.3.0" + +abbrev@1: + version "1.1.1" + resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +accepts@~1.3.5, accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn-walk@^8.1.1: + version "8.2.0" + resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" + integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== + +acorn@^7.1.1: + version "7.4.1" + resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.4.1, acorn@^8.9.0: + version "8.10.0" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" + integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== + +agent-base@6: + version "6.0.2" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^8.11.0: + version "8.12.0" + resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" + integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +ansi-colors@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" + integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== + +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-escapes@^6.2.0: + version "6.2.0" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-6.2.0.tgz" + integrity sha512-kzRaCqXnpzWs+3z5ABPQiVke+iq0KXkHo8xiWV4RPTi5Yli0l97BEQuhXV1s7+aSU/fu1kUuxgS4MsQ0fRuygw== + dependencies: + type-fest "^3.0.0" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^5.0.0: + version "5.2.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz" + integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== + +ansi-styles@^6.0.0, ansi-styles@^6.2.1: + version "6.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + +anymatch@^3.0.3, anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +append-field@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz" + integrity sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw== + +append-transform@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-2.0.0.tgz#99d9d29c7b38391e6f428d28ce136551f0b77e12" + integrity sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg== + dependencies: + default-require-extensions "^3.0.0" + +"aproba@^1.0.3 || ^2.0.0": + version "2.0.0" + resolved "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz" + integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== + +arch@^2.1.0: + version "2.2.0" + resolved "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz" + integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== + +archy@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" + integrity sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw== + +are-we-there-yet@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz" + integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw== + dependencies: + delegates "^1.0.0" + readable-stream "^3.6.0" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" + integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== + +assert-never@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/assert-never/-/assert-never-1.2.1.tgz" + integrity sha512-TaTivMB6pYI1kXwrFlEhLeGfOqoDNdTxjCdwRfFFkEA30Eu+k48W34nlok2EYWJfFFzqaEmichdNM7th6M5HNw== + +async@^3.2.3: + version "3.2.4" + resolved "https://registry.npmjs.org/async/-/async-3.2.4.tgz" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + +babel-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5" + integrity sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg== + dependencies: + "@jest/transform" "^29.7.0" + "@types/babel__core" "^7.1.14" + babel-plugin-istanbul "^6.1.1" + babel-preset-jest "^29.6.3" + chalk "^4.0.0" + graceful-fs "^4.2.9" + slash "^3.0.0" + +babel-plugin-istanbul@^6.1.1: + version "6.1.1" + resolved "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz" + integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-instrument "^5.0.4" + test-exclude "^6.0.0" + +babel-plugin-jest-hoist@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz" + integrity sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg== + dependencies: + "@babel/template" "^7.3.3" + "@babel/types" "^7.3.3" + "@types/babel__core" "^7.1.14" + "@types/babel__traverse" "^7.0.6" + +babel-preset-current-node-syntax@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz" + integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== + dependencies: + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-bigint" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.8.3" + "@babel/plugin-syntax-import-meta" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.8.3" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-top-level-await" "^7.8.3" + +babel-preset-jest@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz" + integrity sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA== + dependencies: + babel-plugin-jest-hoist "^29.6.3" + babel-preset-current-node-syntax "^1.0.0" + +babel-walk@3.0.0-canary-5: + version "3.0.0-canary-5" + resolved "https://registry.npmjs.org/babel-walk/-/babel-walk-3.0.0-canary-5.tgz" + integrity sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw== + dependencies: + "@babel/types" "^7.9.6" + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +basic-auth@~2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz" + integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg== + dependencies: + safe-buffer "5.1.2" + +bcrypt@^5.0.1: + version "5.1.1" + resolved "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz" + integrity sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww== + dependencies: + "@mapbox/node-pre-gyp" "^1.0.11" + node-addon-api "^5.0.0" + +bin-check@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/bin-check/-/bin-check-4.1.0.tgz" + integrity sha512-b6weQyEUKsDGFlACWSIOfveEnImkJyK/FGW6FAG42loyoquvjdtOIqO6yBFzHyqyVVhNgNkQxxx09SFLK28YnA== + dependencies: + execa "^0.7.0" + executable "^4.1.0" + +bin-version-check@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/bin-version-check/-/bin-version-check-5.1.0.tgz" + integrity sha512-bYsvMqJ8yNGILLz1KP9zKLzQ6YpljV3ln1gqhuLkUtyfGi3qXKGuK2p+U4NAvjVFzDFiBBtOpCOSFNuYYEGZ5g== + dependencies: + bin-version "^6.0.0" + semver "^7.5.3" + semver-truncate "^3.0.0" + +bin-version@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/bin-version/-/bin-version-6.0.0.tgz" + integrity sha512-nk5wEsP4RiKjG+vF+uG8lFsEn4d7Y6FVDamzzftSunXOoOcOOkzcWdKVlGgFFwlUQCj63SgnUkLLGF8v7lufhw== + dependencies: + execa "^5.0.0" + find-versions "^5.0.0" + +binary-extensions@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" + integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== + +bl@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +body-parser@1.20.1: + version "1.20.1" + resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz" + integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw== + dependencies: + bytes "3.1.2" + content-type "~1.0.4" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.11.0" + raw-body "2.5.1" + type-is "~1.6.18" + unpipe "1.0.0" + +boolean@^3.1.4: + version "3.2.0" + resolved "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz" + integrity sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +braces@^3.0.2, braces@~3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browser-stdout@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" + integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== + +browserslist@^4.21.9: + version "4.22.0" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.22.0.tgz" + integrity sha512-v+Jcv64L2LbfTC6OnRcaxtqJNJuQAVhZKSJfR/6hn7lhnChUXl4amwVviqN1k411BB+3rRoKMitELRn1CojeRA== + dependencies: + caniuse-lite "^1.0.30001539" + electron-to-chromium "^1.4.530" + node-releases "^2.0.13" + update-browserslist-db "^1.0.13" + +browserslist@^4.22.2: + version "4.22.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.2.tgz#704c4943072bd81ea18997f3bd2180e89c77874b" + integrity sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A== + dependencies: + caniuse-lite "^1.0.30001565" + electron-to-chromium "^1.4.601" + node-releases "^2.0.14" + update-browserslist-db "^1.0.13" + +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + +bser@2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +bson@^5.4.0: + version "5.5.0" + resolved "https://registry.npmjs.org/bson/-/bson-5.5.0.tgz" + integrity sha512-B+QB4YmDx9RStKv8LLSl/aVIEV3nYJc3cJNNTK2Cd1TL+7P+cNpw9mAPeCgc5K+j01Dv6sxUzcITXDx7ZU3F0w== + +bson@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/bson/-/bson-6.1.0.tgz" + integrity sha512-yiQ3KxvpVoRpx1oD1uPz4Jit9tAVTJgjdmjDKtUErkOoL9VNoF8Dd58qtAOL5E40exx2jvAT9sqdRSK/r+SHlA== + +buffer-equal-constant-time@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz" + integrity sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA== + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +busboy@^1.0.0: + version "1.6.0" + resolved "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz" + integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== + dependencies: + streamsearch "^1.1.0" + +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +cacheable-lookup@^5.0.3: + version "5.0.4" + resolved "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz" + integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== + +cacheable-request@^7.0.2: + version "7.0.4" + resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz" + integrity sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^4.0.0" + lowercase-keys "^2.0.0" + normalize-url "^6.0.1" + responselike "^2.0.0" + +cachedir@2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz" + integrity sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw== + +caching-transform@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/caching-transform/-/caching-transform-4.0.0.tgz#00d297a4206d71e2163c39eaffa8157ac0651f0f" + integrity sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA== + dependencies: + hasha "^5.0.0" + make-dir "^3.0.0" + package-hash "^4.0.0" + write-file-atomic "^3.0.0" + +call-bind@^1.0.0, call-bind@^1.0.2: + version "1.0.5" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz" + integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== + dependencies: + function-bind "^1.1.2" + get-intrinsic "^1.2.1" + set-function-length "^1.1.1" + +call-me-maybe@^1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz" + integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.0.0, camelcase@^6.2.0: + version "6.3.0" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + +caniuse-lite@^1.0.30001539: + version "1.0.30001541" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001541.tgz" + integrity sha512-bLOsqxDgTqUBkzxbNlSBt8annkDpQB9NdzdTbO2ooJ+eC/IQcvDspDc058g84ejCelF7vHUx57KIOjEecOHXaw== + +caniuse-lite@^1.0.30001565: + version "1.0.30001580" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz#e3c76bc6fe020d9007647044278954ff8cd17d1e" + integrity sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA== + +chalk@5.3.0: + version "5.3.0" + resolved "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz" + integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== + +chalk@^2.4.1, chalk@^2.4.2: + version "2.4.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +char-regex@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" + integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== + +character-parser@^2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/character-parser/-/character-parser-2.2.0.tgz" + integrity sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw== + dependencies: + is-regex "^1.0.3" + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +chokidar@3.5.3, chokidar@^3.5.2, chokidar@^3.5.3: + version "3.5.3" + resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" + integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +chownr@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz" + integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== + +ci-info@^3.2.0: + version "3.8.0" + resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz" + integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== + +cjs-module-lexer@^1.0.0: + version "1.2.3" + resolved "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz" + integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ== + +class-validator@^0.14.0: + version "0.14.0" + resolved "https://registry.npmjs.org/class-validator/-/class-validator-0.14.0.tgz" + integrity sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A== + dependencies: + "@types/validator" "^13.7.10" + libphonenumber-js "^1.10.14" + validator "^13.7.0" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz" + integrity sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg== + dependencies: + restore-cursor "^4.0.0" + +cli-spinners@^2.5.0: + version "2.9.2" + resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz" + integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== + +cli-truncate@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz" + integrity sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA== + dependencies: + slice-ansi "^5.0.0" + string-width "^7.0.0" + +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +clone-response@^1.0.2: + version "1.0.3" + resolved "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz" + integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA== + dependencies: + mimic-response "^1.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz" + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== + +collect-v8-coverage@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz" + integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== + +color-convert@^1.9.0, color-convert@^1.9.3: + version "1.9.3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + +color-name@^1.0.0, color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +color-string@^1.6.0: + version "1.9.1" + resolved "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz" + integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color-support@^1.1.2: + version "1.1.3" + resolved "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz" + integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== + +color@^3.1.3: + version "3.2.1" + resolved "https://registry.npmjs.org/color/-/color-3.2.1.tgz" + integrity sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA== + dependencies: + color-convert "^1.9.3" + color-string "^1.6.0" + +colorette@^2.0.20: + version "2.0.20" + resolved "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz" + integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== + +colorspace@1.1.x: + version "1.1.4" + resolved "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz" + integrity sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w== + dependencies: + color "^3.1.3" + text-hex "1.0.x" + +commander@11.1.0: + version "11.1.0" + resolved "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz" + integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ== + +commander@6.2.0: + version "6.2.0" + resolved "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz" + integrity sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q== + +commander@^10.0.0: + version "10.0.1" + resolved "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== + +commander@^7.1.0: + version "7.2.0" + resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== + +commander@^9.0.0: + version "9.5.0" + resolved "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz" + integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ== + +commitizen@^4.0.3, commitizen@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/commitizen/-/commitizen-4.3.0.tgz" + integrity sha512-H0iNtClNEhT0fotHvGV3E9tDejDeS04sN1veIebsKYGMuGscFaswRoYJKmT3eW85eIJAs0F28bG2+a/9wCOfPw== + dependencies: + cachedir "2.3.0" + cz-conventional-changelog "3.3.0" + dedent "0.7.0" + detect-indent "6.1.0" + find-node-modules "^2.1.2" + find-root "1.1.0" + fs-extra "9.1.0" + glob "7.2.3" + inquirer "8.2.5" + is-utf8 "^0.2.1" + lodash "4.17.21" + minimist "1.2.7" + strip-bom "4.0.0" + strip-json-comments "3.1.1" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + +compressible@~2.0.16: + version "2.0.18" + resolved "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@^1.7.4: + version "1.7.4" + resolved "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz" + integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.16" + debug "2.6.9" + on-headers "~1.0.2" + safe-buffer "5.1.2" + vary "~1.1.2" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +concat-stream@^1.5.2: + version "1.6.2" + resolved "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz" + integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +console-control-strings@^1.0.0, console-control-strings@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz" + integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== + +constantinople@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/constantinople/-/constantinople-4.0.1.tgz" + integrity sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw== + dependencies: + "@babel/parser" "^7.6.0" + "@babel/types" "^7.6.1" + +content-disposition@0.5.4, content-disposition@^0.5.4: + version "0.5.4" + resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4: + version "1.0.5" + resolved "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +conventional-commit-types@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/conventional-commit-types/-/conventional-commit-types-3.0.0.tgz" + integrity sha512-SmmCYnOniSsAa9GqWOeLqc179lfr5TRu5b4QFDkbsrJ5TZjPJx85wtOr3zn+1dbeNiXDKGPbZ72IKbPhLXh/Lg== + +convert-source-map@^1.6.0, convert-source-map@^1.7.0: + version "1.9.0" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== + +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + +cookie-parser@^1.4.6: + version "1.4.6" + resolved "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz" + integrity sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA== + dependencies: + cookie "0.4.1" + cookie-signature "1.0.6" + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" + integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== + +cookie@0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz" + integrity sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA== + +cookie@0.5.0: + version "0.5.0" + resolved "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz" + integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== + +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + +cors@^2.8.5: + version "2.8.5" + resolved "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== + dependencies: + object-assign "^4" + vary "^1" + +cosmiconfig-typescript-loader@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-5.0.0.tgz" + integrity sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA== + dependencies: + jiti "^1.19.1" + +cosmiconfig@^8.3.6: + version "8.3.6" + resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz" + integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA== + dependencies: + import-fresh "^3.3.0" + js-yaml "^4.1.0" + parse-json "^5.2.0" + path-type "^4.0.0" + +create-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz" + integrity sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q== + dependencies: + "@jest/types" "^29.6.3" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-config "^29.7.0" + jest-util "^29.7.0" + prompts "^2.0.1" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +cron-parser@^4.2.0: + version "4.9.0" + resolved "https://registry.npmjs.org/cron-parser/-/cron-parser-4.9.0.tgz" + integrity sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q== + dependencies: + luxon "^3.2.1" + +cross-env@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz" + integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== + dependencies: + cross-spawn "^7.0.1" + +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz" + integrity sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A== + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +cz-conventional-changelog@3.3.0, cz-conventional-changelog@^3.3.0: + version "3.3.0" + resolved "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-3.3.0.tgz" + integrity sha512-U466fIzU5U22eES5lTNiNbZ+d8dfcHcssH4o7QsdWaCcRs/feIPCxKYSWkYBNs5mny7MvEfwpTLWjvbm94hecw== + dependencies: + chalk "^2.4.1" + commitizen "^4.0.3" + conventional-commit-types "^3.0.0" + lodash.map "^4.5.1" + longest "^2.0.1" + word-wrap "^1.0.3" + optionalDependencies: + "@commitlint/load" ">6.1.1" + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@4, debug@4.3.4, debug@4.x, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: + version "4.3.4" + resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + +debug@^3.2.7: + version "3.2.7" + resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + +decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== + +decamelize@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" + integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== + +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== + dependencies: + mimic-response "^3.1.0" + +dedent@0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz" + integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== + +dedent@^1.0.0: + version "1.5.1" + resolved "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz" + integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg== + +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +deepmerge@^4.2.2: + version "4.3.1" + resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== + +default-require-extensions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-3.0.1.tgz#bfae00feeaeada68c2ae256c62540f60b80625bd" + integrity sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw== + dependencies: + strip-bom "^4.0.0" + +defaults@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" + integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== + dependencies: + clone "^1.0.2" + +defer-to-connect@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== + +define-data-property@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz" + integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== + dependencies: + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz" + integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ== + +depd@2.0.0, depd@~2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detect-file@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz" + integrity sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q== + +detect-indent@6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz" + integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== + +detect-libc@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz" + integrity sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw== + +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== + +diff@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" + integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +doctrine@3.0.0, doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +doctypes@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz" + integrity sha512-LLBi6pEqS6Do3EKQ3J0NqHWV5hhb78Pi8vvESYwyOy2c31ZEZVdtitdzsQsKb7878PEERhzUk0ftqGhG6Mz+pQ== + +dotenv@^16.0.1: + version "16.3.1" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz" + integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== + +ecdsa-sig-formatter@1.0.11: + version "1.0.11" + resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" + integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== + dependencies: + safe-buffer "^5.0.1" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +electron-to-chromium@^1.4.530: + version "1.4.534" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.534.tgz" + integrity sha512-ikY7wAMtMt3jTnHsHG0YLl4MKJiKz2tgidenGSNgwUX2StBLNZ8VCxflD9tZK/ceTs4j8gDC9+6LQQ6iGkK04g== + +electron-to-chromium@^1.4.601: + version "1.4.645" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.645.tgz#117f964252eb2f0ff00fc7360cb3080e2cf66e3c" + integrity sha512-EeS1oQDCmnYsRDRy2zTeC336a/4LZ6WKqvSaM1jLocEk5ZuyszkQtCpsqvuvaIXGOUjwtvF6LTcS8WueibXvSw== + +emittery@^0.13.1: + version "0.13.1" + resolved "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz" + integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== + +emoji-regex@^10.3.0: + version "10.3.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz" + integrity sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +enabled@2.0.x: + version "2.0.0" + resolved "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz" + integrity sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +enhanced-resolve@^5.12.0: + version "5.15.0" + resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz" + integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +es6-error@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d" + integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + +eslint-config-prettier@^8.5.0: + version "8.10.0" + resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz" + integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg== + +eslint-import-resolver-typescript@^3.6.1: + version "3.6.1" + resolved "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz" + integrity sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg== + dependencies: + debug "^4.3.4" + enhanced-resolve "^5.12.0" + eslint-module-utils "^2.7.4" + fast-glob "^3.3.1" + get-tsconfig "^4.5.0" + is-core-module "^2.11.0" + is-glob "^4.0.3" + +eslint-module-utils@^2.7.4: + version "2.8.0" + resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz" + integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== + dependencies: + debug "^3.2.7" + +eslint-plugin-prettier@5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz" + integrity sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w== + dependencies: + prettier-linter-helpers "^1.0.0" + synckit "^0.8.5" + +eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint@^8.50.0: + version "8.50.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz" + integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.2" + "@eslint/js" "8.50.0" + "@humanwhocodes/config-array" "^0.11.11" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.3" + strip-ansi "^6.0.1" + text-table "^0.2.0" + +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== + dependencies: + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.4.2: + version "1.5.0" + resolved "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0, estraverse@^5.2.0: + version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + +execa@8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz" + integrity sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^8.0.1" + human-signals "^5.0.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^4.1.0" + strip-final-newline "^3.0.0" + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz" + integrity sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw== + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +executable@^4.1.0: + version "4.1.1" + resolved "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz" + integrity sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg== + dependencies: + pify "^2.2.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== + +expand-tilde@^2.0.0, expand-tilde@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz" + integrity sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw== + dependencies: + homedir-polyfill "^1.0.1" + +expect@^29.0.0, expect@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz" + integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== + dependencies: + "@jest/expect-utils" "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + +express@^4.18.1: + version "4.18.2" + resolved "https://registry.npmjs.org/express/-/express-4.18.2.tgz" + integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.1" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.5.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.2.0" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.7" + qs "6.11.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.18.0" + serve-static "1.15.0" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +ext-list@^2.0.0: + version "2.2.2" + resolved "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz" + integrity sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA== + dependencies: + mime-db "^1.28.0" + +ext-name@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz" + integrity sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ== + dependencies: + ext-list "^2.0.0" + sort-keys-length "^1.0.0" + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-diff@^1.1.2: + version "1.3.0" + resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== + +fast-glob@^3.2.5, fast-glob@^3.2.9: + version "3.3.1" + resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz" + integrity sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-glob@^3.3.1: + version "3.3.2" + resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fast-printf@^1.6.9: + version "1.6.9" + resolved "https://registry.npmjs.org/fast-printf/-/fast-printf-1.6.9.tgz" + integrity sha512-FChq8hbz65WMj4rstcQsFB0O7Cy++nmbNfLYnD9cYv2cRn8EG6k/MGn9kO/tjO66t09DLDugj3yL+V2o6Qftrg== + dependencies: + boolean "^3.1.4" + +fastq@^1.6.0: + version "1.15.0" + resolved "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz" + integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== + dependencies: + reusify "^1.0.4" + +fb-watchman@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz" + integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== + dependencies: + bser "2.1.1" + +fecha@^4.2.0: + version "4.2.3" + resolved "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz" + integrity sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw== + +figures@^3.0.0: + version "3.2.0" + resolved "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + +file-stream-rotator@^0.6.1: + version "0.6.1" + resolved "https://registry.npmjs.org/file-stream-rotator/-/file-stream-rotator-0.6.1.tgz" + integrity sha512-u+dBid4PvZw17PmDeRcNOtCP9CCK/9lRN2w+r1xIS7yOL9JFrIBKTvrYsxT4P0pGtThYTn++QS5ChHaUov3+zQ== + dependencies: + moment "^2.29.1" + +file-type@^17.1.6: + version "17.1.6" + resolved "https://registry.npmjs.org/file-type/-/file-type-17.1.6.tgz" + integrity sha512-hlDw5Ev+9e883s0pwUsuuYNu4tD7GgpUnOvykjv1Gya0ZIjuKumthDRua90VUn6/nlRKAjcxLUnHNTIUWwWIiw== + dependencies: + readable-web-to-node-stream "^3.0.2" + strtok3 "^7.0.0-alpha.9" + token-types "^5.0.0-alpha.2" + +filename-reserved-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-3.0.0.tgz" + integrity sha512-hn4cQfU6GOT/7cFHXBqeBg2TbrMBgdD0kcjLhvSQYYwm3s4B6cjvBfb7nBALJLAXqmU5xajSa7X2NnUud/VCdw== + +filenamify@^5.0.2: + version "5.1.1" + resolved "https://registry.npmjs.org/filenamify/-/filenamify-5.1.1.tgz" + integrity sha512-M45CbrJLGACfrPOkrTp3j2EcO9OBkKUYME0eiqOCa7i2poaklU0jhlIaMlr8ijLorT0uLAzrn3qXOp5684CkfA== + dependencies: + filename-reserved-regex "^3.0.0" + strip-outer "^2.0.0" + trim-repeated "^2.0.0" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +finalhandler@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz" + integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" + +find-cache-dir@^3.2.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" + integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== + dependencies: + commondir "^1.0.1" + make-dir "^3.0.2" + pkg-dir "^4.1.0" + +find-node-modules@^2.1.2: + version "2.1.3" + resolved "https://registry.npmjs.org/find-node-modules/-/find-node-modules-2.1.3.tgz" + integrity sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg== + dependencies: + findup-sync "^4.0.0" + merge "^2.1.1" + +find-root@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz" + integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== + +find-up@5.0.0, find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-versions@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/find-versions/-/find-versions-5.1.0.tgz" + integrity sha512-+iwzCJ7C5v5KgcBuueqVoNiHVoQpwiUK5XFLjf0affFTep+Wcw93tPvmb8tqujDNmzhBDPddnWV/qgWSXgq+Hg== + dependencies: + semver-regex "^4.0.5" + +findup-sync@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/findup-sync/-/findup-sync-4.0.0.tgz" + integrity sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ== + dependencies: + detect-file "^1.0.0" + is-glob "^4.0.0" + micromatch "^4.0.2" + resolve-dir "^1.0.1" + +flat-cache@^3.0.4: + version "3.1.0" + resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz" + integrity sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew== + dependencies: + flatted "^3.2.7" + keyv "^4.5.3" + rimraf "^3.0.2" + +flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + +flatted@^3.2.7: + version "3.2.9" + resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz" + integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== + +fn.name@1.x.x: + version "1.1.0" + resolved "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz" + integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw== + +foreground-child@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" + integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^3.0.2" + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +fromentries@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a" + integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg== + +fs-extra@9.1.0: + version "9.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-minipass@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@^2.3.2, fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +gauge@^3.0.0: + version "3.0.2" + resolved "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz" + integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.2" + console-control-strings "^1.0.0" + has-unicode "^2.0.1" + object-assign "^4.1.1" + signal-exit "^3.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.2" + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.1, get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-east-asian-width@^1.0.0: + version "1.2.0" + resolved "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.2.0.tgz" + integrity sha512-2nk+7SIVb14QrgXFHcm84tD4bKQz0RxPuMT8Ag5KPOq7J5fEmAg0UbXdTOSHqNuHSU28k55qnceesxXRZGzKWA== + +get-intrinsic@^1.0.2, get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: + version "1.2.2" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz" + integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== + dependencies: + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz" + integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ== + +get-stream@^5.1.0: + version "5.2.0" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + +get-stream@^6.0.0: + version "6.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + +get-stream@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz" + integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA== + +get-tsconfig@^4.5.0: + version "4.7.2" + resolved "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz" + integrity sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A== + dependencies: + resolve-pkg-maps "^1.0.0" + +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob@7.1.6: + version "7.1.6" + resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@7.2.3, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: + version "7.2.3" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-dirs@^0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz" + integrity sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg== + dependencies: + ini "^1.3.4" + +global-modules@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz" + integrity sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg== + dependencies: + global-prefix "^1.0.1" + is-windows "^1.0.1" + resolve-dir "^1.0.0" + +global-prefix@^1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz" + integrity sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg== + dependencies: + expand-tilde "^2.0.2" + homedir-polyfill "^1.0.1" + ini "^1.3.4" + is-windows "^1.0.1" + which "^1.2.14" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^13.19.0: + version "13.22.0" + resolved "https://registry.npmjs.org/globals/-/globals-13.22.0.tgz" + integrity sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw== + dependencies: + type-fest "^0.20.2" + +globby@^11.0.4, globby@^11.1.0: + version "11.1.0" + resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + +got@^11.8.5: + version "11.8.6" + resolved "https://registry.npmjs.org/got/-/got-11.8.6.tgz" + integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g== + dependencies: + "@sindresorhus/is" "^4.0.0" + "@szmarczak/http-timer" "^4.0.5" + "@types/cacheable-request" "^6.0.1" + "@types/responselike" "^1.0.0" + cacheable-lookup "^5.0.3" + cacheable-request "^7.0.2" + decompress-response "^6.0.0" + http2-wrapper "^1.0.0-beta.5.2" + lowercase-keys "^2.0.0" + p-cancelable "^2.0.0" + responselike "^2.0.0" + +graceful-fs@^4.1.15, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: + version "4.2.11" + resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz" + integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== + dependencies: + get-intrinsic "^1.2.2" + +has-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" + integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== + +has-symbols@^1.0.2, has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== + dependencies: + has-symbols "^1.0.2" + +has-unicode@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz" + integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== + +hasha@^5.0.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/hasha/-/hasha-5.2.2.tgz#a48477989b3b327aea3c04f53096d816d97522a1" + integrity sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ== + dependencies: + is-stream "^2.0.0" + type-fest "^0.8.0" + +hasown@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz" + integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== + dependencies: + function-bind "^1.1.2" + +he@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +helmet@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/helmet/-/helmet-5.1.1.tgz" + integrity sha512-/yX0oVZBggA9cLJh8aw3PPCfedBnbd7J2aowjzsaWwZh7/UFY0nccn/aHAggIgWUFfnykX8GKd3a1pSbrmlcVQ== + +homedir-polyfill@^1.0.1: + version "1.0.3" + resolved "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz" + integrity sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== + dependencies: + parse-passwd "^1.0.0" + +hpp@^0.2.3: + version "0.2.3" + resolved "https://registry.npmjs.org/hpp/-/hpp-0.2.3.tgz" + integrity sha512-4zDZypjQcxK/8pfFNR7jaON7zEUpXZxz4viyFmqjb3kWNWAHsLEUmWXcdn25c5l76ISvnD6hbOGO97cXUI3Ryw== + dependencies: + lodash "^4.17.12" + type-is "^1.6.12" + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +http-cache-semantics@^4.0.0: + version "4.1.1" + resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-status@^1.6.2: + version "1.7.0" + resolved "https://registry.npmjs.org/http-status/-/http-status-1.7.0.tgz" + integrity sha512-6HZ8T2ywZKtNKOrRA22x4Z+fK+UiWzimWYSTROVHrZ46RX+hKsg9wCQiodRtfNrKfsvOkwsXA6R9q+TmDY+8nQ== + +http2-wrapper@^1.0.0-beta.5.2: + version "1.0.3" + resolved "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz" + integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg== + dependencies: + quick-lru "^5.1.1" + resolve-alpn "^1.0.0" + +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +human-signals@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz" + integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== + +husky@^8.0.0: + version "8.0.3" + resolved "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz" + integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== + +i18n@^0.15.1: + version "0.15.1" + resolved "https://registry.npmjs.org/i18n/-/i18n-0.15.1.tgz" + integrity sha512-yue187t8MqUPMHdKjiZGrX+L+xcUsDClGO0Cz4loaKUOK9WrGw5pgan4bv130utOwX7fHE9w2iUeHFalVQWkXA== + dependencies: + "@messageformat/core" "^3.0.0" + debug "^4.3.3" + fast-printf "^1.6.9" + make-plural "^7.0.0" + math-interval-parser "^2.0.1" + mustache "^4.2.0" + +iconv-lite@0.4.24, iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.13, ieee754@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore-by-default@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz" + integrity sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA== + +ignore@^5.2.0: + version "5.2.4" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" + integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== + +import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: + version "3.3.0" + resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-local@^3.0.2: + version "3.1.0" + resolved "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz" + integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ini@^1.3.4: + version "1.3.8" + resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + +inquirer@8.2.5: + version "8.2.5" + resolved "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz" + integrity sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^7.0.0" + +ip@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz" + integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== + +is-arrayish@^0.3.1: + version "0.3.2" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz" + integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-core-module@^2.11.0, is-core-module@^2.13.0: + version "2.13.1" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz" + integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== + dependencies: + hasown "^2.0.0" + +is-expression@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/is-expression/-/is-expression-4.0.0.tgz" + integrity sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A== + dependencies: + acorn "^7.1.1" + object-assign "^4.1.1" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-fullwidth-code-point@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz" + integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== + +is-fullwidth-code-point@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz" + integrity sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA== + dependencies: + get-east-asian-width "^1.0.0" + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-path-inside@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== + +is-plain-obj@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz" + integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== + +is-plain-obj@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== + +is-promise@^2.0.0: + version "2.2.2" + resolved "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz" + integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== + +is-regex@^1.0.3: + version "1.1.4" + resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-utf8@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz" + integrity sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q== + +is-windows@^1.0.1, is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz" + integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== + +istanbul-lib-hook@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz#8f84c9434888cc6b1d0a9d7092a76d239ebf0cc6" + integrity sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ== + dependencies: + append-transform "^2.0.0" + +istanbul-lib-instrument@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== + dependencies: + "@babel/core" "^7.7.5" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" + +istanbul-lib-instrument@^5.0.4: + version "5.2.1" + resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz" + integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== + dependencies: + "@babel/core" "^7.12.3" + "@babel/parser" "^7.14.7" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.2.0" + semver "^6.3.0" + +istanbul-lib-instrument@^6.0.0: + version "6.0.1" + resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz" + integrity sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA== + dependencies: + "@babel/core" "^7.12.3" + "@babel/parser" "^7.14.7" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.2.0" + semver "^7.5.4" + +istanbul-lib-processinfo@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.3.tgz#366d454cd0dcb7eb6e0e419378e60072c8626169" + integrity sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg== + dependencies: + archy "^1.0.0" + cross-spawn "^7.0.3" + istanbul-lib-coverage "^3.2.0" + p-map "^3.0.0" + rimraf "^3.0.0" + uuid "^8.3.2" + +istanbul-lib-report@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz" + integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^4.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz" + integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.2, istanbul-reports@^3.1.3: + version "3.1.6" + resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz" + integrity sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jest-changed-files@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz" + integrity sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w== + dependencies: + execa "^5.0.0" + jest-util "^29.7.0" + p-limit "^3.1.0" + +jest-circus@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz" + integrity sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + dedent "^1.0.0" + is-generator-fn "^2.0.0" + jest-each "^29.7.0" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + p-limit "^3.1.0" + pretty-format "^29.7.0" + pure-rand "^6.0.0" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-cli@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz" + integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg== + dependencies: + "@jest/core" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" + chalk "^4.0.0" + create-jest "^29.7.0" + exit "^0.1.2" + import-local "^3.0.2" + jest-config "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + yargs "^17.3.1" + +jest-config@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz" + integrity sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ== + dependencies: + "@babel/core" "^7.11.6" + "@jest/test-sequencer" "^29.7.0" + "@jest/types" "^29.6.3" + babel-jest "^29.7.0" + chalk "^4.0.0" + ci-info "^3.2.0" + deepmerge "^4.2.2" + glob "^7.1.3" + graceful-fs "^4.2.9" + jest-circus "^29.7.0" + jest-environment-node "^29.7.0" + jest-get-type "^29.6.3" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-runner "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + micromatch "^4.0.4" + parse-json "^5.2.0" + pretty-format "^29.7.0" + slash "^3.0.0" + strip-json-comments "^3.1.1" + +jest-diff@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== + dependencies: + chalk "^4.0.0" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + +jest-docblock@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz" + integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== + dependencies: + detect-newline "^3.0.0" + +jest-each@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz" + integrity sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ== + dependencies: + "@jest/types" "^29.6.3" + chalk "^4.0.0" + jest-get-type "^29.6.3" + jest-util "^29.7.0" + pretty-format "^29.7.0" + +jest-environment-node@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz" + integrity sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + jest-mock "^29.7.0" + jest-util "^29.7.0" + +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== + +jest-haste-map@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz" + integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA== + dependencies: + "@jest/types" "^29.6.3" + "@types/graceful-fs" "^4.1.3" + "@types/node" "*" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.9" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + jest-worker "^29.7.0" + micromatch "^4.0.4" + walker "^1.0.8" + optionalDependencies: + fsevents "^2.3.2" + +jest-leak-detector@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz" + integrity sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw== + dependencies: + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + +jest-matcher-utils@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz" + integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== + dependencies: + chalk "^4.0.0" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + +jest-message-util@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz" + integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "^29.6.3" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.4" + pretty-format "^29.7.0" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-mock-extended@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/jest-mock-extended/-/jest-mock-extended-3.0.5.tgz#ebf208e363f4f1db603b81fb005c4055b7c1c8b7" + integrity sha512-/eHdaNPUAXe7f65gHH5urc8SbRVWjYxBqmCgax2uqOBJy8UUcCBMN1upj1eZ8y/i+IqpyEm4Kq0VKss/GCCTdw== + dependencies: + ts-essentials "^7.0.3" + +jest-mock@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz" + integrity sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + jest-util "^29.7.0" + +jest-pnp-resolver@^1.2.2: + version "1.2.3" + resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz" + integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== + +jest-regex-util@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz" + integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg== + +jest-resolve-dependencies@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz" + integrity sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA== + dependencies: + jest-regex-util "^29.6.3" + jest-snapshot "^29.7.0" + +jest-resolve@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz" + integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA== + dependencies: + chalk "^4.0.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-pnp-resolver "^1.2.2" + jest-util "^29.7.0" + jest-validate "^29.7.0" + resolve "^1.20.0" + resolve.exports "^2.0.0" + slash "^3.0.0" + +jest-runner@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz" + integrity sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ== + dependencies: + "@jest/console" "^29.7.0" + "@jest/environment" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + emittery "^0.13.1" + graceful-fs "^4.2.9" + jest-docblock "^29.7.0" + jest-environment-node "^29.7.0" + jest-haste-map "^29.7.0" + jest-leak-detector "^29.7.0" + jest-message-util "^29.7.0" + jest-resolve "^29.7.0" + jest-runtime "^29.7.0" + jest-util "^29.7.0" + jest-watcher "^29.7.0" + jest-worker "^29.7.0" + p-limit "^3.1.0" + source-map-support "0.5.13" + +jest-runtime@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz" + integrity sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/globals" "^29.7.0" + "@jest/source-map" "^29.6.3" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + cjs-module-lexer "^1.0.0" + collect-v8-coverage "^1.0.0" + glob "^7.1.3" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + slash "^3.0.0" + strip-bom "^4.0.0" + +jest-snapshot@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz" + integrity sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw== + dependencies: + "@babel/core" "^7.11.6" + "@babel/generator" "^7.7.2" + "@babel/plugin-syntax-jsx" "^7.7.2" + "@babel/plugin-syntax-typescript" "^7.7.2" + "@babel/types" "^7.3.3" + "@jest/expect-utils" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + babel-preset-current-node-syntax "^1.0.0" + chalk "^4.0.0" + expect "^29.7.0" + graceful-fs "^4.2.9" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + natural-compare "^1.4.0" + pretty-format "^29.7.0" + semver "^7.5.3" + +jest-util@^29.0.0, jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + +jest-validate@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz" + integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw== + dependencies: + "@jest/types" "^29.6.3" + camelcase "^6.2.0" + chalk "^4.0.0" + jest-get-type "^29.6.3" + leven "^3.1.0" + pretty-format "^29.7.0" + +jest-watcher@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz" + integrity sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g== + dependencies: + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + emittery "^0.13.1" + jest-util "^29.7.0" + string-length "^4.0.1" + +jest-worker@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz" + integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw== + dependencies: + "@types/node" "*" + jest-util "^29.7.0" + merge-stream "^2.0.0" + supports-color "^8.0.0" + +jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613" + integrity sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw== + dependencies: + "@jest/core" "^29.7.0" + "@jest/types" "^29.6.3" + import-local "^3.0.2" + jest-cli "^29.7.0" + +jiti@^1.19.1: + version "1.21.0" + resolved "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz" + integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== + +joi@^17.9.2: + version "17.10.2" + resolved "https://registry.npmjs.org/joi/-/joi-17.10.2.tgz" + integrity sha512-hcVhjBxRNW/is3nNLdGLIjkgXetkeGc2wyhydhz8KumG23Aerk4HPjU5zaPAMRqXQFc0xNqXTC7+zQjxr0GlKA== + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/topo" "^5.0.0" + "@sideway/address" "^4.1.3" + "@sideway/formula" "^3.0.1" + "@sideway/pinpoint" "^2.0.0" + +js-stringify@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/js-stringify/-/js-stringify-1.0.2.tgz" + integrity sha512-rtS5ATOo2Q5k1G+DADISilDA6lv79zIiwFd6CcjuIxGKLFm5C+RLImRscVap9k55i+MOZwgliw+NejvkLuGD5g== + +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@4.1.0, js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + +json5@^2.2.2, json5@^2.2.3: + version "2.2.3" + resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + +jsonwebtoken@^9.0.0, jsonwebtoken@^9.0.2: + version "9.0.2" + resolved "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz" + integrity sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ== + dependencies: + jws "^3.2.2" + lodash.includes "^4.3.0" + lodash.isboolean "^3.0.3" + lodash.isinteger "^4.0.4" + lodash.isnumber "^3.0.3" + lodash.isplainobject "^4.0.6" + lodash.isstring "^4.0.1" + lodash.once "^4.0.0" + ms "^2.1.1" + semver "^7.5.4" + +jstransformer@1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/jstransformer/-/jstransformer-1.0.0.tgz" + integrity sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A== + dependencies: + is-promise "^2.0.0" + promise "^7.0.1" + +jwa@^1.4.1: + version "1.4.1" + resolved "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz" + integrity sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA== + dependencies: + buffer-equal-constant-time "1.0.1" + ecdsa-sig-formatter "1.0.11" + safe-buffer "^5.0.1" + +jws@^3.2.2: + version "3.2.2" + resolved "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz" + integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA== + dependencies: + jwa "^1.4.1" + safe-buffer "^5.0.1" + +kareem@2.5.1: + version "2.5.1" + resolved "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz" + integrity sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA== + +keyv@^4.0.0, keyv@^4.5.3: + version "4.5.3" + resolved "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz" + integrity sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug== + dependencies: + json-buffer "3.0.1" + +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +kuler@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz" + integrity sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A== + +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +libphonenumber-js@^1.10.14: + version "1.10.45" + resolved "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.10.45.tgz" + integrity sha512-eeHcvGafEYCaKB4fo2uBINfG7j7PcGwBHUaTVfbwl/6KcjCgIKNlIOsSXVRp9BH10NQwmvvk+nQ1e/Yp4BGB7w== + +lilconfig@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz" + integrity sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g== + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + +lint-staged@^15.2.0: + version "15.2.0" + resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.0.tgz" + integrity sha512-TFZzUEV00f+2YLaVPWBWGAMq7So6yQx+GG8YRMDeOEIf95Zn5RyiLMsEiX4KTNl9vq/w+NqRJkLA1kPIo15ufQ== + dependencies: + chalk "5.3.0" + commander "11.1.0" + debug "4.3.4" + execa "8.0.1" + lilconfig "3.0.0" + listr2 "8.0.0" + micromatch "4.0.5" + pidtree "0.6.0" + string-argv "0.3.2" + yaml "2.3.4" + +listr2@8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/listr2/-/listr2-8.0.0.tgz" + integrity sha512-u8cusxAcyqAiQ2RhYvV7kRKNLgUvtObIbhOX2NCXqvp1UU32xIg5CT22ykS2TPKJXZWJwtK3IKLiqAGlGNE+Zg== + dependencies: + cli-truncate "^4.0.0" + colorette "^2.0.20" + eventemitter3 "^5.0.1" + log-update "^6.0.0" + rfdc "^1.3.0" + wrap-ansi "^9.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.flattendeep@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" + integrity sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ== + +lodash.get@^4.4.2: + version "4.4.2" + resolved "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz" + integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== + +lodash.includes@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz" + integrity sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w== + +lodash.isboolean@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz" + integrity sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg== + +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz" + integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== + +lodash.isinteger@^4.0.4: + version "4.0.4" + resolved "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz" + integrity sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA== + +lodash.isnumber@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz" + integrity sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw== + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz" + integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA== + +lodash.isstring@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz" + integrity sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw== + +lodash.map@^4.5.1: + version "4.6.0" + resolved "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz" + integrity sha512-worNHGKLDetmcEYDvh2stPCrrQRkP20E4l0iIS7F8EvzMqBBi7ltvFN5m1HvTf1P7Jk1txKhvFcmYsCr8O2F1Q== + +lodash.memoize@4.x: + version "4.1.2" + resolved "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz" + integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== + +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +lodash.mergewith@^4.6.2: + version "4.6.2" + resolved "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz" + integrity sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ== + +lodash.once@^4.0.0: + version "4.1.1" + resolved "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz" + integrity sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg== + +lodash.uniq@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz" + integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== + +lodash@4.17.21, lodash@^4.17.12, lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@4.1.0, log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +log-update@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/log-update/-/log-update-6.0.0.tgz" + integrity sha512-niTvB4gqvtof056rRIrTZvjNYE4rCUzO6X/X+kYjd7WFxXeJ0NwEFnRxX6ehkvv3jTwrXnNdtAak5XYZuIyPFw== + dependencies: + ansi-escapes "^6.2.0" + cli-cursor "^4.0.0" + slice-ansi "^7.0.0" + strip-ansi "^7.1.0" + wrap-ansi "^9.0.0" + +logform@^2.3.2, logform@^2.4.0: + version "2.5.1" + resolved "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz" + integrity sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg== + dependencies: + "@colors/colors" "1.5.0" + "@types/triple-beam" "^1.3.2" + fecha "^4.2.0" + ms "^2.1.1" + safe-stable-stringify "^2.3.1" + triple-beam "^1.3.0" + +long-timeout@0.1.1: + version "0.1.1" + resolved "https://registry.npmjs.org/long-timeout/-/long-timeout-0.1.1.tgz" + integrity sha512-BFRuQUqc7x2NWxfJBCyUrN8iYUYznzL9JROmRz1gZ6KlOIgmoD+njPVbb+VNn2nGMKggMsK79iUNErillsrx7w== + +longest@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/longest/-/longest-2.0.1.tgz" + integrity sha512-Ajzxb8CM6WAnFjgiloPsI3bF+WCxcvhdIG3KNA2KN962+tdBsHcuQ4k4qX/EcS/2CRkcc0iAkR956Nib6aXU/Q== + +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz" + 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.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + +luxon@^3.2.1: + version "3.4.3" + resolved "https://registry.npmjs.org/luxon/-/luxon-3.4.3.tgz" + integrity sha512-tFWBiv3h7z+T/tDaoxA8rqTxy1CHV6gHS//QdaH4pulbq/JuBSGgQspQQqcgnwdAx6pNI7cmvz5Sv/addzHmUg== + +make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +make-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== + dependencies: + semver "^7.5.3" + +make-error@1.x, make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +make-plural@^7.0.0: + version "7.3.0" + resolved "https://registry.npmjs.org/make-plural/-/make-plural-7.3.0.tgz" + integrity sha512-/K3BC0KIsO+WK2i94LkMPv3wslMrazrQhfi5We9fMbLlLjzoOSJWr7TAdupLlDWaJcWxwoNosBkhFDejiu5VDw== + +makeerror@1.0.12: + version "1.0.12" + resolved "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz" + integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== + dependencies: + tmpl "1.0.5" + +math-interval-parser@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/math-interval-parser/-/math-interval-parser-2.0.1.tgz" + integrity sha512-VmlAmb0UJwlvMyx8iPhXUDnVW1F9IrGEd9CIOmv+XL8AErCUUuozoDMrgImvnYt2A+53qVX/tPW6YJurMKYsvA== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +memory-pager@^1.0.2: + version "1.5.0" + resolved "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz" + integrity sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg== + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz" + integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +merge@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/merge/-/merge-2.1.1.tgz" + integrity sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromatch@4.0.5, micromatch@^4.0.2, micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2", mime-db@^1.28.0: + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== + +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== + +minimatch@5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.0.1.tgz#fb9022f7528125187c92bd9e9b6366be1cf3415b" + integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimist@1.2.7: + version "1.2.7" + resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + +minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +minipass@^3.0.0: + version "3.3.6" + resolved "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz" + integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== + dependencies: + yallist "^4.0.0" + +minipass@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz" + integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== + +minizlib@^2.1.1: + version "2.1.2" + resolved "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== + dependencies: + minipass "^3.0.0" + yallist "^4.0.0" + +mkdirp@^0.5.4: + version "0.5.6" + resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +mkdirp@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + +mocha@^10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.2.0.tgz#1fd4a7c32ba5ac372e03a17eef435bd00e5c68b8" + integrity sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg== + dependencies: + ansi-colors "4.1.1" + browser-stdout "1.3.1" + chokidar "3.5.3" + debug "4.3.4" + diff "5.0.0" + escape-string-regexp "4.0.0" + find-up "5.0.0" + glob "7.2.0" + he "1.2.0" + js-yaml "4.1.0" + log-symbols "4.1.0" + minimatch "5.0.1" + ms "2.1.3" + nanoid "3.3.3" + serialize-javascript "6.0.0" + strip-json-comments "3.1.1" + supports-color "8.1.1" + workerpool "6.2.1" + yargs "16.2.0" + yargs-parser "20.2.4" + yargs-unparser "2.0.0" + +mock-fs@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-5.2.0.tgz#3502a9499c84c0a1218ee4bf92ae5bf2ea9b2b5e" + integrity sha512-2dF2R6YMSZbpip1V1WHKGLNjr/k48uQClqMVb5H3MOvwc9qhYis3/IWbj02qIg/Y8MDXKFF4c5v0rxx2o6xTZw== + +moment@^2.29.1, moment@^2.29.4: + version "2.29.4" + resolved "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz" + integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w== + +mongodb-connection-string-url@^2.6.0: + version "2.6.0" + resolved "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz" + integrity sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ== + dependencies: + "@types/whatwg-url" "^8.2.1" + whatwg-url "^11.0.0" + +mongodb@5.8.1: + version "5.8.1" + resolved "https://registry.npmjs.org/mongodb/-/mongodb-5.8.1.tgz" + integrity sha512-wKyh4kZvm6NrCPH8AxyzXm3JBoEf4Xulo0aUWh3hCgwgYJxyQ1KLST86ZZaSWdj6/kxYUA3+YZuyADCE61CMSg== + dependencies: + bson "^5.4.0" + mongodb-connection-string-url "^2.6.0" + socks "^2.7.1" + optionalDependencies: + "@mongodb-js/saslprep" "^1.1.0" + +mongodb@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/mongodb/-/mongodb-6.1.0.tgz" + integrity sha512-AvzNY0zMkpothZ5mJAaIo2bGDjlJQqqAbn9fvtVgwIIUPEfdrqGxqNjjbuKyrgQxg2EvCmfWdjq+4uj96c0YPw== + dependencies: + "@mongodb-js/saslprep" "^1.1.0" + bson "^6.1.0" + mongodb-connection-string-url "^2.6.0" + +mongoose@^7.5.3: + version "7.5.3" + resolved "https://registry.npmjs.org/mongoose/-/mongoose-7.5.3.tgz" + integrity sha512-QyYzhZusux0wIJs+4rYyHvel0kJm0CT887trNd1WAB3iQnDuJow0xEnjETvuS/cTjHQUVPihOpN7OHLlpJc52w== + dependencies: + bson "^5.4.0" + kareem "2.5.1" + mongodb "5.8.1" + mpath "0.9.0" + mquery "5.0.0" + ms "2.1.3" + sift "16.0.1" + +moo@^0.5.1: + version "0.5.2" + resolved "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz" + integrity sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q== + +morgan@^1.10.0: + version "1.10.0" + resolved "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz" + integrity sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ== + dependencies: + basic-auth "~2.0.1" + debug "2.6.9" + depd "~2.0.0" + on-finished "~2.3.0" + on-headers "~1.0.2" + +mpath@0.9.0: + version "0.9.0" + resolved "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz" + integrity sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew== + +mquery@5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz" + integrity sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg== + dependencies: + debug "4.x" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +ms@2.1.3, ms@^2.1.1: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +multer@^1.4.5-lts.1: + version "1.4.5-lts.1" + resolved "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz" + integrity sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ== + dependencies: + append-field "^1.0.0" + busboy "^1.0.0" + concat-stream "^1.5.2" + mkdirp "^0.5.4" + object-assign "^4.1.1" + type-is "^1.6.4" + xtend "^4.0.0" + +mustache@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz" + integrity sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ== + +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +mylas@^2.1.9: + version "2.1.13" + resolved "https://registry.npmjs.org/mylas/-/mylas-2.1.13.tgz" + integrity sha512-+MrqnJRtxdF+xngFfUUkIMQrUUL0KsxbADUkn23Z/4ibGg192Q+z+CQyiYwvWTsYjJygmMR8+w3ZDa98Zh6ESg== + +nanoid@3.3.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" + integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== + +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +node-addon-api@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz" + integrity sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA== + +node-fetch@^2.6.7: + version "2.7.0" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== + dependencies: + whatwg-url "^5.0.0" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" + integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== + +node-preload@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/node-preload/-/node-preload-0.2.1.tgz#c03043bb327f417a18fee7ab7ee57b408a144301" + integrity sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ== + dependencies: + process-on-spawn "^1.0.0" + +node-releases@^2.0.13: + version "2.0.13" + resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz" + integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== + +node-releases@^2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + +node-schedule@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/node-schedule/-/node-schedule-2.1.1.tgz" + integrity sha512-OXdegQq03OmXEjt2hZP33W2YPs/E5BcFQks46+G2gAxs4gHOIVD1u7EqlYLYSKsaIpyKCK9Gbk0ta1/gjRSMRQ== + dependencies: + cron-parser "^4.2.0" + long-timeout "0.1.1" + sorted-array-functions "^1.3.0" + +nodemailer@^6.9.3: + version "6.9.5" + resolved "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.5.tgz" + integrity sha512-/dmdWo62XjumuLc5+AYQZeiRj+PRR8y8qKtFCOyuOl1k/hckZd8durUUHs/ucKx6/8kN+wFxqKJlQ/LK/qR5FA== + +nodemon@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/nodemon/-/nodemon-3.0.1.tgz" + integrity sha512-g9AZ7HmkhQkqXkRc20w+ZfQ73cHLbE8hnPbtaFbFtCumZsjyMhKk9LajQ07U5Ux28lvFjZ5X7HvWR1xzU8jHVw== + dependencies: + chokidar "^3.5.2" + debug "^3.2.7" + ignore-by-default "^1.0.1" + minimatch "^3.1.2" + pstree.remy "^1.1.8" + semver "^7.5.3" + simple-update-notifier "^2.0.0" + supports-color "^5.5.0" + touch "^3.1.0" + undefsafe "^2.0.5" + +nopt@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz" + integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ== + dependencies: + abbrev "1" + +nopt@~1.0.10: + version "1.0.10" + resolved "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz" + integrity sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg== + dependencies: + abbrev "1" + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +normalize-url@^6.0.1: + version "6.1.0" + resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz" + integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" + integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== + dependencies: + path-key "^2.0.0" + +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== + dependencies: + path-key "^4.0.0" + +npmlog@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz" + integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw== + dependencies: + are-we-there-yet "^2.0.0" + console-control-strings "^1.1.0" + gauge "^3.0.0" + set-blocking "^2.0.0" + +nyc@^15.1.0: + version "15.1.0" + resolved "https://registry.yarnpkg.com/nyc/-/nyc-15.1.0.tgz#1335dae12ddc87b6e249d5a1994ca4bdaea75f02" + integrity sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A== + dependencies: + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + caching-transform "^4.0.0" + convert-source-map "^1.7.0" + decamelize "^1.2.0" + find-cache-dir "^3.2.0" + find-up "^4.1.0" + foreground-child "^2.0.0" + get-package-type "^0.1.0" + glob "^7.1.6" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-hook "^3.0.0" + istanbul-lib-instrument "^4.0.0" + istanbul-lib-processinfo "^2.0.2" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + make-dir "^3.0.0" + node-preload "^0.2.1" + p-map "^3.0.0" + process-on-spawn "^1.0.0" + resolve-from "^5.0.0" + rimraf "^3.0.0" + signal-exit "^3.0.2" + spawn-wrap "^2.0.0" + test-exclude "^6.0.0" + yargs "^15.0.2" + +object-assign@^4, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +object-hash@^2.0.1: + version "2.2.0" + resolved "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz" + integrity sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw== + +object-inspect@^1.9.0: + version "1.13.1" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz" + integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== + +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== + dependencies: + ee-first "1.1.1" + +on-headers@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +one-time@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz" + integrity sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g== + dependencies: + fn.name "1.x.x" + +onetime@^5.1.0, onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + +optionator@^0.9.3: + version "0.9.3" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz" + integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== + dependencies: + "@aashutoshrathi/word-wrap" "^1.2.3" + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +os-filter-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-2.0.0.tgz" + integrity sha512-uksVLsqG3pVdzzPvmAHpBK0wKxYItuzZr7SziusRPoz67tGV8rL1szZ6IdeUrbqLjGDwApBtN29eEE3IqGHOjg== + dependencies: + arch "^2.1.0" + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +p-cancelable@^2.0.0: + version "2.1.1" + resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz" + integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.0.2, p-limit@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-map@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz#d704d9af8a2ba684e2600d9a215983d4141a979d" + integrity sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ== + dependencies: + aggregate-error "^3.0.0" + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +package-hash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/package-hash/-/package-hash-4.0.0.tgz#3537f654665ec3cc38827387fc904c163c54f506" + integrity sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ== + dependencies: + graceful-fs "^4.1.15" + hasha "^5.0.0" + lodash.flattendeep "^4.4.0" + release-zalgo "^1.0.0" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-json@^5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== + dependencies: + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz" + integrity sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q== + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +passport-jwt@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/passport-jwt/-/passport-jwt-4.0.1.tgz" + integrity sha512-UCKMDYhNuGOBE9/9Ycuoyh7vP6jpeTp/+sfMJl7nLff/t6dps+iaeE0hhNkKN8/HZHcJ7lCdOyDxHdDoxoSvdQ== + dependencies: + jsonwebtoken "^9.0.0" + passport-strategy "^1.0.0" + +passport-strategy@1.x.x, passport-strategy@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz" + integrity sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA== + +passport@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/passport/-/passport-0.6.0.tgz" + integrity sha512-0fe+p3ZnrWRW74fe8+SvCyf4a3Pb2/h7gFkQ8yTJpAO50gDzlfjZUZTO1k5Eg9kUct22OxHLqDZoKUWRHOh9ug== + dependencies: + passport-strategy "1.x.x" + pause "0.0.1" + utils-merge "^1.0.1" + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-key@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz" + integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +pause@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz" + integrity sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg== + +peek-readable@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz" + integrity sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A== + +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +pidtree@0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz" + integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== + +pify@^2.2.0: + version "2.3.0" + resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + +pirates@^4.0.4: + version "4.0.6" + resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz" + integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== + +pkg-dir@^4.1.0, pkg-dir@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +plimit-lit@^1.2.6: + version "1.5.0" + resolved "https://registry.npmjs.org/plimit-lit/-/plimit-lit-1.5.0.tgz" + integrity sha512-Eb/MqCb1Iv/ok4m1FqIXqvUKPISufcjZ605hl3KM/n8GaX8zfhtgdLwZU3vKjuHGh2O9Rjog/bHTq8ofIShdng== + dependencies: + queue-lit "^1.5.0" + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== + +pretty-format@^29.0.0, pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== + dependencies: + "@jest/schemas" "^29.6.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +process-on-spawn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/process-on-spawn/-/process-on-spawn-1.0.0.tgz#95b05a23073d30a17acfdc92a440efd2baefdc93" + integrity sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg== + dependencies: + fromentries "^1.2.0" + +promise@^7.0.1: + version "7.3.1" + resolved "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz" + integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== + dependencies: + asap "~2.0.3" + +prompts@^2.0.1: + version "2.4.2" + resolved "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz" + integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.5" + +proxy-addr@~2.0.7: + version "2.0.7" + resolved "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz" + integrity sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ== + +pstree.remy@^1.1.8: + version "1.1.8" + resolved "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz" + integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w== + +pug-attrs@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pug-attrs/-/pug-attrs-3.0.0.tgz" + integrity sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA== + dependencies: + constantinople "^4.0.1" + js-stringify "^1.0.2" + pug-runtime "^3.0.0" + +pug-code-gen@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/pug-code-gen/-/pug-code-gen-3.0.2.tgz" + integrity sha512-nJMhW16MbiGRiyR4miDTQMRWDgKplnHyeLvioEJYbk1RsPI3FuA3saEP8uwnTb2nTJEKBU90NFVWJBk4OU5qyg== + dependencies: + constantinople "^4.0.1" + doctypes "^1.1.0" + js-stringify "^1.0.2" + pug-attrs "^3.0.0" + pug-error "^2.0.0" + pug-runtime "^3.0.0" + void-elements "^3.1.0" + with "^7.0.0" + +pug-error@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/pug-error/-/pug-error-2.0.0.tgz" + integrity sha512-sjiUsi9M4RAGHktC1drQfCr5C5eriu24Lfbt4s+7SykztEOwVZtbFk1RRq0tzLxcMxMYTBR+zMQaG07J/btayQ== + +pug-filters@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/pug-filters/-/pug-filters-4.0.0.tgz" + integrity sha512-yeNFtq5Yxmfz0f9z2rMXGw/8/4i1cCFecw/Q7+D0V2DdtII5UvqE12VaZ2AY7ri6o5RNXiweGH79OCq+2RQU4A== + dependencies: + constantinople "^4.0.1" + jstransformer "1.0.0" + pug-error "^2.0.0" + pug-walk "^2.0.0" + resolve "^1.15.1" + +pug-lexer@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/pug-lexer/-/pug-lexer-5.0.1.tgz" + integrity sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w== + dependencies: + character-parser "^2.2.0" + is-expression "^4.0.0" + pug-error "^2.0.0" + +pug-linker@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/pug-linker/-/pug-linker-4.0.0.tgz" + integrity sha512-gjD1yzp0yxbQqnzBAdlhbgoJL5qIFJw78juN1NpTLt/mfPJ5VgC4BvkoD3G23qKzJtIIXBbcCt6FioLSFLOHdw== + dependencies: + pug-error "^2.0.0" + pug-walk "^2.0.0" + +pug-load@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pug-load/-/pug-load-3.0.0.tgz" + integrity sha512-OCjTEnhLWZBvS4zni/WUMjH2YSUosnsmjGBB1An7CsKQarYSWQ0GCVyd4eQPMFJqZ8w9xgs01QdiZXKVjk92EQ== + dependencies: + object-assign "^4.1.1" + pug-walk "^2.0.0" + +pug-parser@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/pug-parser/-/pug-parser-6.0.0.tgz" + integrity sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw== + dependencies: + pug-error "^2.0.0" + token-stream "1.0.0" + +pug-runtime@^3.0.0, pug-runtime@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/pug-runtime/-/pug-runtime-3.0.1.tgz" + integrity sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg== + +pug-strip-comments@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/pug-strip-comments/-/pug-strip-comments-2.0.0.tgz" + integrity sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ== + dependencies: + pug-error "^2.0.0" + +pug-walk@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/pug-walk/-/pug-walk-2.0.0.tgz" + integrity sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ== + +pug@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/pug/-/pug-3.0.2.tgz" + integrity sha512-bp0I/hiK1D1vChHh6EfDxtndHji55XP/ZJKwsRqrz6lRia6ZC2OZbdAymlxdVFwd1L70ebrVJw4/eZ79skrIaw== + dependencies: + pug-code-gen "^3.0.2" + pug-filters "^4.0.0" + pug-lexer "^5.0.1" + pug-linker "^4.0.0" + pug-load "^3.0.0" + pug-parser "^6.0.0" + pug-runtime "^3.0.1" + pug-strip-comments "^2.0.0" + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +punycode@^2.1.0, punycode@^2.1.1: + version "2.3.0" + resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" + integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== + +pure-rand@^6.0.0: + version "6.0.4" + resolved "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz" + integrity sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA== + +qs@6.11.0: + version "6.11.0" + resolved "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz" + integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== + dependencies: + side-channel "^1.0.4" + +queue-lit@^1.5.0: + version "1.5.0" + resolved "https://registry.npmjs.org/queue-lit/-/queue-lit-1.5.0.tgz" + integrity sha512-IslToJ4eiCEE9xwMzq3viOO5nH8sUWUCwoElrhNMozzr9IIt2qqvB4I+uHu/zJTQVqc9R5DFwok4ijNK1pU3fA== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.5.1: + version "2.5.1" + resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz" + integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +react-is@^18.0.0: + version "18.2.0" + resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz" + integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== + +readable-stream@^2.2.2: + version "2.3.8" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz" + integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.4.0, readable-stream@^3.6.0: + version "3.6.2" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-web-to-node-stream@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz" + integrity sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw== + dependencies: + readable-stream "^3.6.0" + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +reflect-metadata@^0.1.13: + version "0.1.13" + resolved "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz" + integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== + +release-zalgo@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz#09700b7e5074329739330e535c5a90fb67851730" + integrity sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA== + dependencies: + es6-error "^4.0.1" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +resolve-alpn@^1.0.0: + version "1.2.1" + resolved "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz" + integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== + +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== + dependencies: + resolve-from "^5.0.0" + +resolve-dir@^1.0.0, resolve-dir@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz" + integrity sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg== + dependencies: + expand-tilde "^2.0.0" + global-modules "^1.0.0" + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve-global@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz" + integrity sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw== + dependencies: + global-dirs "^0.1.1" + +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + +resolve.exports@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz" + integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== + +resolve@^1.15.1, resolve@^1.20.0: + version "1.22.6" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz" + integrity sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +responselike@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz" + integrity sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw== + dependencies: + lowercase-keys "^2.0.0" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +restore-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz" + integrity sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rfdc@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz" + integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== + +rimraf@^3.0.0, rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +rxjs@^7.5.5: + version "7.8.1" + resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz" + integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== + dependencies: + tslib "^2.1.0" + +safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-identifier@^0.4.1: + version "0.4.2" + resolved "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.4.2.tgz" + integrity sha512-6pNbSMW6OhAi9j+N8V+U715yBQsaWJ7eyEUaOrawX+isg5ZxhUlV1NipNtgaKHmFGiABwt+ZF04Ii+3Xjkg+8w== + +safe-stable-stringify@^2.3.1: + version "2.4.3" + resolved "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz" + integrity sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +semver-regex@^4.0.5: + version "4.0.5" + resolved "https://registry.npmjs.org/semver-regex/-/semver-regex-4.0.5.tgz" + integrity sha512-hunMQrEy1T6Jr2uEVjrAIqjwWcQTgOAcIM52C8MY1EZSD3DDNft04XzvYKPqjED65bNVVko0YI38nYeEHCX3yw== + +semver-truncate@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/semver-truncate/-/semver-truncate-3.0.0.tgz" + integrity sha512-LJWA9kSvMolR51oDE6PN3kALBNaUdkxzAGcexw8gjMA8xr5zUqK0JiR3CgARSqanYF3Z1YHvsErb1KDgh+v7Rg== + dependencies: + semver "^7.3.5" + +semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: + version "6.3.1" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4: + version "7.5.4" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" + +send@0.18.0: + version "0.18.0" + resolved "https://registry.npmjs.org/send/-/send-0.18.0.tgz" + integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serialize-javascript@6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" + integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== + dependencies: + randombytes "^2.1.0" + +serve-static@1.15.0: + version "1.15.0" + resolved "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz" + integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.18.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" + integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== + +set-function-length@^1.1.1: + version "1.2.0" + resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz" + integrity sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w== + dependencies: + define-data-property "^1.1.1" + function-bind "^1.1.2" + get-intrinsic "^1.2.2" + gopd "^1.0.1" + has-property-descriptors "^1.0.1" + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" + integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== + dependencies: + shebang-regex "^1.0.0" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" + integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + +sift@16.0.1: + version "16.0.1" + resolved "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz" + integrity sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ== + +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +signal-exit@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz" + integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg== + dependencies: + is-arrayish "^0.3.1" + +simple-update-notifier@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz" + integrity sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w== + dependencies: + semver "^7.5.3" + +sisteransi@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz" + integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== + +slash@3.0.0, slash@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slice-ansi@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz" + integrity sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ== + dependencies: + ansi-styles "^6.0.0" + is-fullwidth-code-point "^4.0.0" + +slice-ansi@^7.0.0: + version "7.1.0" + resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz" + integrity sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg== + dependencies: + ansi-styles "^6.2.1" + is-fullwidth-code-point "^5.0.0" + +smart-buffer@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz" + integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== + +socks@^2.7.1: + version "2.7.1" + resolved "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz" + integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ== + dependencies: + ip "^2.0.0" + smart-buffer "^4.2.0" + +sort-keys-length@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz" + integrity sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw== + dependencies: + sort-keys "^1.0.0" + +sort-keys@^1.0.0: + version "1.1.2" + resolved "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz" + integrity sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg== + dependencies: + is-plain-obj "^1.0.0" + +sorted-array-functions@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/sorted-array-functions/-/sorted-array-functions-1.3.0.tgz" + integrity sha512-2sqgzeFlid6N4Z2fUQ1cvFmTOLRi/sEDzSQ0OKYchqgoPmQBVyM3959qYx3fpS6Esef80KjmpgPeEr028dP3OA== + +source-map-support@0.5.13: + version "0.5.13" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz" + integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0, source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + +sparse-bitfield@^3.0.3: + version "3.0.3" + resolved "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz" + integrity sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ== + dependencies: + memory-pager "^1.0.2" + +spawn-wrap@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" + integrity sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg== + dependencies: + foreground-child "^2.0.0" + is-windows "^1.0.2" + make-dir "^3.0.0" + rimraf "^3.0.0" + signal-exit "^3.0.2" + which "^2.0.1" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== + +stack-trace@0.0.x: + version "0.0.10" + resolved "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz" + integrity sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg== + +stack-utils@^2.0.3: + version "2.0.6" + resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz" + integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== + dependencies: + escape-string-regexp "^2.0.0" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +streamsearch@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz" + integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== + +string-argv@0.3.2: + version "0.3.2" + resolved "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz" + integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== + +string-length@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz" + integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== + dependencies: + char-regex "^1.0.2" + strip-ansi "^6.0.0" + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^7.0.0: + version "7.1.0" + resolved "https://registry.npmjs.org/string-width/-/string-width-7.1.0.tgz" + integrity sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw== + dependencies: + emoji-regex "^10.3.0" + get-east-asian-width "^1.0.0" + strip-ansi "^7.1.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.1.0: + version "7.1.0" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" + +strip-bom@4.0.0, strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" + integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" + integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + +strip-json-comments@3.1.1, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +strip-outer@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/strip-outer/-/strip-outer-2.0.0.tgz" + integrity sha512-A21Xsm1XzUkK0qK1ZrytDUvqsQWict2Cykhvi0fBQntGG5JSprESasEyV1EZ/4CiR5WB5KjzLTrP/bO37B0wPg== + +strtok3@^7.0.0-alpha.9: + version "7.0.0" + resolved "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz" + integrity sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ== + dependencies: + "@tokenizer/token" "^0.3.0" + peek-readable "^5.0.0" + +supports-color@8.1.1, supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-color@^5.3.0, supports-color@^5.5.0: + version "5.5.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +swagger-jsdoc@^6.2.8: + version "6.2.8" + resolved "https://registry.npmjs.org/swagger-jsdoc/-/swagger-jsdoc-6.2.8.tgz" + integrity sha512-VPvil1+JRpmJ55CgAtn8DIcpBs0bL5L3q5bVQvF4tAW/k/9JYSj7dCpaYCAv5rufe0vcCbBRQXGvzpkWjvLklQ== + dependencies: + commander "6.2.0" + doctrine "3.0.0" + glob "7.1.6" + lodash.mergewith "^4.6.2" + swagger-parser "^10.0.3" + yaml "2.0.0-1" + +swagger-parser@^10.0.3: + version "10.0.3" + resolved "https://registry.npmjs.org/swagger-parser/-/swagger-parser-10.0.3.tgz" + integrity sha512-nF7oMeL4KypldrQhac8RyHerJeGPD1p2xDh900GPvc+Nk7nWP6jX2FcC7WmkinMoAmoO774+AFXcWsW8gMWEIg== + dependencies: + "@apidevtools/swagger-parser" "10.0.3" + +swagger-ui-dist@>=5.0.0: + version "5.9.0" + resolved "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-5.9.0.tgz" + integrity sha512-NUHSYoe5XRTk/Are8jPJ6phzBh3l9l33nEyXosM17QInoV95/jng8+PuSGtbD407QoPf93MH3Bkh773OgesJpA== + +swagger-ui-express@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/swagger-ui-express/-/swagger-ui-express-5.0.0.tgz" + integrity sha512-tsU9tODVvhyfkNSvf03E6FAk+z+5cU3lXAzMy6Pv4av2Gt2xA0++fogwC4qo19XuFf6hdxevPuVCSKFuMHJhFA== + dependencies: + swagger-ui-dist ">=5.0.0" + +synckit@^0.8.5: + version "0.8.8" + resolved "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz" + integrity sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ== + dependencies: + "@pkgr/core" "^0.1.0" + tslib "^2.6.2" + +tapable@^2.2.0: + version "2.2.1" + resolved "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz" + integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== + +tar@^6.1.11: + version "6.2.0" + resolved "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz" + integrity sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^5.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +text-hex@1.0.x: + version "1.0.0" + resolved "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz" + integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +tmpl@1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz" + integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +token-stream@1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/token-stream/-/token-stream-1.0.0.tgz" + integrity sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg== + +token-types@^5.0.0-alpha.2: + version "5.0.1" + resolved "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz" + integrity sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg== + dependencies: + "@tokenizer/token" "^0.3.0" + ieee754 "^1.2.1" + +touch@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz" + integrity sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA== + dependencies: + nopt "~1.0.10" + +tr46@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz" + integrity sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA== + dependencies: + punycode "^2.1.1" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +trim-repeated@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/trim-repeated/-/trim-repeated-2.0.0.tgz" + integrity sha512-QUHBFTJGdOwmp0tbOG505xAgOp/YliZP/6UgafFXYZ26WT1bvQmSMJUvkeVSASuJJHbqsFbynTvkd5W8RBTipg== + dependencies: + escape-string-regexp "^5.0.0" + +triple-beam@^1.3.0: + version "1.4.1" + resolved "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz" + integrity sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg== + +ts-essentials@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-7.0.3.tgz#686fd155a02133eedcc5362dc8b5056cde3e5a38" + integrity sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ== + +ts-jest@^29.1.2: + version "29.1.2" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.2.tgz#7613d8c81c43c8cb312c6904027257e814c40e09" + integrity sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g== + dependencies: + bs-logger "0.x" + fast-json-stable-stringify "2.x" + jest-util "^29.0.0" + json5 "^2.2.3" + lodash.memoize "4.x" + make-error "1.x" + semver "^7.5.3" + yargs-parser "^21.0.1" + +ts-node@^10.9.2: + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + +tsc-alias@^1.7.0: + version "1.8.8" + resolved "https://registry.npmjs.org/tsc-alias/-/tsc-alias-1.8.8.tgz" + integrity sha512-OYUOd2wl0H858NvABWr/BoSKNERw3N9GTi3rHPK8Iv4O1UyUXIrTTOAZNHsjlVpXFOhpJBVARI1s+rzwLivN3Q== + dependencies: + chokidar "^3.5.3" + commander "^9.0.0" + globby "^11.0.4" + mylas "^2.1.9" + normalize-path "^3.0.0" + plimit-lit "^1.2.6" + +tsconfig-paths@^4.0.0: + version "4.2.0" + resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz" + integrity sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg== + dependencies: + json5 "^2.2.2" + minimist "^1.2.6" + strip-bom "^3.0.0" + +tslib@^1.8.1: + version "1.14.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tslib@^2.1.0, tslib@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + +tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== + dependencies: + tslib "^1.8.1" + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-detect@4.0.8: + version "4.0.8" + resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^0.8.0: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +type-fest@^3.0.0: + version "3.13.1" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz" + integrity sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g== + +type-is@^1.6.12, type-is@^1.6.4, type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" + integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== + +typedi@^0.10.0: + version "0.10.0" + resolved "https://registry.npmjs.org/typedi/-/typedi-0.10.0.tgz" + integrity sha512-v3UJF8xm68BBj6AF4oQML3ikrfK2c9EmZUyLOfShpJuItAqVBHWP/KtpGinkSsIiP6EZyyb6Z3NXyW9dgS9X1w== + +typescript@^5.3.3: + version "5.3.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" + integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== + +undefsafe@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz" + integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA== + +universalify@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz" + integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +update-browserslist-db@^1.0.13: + version "1.0.13" + resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz" + integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +utils-merge@1.0.1, utils-merge@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +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== + +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + +v8-to-istanbul@^9.0.1: + version "9.1.0" + resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz" + integrity sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA== + dependencies: + "@jridgewell/trace-mapping" "^0.3.12" + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^1.6.0" + +validator@^13.11.0, validator@^13.7.0: + version "13.11.0" + resolved "https://registry.npmjs.org/validator/-/validator-13.11.0.tgz" + integrity sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ== + +vary@^1, vary@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +void-elements@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz" + integrity sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w== + +walker@^1.0.8: + version "1.0.8" + resolved "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz" + integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== + dependencies: + makeerror "1.0.12" + +wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== + dependencies: + defaults "^1.0.3" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +webidl-conversions@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz" + integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== + +whatwg-url@^11.0.0: + version "11.0.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz" + integrity sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ== + dependencies: + tr46 "^3.0.0" + webidl-conversions "^7.0.0" + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which-module@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" + integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== + +which@^1.2.14, which@^1.2.9: + version "1.3.1" + resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.2: + version "1.1.5" + resolved "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz" + integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== + dependencies: + string-width "^1.0.2 || 2 || 3 || 4" + +winston-daily-rotate-file@^4.7.1: + version "4.7.1" + resolved "https://registry.npmjs.org/winston-daily-rotate-file/-/winston-daily-rotate-file-4.7.1.tgz" + integrity sha512-7LGPiYGBPNyGHLn9z33i96zx/bd71pjBn9tqQzO3I4Tayv94WPmBNwKC7CO1wPHdP9uvu+Md/1nr6VSH9h0iaA== + dependencies: + file-stream-rotator "^0.6.1" + object-hash "^2.0.1" + triple-beam "^1.3.0" + winston-transport "^4.4.0" + +winston-transport@^4.4.0, winston-transport@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz" + integrity sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q== + dependencies: + logform "^2.3.2" + readable-stream "^3.6.0" + triple-beam "^1.3.0" + +winston@^3.8.1: + version "3.10.0" + resolved "https://registry.npmjs.org/winston/-/winston-3.10.0.tgz" + integrity sha512-nT6SIDaE9B7ZRO0u3UvdrimG0HkB7dSTAgInQnNR2SOPJ4bvq5q79+pXLftKmP52lJGW15+H5MCK0nM9D3KB/g== + dependencies: + "@colors/colors" "1.5.0" + "@dabh/diagnostics" "^2.0.2" + async "^3.2.3" + is-stream "^2.0.0" + logform "^2.4.0" + one-time "^1.0.0" + readable-stream "^3.4.0" + safe-stable-stringify "^2.3.1" + stack-trace "0.0.x" + triple-beam "^1.3.0" + winston-transport "^4.5.0" + +with@^7.0.0: + version "7.0.2" + resolved "https://registry.npmjs.org/with/-/with-7.0.2.tgz" + integrity sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w== + dependencies: + "@babel/parser" "^7.9.6" + "@babel/types" "^7.9.6" + assert-never "^1.2.1" + babel-walk "3.0.0-canary-5" + +word-wrap@^1.0.3: + version "1.2.5" + resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + +workerpool@6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" + integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^9.0.0: + version "9.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz" + integrity sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q== + dependencies: + ansi-styles "^6.2.1" + string-width "^7.0.0" + strip-ansi "^7.1.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +write-file-atomic@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +write-file-atomic@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz" + integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== + dependencies: + imurmurhash "^0.1.4" + signal-exit "^3.0.7" + +xtend@^4.0.0: + version "4.0.2" + resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +y18n@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz" + integrity sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yaml@2.0.0-1: + version "2.0.0-1" + resolved "https://registry.npmjs.org/yaml/-/yaml-2.0.0-1.tgz" + integrity sha512-W7h5dEhywMKenDJh2iX/LABkbFnBxasD27oyXWDS/feDsxiw0dD5ncXdYXgkvAsXIY2MpW/ZKkr9IU30DBdMNQ== + +yaml@2.3.4: + version "2.3.4" + resolved "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz" + integrity sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA== + +yargs-parser@20.2.4: + version "20.2.4" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== + +yargs-parser@^18.1.2: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^20.2.2: + version "20.2.9" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" + integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== + +yargs-parser@^21.0.1, yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs-unparser@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" + integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== + dependencies: + camelcase "^6.0.0" + decamelize "^4.0.0" + flat "^5.0.2" + is-plain-obj "^2.1.0" + +yargs@16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yargs@^15.0.2: + version "15.4.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" + integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.2" + +yargs@^17.3.1: + version "17.7.2" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + +z-schema@^5.0.1: + version "5.0.6" + resolved "https://registry.npmjs.org/z-schema/-/z-schema-5.0.6.tgz" + integrity sha512-+XR1GhnWklYdfr8YaZv/iu+vY+ux7V5DS5zH1DQf6bO5ufrt/5cgNhVO5qyhsjFXvsqQb/f08DWE9b6uPscyAg== + dependencies: + lodash.get "^4.4.2" + lodash.isequal "^4.5.0" + validator "^13.7.0" + optionalDependencies: + commander "^10.0.0"