├── client
└── my-app
│ ├── src
│ ├── index.css
│ ├── setupTests.js
│ ├── App.test.js
│ ├── components
│ │ ├── PrivateComponent.js
│ │ ├── Login.js
│ │ ├── ForgotPassword.js
│ │ ├── Navbar.js
│ │ ├── Register.js
│ │ ├── likedProducts.js
│ │ ├── AddRecipe.js
│ │ └── Recipes.js
│ ├── styles
│ │ ├── Searchbar.css
│ │ ├── ForgotPassword.css
│ │ ├── Addrecipe.css
│ │ ├── likedProducts.css
│ │ └── RecipeStyle.css
│ ├── reportWebVitals.js
│ ├── index.js
│ ├── App.js
│ ├── logo.svg
│ └── App.css
│ ├── netlify.toml
│ ├── public
│ ├── robots.txt
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── index.html
│ ├── .gitignore
│ ├── package.json
│ └── README.md
├── public
└── static
│ └── images
│ ├── website1.png
│ ├── website2.png
│ ├── website3.png
│ └── website4.png
├── server
├── controllers
│ ├── controller.js
│ ├── RegisterController.js
│ ├── LoginController.js
│ ├── ForgotPasswordController.js
│ └── RecipeController.js
├── routes
│ ├── forgotPassword.js
│ ├── LoginRoute.js
│ ├── RecipeRoute.js
│ └── RegisterRoute.js
├── Schema
│ ├── UserSchema.js
│ ├── RecipeSchema.js
│ └── LikedRecipeSchema.js
├── db
│ └── config.js
├── package.json
├── Middleware
│ └── middleware.js
├── index.js
└── package-lock.json
├── .gitignore
└── readme.md
/client/my-app/src/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/client/my-app/netlify.toml:
--------------------------------------------------------------------------------
1 | [[redirects]]
2 | from = "/*"
3 | to = "/index.html"
4 | status = 200
--------------------------------------------------------------------------------
/client/my-app/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/client/my-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/client/my-app/public/favicon.ico
--------------------------------------------------------------------------------
/client/my-app/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/client/my-app/public/logo192.png
--------------------------------------------------------------------------------
/client/my-app/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/client/my-app/public/logo512.png
--------------------------------------------------------------------------------
/public/static/images/website1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/public/static/images/website1.png
--------------------------------------------------------------------------------
/public/static/images/website2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/public/static/images/website2.png
--------------------------------------------------------------------------------
/public/static/images/website3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/public/static/images/website3.png
--------------------------------------------------------------------------------
/public/static/images/website4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rohith-Manjunath/MERN-Recipe-App/HEAD/public/static/images/website4.png
--------------------------------------------------------------------------------
/server/controllers/controller.js:
--------------------------------------------------------------------------------
1 | exports.Home = (req, res) => {
2 | const user = req.token;
3 |
4 | res.status(200).json({ message: `Home` });
5 | };
6 |
--------------------------------------------------------------------------------
/server/routes/forgotPassword.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const router = express.Router();
3 | const ForgotPassword = require("../controllers/ForgotPasswordController.js");
4 |
5 | router.put("/forgotpassword", ForgotPassword);
6 |
7 | module.exports = router;
8 |
--------------------------------------------------------------------------------
/server/Schema/UserSchema.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 |
3 | const UserSchema = mongoose.Schema({
4 | name: String,
5 | password: String,
6 | email: { type: String, lowercase: true },
7 | });
8 |
9 | module.exports = mongoose.model("User", UserSchema);
10 |
--------------------------------------------------------------------------------
/client/my-app/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/server/db/config.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 | mongoose
3 | .connect(process.env.URI)
4 | .then(() => {
5 | console.log("Connected to the database");
6 | })
7 | .catch((error) => {
8 | console.error("Error connecting to the database:", error);
9 | });
10 |
--------------------------------------------------------------------------------
/client/my-app/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/client/my-app/src/components/PrivateComponent.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Outlet, Navigate } from "react-router-dom";
3 |
4 | const PrivateComponent = () => {
5 | const auth = localStorage.getItem("token");
6 |
7 | return auth ? : ;
8 | };
9 |
10 | export default PrivateComponent;
11 |
--------------------------------------------------------------------------------
/client/my-app/src/styles/Searchbar.css:
--------------------------------------------------------------------------------
1 |
2 | .search-bar {
3 | margin-bottom: 20px;
4 | height: 50px;
5 | margin-top: 2rem;
6 |
7 | }
8 |
9 | .search-bar input {
10 | width: 100%;
11 | padding: 10px;
12 | height: 100%;
13 | font-size: 16px;
14 | border: 1px solid #ccc;
15 | border-radius: 5px;
16 | outline: none;
17 |
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/server/Schema/RecipeSchema.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 |
3 | const recipeSchema = new mongoose.Schema({
4 | title: {
5 | type: String,
6 | required: true,
7 | },
8 | ingredients: [String],
9 | instructions: {
10 | type: String,
11 | required: true,
12 | },
13 | imageUrl: String,
14 | });
15 |
16 | const Recipe = mongoose.model("Recipe", recipeSchema);
17 |
18 | module.exports = Recipe;
19 |
--------------------------------------------------------------------------------
/client/my-app/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/server/Schema/LikedRecipeSchema.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 |
3 | const LikedRecipes = new mongoose.Schema({
4 | title: {
5 | type: String,
6 | required: true,
7 | },
8 | ingredients: [String],
9 | instructions: {
10 | type: String,
11 | required: true,
12 | },
13 | imageUrl: String,
14 | });
15 |
16 | const Liked = mongoose.model("LikedRecipe", LikedRecipes);
17 |
18 | module.exports = Liked;
19 |
--------------------------------------------------------------------------------
/client/my-app/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "dev": "node index",
9 | "start": "nodemon index"
10 | },
11 | "keywords": [],
12 | "author": "",
13 | "license": "ISC",
14 | "dependencies": {
15 | "bcrypt": "^5.1.1",
16 | "cors": "^2.8.5",
17 | "dotenv": "^16.3.1",
18 | "express": "^4.18.2",
19 | "jsonwebtoken": "^9.0.2",
20 | "mongoose": "^7.5.2"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/server/Middleware/middleware.js:
--------------------------------------------------------------------------------
1 | const jwt = require("jsonwebtoken");
2 |
3 | function verifyToken(req, res, next) {
4 | const token = req.header("Authorization");
5 |
6 | if (!token) {
7 | return res
8 | .status(401)
9 | .json({ message: "Access denied. No token provided." });
10 | }
11 |
12 | try {
13 | const decoded = jwt.verify(token, process.env.SECRET);
14 | req.token = decoded;
15 | next();
16 | } catch (error) {
17 | res.status(403).json({ message: "Invalid token." });
18 | }
19 | }
20 |
21 | module.exports = verifyToken;
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Node.js / NPM
2 | node_modules/
3 | npm-debug.log
4 | yarn-error.log
5 |
6 | # React build output
7 | /build
8 | /dist
9 |
10 | # IDE and editor-specific files (Optional, depending on your IDE/editor)
11 | .vscode/
12 | .idea/
13 | *.sublime-project
14 | *.sublime-workspace
15 |
16 | # macOS specific files (Optional, depending on the OS used by your team)
17 | .DS_Store
18 |
19 | # Environment files (Optional, depending on your setup)
20 | .env
21 | .env.local
22 | .env.development.local
23 | .env.test.local
24 | .env.production.local
25 |
26 | # Local Netlify folder
27 | .netlify
28 |
--------------------------------------------------------------------------------
/client/my-app/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom/client';
3 | import './index.css';
4 | import App from './App';
5 | import reportWebVitals from './reportWebVitals';
6 |
7 | const root = ReactDOM.createRoot(document.getElementById('root'));
8 | root.render(
9 |
10 |
11 |
12 | );
13 |
14 | // If you want to start measuring performance in your app, pass a function
15 | // to log results (for example: reportWebVitals(console.log))
16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17 | reportWebVitals();
18 |
--------------------------------------------------------------------------------
/client/my-app/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/server/routes/LoginRoute.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const router = express.Router();
3 | const jwt = require("jsonwebtoken");
4 | const LoginController = require("../controllers/LoginController");
5 |
6 | router.post("/login", LoginController);
7 | function verifyToken(req, res, next) {
8 | const token = req.header("Authorization");
9 |
10 | if (!token) {
11 | return res
12 | .status(401)
13 | .json({ message: "Access denied. No token provided." });
14 | }
15 |
16 | try {
17 | const decoded = jwt.verify(token, process.env.SECRET);
18 | req.token = decoded;
19 | next();
20 | } catch (error) {
21 | res.status(403).json({ message: "Invalid token." });
22 | }
23 | }
24 |
25 | module.exports = router;
26 |
--------------------------------------------------------------------------------
/server/routes/RecipeRoute.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const router = express.Router();
3 | const verifyToken = require("../Middleware/middleware");
4 |
5 | const {
6 | getAllRecipes,
7 | createRecipe,
8 | deleteRecipe,
9 | LikedList,
10 | getAllLikedRecipes,
11 | removeFromLikedRecipes,
12 | searchRecipes,
13 | } = require("../controllers/RecipeController");
14 |
15 | router.post("/recipe", createRecipe);
16 | router.get("/recipe", verifyToken, getAllRecipes);
17 | router.get("/likedRecipes", getAllLikedRecipes);
18 | router.delete("/recipe/:id", deleteRecipe);
19 | router.post("/likedRecipes/:id", LikedList);
20 | router.delete("/removeLiked/:id", removeFromLikedRecipes);
21 | router.get("/searchRecipes/:key", searchRecipes);
22 |
23 | module.exports = router;
24 |
--------------------------------------------------------------------------------
/server/controllers/RegisterController.js:
--------------------------------------------------------------------------------
1 | const User = require("../Schema/UserSchema");
2 | const bcrypt = require("bcrypt");
3 | const jwt = require("jsonwebtoken");
4 |
5 | const Register = async (req, res) => {
6 | try {
7 | const { name, email, password } = req.body;
8 | const user = await User.findOne({ email });
9 |
10 | if (user) {
11 | return res.json({ error: "User already exists" });
12 | }
13 |
14 | const token = jwt.sign(email, process.env.SECRET);
15 | const hash = await bcrypt.hash(password, 10);
16 | const newUser = await User.create({ name, email, password: hash });
17 | res.json({ newUser, token });
18 | } catch (e) {
19 | console.error(e.message);
20 | res.status(500).json({ error: "Internal server error" });
21 | }
22 | };
23 |
24 | module.exports = Register;
25 |
--------------------------------------------------------------------------------
/server/routes/RegisterRoute.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const router = express.Router();
3 | const bcrypt = require("bcrypt");
4 | const jwt = require("jsonwebtoken");
5 | const User = require("../Schema/UserSchema");
6 | const RegisterController = require("../controllers/RegisterController");
7 |
8 | router.post("/register", RegisterController);
9 |
10 | function verifyToken(req, res, next) {
11 | const token = req.header("Authorization");
12 |
13 | if (!token) {
14 | return res
15 | .status(401)
16 | .json({ message: "Access denied. No token provided." });
17 | }
18 |
19 | try {
20 | const decoded = jwt.verify(token, process.env.SECRET);
21 | req.token = decoded;
22 | next();
23 | } catch (error) {
24 | res.status(403).json({ message: "Invalid token." });
25 | }
26 | }
27 |
28 | module.exports = router;
29 |
--------------------------------------------------------------------------------
/server/controllers/LoginController.js:
--------------------------------------------------------------------------------
1 | const User = require("../Schema/UserSchema");
2 | const bcrypt = require("bcrypt");
3 | const jwt = require("jsonwebtoken");
4 | const Login = async (req, res) => {
5 | try {
6 | const { email, password } = req.body;
7 | const user = await User.findOne({ email });
8 |
9 | if (!user) {
10 | return res.status(401).json({ error: "User not found" });
11 | }
12 |
13 | const passwordMatch = await bcrypt.compare(password, user.password);
14 |
15 | if (!passwordMatch) {
16 | return res.status(401).json({ error: "Incorrect password" });
17 | }
18 |
19 | const token = jwt.sign(
20 | { email: user.email, _id: user._id },
21 | process.env.SECRET
22 | );
23 |
24 | res.json({
25 | token,
26 | user: { _id: user._id, name: user.name, email: user.email },
27 | });
28 | } catch (e) {
29 | console.error(e.message);
30 | res.status(500).json({ error: "Internal server error" });
31 | }
32 | };
33 |
34 | module.exports = Login;
35 |
--------------------------------------------------------------------------------
/server/index.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const app = express();
3 | const cors = require("cors");
4 | const bcrypt = require("bcrypt");
5 | const jwt = require("jsonwebtoken");
6 | const dotenv = require("dotenv");
7 | dotenv.config();
8 | const router = express.Router();
9 |
10 | app.use(express.json());
11 | app.use(cors());
12 |
13 | const config = require("./db/config");
14 | const Home = require("./controllers/controller");
15 | const LoginRoute = require("./routes/LoginRoute");
16 | const RegisterRoute = require("./routes/RegisterRoute");
17 | const verifyToken = require("./Middleware/middleware");
18 | const RecipeRoute = require("./routes/RecipeRoute");
19 | const ForgotPassword = require("./routes/forgotPassword");
20 |
21 | app.use("/auth", LoginRoute);
22 | app.use("/auth", RegisterRoute);
23 | app.use("/auth", RecipeRoute);
24 | app.use("/auth", router);
25 | app.use("/auth", ForgotPassword);
26 |
27 | router.get("/", verifyToken, Home.Home);
28 |
29 | module.exports = router;
30 |
31 | if (config) {
32 | app.listen(process.env.PORT, () => {
33 | console.log(`Server Started on port ${process.env.PORT}`);
34 | });
35 | }
36 |
--------------------------------------------------------------------------------
/server/controllers/ForgotPasswordController.js:
--------------------------------------------------------------------------------
1 | const bcrypt = require("bcrypt");
2 | const User = require("../Schema/UserSchema");
3 |
4 | const ForgotPassword = async (req, res) => {
5 | const { email, password } = req.body;
6 |
7 | try {
8 | // Check if a user with the provided email exists
9 | const user = await User.findOne({ email });
10 |
11 | if (user) {
12 | // Hash the new password before updating it
13 | const hashedPassword = await bcrypt.hash(password, 10);
14 |
15 | // Update the user's password in the database
16 | user.password = hashedPassword;
17 | await user.save();
18 |
19 | // Respond with a success message
20 | res.status(200).json({ message: "Password updated successfully" });
21 | } else {
22 | // If no user is found with the given email
23 | res
24 | .status(404)
25 | .json({ message: "No user found with this email address" });
26 | }
27 | } catch (error) {
28 | // Handle unexpected errors
29 | console.error(error);
30 | res.status(500).json({ message: "Internal server error" });
31 | }
32 | };
33 |
34 | module.exports = ForgotPassword;
35 |
--------------------------------------------------------------------------------
/client/my-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "my-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@fortawesome/fontawesome-svg-core": "^6.4.2",
7 | "@fortawesome/free-solid-svg-icons": "^6.4.2",
8 | "@fortawesome/react-fontawesome": "^0.2.0",
9 | "@testing-library/jest-dom": "^5.17.0",
10 | "@testing-library/react": "^13.4.0",
11 | "@testing-library/user-event": "^13.5.0",
12 | "react": "^18.2.0",
13 | "react-dom": "^18.2.0",
14 | "react-router-dom": "^6.16.0",
15 | "react-scripts": "5.0.1",
16 | "react-toastify": "^9.1.3",
17 | "toastify": "^2.0.1",
18 | "web-vitals": "^2.1.4"
19 | },
20 | "scripts": {
21 | "start": "react-scripts start",
22 | "build": "react-scripts build",
23 | "test": "react-scripts test",
24 | "eject": "react-scripts eject"
25 | },
26 | "eslintConfig": {
27 | "extends": [
28 | "react-app",
29 | "react-app/jest"
30 | ]
31 | },
32 | "browserslist": {
33 | "production": [
34 | ">0.2%",
35 | "not dead",
36 | "not op_mini all"
37 | ],
38 | "development": [
39 | "last 1 chrome version",
40 | "last 1 firefox version",
41 | "last 1 safari version"
42 | ]
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/client/my-app/src/App.js:
--------------------------------------------------------------------------------
1 | import "./App.css";
2 | import Login from "./components/Login";
3 | import { Routes, Route, BrowserRouter as Router } from "react-router-dom";
4 | import Register from "./components/Register";
5 | import Navbar from "./components/Navbar";
6 | import PrivateComponent from "./components/PrivateComponent";
7 | import Recipes from "./components/Recipes";
8 | import AddRecipe from "./components/AddRecipe";
9 | import LikedProducts from "./components/likedProducts";
10 | import ForgotPassword from "./components/ForgotPassword";
11 |
12 | function App() {
13 | return (
14 |
15 |
16 |
17 |
18 | } />
19 | } />
20 | } />
21 |
22 | }>
23 | } />
24 | } />
25 | } />
26 | } />
27 |
28 |
29 |
30 | );
31 | }
32 |
33 | export default App;
34 |
--------------------------------------------------------------------------------
/client/my-app/src/styles/ForgotPassword.css:
--------------------------------------------------------------------------------
1 | /* UpdatePassword Component Styles */
2 |
3 | /* Main container styles */
4 | .update-password-container {
5 | max-width: 400px;
6 | margin: 0 auto;
7 | padding: 20px;
8 | border: 1px solid #ccc;
9 | border-radius: 5px;
10 | background-color: #f9f9f9;
11 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
12 | margin-top: 15rem;
13 |
14 | }
15 |
16 | /* Heading styles */
17 | .update-password-container h2 {
18 | text-align: center;
19 | margin-bottom: 20px;
20 | }
21 |
22 | /* Form field styles */
23 | .form-group {
24 | margin-bottom: 20px;
25 | }
26 |
27 | .form-group label {
28 | font-weight: bold;
29 | margin-bottom: 5px;
30 | }
31 |
32 | .form-group input[type="email"],
33 | .form-group input[type="password"] {
34 | width: 100%;
35 | padding: 10px;
36 | border: 1px solid #ccc;
37 | border-radius: 5px;
38 | font-size: 16px;
39 | }
40 |
41 | /* Submit button styles */
42 | .update-password-container button {
43 | display: block;
44 | width: 100%;
45 | padding: 10px;
46 | background-color: #007bff;
47 | color: white;
48 | border: none;
49 | border-radius: 5px;
50 | font-size: 16px;
51 | cursor: pointer;
52 | }
53 |
54 | .update-password-container button:hover {
55 | background-color: #0056b3;
56 | }
57 |
58 | /* Error message styles */
59 | .error-message {
60 | margin-top: 10px;
61 | color: #ff0000;
62 | font-weight: bold;
63 | text-align: center;
64 | }
65 |
--------------------------------------------------------------------------------
/client/my-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/client/my-app/src/styles/Addrecipe.css:
--------------------------------------------------------------------------------
1 | /* AddRecipe.css */
2 |
3 | .add-recipe {
4 |
5 | max-width: 600px;
6 | margin: 0 auto;
7 | padding: 20px;
8 | border: 1px solid #ccc;
9 | border-radius: 5px;
10 | background-color: #fff;
11 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
12 | margin-top: 6rem;
13 | }
14 |
15 | .add-recipe h2 {
16 | font-size: 24px;
17 | margin-bottom: 20px;
18 | color: #333;
19 | }
20 |
21 | .add-recipe form {
22 | display: flex;
23 | flex-direction: column;
24 | }
25 |
26 | .add-recipe label {
27 | font-weight: bold;
28 | margin-bottom: 5px;
29 | color: #333;
30 | }
31 |
32 | .add-recipe input[type="text"],
33 | .add-recipe textarea {
34 | padding: 10px;
35 | margin-bottom: 15px;
36 | border: 1px solid #ccc;
37 | border-radius: 3px;
38 | font-size: 16px;
39 | }
40 |
41 | .add-recipe input[type="text"] {
42 | width: 100%;
43 | }
44 |
45 | .add-recipe textarea {
46 | width: 100%;
47 | height: 150px;
48 | }
49 |
50 | .add-recipe button[type="submit"],
51 | .add-recipe button[type="button"] {
52 | background-color: #007bff;
53 | color: #fff;
54 | padding: 10px 20px;
55 | border: none;
56 | border-radius: 3px;
57 | font-size: 16px;
58 | cursor: pointer;
59 | }
60 |
61 | .add-recipe button[type="button"] {
62 | background-color: #28a745;
63 | }
64 |
65 | .add-recipe button[type="submit"]:hover,
66 | .add-recipe button[type="button"]:hover {
67 | background-color: #0056b3;
68 | }
69 |
70 | /* Additional styling for ingredient inputs */
71 | .add-recipe .ingredient-inputs {
72 | display: flex;
73 | flex-direction: column;
74 | }
75 |
76 | .add-recipe .ingredient-inputs input[type="text"] {
77 | width: 100%;
78 | margin-bottom: 10px;
79 | }
80 |
81 | .add-recipe .ingredient-inputs button {
82 | align-self: flex-start;
83 | background-color: #ffc107;
84 | }
85 |
86 | .add-recipe .ingredient-inputs button:hover {
87 | background-color: #ff9800;
88 | }
89 |
90 | @media (min-width: 320px) and (max-width: 480px) {
91 | .add-recipe {
92 | margin-top: 5rem;
93 | }
94 | }
--------------------------------------------------------------------------------
/client/my-app/src/components/Login.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import "../App.css";
3 | import { Link } from "react-router-dom";
4 | import { ToastContainer, toast } from "react-toastify";
5 | import "react-toastify/dist/ReactToastify.css"; // Import the CSS for styling
6 |
7 | const Login = () => {
8 | const [email, setEmail] = useState("");
9 | const [password, setPassword] = useState("");
10 | const [showError, setShowError] = useState(false);
11 | const Email = email.toLowerCase();
12 | const handleSubmit = async (e) => {
13 | e.preventDefault();
14 |
15 | if (!email || !password) {
16 | setShowError(true);
17 | return;
18 | }
19 |
20 | try {
21 | let response = await fetch(
22 | "https://recipe-app-mern.onrender.com/auth/login",
23 | {
24 | method: "POST",
25 | headers: { "Content-Type": "application/json" },
26 | body: JSON.stringify({ email: Email, password }),
27 | }
28 | );
29 |
30 | response = await response.json();
31 |
32 | if (!response.error) {
33 | toast.success("Login Successful");
34 | localStorage.setItem("token", response.token);
35 |
36 | setTimeout(() => {
37 | window.location.href = "/";
38 | }, 4000);
39 | } else {
40 | toast.error(response.error);
41 | }
42 | } catch (error) {
43 | console.error("An error occurred while registering user:", error);
44 | }
45 | };
46 |
47 | return (
48 |
49 |
66 | {showError && (
67 | Please Fill all the fields
68 | )}
69 |
70 |
71 | );
72 | };
73 |
74 | export default Login;
75 |
--------------------------------------------------------------------------------
/client/my-app/src/styles/likedProducts.css:
--------------------------------------------------------------------------------
1 | /* LikedProducts.css */
2 |
3 | .likedRecipes {
4 | max-width: 800px;
5 | margin: 0 auto;
6 | padding: 20px;
7 | background-color: #f5f5f5;
8 | border-radius: 10px;
9 | box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
10 | margin-top: 8rem !important;
11 |
12 | }
13 |
14 | .likedRecipes h2 {
15 | font-size: 24px;
16 | margin-bottom: 20px;
17 | }
18 |
19 | .likedRecipes ul {
20 | list-style-type: none;
21 | padding: 0;
22 | }
23 |
24 | .likedRecipes .list {
25 | margin-bottom: 30px;
26 | background-color: #fff;
27 | padding: 20px;
28 | border: 1px solid #ddd;
29 | border-radius: 5px;
30 | box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
31 | }
32 |
33 | .likedRecipes h3 {
34 | font-size: 20px;
35 | margin-bottom: 10px;
36 | color: #333;
37 | }
38 |
39 | .likedRecipes p {
40 | font-size: 16px;
41 | color: #777;
42 | margin-bottom: 10px;
43 | }
44 |
45 | .likedRecipes img {
46 | max-width: 100%;
47 | height: auto;
48 | margin-top: 20px;
49 | border-radius: 5px;
50 | box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
51 | }
52 |
53 | .likedRecipes h4 {
54 | font-size: 18px;
55 | margin-top: 20px;
56 | }
57 |
58 | .likedRecipes ul.liked-product-ingredients {
59 | list-style-type: disc;
60 | margin-left: 20px;
61 | }
62 |
63 | .likedRecipes ul.liked-product-ingredients li {
64 | font-size: 16px;
65 | }
66 |
67 | .likedRecipes ol.liked-product-instructions {
68 | list-style-type: decimal;
69 | margin-left: 20px;
70 | }
71 |
72 | .likedRecipes ol.liked-product-instructions li {
73 | font-size: 16px;
74 | }
75 |
76 |
77 |
78 | /* RecipeStyle.css */
79 |
80 | /* Add styles for the remove item button */
81 | .remove-item-button {
82 | background-color: #ff5c5c; /* Red background color */
83 | color: white; /* White text color */
84 | border: none;
85 | padding: 10px 20px;
86 | margin-right: 10px;
87 | cursor: pointer;
88 | border-radius: 5px;
89 | font-size: 16px;
90 | transition: background-color 0.3s ease;
91 |
92 | /* Hover effect */
93 | &:hover {
94 | background-color: #ff0000; /* Darker red on hover */
95 | }
96 | }
97 |
98 | .instructions-list li {
99 | margin-bottom: 8px; /* Adjust the value as needed to control the spacing */
100 | }
101 |
--------------------------------------------------------------------------------
/client/my-app/src/components/ForgotPassword.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import "../styles/ForgotPassword.css";
3 | import { toast, ToastContainer } from "react-toastify";
4 |
5 | const UpdatePassword = () => {
6 | const [formData, setFormData] = useState({
7 | email: "",
8 | password: "",
9 | });
10 | const [message, setMessage] = useState(null);
11 |
12 | const handleChange = (e) => {
13 | const { name, value } = e.target;
14 | setFormData({ ...formData, [name]: value });
15 | };
16 |
17 | const handleSubmit = async (e) => {
18 | e.preventDefault();
19 |
20 | try {
21 | const response = await fetch(
22 | "https://recipe-app-mern.onrender.com/auth/forgotpassword",
23 | {
24 | method: "PUT",
25 | headers: {
26 | "Content-Type": "application/json",
27 | },
28 | body: JSON.stringify(formData),
29 | }
30 | );
31 |
32 | if (response.ok) {
33 | const data = await response.json();
34 | setMessage(data.message);
35 | toast.success("Password Updated successfully");
36 |
37 | setTimeout(() => {
38 | window.location.href = "/login";
39 | }, 4000);
40 | } else {
41 | setMessage("An error occurred while updating the password.");
42 | toast.error("Error in Password update");
43 | }
44 | } catch (error) {
45 | console.error(error);
46 | setMessage("An error occurred while updating the password.");
47 | }
48 | };
49 |
50 | return (
51 |
52 |
Update Password
53 |
76 | {message &&
{message}
}
77 |
78 |
79 | );
80 | };
81 |
82 | export default UpdatePassword;
83 |
--------------------------------------------------------------------------------
/client/my-app/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/client/my-app/src/components/Navbar.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { NavLink } from "react-router-dom";
3 | import "../App.css";
4 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5 | import { faBars, faRotate } from "@fortawesome/free-solid-svg-icons";
6 |
7 | const Navbar = () => {
8 | const [isOpen, setIsOpen] = useState(false);
9 |
10 | const LogoutUser = () => {
11 | if (window.confirm("You wanna logout?")) {
12 | localStorage.clear();
13 | window.location.href = "/login";
14 | } else {
15 | window.location.href = "/recipes";
16 | }
17 | };
18 |
19 | const toggleMenu = () => {
20 | setIsOpen(!isOpen);
21 | };
22 |
23 | const auth = localStorage.getItem("token");
24 |
25 | const handleToggleMenu = () => {
26 | setIsOpen(false);
27 | };
28 |
29 | return (
30 |
31 |
84 |
85 | );
86 | };
87 |
88 | export default Navbar;
89 |
--------------------------------------------------------------------------------
/client/my-app/src/components/Register.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import "../App.css";
3 | import { ToastContainer, toast } from "react-toastify";
4 | import "react-toastify/dist/ReactToastify.css"; // Import the CSS for styling
5 |
6 | const Register = () => {
7 | const [name, setName] = useState("");
8 | const [email, setEmail] = useState("");
9 | const [password, setPassword] = useState("");
10 | const [showError, setShowError] = useState(false); // State to control the error message visibility
11 | const Email = email.toLowerCase();
12 | const handleSubmit = async (e) => {
13 | e.preventDefault();
14 |
15 | if (!email || !password || !name) {
16 | // If any of the fields are empty, show the error message
17 | setShowError(true);
18 | return; // Prevent further execution
19 | }
20 |
21 | try {
22 | const response = await fetch(
23 | "https://recipe-app-mern.onrender.com/auth/register",
24 | {
25 | method: "POST",
26 | headers: { "Content-Type": "application/json" },
27 | body: JSON.stringify({ name, email: Email, password }),
28 | }
29 | );
30 |
31 | if (response.ok) {
32 | const user = await response.json();
33 |
34 | if (user.error) {
35 | toast.warn("User already exists. Try with different email");
36 | } else {
37 | toast.success("Registration successful.");
38 | localStorage.setItem("token", user.token);
39 | setTimeout(() => {
40 | window.location.href = "/";
41 | }, 4000);
42 | }
43 | } else {
44 | console.error("Failed to register user:", response.status);
45 | }
46 | } catch (error) {
47 | toast.error("An error occurred while registering user:", error);
48 | }
49 | };
50 |
51 | return (
52 |
53 |
72 | {showError && (
73 | Please Fill all the fields
74 | )}
75 |
76 |
77 | );
78 | };
79 |
80 | export default Register;
81 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # Recipe Sharing Full Stack App (MERN Stack)
2 |
3 | ## Table of Contents
4 |
5 | - [Screenshots](#screenshots)
6 | - [Features](#features)
7 | - [Prerequisites](#prerequisites)
8 | - [Getting Started](#getting-started)
9 | - [Folder Structure](#folder-structure)
10 | - [Technologies Used](#technologies-used)
11 | - [Live Demo](#live-demo)
12 |
13 | - ## Screenshots
14 |
15 | ;
16 | ;
17 | ;
18 | ;
19 |
20 | ## Features
21 |
22 | 1. **User Authentication**: Secure user authentication and registration system.
23 | 2. **Recipe Management**: Create, edit, and delete your recipes.
24 | 3. **Recipe Discovery**: Browse and search for recipes shared by other users.
25 | 4. **Comments and Ratings**: Leave comments and rate recipes.
26 | 5. **Favorite Recipes**: Save your favorite recipes for easy access.
27 | 6. **Responsive Design**: Works seamlessly on both desktop and mobile devices.
28 |
29 | ## Prerequisites
30 |
31 | - [Node.js](https://nodejs.org/) installed (v14 or higher).
32 | - [MongoDB](https://www.mongodb.com/) installed and running locally or on a remote server.
33 | - [Git](https://git-scm.com/) for version control.
34 | - A text editor or integrated development environment (IDE) of your choice (e.g., Visual Studio Code).
35 |
36 | ## Getting Started
37 |
38 | 1. Clone the repository:
39 |
40 | ```bash
41 | git clone https://github.com/Rohith-Manjunath/MERN-Recipe-App.git
42 |
43 | 2. Navigate to the project directory:
44 |
45 | cd Mern-Recipe-App
46 |
47 | 3. Navigate to the client directory:
48 |
49 | cd client
50 | cd my-app
51 |
52 | 4. Install client dependencies:
53 |
54 | npm install
55 |
56 | 5. Return to the project root:
57 |
58 | cd ..
59 | cd ..
60 |
61 | 6. Navigate to server folder:
62 |
63 | cd server
64 |
65 | 7. Create a `.env` file in the project root and configure your environment variables:
66 |
67 | PORT=2000
68 | MONGODB_URI=mongodb://localhost/recipe-app
69 | SECRET=your-secret-key
70 |
71 | Replace `your-secret-key` with a secure secret for JWT token generation.
72 |
73 | 8. Start the development server
74 |
75 | node index.js
76 |
77 |
78 | ## Folder Structure
79 | The project follows a standard MERN stack folder structure:
80 |
81 | - client: Contains the React frontend application.
82 | - server: Contains the Express.js backend application.
83 | - Schema: Define the MongoDB schemas and models.
84 | - routes: Define the API routes.
85 | - controllers: Handle route logic and interact with the database.
86 | - middlewares: Custom middleware functions.
87 | - db: Configuration files (e.g., database connection).
88 |
89 | ## Technologies Used
90 | #### Frontend:
91 |
92 | - React
93 |
94 | #### Backend:
95 |
96 | - Node.js
97 | - Express.js
98 | - MongoDB (Mongoose)
99 | - JSON Web Tokens (JWT) for authentication
100 | - bcrypt for secured password hashing
101 |
102 |
103 | ## Live Demo
104 |
105 | Check out the live demo of the Recipe Sharing Full Stack App [here](https://benevolent-donut-65e579.netlify.app).
106 |
107 |
--------------------------------------------------------------------------------
/client/my-app/src/styles/RecipeStyle.css:
--------------------------------------------------------------------------------
1 | /* Base styles for Recipes component */
2 | .Recipes {
3 | display: flex;
4 | flex-wrap: wrap;
5 | gap: 20px;
6 | margin: 20px;
7 | margin-top: 7rem;
8 | }
9 |
10 | /* Style for each individual recipe card */
11 | .Recipe {
12 | background-color: #f8f8f8;
13 | border: 1px solid #ddd;
14 | padding: 20px;
15 | border-radius: 5px;
16 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
17 | width: calc(33.33% - 20px); /* Three columns with 20px gap */
18 | }
19 |
20 | /* Style for recipe title */
21 | .Recipe h2 {
22 | font-size: 20px;
23 | margin-top: 0;
24 | margin-bottom: 10px;
25 | }
26 |
27 | /* Style for recipe image */
28 | .Recipe img {
29 | max-width: 100%;
30 | height: auto;
31 | border-radius: 5px;
32 | }
33 |
34 | /* Style for ingredients list */
35 | .Recipe h3 {
36 | font-size: 16px;
37 | margin: 10px 0;
38 | }
39 |
40 | .Recipe ul {
41 | list-style-type: disc;
42 | margin-left: 20px;
43 | padding-left: 10px;
44 | }
45 |
46 | /* Style for instructions */
47 | .Recipe p {
48 | font-size: 14px;
49 | line-height: 1.4;
50 | margin-top: 10px;
51 | }
52 |
53 | /* Styling for regular links */
54 | .Recipe a {
55 | color: #007bff; /* Default link color */
56 | text-decoration: none; /* Remove underlines */
57 | transition: color 0.3s ease; /* Smooth color transition on hover */
58 | margin-left: 1rem;
59 | }
60 |
61 |
62 |
63 |
64 | /* Style for delete button */
65 | .delete-button {
66 | background-color: #dc3545;
67 | color: #fff;
68 | padding: 8px 15px;
69 | border: none;
70 | border-radius: 3px;
71 | font-size: 14px;
72 | cursor: pointer;
73 | transition: background-color 0.3s ease;
74 | }
75 |
76 | .delete-button:hover {
77 | background-color: #c82333;
78 | }
79 |
80 | /* RecipeStyle.css */
81 |
82 | /* Existing styles for other elements... */
83 |
84 | .add-to-favorites-button {
85 | background-color: #007bff; /* Blue color, you can change this to your preferred color */
86 | color: #fff; /* Text color */
87 | border: none;
88 | padding: 5px 10px;
89 | margin-top: 10px;
90 | margin-left: 5px;
91 | border-radius: 5px;
92 | cursor: pointer;
93 | font-size: 16px;
94 | }
95 |
96 | .add-to-favorites-button:hover {
97 | background-color: #0056b3; /* Darker blue color on hover */
98 | }
99 |
100 | .no-recipes{
101 | margin-top: 5rem;
102 | }
103 |
104 | /* Adjust the styles as needed to match your design preferences */
105 |
106 |
107 | /* Responsive Styles */
108 |
109 | /* For devices with a screen width between 320px and 480px */
110 | @media (min-width: 320px) and (max-width: 768px) {
111 | .Recipes {
112 | gap: 10px; /* Adjust the gap as needed for smaller screens */
113 | }
114 |
115 | .Recipe {
116 | width: 100%; /* Make recipe cards occupy full width */
117 | }
118 | }
119 |
120 |
121 |
122 |
123 | /* For laptops and larger screens */
124 | @media (min-width: 992px) {
125 | .Recipes {
126 | gap: 40px;
127 | }
128 |
129 | .Recipe {
130 | width: calc(33.33% - 40px); /* Three columns with 40px gap */
131 | }
132 | }
133 |
134 | /* For larger screens (adjust as needed) */
135 | @media (min-width: 1200px) {
136 | .Recipes {
137 | gap: 50px;
138 | }
139 |
140 | .Recipe {
141 | width: calc(30% - 50px); /* Four columns with 50px gap */
142 | }
143 | }
144 |
145 |
146 |
--------------------------------------------------------------------------------
/client/my-app/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13 |
14 | The page will reload when you make changes.\
15 | You may also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!**
35 |
36 | 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.
37 |
38 | 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.
39 |
40 | 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.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | 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)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | 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)
55 |
56 | ### Making a Progressive Web App
57 |
58 | 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)
59 |
60 | ### Advanced Configuration
61 |
62 | 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)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `npm run build` fails to minify
69 |
70 | 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)
71 |
--------------------------------------------------------------------------------
/client/my-app/src/components/likedProducts.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 | import "../styles/likedProducts.css";
3 | import { toast, ToastContainer } from "react-toastify";
4 |
5 | const LikedProducts = () => {
6 | const [likedProducts, setLikedProducts] = useState([]);
7 |
8 | useEffect(() => {
9 | // Call the async function to fetch liked products when the component mounts
10 | fetchLikedProducts();
11 | }, []);
12 |
13 | const fetchLikedProducts = async () => {
14 | try {
15 | // Make a GET request to the /api/liked-products endpoint
16 | const response = await fetch(
17 | "https://recipe-app-mern.onrender.com/auth/likedRecipes"
18 | );
19 |
20 | if (!response.ok) {
21 | toast.error("Failed to fetch liked products");
22 | }
23 |
24 | const data = await response.json();
25 |
26 | // Set the fetched data to the state
27 | setLikedProducts(data);
28 | } catch (error) {
29 | toast.error("Error fetching liked products:", error);
30 | }
31 | };
32 |
33 | const handleRemoveItem = async (recipeId) => {
34 | try {
35 | if (
36 | window.confirm(
37 | "Are you sure you wanna remove this recipe from favourites??"
38 | )
39 | ) {
40 | const response = await fetch(
41 | `https://recipe-app-mern.onrender.com/auth/removeLiked/${recipeId}`,
42 | {
43 | method: "DELETE",
44 | }
45 | );
46 |
47 | if (response.ok) {
48 | toast.success("Item Removed successfully");
49 | fetchLikedProducts();
50 | setTimeout(() => {
51 | window.location.href = "/favouriteRecipes";
52 | }, 4000);
53 | } else {
54 | const data = await response.json();
55 | toast.error(data.error);
56 | }
57 | } else {
58 | window.location.href = "/favouriteRecipes";
59 | }
60 | } catch (error) {
61 | toast.error("Error removing item from liked products:", error);
62 | }
63 | };
64 |
65 | return (
66 |
67 |
Favourites
68 |
69 | {likedProducts.map((product) => (
70 | -
71 |
72 |
{product.title}
73 |
{product.description}
74 |

75 |
Ingredients:
76 |
77 | {product.ingredients.length > 0 && (
78 |
79 | {product.ingredients.map((ingredient, index) => (
80 | - {ingredient}
81 | ))}
82 |
83 | )}
84 |
85 |
86 |
87 |
Instructions:
88 |
89 | {product.instructions.split("\n").map((step, index) => (
90 |
{step}
91 | ))}
92 |
93 |
94 |
95 |
101 |
102 |
103 | ))}
104 |
105 |
106 |
107 | );
108 | };
109 |
110 | export default LikedProducts;
111 |
--------------------------------------------------------------------------------
/client/my-app/src/components/AddRecipe.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import "../styles/Addrecipe.css";
3 | import { ToastContainer, toast } from "react-toastify";
4 | import "react-toastify/dist/ReactToastify.css"; // Import the CSS for styling
5 |
6 | const AddRecipe = () => {
7 | const [recipe, setRecipe] = useState({
8 | title: "",
9 | ingredients: [""],
10 | instructions: "",
11 | imageUrl: "",
12 | });
13 |
14 | const handleInputChange = (e) => {
15 | const { name, value } = e.target;
16 | setRecipe({
17 | ...recipe,
18 | [name]: value,
19 | });
20 | };
21 |
22 | const handleAddIngredient = () => {
23 | const lastIngredient = recipe.ingredients[recipe.ingredients.length - 1];
24 | if (lastIngredient !== "") {
25 | setRecipe({
26 | ...recipe,
27 | ingredients: [...recipe.ingredients, ""],
28 | });
29 | }
30 | };
31 |
32 | const handleIngredientChange = (index, value) => {
33 | const updatedIngredients = [...recipe.ingredients];
34 | updatedIngredients[index] = value;
35 | setRecipe({
36 | ...recipe,
37 | ingredients: updatedIngredients,
38 | });
39 | };
40 |
41 | const handleSubmit = async (e) => {
42 | e.preventDefault();
43 | // Send a POST request to add the recipe to the server
44 |
45 | const nonEmptyIngredients = recipe.ingredients.filter(
46 | (ingredient) => ingredient.trim() !== ""
47 | );
48 |
49 | if (nonEmptyIngredients.length === 0) {
50 | toast.warn("Please provide at least one non-empty ingredient.");
51 | return;
52 | }
53 |
54 | try {
55 | const response = await fetch(
56 | "https://recipe-app-mern.onrender.com/auth/recipe",
57 | {
58 | method: "POST",
59 | headers: {
60 | "Content-Type": "application/json",
61 | },
62 | body: JSON.stringify(recipe),
63 | }
64 | );
65 |
66 | if (response.ok) {
67 | // Recipe added successfully, you can show a success message or redirect to another page
68 | toast.success("Recipe added successfully");
69 |
70 | setTimeout(() => {
71 | window.location.href = "/recipes";
72 | }, 4000);
73 | } else {
74 | toast.error("Failed to add recipe:", response.status);
75 | }
76 | } catch (error) {
77 | toast.error("An error occurred while adding the recipe:", error);
78 | }
79 | };
80 |
81 | return (
82 |
83 |
Add Recipe
84 |
129 |
130 |
131 | );
132 | };
133 |
134 | export default AddRecipe;
135 |
--------------------------------------------------------------------------------
/client/my-app/src/App.css:
--------------------------------------------------------------------------------
1 | @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500&family=Poppins:wght@300&family=Roboto:wght@500;700&family=Source+Code+Pro:ital@1&display=swap');
2 |
3 | *{
4 | margin: 0;
5 | padding: 0;
6 | box-sizing: border-box;
7 | font-family: 'Poppins', sans-serif;
8 |
9 | }
10 |
11 | body{
12 | background-color: rgb(212, 216, 216);
13 | }
14 |
15 | /* Container for the Signup form */
16 | .SignupContainer {
17 | border: 1px solid rgb(0, 0, 0);
18 | width: 90%;
19 | max-width: 500px; /* Limit the maximum width for better readability */
20 | margin: auto;
21 | padding: 2rem;
22 | border-radius: 0.5rem; /* Rounded corners for a softer look */
23 | background-color: #f8f8f8; /* Light background color */
24 | box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
25 | margin-top: 10rem !important;
26 | }
27 |
28 | /* Signup form styles */
29 | .SignupContainer form {
30 | width: 100%;
31 | display: flex;
32 | flex-direction: column;
33 | gap: 1.5rem; /* Increased gap for better spacing */
34 | }
35 |
36 | .SignupContainer form input {
37 | padding: 1rem;
38 | font-size: 1rem;
39 | border: 1px solid #ccc; /* Lighter border color */
40 | outline: none;
41 | border-radius: 0.3rem;
42 | width: 100%;
43 | transition: border-color 0.3s ease-in-out; /* Smooth border color transition */
44 | }
45 |
46 | .SignupContainer form input:focus {
47 | border-color: #007bff; /* Highlight border on focus */
48 | }
49 |
50 | .SignupContainer form button {
51 | padding: 1rem 2rem;
52 | font-size: 1rem;
53 | background-color: #007bff; /* Blue button color */
54 | color: white; /* White text color */
55 | border: none;
56 | border-radius: 0.3rem;
57 | cursor: pointer;
58 | transition: background-color 0.3s ease-in-out; /* Smooth background color transition */
59 | }
60 |
61 | .SignupContainer form button:hover {
62 | background-color: #0056b3; /* Darker blue on hover */
63 | }
64 |
65 |
66 | .fill-fields-error{
67 | color: red;
68 | padding: 0.2rem;
69 | transition: all 0.4s;
70 |
71 | }
72 |
73 | /* Navbar container */
74 | nav {
75 | background-color: #333;
76 | color: white;
77 | display: flex;
78 | justify-content: space-between;
79 | align-items: center;
80 | padding: 1rem;
81 | position: fixed !important;
82 | top: 0;
83 | left: 0;
84 | right: 0;
85 | z-index: 100;
86 | box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
87 | }
88 |
89 | /* Navigation items */
90 | nav ul {
91 | list-style-type: none;
92 | margin: 0;
93 | padding: 0;
94 | }
95 |
96 | nav ul li {
97 | display: inline-block;
98 | margin-right: 1rem;
99 | text-align: center;
100 | }
101 |
102 | /* Navigation links */
103 | nav ul li a {
104 | color: white;
105 | text-decoration: none;
106 | font-weight: bold;
107 | padding: 0.5rem 1rem;
108 | border-radius: 0.2rem;
109 | transition: background-color 0.3s, color 0.3s;
110 | }
111 |
112 | nav .nav-right {
113 | display: flex;
114 | align-items: center;
115 | justify-content: center;
116 | }
117 |
118 | nav ul li a.active {
119 | background-color: white;
120 | color: #333;
121 | border-radius: 0.2rem;
122 | }
123 |
124 |
125 |
126 | nav .nav-left {
127 | display: flex;
128 | align-items: center;
129 | justify-content: center;
130 | gap: 1rem;
131 | padding: 0.5rem;
132 |
133 | }
134 |
135 | .hamburger-icon{
136 | display: none;
137 | transition: all 0.4s ease-in-out;
138 | }
139 |
140 | /* ... Previous CSS Code ... */
141 |
142 | /* Hamburger icon styles */
143 | .hamburger-icon {
144 | display: none;
145 | font-size: 1.5rem;
146 | cursor: pointer;
147 | transition: transform 0.4s ease-in-out;
148 | }
149 |
150 | /* Media query for mobile and tablet devices */
151 | @media (max-width: 768px) {
152 | nav {
153 | flex-direction: column;
154 | height: auto;
155 | padding: 0;
156 | align-items: flex-start;
157 | position: relative;
158 | }
159 |
160 | .hamburger-icon {
161 | display: block;
162 | }
163 |
164 | .nav-right {
165 | background-color: #333;
166 | width: 100%;
167 | transition: all 0.5s ease-in-out;
168 | position: absolute;
169 | top: 3.5rem;
170 | left: 0;
171 | opacity: 0;
172 | pointer-events: none;
173 | }
174 |
175 | .nav-right.open {
176 | opacity: 1;
177 | pointer-events: auto;
178 | }
179 |
180 | nav ul li {
181 | display: block;
182 | margin: 0.5rem;
183 | text-align: center;
184 | }
185 | }
186 |
--------------------------------------------------------------------------------
/server/controllers/RecipeController.js:
--------------------------------------------------------------------------------
1 | const Recipe = require("../Schema/RecipeSchema");
2 | const Liked = require("../Schema/LikedRecipeSchema");
3 |
4 | const createRecipe = async (req, res) => {
5 | try {
6 | const { title, ingredients, instructions, imageUrl } = req.body;
7 |
8 | const newRecipe = await Recipe.create({
9 | title,
10 | ingredients,
11 | instructions,
12 | imageUrl,
13 | });
14 |
15 | res.status(201).json(newRecipe);
16 | } catch (error) {
17 | console.error(error);
18 | res.status(500).json({ error: "Internal server error" });
19 | }
20 | };
21 |
22 | const getAllRecipes = async (req, res) => {
23 | try {
24 | const allRecipes = await Recipe.find();
25 |
26 | res.status(200).json(allRecipes);
27 | } catch (error) {
28 | console.error(error);
29 | res.status(500).json({ error: "Internal server error" });
30 | }
31 | };
32 |
33 | const deleteRecipe = async (req, res) => {
34 | try {
35 | const recipeId = req.params.id;
36 |
37 | const deletedRecipe = await Recipe.deleteOne({ _id: recipeId });
38 |
39 | if (!deletedRecipe.deletedCount) {
40 | return res.status(404).json({ error: "Recipe not found" });
41 | }
42 |
43 | const recipes = await Recipe.find();
44 |
45 | res.status(200).json({ message: "Recipe deleted successfully", recipes });
46 | } catch (error) {
47 | console.error(error);
48 | res.status(500).json({ error: "Internal server error" });
49 | }
50 | };
51 |
52 | const LikedList = async (req, res) => {
53 | try {
54 | // Find the recipe by ID in the database
55 | let recipe = await Recipe.findOne({ _id: req.params.id });
56 |
57 | // Check if the recipe exists in the user's favorites
58 | const existingFavorite = await Liked.findOne({ title: recipe.title });
59 |
60 | if (existingFavorite) {
61 | // Recipe already exists in favorites
62 | return res
63 | .status(400)
64 | .json({ error: "Recipe already exists in your favorites" });
65 | } else {
66 | // Create a new favorite recipe entry
67 | const { title, instructions, imageUrl, ingredients } = recipe;
68 | const newFavorite = await Liked.create({
69 | title,
70 | instructions,
71 | imageUrl,
72 | ingredients,
73 | });
74 |
75 | // Respond with the newly added favorite recipe
76 | return res.status(201).json({ favoriteRecipe: newFavorite });
77 | }
78 | } catch (error) {
79 | // Handle any errors that occur during the process
80 | console.error("Error in Liked:", error);
81 | return res.status(500).json({ error: "An internal server error occurred" });
82 | }
83 | };
84 |
85 | const getAllLikedRecipes = async (req, res) => {
86 | try {
87 | const allLikedRecipes = await Liked.find();
88 |
89 | res.status(200).json(allLikedRecipes);
90 | } catch (error) {
91 | console.error(error);
92 | res.status(500).json({ error: "Internal server error" });
93 | }
94 | };
95 |
96 | const removeFromLikedRecipes = async (req, res) => {
97 | try {
98 | const recipeId = req.params.id;
99 |
100 | // Find and delete the liked recipe by ID
101 | const deletedLikedRecipe = await Liked.deleteOne({ _id: recipeId });
102 |
103 | if (!deletedLikedRecipe.deletedCount) {
104 | return res.status(404).json({ error: "Liked recipe not found" });
105 | }
106 |
107 | res.status(200).json({ message: "Recipe removed from liked recipes" });
108 | } catch (error) {
109 | console.error(error);
110 | res.status(500).json({ error: "Internal server error" });
111 | }
112 | };
113 |
114 | const searchRecipes = async (req, res) => {
115 | const searchKey = req.params.key;
116 |
117 | try {
118 | // Use a case-insensitive regular expression to search for recipes by title
119 | const recipes = await Recipe.find({
120 | title: { $regex: new RegExp(searchKey, "i") },
121 | });
122 |
123 | // If no matching recipes found, return a meaningful message
124 | if (recipes.length === 0) {
125 | return res.status(404).json({ message: "No recipes found" });
126 | }
127 |
128 | // If matching recipes found, return them in the response
129 | res.status(200).json(recipes);
130 | } catch (error) {
131 | // Handle any server error and return a proper error response
132 | console.error("Error searching recipes:", error);
133 | res.status(500).json({ error: "Internal server error" });
134 | }
135 | };
136 |
137 | module.exports = {
138 | getAllRecipes,
139 | createRecipe,
140 | deleteRecipe,
141 | getAllLikedRecipes,
142 | LikedList,
143 | removeFromLikedRecipes,
144 | searchRecipes,
145 | };
146 |
--------------------------------------------------------------------------------
/client/my-app/src/components/Recipes.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect, useState } from "react";
2 | import "../styles/RecipeStyle.css";
3 | import { Link } from "react-router-dom";
4 | import "../styles/Searchbar.css";
5 | import { ToastContainer, toast } from "react-toastify";
6 | import "react-toastify/dist/ReactToastify.css"; // Import the CSS for styling
7 |
8 | const Recipes = () => {
9 | const [recipes, setRecipes] = useState([]);
10 |
11 | useEffect(() => {
12 | getRecipes();
13 | }, []);
14 |
15 | const getRecipes = () => {
16 | fetch("https://recipe-app-mern.onrender.com/auth/recipe", {
17 | method: "GET",
18 | headers: {
19 | Authorization: `${localStorage.getItem("token")}`,
20 | },
21 | })
22 | .then((response) => {
23 | if (!response.ok) {
24 | throw new Error("Failed to fetch recipe data");
25 | }
26 | return response.json();
27 | })
28 | .then((data) => {
29 | setRecipes(data);
30 | })
31 | .catch((error) => {
32 | console.error(error);
33 | });
34 | };
35 |
36 | const handleDeleteRecipe = async (recipeId) => {
37 | try {
38 | // Confirm the deletion with the user
39 | if (window.confirm("Are you sure you want to delete this recipe?")) {
40 | // Send a DELETE request to the server
41 | const response = await fetch(
42 | `https://recipe-app-mern.onrender.com/auth/recipe/${recipeId}`,
43 | {
44 | method: "DELETE",
45 | }
46 | );
47 |
48 | if (response.ok) {
49 | toast.success("Recipe deleted successfully");
50 |
51 | setTimeout(() => {
52 | window.location = "/recipes";
53 | }, 4000);
54 | } else {
55 | getRecipes();
56 | window.location = "/recipes";
57 | }
58 | }
59 | } catch (error) {
60 | toast.error("An error occurred while deleting the recipe:", error);
61 |
62 | setTimeout(() => {
63 | window.location.href = "/recipes";
64 | }, 3000);
65 | }
66 | };
67 |
68 | const handleAddToFavorites = async (recipeId) => {
69 | try {
70 | // Send a POST request to the LikedList controller
71 | const response = await fetch(
72 | `https://recipe-app-mern.onrender.com/auth/likedRecipes/${recipeId}`,
73 | {
74 | method: "POST",
75 | }
76 | );
77 |
78 | if (response.ok) {
79 | toast.success("Recipe added to favorites successfully");
80 |
81 | setTimeout(() => {
82 | window.location.href = "/favouriteRecipes";
83 | }, 4000);
84 | } else {
85 | const data = await response.json();
86 | if (data.error === "Recipe already exists in your favorites") {
87 | toast.warn("Recipe already exists in your favorites");
88 | } else {
89 | toast.error(data.error);
90 | }
91 | }
92 | } catch (error) {
93 | console.error("An error occurred while adding to favorites:", error);
94 | }
95 | };
96 |
97 | const SearchRecipes = async (e) => {
98 | try {
99 | if (e.target.value) {
100 | let Searchedrecipes = await fetch(
101 | `https://recipe-app-mern.onrender.com/auth/searchRecipes/${e.target.value}`,
102 | {
103 | method: "GET",
104 | headers: {
105 | "Content-Type": "application/json",
106 | },
107 | }
108 | );
109 |
110 | Searchedrecipes = await Searchedrecipes.json();
111 |
112 | if (!Searchedrecipes.message) {
113 | setRecipes(Searchedrecipes);
114 | } else {
115 | setRecipes([]);
116 | }
117 | } else {
118 | getRecipes();
119 | }
120 | } catch (e) {
121 | console.log(e.message);
122 | }
123 | };
124 |
125 | return (
126 |
127 |
128 | SearchRecipes(e)}
133 | />
134 |
135 |
136 | {recipes.length > 0 ? (
137 | recipes.map((recipe) => (
138 |
139 |
{recipe.title}
140 |

141 |
Ingredients:
142 |
143 | {recipe.ingredients.length > 0 && (
144 |
145 | {recipe.ingredients.map((ingredient, index) => (
146 | - {ingredient}
147 | ))}
148 |
149 | )}
150 |
151 |
152 |
Instructions:
153 | {recipe.instructions.match(/^\d+\./) ? (
154 |
155 | {recipe.instructions.split("\n").map((step, index) => (
156 |
{step}
157 | ))}
158 |
159 | ) : (
160 |
161 | {recipe.instructions.split("\n").map((step, index) => (
162 | - {step}
163 | ))}
164 |
165 | )}
166 |
167 |
168 |
174 |
180 |
Add more recipes
181 |
182 | ))
183 | ) : (
184 |
No Recipes Found
185 | )}
186 |
187 |
188 | );
189 | };
190 |
191 | export default Recipes;
192 |
--------------------------------------------------------------------------------
/server/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "server",
9 | "version": "1.0.0",
10 | "license": "ISC",
11 | "dependencies": {
12 | "bcrypt": "^5.1.1",
13 | "cors": "^2.8.5",
14 | "dotenv": "^16.3.1",
15 | "express": "^4.18.2",
16 | "jsonwebtoken": "^9.0.2",
17 | "mongoose": "^7.5.2"
18 | }
19 | },
20 | "node_modules/@mapbox/node-pre-gyp": {
21 | "version": "1.0.11",
22 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",
23 | "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",
24 | "dependencies": {
25 | "detect-libc": "^2.0.0",
26 | "https-proxy-agent": "^5.0.0",
27 | "make-dir": "^3.1.0",
28 | "node-fetch": "^2.6.7",
29 | "nopt": "^5.0.0",
30 | "npmlog": "^5.0.1",
31 | "rimraf": "^3.0.2",
32 | "semver": "^7.3.5",
33 | "tar": "^6.1.11"
34 | },
35 | "bin": {
36 | "node-pre-gyp": "bin/node-pre-gyp"
37 | }
38 | },
39 | "node_modules/@mongodb-js/saslprep": {
40 | "version": "1.1.0",
41 | "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.0.tgz",
42 | "integrity": "sha512-Xfijy7HvfzzqiOAhAepF4SGN5e9leLkMvg/OPOF97XemjfVCYN/oWa75wnkc6mltMSTwY+XlbhWgUOJmkFspSw==",
43 | "optional": true,
44 | "dependencies": {
45 | "sparse-bitfield": "^3.0.3"
46 | }
47 | },
48 | "node_modules/@types/node": {
49 | "version": "20.6.5",
50 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.5.tgz",
51 | "integrity": "sha512-2qGq5LAOTh9izcc0+F+dToFigBWiK1phKPt7rNhOqJSr35y8rlIBjDwGtFSgAI6MGIhjwOVNSQZVdJsZJ2uR1w=="
52 | },
53 | "node_modules/@types/webidl-conversions": {
54 | "version": "7.0.1",
55 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.1.tgz",
56 | "integrity": "sha512-8hKOnOan+Uu+NgMaCouhg3cT9x5fFZ92Jwf+uDLXLu/MFRbXxlWwGeQY7KVHkeSft6RvY+tdxklUBuyY9eIEKg=="
57 | },
58 | "node_modules/@types/whatwg-url": {
59 | "version": "8.2.2",
60 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz",
61 | "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==",
62 | "dependencies": {
63 | "@types/node": "*",
64 | "@types/webidl-conversions": "*"
65 | }
66 | },
67 | "node_modules/abbrev": {
68 | "version": "1.1.1",
69 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
70 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
71 | },
72 | "node_modules/accepts": {
73 | "version": "1.3.8",
74 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
75 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
76 | "dependencies": {
77 | "mime-types": "~2.1.34",
78 | "negotiator": "0.6.3"
79 | },
80 | "engines": {
81 | "node": ">= 0.6"
82 | }
83 | },
84 | "node_modules/agent-base": {
85 | "version": "6.0.2",
86 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
87 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
88 | "dependencies": {
89 | "debug": "4"
90 | },
91 | "engines": {
92 | "node": ">= 6.0.0"
93 | }
94 | },
95 | "node_modules/agent-base/node_modules/debug": {
96 | "version": "4.3.4",
97 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
98 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
99 | "dependencies": {
100 | "ms": "2.1.2"
101 | },
102 | "engines": {
103 | "node": ">=6.0"
104 | },
105 | "peerDependenciesMeta": {
106 | "supports-color": {
107 | "optional": true
108 | }
109 | }
110 | },
111 | "node_modules/agent-base/node_modules/ms": {
112 | "version": "2.1.2",
113 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
114 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
115 | },
116 | "node_modules/ansi-regex": {
117 | "version": "5.0.1",
118 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
119 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
120 | "engines": {
121 | "node": ">=8"
122 | }
123 | },
124 | "node_modules/aproba": {
125 | "version": "2.0.0",
126 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
127 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
128 | },
129 | "node_modules/are-we-there-yet": {
130 | "version": "2.0.0",
131 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
132 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
133 | "dependencies": {
134 | "delegates": "^1.0.0",
135 | "readable-stream": "^3.6.0"
136 | },
137 | "engines": {
138 | "node": ">=10"
139 | }
140 | },
141 | "node_modules/array-flatten": {
142 | "version": "1.1.1",
143 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
144 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
145 | },
146 | "node_modules/balanced-match": {
147 | "version": "1.0.2",
148 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
149 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
150 | },
151 | "node_modules/bcrypt": {
152 | "version": "5.1.1",
153 | "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz",
154 | "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==",
155 | "hasInstallScript": true,
156 | "dependencies": {
157 | "@mapbox/node-pre-gyp": "^1.0.11",
158 | "node-addon-api": "^5.0.0"
159 | },
160 | "engines": {
161 | "node": ">= 10.0.0"
162 | }
163 | },
164 | "node_modules/body-parser": {
165 | "version": "1.20.1",
166 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
167 | "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
168 | "dependencies": {
169 | "bytes": "3.1.2",
170 | "content-type": "~1.0.4",
171 | "debug": "2.6.9",
172 | "depd": "2.0.0",
173 | "destroy": "1.2.0",
174 | "http-errors": "2.0.0",
175 | "iconv-lite": "0.4.24",
176 | "on-finished": "2.4.1",
177 | "qs": "6.11.0",
178 | "raw-body": "2.5.1",
179 | "type-is": "~1.6.18",
180 | "unpipe": "1.0.0"
181 | },
182 | "engines": {
183 | "node": ">= 0.8",
184 | "npm": "1.2.8000 || >= 1.4.16"
185 | }
186 | },
187 | "node_modules/brace-expansion": {
188 | "version": "1.1.11",
189 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
190 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
191 | "dependencies": {
192 | "balanced-match": "^1.0.0",
193 | "concat-map": "0.0.1"
194 | }
195 | },
196 | "node_modules/bson": {
197 | "version": "5.5.0",
198 | "resolved": "https://registry.npmjs.org/bson/-/bson-5.5.0.tgz",
199 | "integrity": "sha512-B+QB4YmDx9RStKv8LLSl/aVIEV3nYJc3cJNNTK2Cd1TL+7P+cNpw9mAPeCgc5K+j01Dv6sxUzcITXDx7ZU3F0w==",
200 | "engines": {
201 | "node": ">=14.20.1"
202 | }
203 | },
204 | "node_modules/buffer-equal-constant-time": {
205 | "version": "1.0.1",
206 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
207 | "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
208 | },
209 | "node_modules/bytes": {
210 | "version": "3.1.2",
211 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
212 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
213 | "engines": {
214 | "node": ">= 0.8"
215 | }
216 | },
217 | "node_modules/call-bind": {
218 | "version": "1.0.2",
219 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
220 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
221 | "dependencies": {
222 | "function-bind": "^1.1.1",
223 | "get-intrinsic": "^1.0.2"
224 | },
225 | "funding": {
226 | "url": "https://github.com/sponsors/ljharb"
227 | }
228 | },
229 | "node_modules/chownr": {
230 | "version": "2.0.0",
231 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
232 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
233 | "engines": {
234 | "node": ">=10"
235 | }
236 | },
237 | "node_modules/color-support": {
238 | "version": "1.1.3",
239 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
240 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
241 | "bin": {
242 | "color-support": "bin.js"
243 | }
244 | },
245 | "node_modules/concat-map": {
246 | "version": "0.0.1",
247 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
248 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
249 | },
250 | "node_modules/console-control-strings": {
251 | "version": "1.1.0",
252 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
253 | "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
254 | },
255 | "node_modules/content-disposition": {
256 | "version": "0.5.4",
257 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
258 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
259 | "dependencies": {
260 | "safe-buffer": "5.2.1"
261 | },
262 | "engines": {
263 | "node": ">= 0.6"
264 | }
265 | },
266 | "node_modules/content-type": {
267 | "version": "1.0.5",
268 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
269 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
270 | "engines": {
271 | "node": ">= 0.6"
272 | }
273 | },
274 | "node_modules/cookie": {
275 | "version": "0.5.0",
276 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
277 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
278 | "engines": {
279 | "node": ">= 0.6"
280 | }
281 | },
282 | "node_modules/cookie-signature": {
283 | "version": "1.0.6",
284 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
285 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
286 | },
287 | "node_modules/cors": {
288 | "version": "2.8.5",
289 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
290 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
291 | "dependencies": {
292 | "object-assign": "^4",
293 | "vary": "^1"
294 | },
295 | "engines": {
296 | "node": ">= 0.10"
297 | }
298 | },
299 | "node_modules/debug": {
300 | "version": "2.6.9",
301 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
302 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
303 | "dependencies": {
304 | "ms": "2.0.0"
305 | }
306 | },
307 | "node_modules/delegates": {
308 | "version": "1.0.0",
309 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
310 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
311 | },
312 | "node_modules/depd": {
313 | "version": "2.0.0",
314 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
315 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
316 | "engines": {
317 | "node": ">= 0.8"
318 | }
319 | },
320 | "node_modules/destroy": {
321 | "version": "1.2.0",
322 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
323 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
324 | "engines": {
325 | "node": ">= 0.8",
326 | "npm": "1.2.8000 || >= 1.4.16"
327 | }
328 | },
329 | "node_modules/detect-libc": {
330 | "version": "2.0.2",
331 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz",
332 | "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==",
333 | "engines": {
334 | "node": ">=8"
335 | }
336 | },
337 | "node_modules/dotenv": {
338 | "version": "16.3.1",
339 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
340 | "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
341 | "engines": {
342 | "node": ">=12"
343 | },
344 | "funding": {
345 | "url": "https://github.com/motdotla/dotenv?sponsor=1"
346 | }
347 | },
348 | "node_modules/ecdsa-sig-formatter": {
349 | "version": "1.0.11",
350 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
351 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
352 | "dependencies": {
353 | "safe-buffer": "^5.0.1"
354 | }
355 | },
356 | "node_modules/ee-first": {
357 | "version": "1.1.1",
358 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
359 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
360 | },
361 | "node_modules/emoji-regex": {
362 | "version": "8.0.0",
363 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
364 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
365 | },
366 | "node_modules/encodeurl": {
367 | "version": "1.0.2",
368 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
369 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
370 | "engines": {
371 | "node": ">= 0.8"
372 | }
373 | },
374 | "node_modules/escape-html": {
375 | "version": "1.0.3",
376 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
377 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
378 | },
379 | "node_modules/etag": {
380 | "version": "1.8.1",
381 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
382 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
383 | "engines": {
384 | "node": ">= 0.6"
385 | }
386 | },
387 | "node_modules/express": {
388 | "version": "4.18.2",
389 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
390 | "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
391 | "dependencies": {
392 | "accepts": "~1.3.8",
393 | "array-flatten": "1.1.1",
394 | "body-parser": "1.20.1",
395 | "content-disposition": "0.5.4",
396 | "content-type": "~1.0.4",
397 | "cookie": "0.5.0",
398 | "cookie-signature": "1.0.6",
399 | "debug": "2.6.9",
400 | "depd": "2.0.0",
401 | "encodeurl": "~1.0.2",
402 | "escape-html": "~1.0.3",
403 | "etag": "~1.8.1",
404 | "finalhandler": "1.2.0",
405 | "fresh": "0.5.2",
406 | "http-errors": "2.0.0",
407 | "merge-descriptors": "1.0.1",
408 | "methods": "~1.1.2",
409 | "on-finished": "2.4.1",
410 | "parseurl": "~1.3.3",
411 | "path-to-regexp": "0.1.7",
412 | "proxy-addr": "~2.0.7",
413 | "qs": "6.11.0",
414 | "range-parser": "~1.2.1",
415 | "safe-buffer": "5.2.1",
416 | "send": "0.18.0",
417 | "serve-static": "1.15.0",
418 | "setprototypeof": "1.2.0",
419 | "statuses": "2.0.1",
420 | "type-is": "~1.6.18",
421 | "utils-merge": "1.0.1",
422 | "vary": "~1.1.2"
423 | },
424 | "engines": {
425 | "node": ">= 0.10.0"
426 | }
427 | },
428 | "node_modules/finalhandler": {
429 | "version": "1.2.0",
430 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
431 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
432 | "dependencies": {
433 | "debug": "2.6.9",
434 | "encodeurl": "~1.0.2",
435 | "escape-html": "~1.0.3",
436 | "on-finished": "2.4.1",
437 | "parseurl": "~1.3.3",
438 | "statuses": "2.0.1",
439 | "unpipe": "~1.0.0"
440 | },
441 | "engines": {
442 | "node": ">= 0.8"
443 | }
444 | },
445 | "node_modules/forwarded": {
446 | "version": "0.2.0",
447 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
448 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
449 | "engines": {
450 | "node": ">= 0.6"
451 | }
452 | },
453 | "node_modules/fresh": {
454 | "version": "0.5.2",
455 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
456 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
457 | "engines": {
458 | "node": ">= 0.6"
459 | }
460 | },
461 | "node_modules/fs-minipass": {
462 | "version": "2.1.0",
463 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
464 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
465 | "dependencies": {
466 | "minipass": "^3.0.0"
467 | },
468 | "engines": {
469 | "node": ">= 8"
470 | }
471 | },
472 | "node_modules/fs-minipass/node_modules/minipass": {
473 | "version": "3.3.6",
474 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
475 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
476 | "dependencies": {
477 | "yallist": "^4.0.0"
478 | },
479 | "engines": {
480 | "node": ">=8"
481 | }
482 | },
483 | "node_modules/fs.realpath": {
484 | "version": "1.0.0",
485 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
486 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
487 | },
488 | "node_modules/function-bind": {
489 | "version": "1.1.1",
490 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
491 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
492 | },
493 | "node_modules/gauge": {
494 | "version": "3.0.2",
495 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
496 | "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
497 | "dependencies": {
498 | "aproba": "^1.0.3 || ^2.0.0",
499 | "color-support": "^1.1.2",
500 | "console-control-strings": "^1.0.0",
501 | "has-unicode": "^2.0.1",
502 | "object-assign": "^4.1.1",
503 | "signal-exit": "^3.0.0",
504 | "string-width": "^4.2.3",
505 | "strip-ansi": "^6.0.1",
506 | "wide-align": "^1.1.2"
507 | },
508 | "engines": {
509 | "node": ">=10"
510 | }
511 | },
512 | "node_modules/get-intrinsic": {
513 | "version": "1.2.1",
514 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
515 | "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
516 | "dependencies": {
517 | "function-bind": "^1.1.1",
518 | "has": "^1.0.3",
519 | "has-proto": "^1.0.1",
520 | "has-symbols": "^1.0.3"
521 | },
522 | "funding": {
523 | "url": "https://github.com/sponsors/ljharb"
524 | }
525 | },
526 | "node_modules/glob": {
527 | "version": "7.2.3",
528 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
529 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
530 | "dependencies": {
531 | "fs.realpath": "^1.0.0",
532 | "inflight": "^1.0.4",
533 | "inherits": "2",
534 | "minimatch": "^3.1.1",
535 | "once": "^1.3.0",
536 | "path-is-absolute": "^1.0.0"
537 | },
538 | "engines": {
539 | "node": "*"
540 | },
541 | "funding": {
542 | "url": "https://github.com/sponsors/isaacs"
543 | }
544 | },
545 | "node_modules/has": {
546 | "version": "1.0.3",
547 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
548 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
549 | "dependencies": {
550 | "function-bind": "^1.1.1"
551 | },
552 | "engines": {
553 | "node": ">= 0.4.0"
554 | }
555 | },
556 | "node_modules/has-proto": {
557 | "version": "1.0.1",
558 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
559 | "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
560 | "engines": {
561 | "node": ">= 0.4"
562 | },
563 | "funding": {
564 | "url": "https://github.com/sponsors/ljharb"
565 | }
566 | },
567 | "node_modules/has-symbols": {
568 | "version": "1.0.3",
569 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
570 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
571 | "engines": {
572 | "node": ">= 0.4"
573 | },
574 | "funding": {
575 | "url": "https://github.com/sponsors/ljharb"
576 | }
577 | },
578 | "node_modules/has-unicode": {
579 | "version": "2.0.1",
580 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
581 | "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
582 | },
583 | "node_modules/http-errors": {
584 | "version": "2.0.0",
585 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
586 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
587 | "dependencies": {
588 | "depd": "2.0.0",
589 | "inherits": "2.0.4",
590 | "setprototypeof": "1.2.0",
591 | "statuses": "2.0.1",
592 | "toidentifier": "1.0.1"
593 | },
594 | "engines": {
595 | "node": ">= 0.8"
596 | }
597 | },
598 | "node_modules/https-proxy-agent": {
599 | "version": "5.0.1",
600 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
601 | "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
602 | "dependencies": {
603 | "agent-base": "6",
604 | "debug": "4"
605 | },
606 | "engines": {
607 | "node": ">= 6"
608 | }
609 | },
610 | "node_modules/https-proxy-agent/node_modules/debug": {
611 | "version": "4.3.4",
612 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
613 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
614 | "dependencies": {
615 | "ms": "2.1.2"
616 | },
617 | "engines": {
618 | "node": ">=6.0"
619 | },
620 | "peerDependenciesMeta": {
621 | "supports-color": {
622 | "optional": true
623 | }
624 | }
625 | },
626 | "node_modules/https-proxy-agent/node_modules/ms": {
627 | "version": "2.1.2",
628 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
629 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
630 | },
631 | "node_modules/iconv-lite": {
632 | "version": "0.4.24",
633 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
634 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
635 | "dependencies": {
636 | "safer-buffer": ">= 2.1.2 < 3"
637 | },
638 | "engines": {
639 | "node": ">=0.10.0"
640 | }
641 | },
642 | "node_modules/inflight": {
643 | "version": "1.0.6",
644 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
645 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
646 | "dependencies": {
647 | "once": "^1.3.0",
648 | "wrappy": "1"
649 | }
650 | },
651 | "node_modules/inherits": {
652 | "version": "2.0.4",
653 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
654 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
655 | },
656 | "node_modules/ip": {
657 | "version": "2.0.0",
658 | "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",
659 | "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ=="
660 | },
661 | "node_modules/ipaddr.js": {
662 | "version": "1.9.1",
663 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
664 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
665 | "engines": {
666 | "node": ">= 0.10"
667 | }
668 | },
669 | "node_modules/is-fullwidth-code-point": {
670 | "version": "3.0.0",
671 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
672 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
673 | "engines": {
674 | "node": ">=8"
675 | }
676 | },
677 | "node_modules/jsonwebtoken": {
678 | "version": "9.0.2",
679 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz",
680 | "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==",
681 | "dependencies": {
682 | "jws": "^3.2.2",
683 | "lodash.includes": "^4.3.0",
684 | "lodash.isboolean": "^3.0.3",
685 | "lodash.isinteger": "^4.0.4",
686 | "lodash.isnumber": "^3.0.3",
687 | "lodash.isplainobject": "^4.0.6",
688 | "lodash.isstring": "^4.0.1",
689 | "lodash.once": "^4.0.0",
690 | "ms": "^2.1.1",
691 | "semver": "^7.5.4"
692 | },
693 | "engines": {
694 | "node": ">=12",
695 | "npm": ">=6"
696 | }
697 | },
698 | "node_modules/jsonwebtoken/node_modules/ms": {
699 | "version": "2.1.3",
700 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
701 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
702 | },
703 | "node_modules/jwa": {
704 | "version": "1.4.1",
705 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
706 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
707 | "dependencies": {
708 | "buffer-equal-constant-time": "1.0.1",
709 | "ecdsa-sig-formatter": "1.0.11",
710 | "safe-buffer": "^5.0.1"
711 | }
712 | },
713 | "node_modules/jws": {
714 | "version": "3.2.2",
715 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
716 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
717 | "dependencies": {
718 | "jwa": "^1.4.1",
719 | "safe-buffer": "^5.0.1"
720 | }
721 | },
722 | "node_modules/kareem": {
723 | "version": "2.5.1",
724 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz",
725 | "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==",
726 | "engines": {
727 | "node": ">=12.0.0"
728 | }
729 | },
730 | "node_modules/lodash.includes": {
731 | "version": "4.3.0",
732 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
733 | "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
734 | },
735 | "node_modules/lodash.isboolean": {
736 | "version": "3.0.3",
737 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
738 | "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="
739 | },
740 | "node_modules/lodash.isinteger": {
741 | "version": "4.0.4",
742 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
743 | "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="
744 | },
745 | "node_modules/lodash.isnumber": {
746 | "version": "3.0.3",
747 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
748 | "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="
749 | },
750 | "node_modules/lodash.isplainobject": {
751 | "version": "4.0.6",
752 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
753 | "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="
754 | },
755 | "node_modules/lodash.isstring": {
756 | "version": "4.0.1",
757 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
758 | "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="
759 | },
760 | "node_modules/lodash.once": {
761 | "version": "4.1.1",
762 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
763 | "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
764 | },
765 | "node_modules/lru-cache": {
766 | "version": "6.0.0",
767 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
768 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
769 | "dependencies": {
770 | "yallist": "^4.0.0"
771 | },
772 | "engines": {
773 | "node": ">=10"
774 | }
775 | },
776 | "node_modules/make-dir": {
777 | "version": "3.1.0",
778 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
779 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
780 | "dependencies": {
781 | "semver": "^6.0.0"
782 | },
783 | "engines": {
784 | "node": ">=8"
785 | },
786 | "funding": {
787 | "url": "https://github.com/sponsors/sindresorhus"
788 | }
789 | },
790 | "node_modules/make-dir/node_modules/semver": {
791 | "version": "6.3.1",
792 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
793 | "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
794 | "bin": {
795 | "semver": "bin/semver.js"
796 | }
797 | },
798 | "node_modules/media-typer": {
799 | "version": "0.3.0",
800 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
801 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
802 | "engines": {
803 | "node": ">= 0.6"
804 | }
805 | },
806 | "node_modules/memory-pager": {
807 | "version": "1.5.0",
808 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
809 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
810 | "optional": true
811 | },
812 | "node_modules/merge-descriptors": {
813 | "version": "1.0.1",
814 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
815 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
816 | },
817 | "node_modules/methods": {
818 | "version": "1.1.2",
819 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
820 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
821 | "engines": {
822 | "node": ">= 0.6"
823 | }
824 | },
825 | "node_modules/mime": {
826 | "version": "1.6.0",
827 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
828 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
829 | "bin": {
830 | "mime": "cli.js"
831 | },
832 | "engines": {
833 | "node": ">=4"
834 | }
835 | },
836 | "node_modules/mime-db": {
837 | "version": "1.52.0",
838 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
839 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
840 | "engines": {
841 | "node": ">= 0.6"
842 | }
843 | },
844 | "node_modules/mime-types": {
845 | "version": "2.1.35",
846 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
847 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
848 | "dependencies": {
849 | "mime-db": "1.52.0"
850 | },
851 | "engines": {
852 | "node": ">= 0.6"
853 | }
854 | },
855 | "node_modules/minimatch": {
856 | "version": "3.1.2",
857 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
858 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
859 | "dependencies": {
860 | "brace-expansion": "^1.1.7"
861 | },
862 | "engines": {
863 | "node": "*"
864 | }
865 | },
866 | "node_modules/minipass": {
867 | "version": "5.0.0",
868 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
869 | "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
870 | "engines": {
871 | "node": ">=8"
872 | }
873 | },
874 | "node_modules/minizlib": {
875 | "version": "2.1.2",
876 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
877 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
878 | "dependencies": {
879 | "minipass": "^3.0.0",
880 | "yallist": "^4.0.0"
881 | },
882 | "engines": {
883 | "node": ">= 8"
884 | }
885 | },
886 | "node_modules/minizlib/node_modules/minipass": {
887 | "version": "3.3.6",
888 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
889 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
890 | "dependencies": {
891 | "yallist": "^4.0.0"
892 | },
893 | "engines": {
894 | "node": ">=8"
895 | }
896 | },
897 | "node_modules/mkdirp": {
898 | "version": "1.0.4",
899 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
900 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
901 | "bin": {
902 | "mkdirp": "bin/cmd.js"
903 | },
904 | "engines": {
905 | "node": ">=10"
906 | }
907 | },
908 | "node_modules/mongodb": {
909 | "version": "5.8.1",
910 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.8.1.tgz",
911 | "integrity": "sha512-wKyh4kZvm6NrCPH8AxyzXm3JBoEf4Xulo0aUWh3hCgwgYJxyQ1KLST86ZZaSWdj6/kxYUA3+YZuyADCE61CMSg==",
912 | "dependencies": {
913 | "bson": "^5.4.0",
914 | "mongodb-connection-string-url": "^2.6.0",
915 | "socks": "^2.7.1"
916 | },
917 | "engines": {
918 | "node": ">=14.20.1"
919 | },
920 | "optionalDependencies": {
921 | "@mongodb-js/saslprep": "^1.1.0"
922 | },
923 | "peerDependencies": {
924 | "@aws-sdk/credential-providers": "^3.188.0",
925 | "@mongodb-js/zstd": "^1.0.0",
926 | "kerberos": "^1.0.0 || ^2.0.0",
927 | "mongodb-client-encryption": ">=2.3.0 <3",
928 | "snappy": "^7.2.2"
929 | },
930 | "peerDependenciesMeta": {
931 | "@aws-sdk/credential-providers": {
932 | "optional": true
933 | },
934 | "@mongodb-js/zstd": {
935 | "optional": true
936 | },
937 | "kerberos": {
938 | "optional": true
939 | },
940 | "mongodb-client-encryption": {
941 | "optional": true
942 | },
943 | "snappy": {
944 | "optional": true
945 | }
946 | }
947 | },
948 | "node_modules/mongodb-connection-string-url": {
949 | "version": "2.6.0",
950 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz",
951 | "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==",
952 | "dependencies": {
953 | "@types/whatwg-url": "^8.2.1",
954 | "whatwg-url": "^11.0.0"
955 | }
956 | },
957 | "node_modules/mongoose": {
958 | "version": "7.5.2",
959 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.5.2.tgz",
960 | "integrity": "sha512-yEkmI1jfiog7QUvMWz3eB/XoA3/5DrVvSz+z3V5hnq8VtZIHC7ujEV0RKzRXwr8QNMOs+OTB7+aK7R/N/V3yXA==",
961 | "dependencies": {
962 | "bson": "^5.4.0",
963 | "kareem": "2.5.1",
964 | "mongodb": "5.8.1",
965 | "mpath": "0.9.0",
966 | "mquery": "5.0.0",
967 | "ms": "2.1.3",
968 | "sift": "16.0.1"
969 | },
970 | "engines": {
971 | "node": ">=14.20.1"
972 | },
973 | "funding": {
974 | "type": "opencollective",
975 | "url": "https://opencollective.com/mongoose"
976 | }
977 | },
978 | "node_modules/mongoose/node_modules/ms": {
979 | "version": "2.1.3",
980 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
981 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
982 | },
983 | "node_modules/mpath": {
984 | "version": "0.9.0",
985 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz",
986 | "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==",
987 | "engines": {
988 | "node": ">=4.0.0"
989 | }
990 | },
991 | "node_modules/mquery": {
992 | "version": "5.0.0",
993 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz",
994 | "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==",
995 | "dependencies": {
996 | "debug": "4.x"
997 | },
998 | "engines": {
999 | "node": ">=14.0.0"
1000 | }
1001 | },
1002 | "node_modules/mquery/node_modules/debug": {
1003 | "version": "4.3.4",
1004 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
1005 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
1006 | "dependencies": {
1007 | "ms": "2.1.2"
1008 | },
1009 | "engines": {
1010 | "node": ">=6.0"
1011 | },
1012 | "peerDependenciesMeta": {
1013 | "supports-color": {
1014 | "optional": true
1015 | }
1016 | }
1017 | },
1018 | "node_modules/mquery/node_modules/ms": {
1019 | "version": "2.1.2",
1020 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1021 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
1022 | },
1023 | "node_modules/ms": {
1024 | "version": "2.0.0",
1025 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
1026 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
1027 | },
1028 | "node_modules/negotiator": {
1029 | "version": "0.6.3",
1030 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
1031 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
1032 | "engines": {
1033 | "node": ">= 0.6"
1034 | }
1035 | },
1036 | "node_modules/node-addon-api": {
1037 | "version": "5.1.0",
1038 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",
1039 | "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA=="
1040 | },
1041 | "node_modules/node-fetch": {
1042 | "version": "2.7.0",
1043 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
1044 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
1045 | "dependencies": {
1046 | "whatwg-url": "^5.0.0"
1047 | },
1048 | "engines": {
1049 | "node": "4.x || >=6.0.0"
1050 | },
1051 | "peerDependencies": {
1052 | "encoding": "^0.1.0"
1053 | },
1054 | "peerDependenciesMeta": {
1055 | "encoding": {
1056 | "optional": true
1057 | }
1058 | }
1059 | },
1060 | "node_modules/node-fetch/node_modules/tr46": {
1061 | "version": "0.0.3",
1062 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
1063 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
1064 | },
1065 | "node_modules/node-fetch/node_modules/webidl-conversions": {
1066 | "version": "3.0.1",
1067 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
1068 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
1069 | },
1070 | "node_modules/node-fetch/node_modules/whatwg-url": {
1071 | "version": "5.0.0",
1072 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
1073 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
1074 | "dependencies": {
1075 | "tr46": "~0.0.3",
1076 | "webidl-conversions": "^3.0.0"
1077 | }
1078 | },
1079 | "node_modules/nopt": {
1080 | "version": "5.0.0",
1081 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
1082 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
1083 | "dependencies": {
1084 | "abbrev": "1"
1085 | },
1086 | "bin": {
1087 | "nopt": "bin/nopt.js"
1088 | },
1089 | "engines": {
1090 | "node": ">=6"
1091 | }
1092 | },
1093 | "node_modules/npmlog": {
1094 | "version": "5.0.1",
1095 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
1096 | "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
1097 | "dependencies": {
1098 | "are-we-there-yet": "^2.0.0",
1099 | "console-control-strings": "^1.1.0",
1100 | "gauge": "^3.0.0",
1101 | "set-blocking": "^2.0.0"
1102 | }
1103 | },
1104 | "node_modules/object-assign": {
1105 | "version": "4.1.1",
1106 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1107 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1108 | "engines": {
1109 | "node": ">=0.10.0"
1110 | }
1111 | },
1112 | "node_modules/object-inspect": {
1113 | "version": "1.12.3",
1114 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
1115 | "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
1116 | "funding": {
1117 | "url": "https://github.com/sponsors/ljharb"
1118 | }
1119 | },
1120 | "node_modules/on-finished": {
1121 | "version": "2.4.1",
1122 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
1123 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
1124 | "dependencies": {
1125 | "ee-first": "1.1.1"
1126 | },
1127 | "engines": {
1128 | "node": ">= 0.8"
1129 | }
1130 | },
1131 | "node_modules/once": {
1132 | "version": "1.4.0",
1133 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1134 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1135 | "dependencies": {
1136 | "wrappy": "1"
1137 | }
1138 | },
1139 | "node_modules/parseurl": {
1140 | "version": "1.3.3",
1141 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
1142 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
1143 | "engines": {
1144 | "node": ">= 0.8"
1145 | }
1146 | },
1147 | "node_modules/path-is-absolute": {
1148 | "version": "1.0.1",
1149 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1150 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
1151 | "engines": {
1152 | "node": ">=0.10.0"
1153 | }
1154 | },
1155 | "node_modules/path-to-regexp": {
1156 | "version": "0.1.7",
1157 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
1158 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
1159 | },
1160 | "node_modules/proxy-addr": {
1161 | "version": "2.0.7",
1162 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
1163 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
1164 | "dependencies": {
1165 | "forwarded": "0.2.0",
1166 | "ipaddr.js": "1.9.1"
1167 | },
1168 | "engines": {
1169 | "node": ">= 0.10"
1170 | }
1171 | },
1172 | "node_modules/punycode": {
1173 | "version": "2.3.0",
1174 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
1175 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
1176 | "engines": {
1177 | "node": ">=6"
1178 | }
1179 | },
1180 | "node_modules/qs": {
1181 | "version": "6.11.0",
1182 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
1183 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
1184 | "dependencies": {
1185 | "side-channel": "^1.0.4"
1186 | },
1187 | "engines": {
1188 | "node": ">=0.6"
1189 | },
1190 | "funding": {
1191 | "url": "https://github.com/sponsors/ljharb"
1192 | }
1193 | },
1194 | "node_modules/range-parser": {
1195 | "version": "1.2.1",
1196 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1197 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1198 | "engines": {
1199 | "node": ">= 0.6"
1200 | }
1201 | },
1202 | "node_modules/raw-body": {
1203 | "version": "2.5.1",
1204 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
1205 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
1206 | "dependencies": {
1207 | "bytes": "3.1.2",
1208 | "http-errors": "2.0.0",
1209 | "iconv-lite": "0.4.24",
1210 | "unpipe": "1.0.0"
1211 | },
1212 | "engines": {
1213 | "node": ">= 0.8"
1214 | }
1215 | },
1216 | "node_modules/readable-stream": {
1217 | "version": "3.6.2",
1218 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1219 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1220 | "dependencies": {
1221 | "inherits": "^2.0.3",
1222 | "string_decoder": "^1.1.1",
1223 | "util-deprecate": "^1.0.1"
1224 | },
1225 | "engines": {
1226 | "node": ">= 6"
1227 | }
1228 | },
1229 | "node_modules/rimraf": {
1230 | "version": "3.0.2",
1231 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1232 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1233 | "dependencies": {
1234 | "glob": "^7.1.3"
1235 | },
1236 | "bin": {
1237 | "rimraf": "bin.js"
1238 | },
1239 | "funding": {
1240 | "url": "https://github.com/sponsors/isaacs"
1241 | }
1242 | },
1243 | "node_modules/safe-buffer": {
1244 | "version": "5.2.1",
1245 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1246 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1247 | "funding": [
1248 | {
1249 | "type": "github",
1250 | "url": "https://github.com/sponsors/feross"
1251 | },
1252 | {
1253 | "type": "patreon",
1254 | "url": "https://www.patreon.com/feross"
1255 | },
1256 | {
1257 | "type": "consulting",
1258 | "url": "https://feross.org/support"
1259 | }
1260 | ]
1261 | },
1262 | "node_modules/safer-buffer": {
1263 | "version": "2.1.2",
1264 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1265 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
1266 | },
1267 | "node_modules/semver": {
1268 | "version": "7.5.4",
1269 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
1270 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
1271 | "dependencies": {
1272 | "lru-cache": "^6.0.0"
1273 | },
1274 | "bin": {
1275 | "semver": "bin/semver.js"
1276 | },
1277 | "engines": {
1278 | "node": ">=10"
1279 | }
1280 | },
1281 | "node_modules/send": {
1282 | "version": "0.18.0",
1283 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
1284 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
1285 | "dependencies": {
1286 | "debug": "2.6.9",
1287 | "depd": "2.0.0",
1288 | "destroy": "1.2.0",
1289 | "encodeurl": "~1.0.2",
1290 | "escape-html": "~1.0.3",
1291 | "etag": "~1.8.1",
1292 | "fresh": "0.5.2",
1293 | "http-errors": "2.0.0",
1294 | "mime": "1.6.0",
1295 | "ms": "2.1.3",
1296 | "on-finished": "2.4.1",
1297 | "range-parser": "~1.2.1",
1298 | "statuses": "2.0.1"
1299 | },
1300 | "engines": {
1301 | "node": ">= 0.8.0"
1302 | }
1303 | },
1304 | "node_modules/send/node_modules/ms": {
1305 | "version": "2.1.3",
1306 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1307 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
1308 | },
1309 | "node_modules/serve-static": {
1310 | "version": "1.15.0",
1311 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
1312 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
1313 | "dependencies": {
1314 | "encodeurl": "~1.0.2",
1315 | "escape-html": "~1.0.3",
1316 | "parseurl": "~1.3.3",
1317 | "send": "0.18.0"
1318 | },
1319 | "engines": {
1320 | "node": ">= 0.8.0"
1321 | }
1322 | },
1323 | "node_modules/set-blocking": {
1324 | "version": "2.0.0",
1325 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1326 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
1327 | },
1328 | "node_modules/setprototypeof": {
1329 | "version": "1.2.0",
1330 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1331 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
1332 | },
1333 | "node_modules/side-channel": {
1334 | "version": "1.0.4",
1335 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
1336 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
1337 | "dependencies": {
1338 | "call-bind": "^1.0.0",
1339 | "get-intrinsic": "^1.0.2",
1340 | "object-inspect": "^1.9.0"
1341 | },
1342 | "funding": {
1343 | "url": "https://github.com/sponsors/ljharb"
1344 | }
1345 | },
1346 | "node_modules/sift": {
1347 | "version": "16.0.1",
1348 | "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz",
1349 | "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ=="
1350 | },
1351 | "node_modules/signal-exit": {
1352 | "version": "3.0.7",
1353 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
1354 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
1355 | },
1356 | "node_modules/smart-buffer": {
1357 | "version": "4.2.0",
1358 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
1359 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
1360 | "engines": {
1361 | "node": ">= 6.0.0",
1362 | "npm": ">= 3.0.0"
1363 | }
1364 | },
1365 | "node_modules/socks": {
1366 | "version": "2.7.1",
1367 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz",
1368 | "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==",
1369 | "dependencies": {
1370 | "ip": "^2.0.0",
1371 | "smart-buffer": "^4.2.0"
1372 | },
1373 | "engines": {
1374 | "node": ">= 10.13.0",
1375 | "npm": ">= 3.0.0"
1376 | }
1377 | },
1378 | "node_modules/sparse-bitfield": {
1379 | "version": "3.0.3",
1380 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
1381 | "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==",
1382 | "optional": true,
1383 | "dependencies": {
1384 | "memory-pager": "^1.0.2"
1385 | }
1386 | },
1387 | "node_modules/statuses": {
1388 | "version": "2.0.1",
1389 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1390 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
1391 | "engines": {
1392 | "node": ">= 0.8"
1393 | }
1394 | },
1395 | "node_modules/string_decoder": {
1396 | "version": "1.3.0",
1397 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
1398 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
1399 | "dependencies": {
1400 | "safe-buffer": "~5.2.0"
1401 | }
1402 | },
1403 | "node_modules/string-width": {
1404 | "version": "4.2.3",
1405 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
1406 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1407 | "dependencies": {
1408 | "emoji-regex": "^8.0.0",
1409 | "is-fullwidth-code-point": "^3.0.0",
1410 | "strip-ansi": "^6.0.1"
1411 | },
1412 | "engines": {
1413 | "node": ">=8"
1414 | }
1415 | },
1416 | "node_modules/strip-ansi": {
1417 | "version": "6.0.1",
1418 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1419 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1420 | "dependencies": {
1421 | "ansi-regex": "^5.0.1"
1422 | },
1423 | "engines": {
1424 | "node": ">=8"
1425 | }
1426 | },
1427 | "node_modules/tar": {
1428 | "version": "6.2.0",
1429 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz",
1430 | "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",
1431 | "dependencies": {
1432 | "chownr": "^2.0.0",
1433 | "fs-minipass": "^2.0.0",
1434 | "minipass": "^5.0.0",
1435 | "minizlib": "^2.1.1",
1436 | "mkdirp": "^1.0.3",
1437 | "yallist": "^4.0.0"
1438 | },
1439 | "engines": {
1440 | "node": ">=10"
1441 | }
1442 | },
1443 | "node_modules/toidentifier": {
1444 | "version": "1.0.1",
1445 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1446 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1447 | "engines": {
1448 | "node": ">=0.6"
1449 | }
1450 | },
1451 | "node_modules/tr46": {
1452 | "version": "3.0.0",
1453 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
1454 | "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
1455 | "dependencies": {
1456 | "punycode": "^2.1.1"
1457 | },
1458 | "engines": {
1459 | "node": ">=12"
1460 | }
1461 | },
1462 | "node_modules/type-is": {
1463 | "version": "1.6.18",
1464 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1465 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1466 | "dependencies": {
1467 | "media-typer": "0.3.0",
1468 | "mime-types": "~2.1.24"
1469 | },
1470 | "engines": {
1471 | "node": ">= 0.6"
1472 | }
1473 | },
1474 | "node_modules/unpipe": {
1475 | "version": "1.0.0",
1476 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1477 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1478 | "engines": {
1479 | "node": ">= 0.8"
1480 | }
1481 | },
1482 | "node_modules/util-deprecate": {
1483 | "version": "1.0.2",
1484 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1485 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
1486 | },
1487 | "node_modules/utils-merge": {
1488 | "version": "1.0.1",
1489 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1490 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1491 | "engines": {
1492 | "node": ">= 0.4.0"
1493 | }
1494 | },
1495 | "node_modules/vary": {
1496 | "version": "1.1.2",
1497 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1498 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1499 | "engines": {
1500 | "node": ">= 0.8"
1501 | }
1502 | },
1503 | "node_modules/webidl-conversions": {
1504 | "version": "7.0.0",
1505 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
1506 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",
1507 | "engines": {
1508 | "node": ">=12"
1509 | }
1510 | },
1511 | "node_modules/whatwg-url": {
1512 | "version": "11.0.0",
1513 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
1514 | "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
1515 | "dependencies": {
1516 | "tr46": "^3.0.0",
1517 | "webidl-conversions": "^7.0.0"
1518 | },
1519 | "engines": {
1520 | "node": ">=12"
1521 | }
1522 | },
1523 | "node_modules/wide-align": {
1524 | "version": "1.1.5",
1525 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
1526 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
1527 | "dependencies": {
1528 | "string-width": "^1.0.2 || 2 || 3 || 4"
1529 | }
1530 | },
1531 | "node_modules/wrappy": {
1532 | "version": "1.0.2",
1533 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1534 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
1535 | },
1536 | "node_modules/yallist": {
1537 | "version": "4.0.0",
1538 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1539 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
1540 | }
1541 | }
1542 | }
1543 |
--------------------------------------------------------------------------------