diff --git a/.suite-cli/cli/README.md b/.suite-cli/cli/README.md new file mode 100644 index 0000000..eba50ab --- /dev/null +++ b/.suite-cli/cli/README.md @@ -0,0 +1,9 @@ +# Microservices Suite + +## suite-cli is the monorepo cli tool aka mono-repo manager + +### Installation +- Run `npm install -D @microservices-suite/suite-cli` to save this in your `devDependencies` + +### Commands +- `suite add ` installs dependencies diff --git a/.suite-cli/cli/cli.js b/.suite-cli/cli/cli.js new file mode 100755 index 0000000..e69de29 diff --git a/.suite-cli/cli/command.js b/.suite-cli/cli/command.js new file mode 100755 index 0000000..d4cbefc --- /dev/null +++ b/.suite-cli/cli/command.js @@ -0,0 +1,11 @@ +#!/usr/bin/env node + +const {program} = require('commander') +const {addDepsAtWorkspacecmd} = require('.') +program.version('1.0.0') +program.argument('','service to run') +addDepsAtWorkspacecmd +program.option('','mode to run the server 🚀','dev') +program.action((mode)=>console.log({mode})) + +program.parse(process.argv) \ No newline at end of file diff --git a/.suite-cli/cli/package.json b/.suite-cli/cli/package.json new file mode 100644 index 0000000..ae0b323 --- /dev/null +++ b/.suite-cli/cli/package.json @@ -0,0 +1,21 @@ +{ + "name": "@microservices-suite/cli", + "version": "1.0.0", + "description": "This is the CLI tool for running the microservices-suite monorepo. It contains functionalities and tools required for automation and managing the repo across supported platforms. Works on Windows,MacOS and Linux as well as support to some extend other variants like SunOS, IBM AIX, FreeBSD, OpenBSD and more", + "main": "cli.js", + "bin": { + "suite": "./cli.js" + }, + "repository": "https://github.com/microservices-suite/node-microservices-suite.git", + "author": "Gilber Andanje ", + "license": "MIT", + "private": false, + "keywords": [ + "cli" + ], + "dependencies": { + "chalk": "4.1.2", + "commander": "^12.0.0", + "figlet": "^1.7.0" + } +} diff --git a/.suite-cli/cli/scripts/addDepsAtWorkspace.cmd.js b/.suite-cli/cli/scripts/addDepsAtWorkspace.cmd.js new file mode 100755 index 0000000..83b6f8d --- /dev/null +++ b/.suite-cli/cli/scripts/addDepsAtWorkspace.cmd.js @@ -0,0 +1,27 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { addDepsAtWorkspace, logSuccess, logError } = require('./scripts.module') +const figlet = require('figlet') + +console.log(figlet.textSync('Microservices-Suite')) +program + .command('add') + .description('Adds dependencies at given workspace and updates package.json') + .requiredOption('-n, --workspace-name ', 'Name of the workspace where to add dependencies') + .option('-d, --workspace-directory ', 'Directory where to look for the workspace. Defaults to "microservices"', 'microservices') + .argument('', 'Space-separated list of packages to add') + .action(async(packages, options) => { + try { + const message = await addDepsAtWorkspace({ + workspace_name: options.workspaceName, + workspace_directory: options.workspaceDirectory, + packages: packages.join(' ') + }); + logSuccess({ message }) + } catch (error) { + logError({ error }) + } + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/changeDirectory.cmd.js b/.suite-cli/cli/scripts/changeDirectory.cmd.js new file mode 100644 index 0000000..a73decc --- /dev/null +++ b/.suite-cli/cli/scripts/changeDirectory.cmd.js @@ -0,0 +1,31 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { changeDirectory, logInfo, logError, logSuccess } = require('./scripts.module') +const { exit } = require('node:process') +const figlet = require('figlet') + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('The function cds into given directory_path') + .argument('', 'The path to the file') + .action((directory_path) => { + try { + changeDirectory({ directory_path }); + logSuccess({ message: `Directory found:- ${directory_path}` }) + } catch (error) { + switch (error.code) { + case ('ENOENT'): + logError({ error: `Direcotry not found:- ${directory_path}` }); + exit(1) + case ('ENOTDIR'): + logError({ error: `Path not directory:- ${directory_path}` }); + exit(1) + default: + console.log(error) + + } + } + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/checkDocker.cmd.js b/.suite-cli/cli/scripts/checkDocker.cmd.js new file mode 100644 index 0000000..c355942 --- /dev/null +++ b/.suite-cli/cli/scripts/checkDocker.cmd.js @@ -0,0 +1,17 @@ +#!/usr/bin/env node + +const { program } = require('commander') +const { checkDocker, getPlatform, logInfo } = require('./scripts.module') + +require('./scripts.module') +const figlet = require('figlet') + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Checks if docker is running') + .action(async () => { + const _ = await checkDocker() + logInfo({ message: `Platform : ${`${getPlatform() === 'MacOS' ? '🍏' : 'Linux' ? '🐧' : '🪟'} ${getPlatform()}`} : ${_ ? '✓' : '⚠️'} docker is ${_ ? 'running...' : 'not running. Attempting to start docker...'}` }) + }) +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/envFileExists.cmd.js b/.suite-cli/cli/scripts/envFileExists.cmd.js new file mode 100644 index 0000000..ebb46f9 --- /dev/null +++ b/.suite-cli/cli/scripts/envFileExists.cmd.js @@ -0,0 +1,16 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { envFileExists, logInfo, logError } = require('./scriptsmodule') +const { statSync } = require('fs') +const figlet = require('figlet') + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Checks if the file exists at the given path') + .argument('', 'The path to the file to check') + .action((file_path) => { + envFileExists({ file_path }) ? logInfo({ message: `${statSync(file_path).isFile() ? 'File' : 'Directory'} found:- ${file_path}` }) : logError({ error: `Path not found:- ${file_path}` }) + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/generateDirectoryPath.cmd.js b/.suite-cli/cli/scripts/generateDirectoryPath.cmd.js new file mode 100644 index 0000000..b30f2d1 --- /dev/null +++ b/.suite-cli/cli/scripts/generateDirectoryPath.cmd.js @@ -0,0 +1,21 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { generateDirectoryPath, logInfo } = require('./scripts.module') +const figlet = require('figlet') + +console.log(figlet.textSync('Microservices-Suite')) +program + .command('generate-path') + .description('Dynamically generate directory path given workspace_name') + .argument('', 'Name of the workspace to cd into') + .option('-d, --workspace-directory ', 'Directory where to look for the workspace. Defaults to "microservices"', 'microservices') + .action((workspace_name, options) => { + const path = generateDirectoryPath({ + workspace_name, + workspace_directory: options.workspaceDirectory + }); + logInfo({ message: path }) + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/getPlatform.cmd.js b/.suite-cli/cli/scripts/getPlatform.cmd.js new file mode 100644 index 0000000..eca1f61 --- /dev/null +++ b/.suite-cli/cli/scripts/getPlatform.cmd.js @@ -0,0 +1,15 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { getPlatform, logInfo } = require('./scripts.module') +const figlet = require('figlet'); +const chalk = require('chalk'); + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Gets the platorm Os the app is running on') + .action(() => { + logInfo({ message: `Platform: ${getPlatform() === 'MacOS' ? '🍏' : 'Linux' ? '🐧' : '🪟'} ${getPlatform()}` }); + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/index.js b/.suite-cli/cli/scripts/index.js new file mode 100644 index 0000000..47f6a8b --- /dev/null +++ b/.suite-cli/cli/scripts/index.js @@ -0,0 +1,11 @@ +module.exports.generateDirectoryPath=require('./generateDirectoryPath.cmd'), +module.exports.changeDirectory=require('./changeDirectory.cmd'), +module.exports.envFileExists=require('./envFileExists.cmd'), +module.exports.logInfoMessage=require('./logInfoMessage.cmd'), +module.exports.logErrorMessage=require('./logErrorMessage.cmd'), +module.exports.logSuccessMessage=require('./logSuccessMessage.cmd'), +module.exports.isMatch=require('./isMatch.cmd'), +module.exports.getPlatform=require('./getPlatform.cmd'), +module.exports.checkDockerCmd=require('./checkDocker.cmd'), +module.exports.installDepsAtWorkspaceCmd=require('./installDepsAtWorkspace.cmd'), +module.exports.addDepsAtWorkspacecmd=require('./addDepsAtWorkspace.cmd') \ No newline at end of file diff --git a/.suite-cli/cli/scripts/installDepsAtWorkspace.cmd.js b/.suite-cli/cli/scripts/installDepsAtWorkspace.cmd.js new file mode 100644 index 0000000..e69de29 diff --git a/.suite-cli/cli/scripts/isMatch.cmd.js b/.suite-cli/cli/scripts/isMatch.cmd.js new file mode 100644 index 0000000..259ad49 --- /dev/null +++ b/.suite-cli/cli/scripts/isMatch.cmd.js @@ -0,0 +1,18 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { isMatch, logSuccess, l, logSuccessogError } = require('./scripts.module') +const figlet = require('figlet'); +const chalk = require('chalk'); + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Compares if 2 values match') + .argument('', 'first value') + .argument('', 'second value') + .action((a, b) => { + isMatch({ a, b }) ? logSuccess({ message: true }) : logError({ error: false }) + isMatch({ a, b }); + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/logErrorMessage.cmd.js b/.suite-cli/cli/scripts/logErrorMessage.cmd.js new file mode 100644 index 0000000..67c1408 --- /dev/null +++ b/.suite-cli/cli/scripts/logErrorMessage.cmd.js @@ -0,0 +1,15 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { logError } = require('./scripts.module') +const figlet = require('figlet'); + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Prints Error message to screen') + .argument('', 'Error to display to console') + .action((error) => { + logError({ error }); + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/logInfoMessage.cmd.js b/.suite-cli/cli/scripts/logInfoMessage.cmd.js new file mode 100644 index 0000000..41eb62f --- /dev/null +++ b/.suite-cli/cli/scripts/logInfoMessage.cmd.js @@ -0,0 +1,16 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { logInfo } = require('./scripts.module') +const figlet = require('figlet'); +const chalk = require('chalk'); + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Prints informational message to screen') + .argument('', 'Info to display to console') + .action((message) => { + logInfo({ message }); + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/logSuccessMessage.cmd.js b/.suite-cli/cli/scripts/logSuccessMessage.cmd.js new file mode 100644 index 0000000..e4642fd --- /dev/null +++ b/.suite-cli/cli/scripts/logSuccessMessage.cmd.js @@ -0,0 +1,16 @@ +#!/usr/bin/env node + +const { program } = require('commander'); +const { logSuccess } = require('./scriptsmodule') +const figlet = require('figlet'); +const chalk = require('chalk'); + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Prints success message to screen') + .argument('', 'Message to display to console') + .action((message) => { + logSuccess({ message }); + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/.suite-cli/cli/scripts/scripts.module.js b/.suite-cli/cli/scripts/scripts.module.js new file mode 100644 index 0000000..4154687 --- /dev/null +++ b/.suite-cli/cli/scripts/scripts.module.js @@ -0,0 +1,220 @@ +const { join, sep } = require('node:path') +const { cwd, chdir } = require('node:process') +const { existsSync, statSync } = require('node:fs'); +const { platform } = require('node:process'); +const { exec } = require('node:child_process'); +const chalk = require('chalk') + +/** + * Dynamically generate directory path given workspace_name + * @param {Object} options Options object containing workspace_name and workspace_directory + * @param {string} options.workspace_name Name of the workspace to cd into + * @param {string} [options.workspace_directory] Directory where to look for the workspace. Defaults to 'microservices' + * @default workspace_directory='microservice' + * @returns {string} A full path to the workspace + */ +const generateDirectoryPath = ({ workspace_name, workspace_directory = 'microservice' }) => { + return join(cwd(), `${workspace_directory}${sep}${workspace_name}`); +} +/** + * The function cds into given directory_path + * @param {string} directory_path The path to the file + * @returns void + */ +const changeDirectory = ({ directory_path }) => { + chdir(directory_path) +} + + +/** + * Checks if the file exists at the given path. + * @param {string} file_path The path to the file to check. + * @returns {boolean} True if the file exists, false otherwise. + */ +const envFileExists = ({ file_path }) => { + return existsSync(file_path) +} +/** + * Prints success message to screen + * @param {string} message Message to display to console + * @returns {void} + */ +const logSuccess = ({ message }) => console.log(chalk.blue(`✓ ${message}`)) + +/** + * Prints error message to screen + * @param {string} message Error message to display to console + * @returns {void} + */ +const logError = ({ error }) => console.log(chalk.red(`⚠️ ${error}`)) + +/** + * Prints informational message to screen + * @param {string} message Info message to display to console + * @returns {void} + */ +const logInfo = ({ message }) => console.log(chalk.gray(`✓ ${message}`)) + + +/** + * Compares if 2 values match + * @param {string} a first value + * @param {string} b second value + * @returns {boolean} Returns true if a === b otherwise false + */ +const isMatch = ({ a, b }) => a === b + +/** + * Gets the platorm Os the app is running on + * @returns {string} The Os the app is running on + */ +const getPlatform = () => { + const PLATFORM = { + 'aix': 'IBM AIX', + 'darwin': 'MacOS', + 'freebsd': 'FreeBSD', + 'linux': 'Linux', + 'openbsd': 'OpenBSD', + 'sunos': "SunOS", + 'win32': 'Windows' + } + return PLATFORM[platform] +} + +/** + * Checks if docker is running + * @returns {Promise} Returns true if docker is running otherwise false + */ +const checkDocker = () => { + return new Promise((resolve, reject) => { + let command; + switch (platform) { + case 'win32': + command = 'docker info > NUL 2>&1'; + break; + default: + command = 'docker info > /dev/null 2>&1'; + break; + } + + // Execute the command + exec(command, (error, stdout, stderr) => { + if (error) { + resolve(false); // Docker is not running or not installed + } else { + resolve(true); // Docker is running + } + }); + }); +} + +/** + * Starts the docker daemon + * @returns {Promise} Starts docker in the background if successfull and a success message otherwise returns a failure message with more instructions if possible + */ +const startDocker = () => { + return new Promise((resolve, reject) => { + let command; + switch (platform) { + case 'darwin': + command = 'open /Applications/Docker.app'; + break; + case 'linux': + command = 'systemctl start docker'; + break; + case 'win32': + command = 'start "" "C:\\Program Files\\Docker\\Docker\\Docker Desktop.exe"'; + break; + default: + return reject('Unsupported platform'); + } + + exec(command, async (error, stdout, stderr) => { + if (error) { + reject(`⇣ Install Docker to run this command: ${chalk.blue('https://docs.docker.com/engine/install/')}`); + } + if (await checkDocker()) { + resolve('✓ Docker is already running ...') + } + else { + resolve('⏳ Docker daemon is starting... Please check Docker status to ensure it is running.'); + } + }); + }); +}; + +/** + * Installs dependencies at given workspace + * @param {Object} options Options object containing workspace_name and workspace_directory + * @param {string} options.workspace_name Name of the workspace where to install dependencies + * @param {string} [options.workspace_directory='microservices'] Workspace parent directory + * @default options.workspace_directory='microservices' + * @returns {void} Does not return a value. Installs dependencies at given workspace + */ +const installDepsAtWorkspace = ({ workspace_name, workspace_directory = 'microservices' }) => { + const directory_path = generateDirectoryPath({ workspace_name, workspace_directory }) + changeDirectory({ directory_path }) + exec('yarn install',) +} + +/** + * Adds dependencies at given workspace and update package.json + * @param {Object} options Options object containing workspace_name and workspace_directory + * @param {string} options.workspace_name Name of the workspace where to add dependencies + * @param {string} [options.workspace_directory='microservices'] Directory where to look for the workspace. Defaults to 'microservices' + * @param {string} packages Space-separated list of packages to add + * @default options.workspace_directory='microservices' + * @returns {string} Returns success message + * @throws Error if package not found in registry + */ +const addDepsAtWorkspace = ({ workspace_name, workspace_directory = 'microservices', packages }) => { + return new Promise((resolve, reject) => { + const directory_path = generateDirectoryPath({ workspace_name, workspace_directory }); + + if (!existsSync(directory_path)) { + return reject(`Directory does not exist: ${directory_path}`); + } + + // Platform aware cd + const command = process.platform === 'win32' ? + `cd /d "${directory_path}" && yarn --silent add ${packages}` : + `cd "${directory_path}" && yarn --silent add ${packages}`; + + const options = { + shell: platform === 'win32' ? 'C:\\Program Files\\Git\\bin\\bash.exe' : '/bin/bash' + }; + + exec(command, options, (err, stdout, stderr) => { + if (err) { + const errorMessage = stderr || err.message; + const packageNameRegex = /\/([^/:]+):/; + const match = packageNameRegex.exec(errorMessage); + + if (match && match[1]) { + reject(`Package not found in registry: ${match[1]}`); + + } else { + reject(err.stack.split('\n')[1]); // Extracting the first line of the stack trace + } + } else { + resolve(`Successfully installed packages: ${packages} @microservices-suite/${workspace_name}`); + } + }); + }); + +}; + +module.exports = { + generateDirectoryPath, + changeDirectory, + envFileExists, + logInfo, + logError, + logSuccess, + isMatch, + getPlatform, + checkDocker, + startDocker, + installDepsAtWorkspace, + addDepsAtWorkspace +} \ No newline at end of file diff --git a/.suite-cli/cli/scripts/startDocker.cmd.js b/.suite-cli/cli/scripts/startDocker.cmd.js new file mode 100644 index 0000000..7e09567 --- /dev/null +++ b/.suite-cli/cli/scripts/startDocker.cmd.js @@ -0,0 +1,22 @@ +#!/usr/bin/env node + +const { program } = require('commander') +const { startDocker, logError, logInfo, logSuccess } = require('./scripts.module') + +require('./scripts.module') +const figlet = require('figlet') + +console.log(figlet.textSync('Microservices-Suite')) +program + .description('Checks if docker is running') + .action(async () => { + try { + const message = await startDocker(); + if (message.split(' ').includes('⏳')) logSuccess({ message }) + else logInfo({ message }) + } catch (error) { + logError({ error }) + } + }); +program.parse(process.argv); +module.exports = program \ No newline at end of file diff --git a/microservices/my-app/.gitignore b/microservices/my-app/.gitignore deleted file mode 100644 index 4d29575..0000000 --- a/microservices/my-app/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/microservices/my-app/DockerFile b/microservices/my-app/DockerFile deleted file mode 100644 index d37a01d..0000000 --- a/microservices/my-app/DockerFile +++ /dev/null @@ -1,8 +0,0 @@ -FROM node:alpine - -COPY package.json ./ -RUN yarn install - -COPY . . - -CMD [ "yarn", "start" ] \ No newline at end of file diff --git a/microservices/my-app/DockerFile.dev b/microservices/my-app/DockerFile.dev deleted file mode 100644 index b774c76..0000000 --- a/microservices/my-app/DockerFile.dev +++ /dev/null @@ -1,10 +0,0 @@ -FROM node:alpine - -WORKDIR /app - -COPY package.json ./ -RUN yarn install - -COPY . . - -CMD [ "yarn", "start" ] \ No newline at end of file diff --git a/microservices/my-app/README.md b/microservices/my-app/README.md deleted file mode 100644 index 58beeac..0000000 --- a/microservices/my-app/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in your browser. - -The page will reload when you make changes.\ -You may also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can't go back!** - -If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. - -You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). - -### Code Splitting - -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) - -### Analyzing the Bundle Size - -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) - -### Making a Progressive Web App - -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) - -### Advanced Configuration - -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) - -### Deployment - -This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) - -### `npm run build` fails to minify - -This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) diff --git a/microservices/my-app/package.json b/microservices/my-app/package.json deleted file mode 100644 index a321edd..0000000 --- a/microservices/my-app/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "my-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "@testing-library/jest-dom": "^5.17.0", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^13.5.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-scripts": "5.0.1", - "web-vitals": "^2.1.4" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/microservices/my-app/public/favicon.ico b/microservices/my-app/public/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/microservices/my-app/public/favicon.ico and /dev/null differ diff --git a/microservices/my-app/public/index.html b/microservices/my-app/public/index.html deleted file mode 100644 index aa069f2..0000000 --- a/microservices/my-app/public/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - React App - - - -
- - - diff --git a/microservices/my-app/public/logo192.png b/microservices/my-app/public/logo192.png deleted file mode 100644 index fc44b0a..0000000 Binary files a/microservices/my-app/public/logo192.png and /dev/null differ diff --git a/microservices/my-app/public/logo512.png b/microservices/my-app/public/logo512.png deleted file mode 100644 index a4e47a6..0000000 Binary files a/microservices/my-app/public/logo512.png and /dev/null differ diff --git a/microservices/my-app/public/manifest.json b/microservices/my-app/public/manifest.json deleted file mode 100644 index 080d6c7..0000000 --- a/microservices/my-app/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/microservices/my-app/public/robots.txt b/microservices/my-app/public/robots.txt deleted file mode 100644 index e9e57dc..0000000 --- a/microservices/my-app/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/microservices/my-app/src/App.css b/microservices/my-app/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/microservices/my-app/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/microservices/my-app/src/App.js b/microservices/my-app/src/App.js deleted file mode 100644 index 3784575..0000000 --- a/microservices/my-app/src/App.js +++ /dev/null @@ -1,25 +0,0 @@ -import logo from './logo.svg'; -import './App.css'; - -function App() { - return ( -
- ); -} - -export default App; diff --git a/microservices/my-app/src/App.test.js b/microservices/my-app/src/App.test.js deleted file mode 100644 index 1f03afe..0000000 --- a/microservices/my-app/src/App.test.js +++ /dev/null @@ -1,8 +0,0 @@ -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/microservices/my-app/src/index.css b/microservices/my-app/src/index.css deleted file mode 100644 index ec2585e..0000000 --- a/microservices/my-app/src/index.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} diff --git a/microservices/my-app/src/index.js b/microservices/my-app/src/index.js deleted file mode 100644 index d563c0f..0000000 --- a/microservices/my-app/src/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; - -const root = ReactDOM.createRoot(document.getElementById('root')); -root.render( - - - -); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); diff --git a/microservices/my-app/src/logo.svg b/microservices/my-app/src/logo.svg deleted file mode 100644 index 9dfc1c0..0000000 --- a/microservices/my-app/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/microservices/my-app/src/reportWebVitals.js b/microservices/my-app/src/reportWebVitals.js deleted file mode 100644 index 5253d3a..0000000 --- a/microservices/my-app/src/reportWebVitals.js +++ /dev/null @@ -1,13 +0,0 @@ -const reportWebVitals = onPerfEntry => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; diff --git a/microservices/my-app/src/setupTests.js b/microservices/my-app/src/setupTests.js deleted file mode 100644 index 8f2609b..0000000 --- a/microservices/my-app/src/setupTests.js +++ /dev/null @@ -1,5 +0,0 @@ -// jest-dom adds custom jest matchers for asserting on DOM nodes. -// allows you to do things like: -// expect(element).toHaveTextContent(/react/i) -// learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom'; diff --git a/package.json b/package.json index 91e8d79..0f36ccb 100644 --- a/package.json +++ b/package.json @@ -20,22 +20,9 @@ }, "workspaces": { "packages": [ - "microservices/user-service", - "microservices/upload-service", - "microservices/email-service", - "microservices/rbac-service", - "microservices/notification-service", - "microservices/payment-service", - "microservices/product-service", - "microservices/cart-service", - "microservices/supplier-service", - "microservices/customer-service", - "shared/middlewares", - "shared/utilities", - "shared/constants", - "shared/errors", - "shared/config", - "shared/validations" + "microservices/*", + "shared/*", + ".suite-cli/cli" ], "nohoist": [ "**/@microservices-suite/utilities", @@ -45,5 +32,8 @@ "**/@microservices-suite/constants", "**/@microservices-suite/middlewares" ] + }, + "dependencies": { + "jsdoc": "^4.0.2" } -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 9f0b8e2..4ecc8b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11,6 +11,11 @@ debug "^4.3.4" safe-buffer "~5.1.2" +"@babel/parser@^7.20.15": + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.4.tgz#234487a110d89ad5a3ed4a8a566c36b9453e8c88" + integrity sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg== + "@colors/colors@1.6.0", "@colors/colors@^1.6.0": version "1.6.0" resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" @@ -37,6 +42,13 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@jsdoc/salty@^0.2.1": + version "0.2.8" + resolved "https://registry.yarnpkg.com/@jsdoc/salty/-/salty-0.2.8.tgz#8d29923a9429694a437a50ab75004b576131d597" + integrity sha512-5e+SFVavj1ORKlKaKr2BmTOekmXbelU7dC0cDkQLqag7xfuTPuGMUFx7KWJuv4bYZrTsoL2Z18VVCOKYxzoHcg== + dependencies: + lodash "^4.17.21" + "@microservices-suite/config@1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@microservices-suite/config/-/config-1.0.3.tgz#41fd678d89b4de9ac41683e1d6628ed2816d6a6b" @@ -154,6 +166,24 @@ resolved "https://registry.yarnpkg.com/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz#db4ecfd499a9765ab24002c3b696d02e6d32a12c" integrity sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA== +"@types/linkify-it@*": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@types/linkify-it/-/linkify-it-3.0.5.tgz#1e78a3ac2428e6d7e6c05c1665c242023a4601d8" + integrity sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw== + +"@types/markdown-it@^12.2.3": + version "12.2.3" + resolved "https://registry.yarnpkg.com/@types/markdown-it/-/markdown-it-12.2.3.tgz#0d6f6e5e413f8daaa26522904597be3d6cd93b51" + integrity sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ== + dependencies: + "@types/linkify-it" "*" + "@types/mdurl" "*" + +"@types/mdurl@*": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/mdurl/-/mdurl-1.0.5.tgz#3e0d2db570e9fb6ccb2dc8fde0be1d79ac810d39" + integrity sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA== + "@types/triple-beam@^1.3.2": version "1.3.5" resolved "https://registry.yarnpkg.com/@types/triple-beam/-/triple-beam-1.3.5.tgz#74fef9ffbaa198eb8b588be029f38b00299caa2c" @@ -245,6 +275,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" @@ -304,6 +339,11 @@ blessed@0.1.81: resolved "https://registry.yarnpkg.com/blessed/-/blessed-0.1.81.tgz#f962d687ec2c369570ae71af843256e6d0ca1129" integrity sha512-LoF5gae+hlmfORcG1M5+5XZi4LBmvlXTzwJWzUlPryN/SJdSflZvROM2TwkT0GMpq7oqT48NRd4GS7BiVBc5OQ== +bluebird@^3.7.2: + version "3.7.2" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" + integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== + bodec@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/bodec/-/bodec-0.1.0.tgz#bc851555430f23c9f7650a75ef64c6a94c3418cc" @@ -380,6 +420,13 @@ call-bind@^1.0.7: get-intrinsic "^1.2.4" set-function-length "^1.2.1" +catharsis@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/catharsis/-/catharsis-0.9.0.tgz#40382a168be0e6da308c277d3a2b3eb40c7d2121" + integrity sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A== + dependencies: + lodash "^4.17.15" + chalk@3.0.0, chalk@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" @@ -388,6 +435,14 @@ chalk@3.0.0, chalk@~3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + charm@~0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/charm/-/charm-0.1.2.tgz#06c21eed1a1b06aeb67553cdc53e23274bac2296" @@ -476,6 +531,11 @@ commander@2.15.1: resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" integrity sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag== +commander@^12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-12.0.0.tgz#b929db6df8546080adfd004ab215ed48cf6f2592" + integrity sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -634,6 +694,11 @@ enquirer@2.3.6: dependencies: ansi-colors "^4.1.1" +entities@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5" + integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w== + es-define-property@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" @@ -651,6 +716,11 @@ escape-html@~1.0.3: resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + escape-string-regexp@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" @@ -761,6 +831,11 @@ fecha@^4.2.0: resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd" integrity sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw== +figlet@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/figlet/-/figlet-1.7.0.tgz#46903a04603fd19c3e380358418bb2703587a72e" + integrity sha512-gO8l3wvqo0V7wEFLXPbkX83b7MVjRrk1oRLfYlZXol8nEpb/ON9pcKLI4qpBv5YtOTfrINtqb7b40iYY2FTWFg== + fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -882,7 +957,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.6, graceful-fs@^4.2.0: +graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -1068,11 +1143,39 @@ js-git@^0.7.8: git-sha1 "^0.1.2" pako "^0.2.5" +js2xmlparser@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/js2xmlparser/-/js2xmlparser-4.0.2.tgz#2a1fdf01e90585ef2ae872a01bc169c6a8d5e60a" + integrity sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA== + dependencies: + xmlcreate "^2.0.4" + jsbn@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" integrity sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A== +jsdoc@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/jsdoc/-/jsdoc-4.0.2.tgz#a1273beba964cf433ddf7a70c23fd02c3c60296e" + integrity sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg== + dependencies: + "@babel/parser" "^7.20.15" + "@jsdoc/salty" "^0.2.1" + "@types/markdown-it" "^12.2.3" + bluebird "^3.7.2" + catharsis "^0.9.0" + escape-string-regexp "^2.0.0" + js2xmlparser "^4.0.2" + klaw "^3.0.0" + markdown-it "^12.3.2" + markdown-it-anchor "^8.4.1" + marked "^4.0.10" + mkdirp "^1.0.4" + requizzle "^0.2.3" + strip-json-comments "^3.1.0" + underscore "~1.13.2" + json-stringify-safe@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -1092,6 +1195,13 @@ kareem@2.6.3: resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.6.3.tgz#23168ec8ffb6c1abfd31b7169a6fb1dd285992ac" integrity sha512-C3iHfuGUXK2u8/ipq9LfjFfXFxAZMQJJq7vLS45r3D9Y2xQ/m4S8zaR4zMLFWh9AsNPXmcFfUDhTEO8UIC/V6Q== +klaw@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/klaw/-/klaw-3.0.0.tgz#b11bec9cf2492f06756d6e809ab73a2910259146" + integrity sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g== + dependencies: + graceful-fs "^4.1.9" + kuler@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3" @@ -1102,7 +1212,14 @@ lazy@~1.0.11: resolved "https://registry.yarnpkg.com/lazy/-/lazy-1.0.11.tgz#daa068206282542c088288e975c297c1ae77b690" integrity sha512-Y+CjUfLmIpoUCCRl0ub4smrYtGGr5AOa2AKOaWelGHOGz33X/Y/KizefGqbkwfz44+cnq/+9habclf8vOmu2LA== -lodash@^4.17.14, lodash@^4.17.21: +linkify-it@^3.0.1: + version "3.0.3" + resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-3.0.3.tgz#a98baf44ce45a550efb4d49c769d07524cc2fa2e" + integrity sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ== + dependencies: + uc.micro "^1.0.1" + +lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -1136,6 +1253,32 @@ lru-cache@^7.14.1: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== +markdown-it-anchor@^8.4.1: + version "8.6.7" + resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz#ee6926daf3ad1ed5e4e3968b1740eef1c6399634" + integrity sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA== + +markdown-it@^12.3.2: + version "12.3.2" + resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.3.2.tgz#bf92ac92283fe983fe4de8ff8abfb5ad72cd0c90" + integrity sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg== + dependencies: + argparse "^2.0.1" + entities "~2.1.0" + linkify-it "^3.0.1" + mdurl "^1.0.1" + uc.micro "^1.0.5" + +marked@^4.0.10: + version "4.3.0" + resolved "https://registry.yarnpkg.com/marked/-/marked-4.3.0.tgz#796362821b019f734054582038b116481b456cf3" + integrity sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A== + +mdurl@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" + integrity sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g== + media-typer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" @@ -1185,7 +1328,7 @@ minimist@^1.2.6: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -mkdirp@1.0.4: +mkdirp@1.0.4, mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -1220,9 +1363,9 @@ mongodb@6.5.0, mongodb@^6.5.0: mongodb-connection-string-url "^3.0.0" mongoose@*, mongoose@^8.2.1: - version "8.3.1" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.3.1.tgz#3784aaa0e17525bdd36f34de796554d479b20dda" - integrity sha512-D78C+s7QI4+pJQhs3XbOxzrHFEti4x+BDhaH94QrdV1/cmMA7fHc50LgLSXjzA/5q89TBK8DAXyf3VwDZbQJlA== + version "8.3.2" + resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.3.2.tgz#88d7eceecb1284c67c0d2e64d352442bc75f0aae" + integrity sha512-3JcpDjFI25cF/3xpu+4+9nM0lURQTNLcP86X83+LvuICdn453QQLmhSrUr2IPM/ffLiDE9KPl9slNb2s0hZPpg== dependencies: bson "^6.5.0" kareem "2.6.3" @@ -1673,6 +1816,13 @@ requires-port@^1.0.0: resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== +requizzle@^0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.4.tgz#319eb658b28c370f0c20f968fa8ceab98c13d27c" + integrity sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw== + dependencies: + lodash "^4.17.21" + resolve@^1.22.1: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" @@ -1907,6 +2057,11 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" +strip-json-comments@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + supports-color@^5.5.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -2002,11 +2157,21 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== +uc.micro@^1.0.1, uc.micro@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" + integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA== + undefsafe@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.5.tgz#38733b9327bdcd226db889fb723a6efd162e6e2c" integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA== +underscore@~1.13.2: + version "1.13.6" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.6.tgz#04786a1f589dc6c09f761fc5f45b89e935136441" + integrity sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A== + universalify@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" @@ -2109,6 +2274,11 @@ ws@~7.4.0: resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== +xmlcreate@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-2.0.4.tgz#0c5ab0f99cdd02a81065fa9cd8f8ae87624889be" + integrity sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg== + xtend@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"