├── .gitignore
├── .vscode
└── settings.json
├── README.md
├── old
├── package.json
├── prisma
├── dev.db
├── migrations
│ ├── 20230224160826_init
│ │ └── migration.sql
│ └── migration_lock.toml
├── schema.prisma
└── seed.ts
├── src
├── apis
│ ├── Cache.ts
│ ├── HttpMethods.ts
│ ├── Naming.ts
│ ├── Optimization.ts
│ └── StatusCodes.ts
├── app.ts
└── index.ts
├── tsconfig.json
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | *.env*
4 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "jira-plugin.workingProject": ""
3 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # REST API Example
2 |
3 | This example shows how to implement a **REST API with TypeScript** using [Express](https://expressjs.com/) and [Prisma Client](https://www.prisma.io/docs/concepts/components/prisma-client). The example uses an SQLite database file with some initial dummy data which you can find at [`./prisma/dev.db`](./prisma/dev.db).
4 |
5 | ## Getting started
6 |
7 | ### 1. Download example and install dependencies
8 |
9 | Download this example:
10 |
11 | ```
12 | npx try-prisma --template typescript/rest-express
13 | ```
14 |
15 | Install npm dependencies:
16 |
17 | ```
18 | cd rest-express
19 | npm install
20 | ```
21 |
22 | Alternative: Clone the entire repo
23 |
24 | Clone this repository:
25 |
26 | ```
27 | git clone git@github.com:prisma/prisma-examples.git --depth=1
28 | ```
29 |
30 | Install npm dependencies:
31 |
32 | ```
33 | cd prisma-examples/typescript/rest-express
34 | npm install
35 | ```
36 |
37 |
38 |
39 | ### 2. Create and seed the database
40 |
41 | Run the following command to create your SQLite database file. This also creates the `User` and `Post` tables that are defined in [`prisma/schema.prisma`](./prisma/schema.prisma):
42 |
43 | ```
44 | npx prisma migrate dev --name init
45 | ```
46 |
47 | When `npx prisma migrate dev` is executed against a newly created database, seeding is also triggered. The seed file in [`prisma/seed.ts`](./prisma/seed.ts) will be executed and your database will be populated with the sample data.
48 |
49 |
50 | ### 3. Start the REST API server
51 |
52 | ```
53 | npm run dev
54 | ```
55 |
56 | The server is now running on `http://localhost:3000`. You can now run the API requests, e.g. [`http://localhost:3000/feed`](http://localhost:3000/feed).
57 |
58 | ## Using the REST API
59 |
60 | You can access the REST API of the server using the following endpoints:
61 |
62 | ### `GET`
63 |
64 | - `/post/:id`: Fetch a single post by its `id`
65 | - `/feed?searchString={searchString}&take={take}&skip={skip}&orderBy={orderBy}`: Fetch all _published_ posts
66 | - Query Parameters
67 | - `searchString` (optional): This filters posts by `title` or `content`
68 | - `take` (optional): This specifies how many objects should be returned in the list
69 | - `skip` (optional): This specifies how many of the returned objects in the list should be skipped
70 | - `orderBy` (optional): The sort order for posts in either ascending or descending order. The value can either `asc` or `desc`
71 | - `/user/:id/drafts`: Fetch user's drafts by their `id`
72 | - `/users`: Fetch all users
73 | ### `POST`
74 |
75 | - `/post`: Create a new post
76 | - Body:
77 | - `title: String` (required): The title of the post
78 | - `content: String` (optional): The content of the post
79 | - `authorEmail: String` (required): The email of the user that creates the post
80 | - `/signup`: Create a new user
81 | - Body:
82 | - `email: String` (required): The email address of the user
83 | - `name: String` (optional): The name of the user
84 | - `postData: PostCreateInput[]` (optional): The posts of the user
85 |
86 | ### `PUT`
87 |
88 | - `/publish/:id`: Toggle the publish value of a post by its `id`
89 | - `/post/:id/views`: Increases the `viewCount` of a `Post` by one `id`
90 |
91 | ### `DELETE`
92 |
93 | - `/post/:id`: Delete a post by its `id`
94 |
95 |
96 | ## Evolving the app
97 |
98 | Evolving the application typically requires two steps:
99 |
100 | 1. Migrate your database using Prisma Migrate
101 | 1. Update your application code
102 |
103 | For the following example scenario, assume you want to add a "profile" feature to the app where users can create a profile and write a short bio about themselves.
104 |
105 | ### 1. Migrate your database using Prisma Migrate
106 |
107 | The first step is to add a new table, e.g. called `Profile`, to the database. You can do this by adding a new model to your [Prisma schema file](./prisma/schema.prisma) file and then running a migration afterwards:
108 |
109 | ```diff
110 | // ./prisma/schema.prisma
111 |
112 | model User {
113 | id Int @default(autoincrement()) @id
114 | name String?
115 | email String @unique
116 | posts Post[]
117 | + profile Profile?
118 | }
119 |
120 | model Post {
121 | id Int @id @default(autoincrement())
122 | createdAt DateTime @default(now())
123 | updatedAt DateTime @updatedAt
124 | title String
125 | content String?
126 | published Boolean @default(false)
127 | viewCount Int @default(0)
128 | author User? @relation(fields: [authorId], references: [id])
129 | authorId Int?
130 | }
131 |
132 | +model Profile {
133 | + id Int @default(autoincrement()) @id
134 | + bio String?
135 | + user User @relation(fields: [userId], references: [id])
136 | + userId Int @unique
137 | +}
138 | ```
139 |
140 | Once you've updated your data model, you can execute the changes against your database with the following command:
141 |
142 | ```
143 | npx prisma migrate dev --name add-profile
144 | ```
145 |
146 | This adds another migration to the `prisma/migrations` directory and creates the new `Profile` table in the database.
147 |
148 | ### 2. Update your application code
149 |
150 | You can now use your `PrismaClient` instance to perform operations against the new `Profile` table. Those operations can be used to implement API endpoints in the REST API.
151 |
152 | #### 2.1 Add the API endpoint to your app
153 |
154 | Update your `index.ts` file by adding a new endpoint to your API:
155 |
156 | ```ts
157 | app.post('/user/:id/profile', async (req, res) => {
158 | const { id } = req.params
159 | const { bio } = req.body
160 |
161 | const profile = await prisma.profile.create({
162 | data: {
163 | bio,
164 | user: {
165 | connect: {
166 | id: Number(id)
167 | }
168 | }
169 | }
170 | })
171 |
172 | res.json(profile)
173 | })
174 | ```
175 |
176 | #### 2.2 Testing out your new endpoint
177 |
178 | Restart your application server and test out your new endpoint.
179 |
180 | ##### `POST`
181 |
182 | - `/user/:id/profile`: Create a new profile based on the user id
183 | - Body:
184 | - `bio: String` : The bio of the user
185 |
186 |
187 | Expand to view more sample Prisma Client queries on Profile
188 |
189 | Here are some more sample Prisma Client queries on the new Profile
model:
190 |
191 | ##### Create a new profile for an existing user
192 |
193 | ```ts
194 | const profile = await prisma.profile.create({
195 | data: {
196 | bio: 'Hello World',
197 | user: {
198 | connect: { email: 'alice@prisma.io' },
199 | },
200 | },
201 | })
202 | ```
203 |
204 | ##### Create a new user with a new profile
205 |
206 | ```ts
207 | const user = await prisma.user.create({
208 | data: {
209 | email: 'john@prisma.io',
210 | name: 'John',
211 | profile: {
212 | create: {
213 | bio: 'Hello World',
214 | },
215 | },
216 | },
217 | })
218 | ```
219 |
220 | ##### Update the profile of an existing user
221 |
222 | ```ts
223 | const userWithUpdatedProfile = await prisma.user.update({
224 | where: { email: 'alice@prisma.io' },
225 | data: {
226 | profile: {
227 | update: {
228 | bio: 'Hello Friends',
229 | },
230 | },
231 | },
232 | })
233 | ```
234 |
235 |
236 |
237 | ## Switch to another database (e.g. PostgreSQL, MySQL, SQL Server, MongoDB)
238 |
239 | If you want to try this example with another database than SQLite, you can adjust the the database connection in [`prisma/schema.prisma`](./prisma/schema.prisma) by reconfiguring the `datasource` block.
240 |
241 | Learn more about the different connection configurations in the [docs](https://www.prisma.io/docs/reference/database-reference/connection-urls).
242 |
243 | Expand for an overview of example configurations with different databases
244 |
245 | ### PostgreSQL
246 |
247 | For PostgreSQL, the connection URL has the following structure:
248 |
249 | ```prisma
250 | datasource db {
251 | provider = "postgresql"
252 | url = "postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=SCHEMA"
253 | }
254 | ```
255 |
256 | Here is an example connection string with a local PostgreSQL database:
257 |
258 | ```prisma
259 | datasource db {
260 | provider = "postgresql"
261 | url = "postgresql://janedoe:mypassword@localhost:5432/notesapi?schema=public"
262 | }
263 | ```
264 |
265 | ### MySQL
266 |
267 | For MySQL, the connection URL has the following structure:
268 |
269 | ```prisma
270 | datasource db {
271 | provider = "mysql"
272 | url = "mysql://USER:PASSWORD@HOST:PORT/DATABASE"
273 | }
274 | ```
275 |
276 | Here is an example connection string with a local MySQL database:
277 |
278 | ```prisma
279 | datasource db {
280 | provider = "mysql"
281 | url = "mysql://janedoe:mypassword@localhost:3306/notesapi"
282 | }
283 | ```
284 |
285 | ### Microsoft SQL Server
286 |
287 | Here is an example connection string with a local Microsoft SQL Server database:
288 |
289 | ```prisma
290 | datasource db {
291 | provider = "sqlserver"
292 | url = "sqlserver://localhost:1433;initial catalog=sample;user=sa;password=mypassword;"
293 | }
294 | ```
295 |
296 | ### MongoDB
297 |
298 | Here is an example connection string with a local MongoDB database:
299 |
300 | ```prisma
301 | datasource db {
302 | provider = "mongodb"
303 | url = "mongodb://USERNAME:PASSWORD@HOST/DATABASE?authSource=admin&retryWrites=true&w=majority"
304 | }
305 | ```
306 |
307 |
308 |
309 | ## Next steps
310 |
311 | - Check out the [Prisma docs](https://www.prisma.io/docs)
312 | - Share your feedback in the [`#product-wishlist`](https://prisma.slack.com/messages/CKQTGR6T0/) channel on the [Prisma Slack](https://slack.prisma.io/)
313 | - Create issues and ask questions on [GitHub](https://github.com/prisma/prisma/)
314 | - Watch our biweekly "What's new in Prisma" livestreams on [Youtube](https://www.youtube.com/channel/UCptAHlN1gdwD89tFM3ENb6w)
315 |
--------------------------------------------------------------------------------
/old:
--------------------------------------------------------------------------------
1 | app.post(`/signup`, async (req, res) => {
2 | const { name, email, posts } = req.body;
3 |
4 | const postData = posts?.map((post: Prisma.PostCreateInput) => {
5 | return { title: post?.title, content: post?.content };
6 | });
7 |
8 | const result = await prisma.user.create({
9 | data: {
10 | name,
11 | email,
12 | posts: {
13 | create: postData,
14 | },
15 | },
16 | });
17 | res.json(result);
18 | });
19 |
20 | app.post(`/post`, async (req, res) => {
21 | const { title, content, authorEmail } = req.body;
22 | const result = await prisma.post.create({
23 | data: {
24 | title,
25 | content,
26 | author: { connect: { email: authorEmail } },
27 | },
28 | });
29 | res.json(result);
30 | });
31 |
32 | app.put("/post/:id/views", async (req, res) => {
33 | const { id } = req.params;
34 |
35 | try {
36 | const post = await prisma.post.update({
37 | where: { id: Number(id) },
38 | data: {
39 | viewCount: {
40 | increment: 1,
41 | },
42 | },
43 | });
44 |
45 | res.json(post);
46 | } catch (error) {
47 | res.json({ error: `Post with ID ${id} does not exist in the database` });
48 | }
49 | });
50 |
51 | app.put("/publish/:id", async (req, res) => {
52 | const { id } = req.params;
53 |
54 | try {
55 | const postData = await prisma.post.findUnique({
56 | where: { id: Number(id) },
57 | select: {
58 | published: true,
59 | },
60 | });
61 |
62 | const updatedPost = await prisma.post.update({
63 | where: { id: Number(id) || undefined },
64 | data: { published: !postData?.published },
65 | });
66 | res.json(updatedPost);
67 | } catch (error) {
68 | res.json({ error: `Post with ID ${id} does not exist in the database` });
69 | }
70 | });
71 |
72 | app.delete(`/post/:id`, async (req, res) => {
73 | const { id } = req.params;
74 | const post = await prisma.post.delete({
75 | where: {
76 | id: Number(id),
77 | },
78 | });
79 | res.json(post);
80 | });
81 |
82 | app.get("/users", async (req, res) => {
83 | const users = await prisma.user.findMany();
84 | res.json(users);
85 | });
86 |
87 | app.get(`/post/:id`, async (req, res) => {
88 | const { id }: { id?: string } = req.params;
89 |
90 | const post = await prisma.post.findUnique({
91 | where: { id: Number(id) },
92 | });
93 | res.json(post);
94 | });
95 |
96 | app.get("/feed", async (req, res) => {
97 | const { searchString, skip, take, orderBy } = req.query;
98 |
99 | const or: Prisma.PostWhereInput = searchString
100 | ? {
101 | OR: [
102 | { title: { contains: searchString as string } },
103 | { content: { contains: searchString as string } },
104 | ],
105 | }
106 | : {};
107 |
108 | const posts = await prisma.post.findMany({
109 | where: {
110 | published: true,
111 | ...or,
112 | },
113 | include: { author: true },
114 | take: Number(take) || undefined,
115 | skip: Number(skip) || undefined,
116 | orderBy: {
117 | updatedAt: orderBy as Prisma.SortOrder,
118 | },
119 | });
120 |
121 | res.json(posts);
122 | });
123 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "rest-express",
3 | "version": "1.0.0",
4 | "license": "MIT",
5 | "scripts": {
6 | "dev": "ts-node src/index.ts",
7 | "seed": "ts-node prisma/seed.ts"
8 | },
9 | "dependencies": {
10 | "@prisma/client": "4.10.1",
11 | "cors": "^2.8.5",
12 | "express": "4.18.2"
13 | },
14 | "devDependencies": {
15 | "@types/cors": "^2.8.13",
16 | "@types/express": "4.17.17",
17 | "@types/node": "18.14.1",
18 | "prisma": "4.10.1",
19 | "ts-node": "10.9.1",
20 | "typescript": "4.9.5"
21 | },
22 | "prisma": {
23 | "seed": "ts-node prisma/seed.ts"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/prisma/dev.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ipenywis/clean-rest-apis/8579071cd0da6168cac64b6243c2ce451193ac43/prisma/dev.db
--------------------------------------------------------------------------------
/prisma/migrations/20230224160826_init/migration.sql:
--------------------------------------------------------------------------------
1 | -- CreateTable
2 | CREATE TABLE "User" (
3 | "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
4 | "email" TEXT NOT NULL,
5 | "name" TEXT
6 | );
7 |
8 | -- CreateTable
9 | CREATE TABLE "Post" (
10 | "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
11 | "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
12 | "updatedAt" DATETIME NOT NULL,
13 | "title" TEXT NOT NULL,
14 | "content" TEXT,
15 | "published" BOOLEAN NOT NULL DEFAULT false,
16 | "viewCount" INTEGER NOT NULL DEFAULT 0,
17 | "authorId" INTEGER,
18 | CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE SET NULL ON UPDATE CASCADE
19 | );
20 |
21 | -- CreateIndex
22 | CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
23 |
--------------------------------------------------------------------------------
/prisma/migrations/migration_lock.toml:
--------------------------------------------------------------------------------
1 | # Please do not edit this file manually
2 | # It should be added in your version-control system (i.e. Git)
3 | provider = "sqlite"
--------------------------------------------------------------------------------
/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "sqlite"
7 | url = "file:./dev.db"
8 | }
9 |
10 | model User {
11 | id Int @id @default(autoincrement())
12 | email String @unique
13 | name String?
14 | posts Post[]
15 | }
16 |
17 | model Post {
18 | id Int @id @default(autoincrement())
19 | createdAt DateTime @default(now())
20 | updatedAt DateTime @updatedAt
21 | title String
22 | content String?
23 | published Boolean @default(false)
24 | viewCount Int @default(0)
25 | author User? @relation(fields: [authorId], references: [id])
26 | authorId Int?
27 | }
28 |
--------------------------------------------------------------------------------
/prisma/seed.ts:
--------------------------------------------------------------------------------
1 | import { PrismaClient, Prisma } from "@prisma/client";
2 |
3 | const prisma = new PrismaClient();
4 |
5 | const userData: Prisma.UserCreateInput[] = [
6 | {
7 | name: "Alice",
8 | email: "alice@prisma.io",
9 | posts: {
10 | create: [
11 | {
12 | title: "Join the Prisma Slack",
13 | content: "https://slack.prisma.io",
14 | published: true,
15 | },
16 | ],
17 | },
18 | },
19 | {
20 | name: "Nilu",
21 | email: "nilu@prisma.io",
22 | posts: {
23 | create: [
24 | {
25 | title: "Follow Prisma on Twitter",
26 | content: "https://www.twitter.com/prisma",
27 | published: true,
28 | },
29 | ],
30 | },
31 | },
32 | {
33 | name: "Mahmoud",
34 | email: "mahmoud@prisma.io",
35 | posts: {
36 | create: [
37 | {
38 | title: "Ask a question about Prisma on GitHub",
39 | content: "https://www.github.com/prisma/prisma/discussions",
40 | published: true,
41 | },
42 | {
43 | title: "Prisma on YouTube",
44 | content: "https://pris.ly/youtube",
45 | },
46 | ],
47 | },
48 | },
49 | ];
50 |
51 | async function main() {
52 | console.log(`Start seeding ...`);
53 | for (const u of userData) {
54 | const user = await prisma.user.create({
55 | data: u,
56 | });
57 | console.log(`Created user with id: ${user.id}`);
58 | }
59 | console.log(`Seeding finished.`);
60 | }
61 |
62 | main()
63 | .then(async () => {
64 | await prisma.$disconnect();
65 | })
66 | .catch(async (e) => {
67 | console.error(e);
68 | await prisma.$disconnect();
69 | process.exit(1);
70 | });
71 |
--------------------------------------------------------------------------------
/src/apis/Cache.ts:
--------------------------------------------------------------------------------
1 | import { NextFunction, Request, Response } from "express";
2 | import app from "../app";
3 |
4 | // ❌ Bad
5 |
6 | // NOT USING CACHE AT ALL OR NOT USING IT PROPERLY!!!
7 |
8 | // ✅ Good
9 |
10 | const setCache = function (req: Request, res: Response, next: NextFunction) {
11 | // Keep cahce for 5 minutes (in seconds)
12 | const period = 60 * 5;
13 |
14 | // you only want to cache for GET requests
15 | if (req.method == "GET") {
16 | res.set("Cache-control", `public, max-age=${period}`);
17 | } else {
18 | // for the other requests set strict no caching parameters
19 | res.set("Cache-control", `no-store`);
20 | }
21 |
22 | // remember to call next() to pass on the request
23 | next();
24 | };
25 |
26 | app.use(setCache);
27 |
--------------------------------------------------------------------------------
/src/apis/HttpMethods.ts:
--------------------------------------------------------------------------------
1 | import { PrismaClient } from "@prisma/client";
2 | import app, { router } from "../app";
3 |
4 | const prisma = new PrismaClient();
5 |
6 | // ❌ Bad
7 |
8 | router.get("/users", (req, res) => {});
9 |
10 | // router.get("/users/:id", (req, res) => {});
11 |
12 | //Creating new User 🤦♂️
13 | router.get("/users/new", (req, res) => {});
14 |
15 | //Deleting User 🤦♂️
16 | router.get("/users/delete", (req, res) => {});
17 |
18 | //Deleting User 🤦♂️
19 | router.get("/users/update", (req, res) => {});
20 |
21 | // ✅ Good
22 |
23 | router.get("/users", (req, res) => {});
24 |
25 | //This meant to return, so it's a GET
26 | router.get("/users/:id", async (req, res) => {
27 | const { id } = req.params;
28 |
29 | const drafts = await prisma.user.findUnique({
30 | where: {
31 | id: Number(id),
32 | },
33 | });
34 |
35 | res.json(drafts);
36 | });
37 |
38 | router.post("/users", (req, res) => {});
39 | //The HTTP method is the deciding factor
40 | router.delete("/users", (req, res) => {});
41 |
42 | router.put("/users", (req, res) => {});
43 |
--------------------------------------------------------------------------------
/src/apis/Naming.ts:
--------------------------------------------------------------------------------
1 | import app, { router } from "../app";
2 |
3 | // ❌ Bad
4 |
5 | //Don't use verbs
6 | router.get("/getPosts", (req, res) => {});
7 |
8 | //Split to use params
9 | router.get("/postsById", (req, res) => {});
10 |
11 | //Prepend version
12 | router.get("/postsByIdV1", (req, res) => {});
13 |
14 | //Prepend version
15 | router.get("/posts-ForUsers", (req, res) => {});
16 |
17 | router.get("/storeinventory", (req, res) => {});
18 |
19 | // ✅ Good
20 |
21 | //Pluralized nouns for resources
22 | router.get("/posts", (req, res) => {});
23 |
24 | router.get("/posts/:id", (req, res) => {});
25 |
26 | //Use forward slash (/) to indicate hierarchical relationships
27 | router.get("/posts/:id/user", (req, res) => {});
28 |
29 | router.get("/posts/:id/user", (req, res) => {});
30 |
31 | //Easier to read
32 | router.get("/store-inventory", (req, res) => {});
33 |
--------------------------------------------------------------------------------
/src/apis/Optimization.ts:
--------------------------------------------------------------------------------
1 | import { PrismaClient } from "@prisma/client";
2 | import { router } from "../app";
3 |
4 | const prisma = new PrismaClient();
5 |
6 | // ❌ Bad
7 |
8 | router.get("/posts", async (req, res) => {
9 | const posts = await prisma.post.findMany({
10 | where: {
11 | published: true,
12 | },
13 | include: { author: true },
14 | });
15 |
16 | res.json(posts);
17 | });
18 |
19 | // ✅ Good
20 |
21 | router.get("/posts", async (req, res) => {
22 | const posts = await prisma.post.findMany({
23 | where: {
24 | published: true,
25 | },
26 | //Include the needed info to reduce the number of HTTP Requests
27 | //This will fetch the author object and put it in the response
28 | include: { author: true },
29 | });
30 |
31 | res.json(posts);
32 | });
33 |
--------------------------------------------------------------------------------
/src/apis/StatusCodes.ts:
--------------------------------------------------------------------------------
1 | import { Prisma, PrismaClient } from "@prisma/client";
2 | import app, { router } from "../app";
3 |
4 | const prisma = new PrismaClient();
5 |
6 | // ❌ Bad
7 |
8 | router.get("/posts/:id", async (req, res) => {
9 | const { id } = req.params;
10 |
11 | try {
12 | if (!id) throw Error();
13 | const post = await prisma.post.findFirstOrThrow({
14 | where: { id: parseInt(id) },
15 | });
16 |
17 | res.status(200).json({ post });
18 | } catch (err) {
19 | //Wrong code (400 = BAD Request)
20 | res.status(404).json({ message: "No posts found with provided id" });
21 | }
22 | });
23 |
24 | // ✅ Good
25 |
26 | router.get("/posts/:id", async (req, res) => {
27 | const { id } = req.params;
28 |
29 | try {
30 | if (!id) throw Error();
31 | console.log("Here: ", id);
32 | const post = await prisma.post.findFirstOrThrow({
33 | where: { id: parseInt(id) },
34 | });
35 |
36 | res.status(200).json({ post });
37 | } catch (err) {
38 | //404 for Not Found
39 | res.status(404).json({ message: "No posts found with provided id" });
40 | }
41 | });
42 |
--------------------------------------------------------------------------------
/src/app.ts:
--------------------------------------------------------------------------------
1 | import express, { Router } from "express";
2 |
3 | const app = express();
4 | export const router = Router();
5 |
6 | // ✅ Good (Always version your APIs)
7 | app.use("/api/v1", router);
8 |
9 | export default app;
10 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | import { Prisma, PrismaClient } from "@prisma/client";
2 | import express from "express";
3 | import cors from "cors";
4 |
5 | const prisma = new PrismaClient();
6 |
7 | import app from "./app";
8 | import "./apis/StatusCodes";
9 | import "./apis/HttpMethods";
10 | import "./apis/Optimization";
11 |
12 | app.use(express.json());
13 |
14 | app.use(cors());
15 |
16 | const server = app.listen(3000, () =>
17 | console.log(`
18 | 🚀 Server ready at: http://localhost:3000
19 | ⭐️ See sample requests: http://pris.ly/e/ts/rest-express#3-using-the-rest-api`)
20 | );
21 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | "@cspotcode/source-map-support@^0.8.0":
6 | version "0.8.1"
7 | resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
8 | integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==
9 | dependencies:
10 | "@jridgewell/trace-mapping" "0.3.9"
11 |
12 | "@jridgewell/resolve-uri@^3.0.3":
13 | version "3.1.0"
14 | resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78"
15 | integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==
16 |
17 | "@jridgewell/sourcemap-codec@^1.4.10":
18 | version "1.4.14"
19 | resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24"
20 | integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
21 |
22 | "@jridgewell/trace-mapping@0.3.9":
23 | version "0.3.9"
24 | resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9"
25 | integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==
26 | dependencies:
27 | "@jridgewell/resolve-uri" "^3.0.3"
28 | "@jridgewell/sourcemap-codec" "^1.4.10"
29 |
30 | "@prisma/client@4.10.1":
31 | version "4.10.1"
32 | resolved "https://registry.yarnpkg.com/@prisma/client/-/client-4.10.1.tgz#c47fd54661ee74b174cee63e9dc418ecf57a6ccd"
33 | integrity sha512-VonXLJZybdt8e5XZH5vnIGCRNnIh6OMX1FS3H/yzMGLT3STj5TJ/OkMcednrvELgk8PK89Vo3aSh51MWNO0axA==
34 | dependencies:
35 | "@prisma/engines-version" "4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19"
36 |
37 | "@prisma/engines-version@4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19":
38 | version "4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19"
39 | resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19.tgz#312359d9d00e39e323136d0270876293d315658e"
40 | integrity sha512-tsjTho7laDhf9EJ9EnDxAPEf7yrigSMDhniXeU4YoWc7azHAs4GPxRi2P9LTFonmHkJLMOLjR77J1oIP8Ife1w==
41 |
42 | "@prisma/engines@4.10.1":
43 | version "4.10.1"
44 | resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-4.10.1.tgz#c7062747f254e5d5fce98a8cae566c25f9f29fb2"
45 | integrity sha512-B3tcTxjx196nuAu1GOTKO9cGPUgTFHYRdkPkTS4m5ptb2cejyBlH9X7GOfSt3xlI7p4zAJDshJP4JJivCg9ouA==
46 |
47 | "@tsconfig/node10@^1.0.7":
48 | version "1.0.9"
49 | resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.9.tgz#df4907fc07a886922637b15e02d4cebc4c0021b2"
50 | integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==
51 |
52 | "@tsconfig/node12@^1.0.7":
53 | version "1.0.11"
54 | resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d"
55 | integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==
56 |
57 | "@tsconfig/node14@^1.0.0":
58 | version "1.0.3"
59 | resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1"
60 | integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==
61 |
62 | "@tsconfig/node16@^1.0.2":
63 | version "1.0.3"
64 | resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.3.tgz#472eaab5f15c1ffdd7f8628bd4c4f753995ec79e"
65 | integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==
66 |
67 | "@types/body-parser@*":
68 | version "1.19.2"
69 | resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.2.tgz#aea2059e28b7658639081347ac4fab3de166e6f0"
70 | integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==
71 | dependencies:
72 | "@types/connect" "*"
73 | "@types/node" "*"
74 |
75 | "@types/connect@*":
76 | version "3.4.35"
77 | resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.35.tgz#5fcf6ae445e4021d1fc2219a4873cc73a3bb2ad1"
78 | integrity sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==
79 | dependencies:
80 | "@types/node" "*"
81 |
82 | "@types/cors@^2.8.13":
83 | version "2.8.13"
84 | resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.13.tgz#b8ade22ba455a1b8cb3b5d3f35910fd204f84f94"
85 | integrity sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==
86 | dependencies:
87 | "@types/node" "*"
88 |
89 | "@types/express-serve-static-core@^4.17.33":
90 | version "4.17.33"
91 | resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz#de35d30a9d637dc1450ad18dd583d75d5733d543"
92 | integrity sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==
93 | dependencies:
94 | "@types/node" "*"
95 | "@types/qs" "*"
96 | "@types/range-parser" "*"
97 |
98 | "@types/express@4.17.17":
99 | version "4.17.17"
100 | resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.17.tgz#01d5437f6ef9cfa8668e616e13c2f2ac9a491ae4"
101 | integrity sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==
102 | dependencies:
103 | "@types/body-parser" "*"
104 | "@types/express-serve-static-core" "^4.17.33"
105 | "@types/qs" "*"
106 | "@types/serve-static" "*"
107 |
108 | "@types/mime@*":
109 | version "3.0.1"
110 | resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10"
111 | integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==
112 |
113 | "@types/node@*", "@types/node@18.14.1":
114 | version "18.14.1"
115 | resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.1.tgz#90dad8476f1e42797c49d6f8b69aaf9f876fc69f"
116 | integrity sha512-QH+37Qds3E0eDlReeboBxfHbX9omAcBCXEzswCu6jySP642jiM3cYSIkU/REqwhCUqXdonHFuBfJDiAJxMNhaQ==
117 |
118 | "@types/qs@*":
119 | version "6.9.7"
120 | resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb"
121 | integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==
122 |
123 | "@types/range-parser@*":
124 | version "1.2.4"
125 | resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc"
126 | integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==
127 |
128 | "@types/serve-static@*":
129 | version "1.15.1"
130 | resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.1.tgz#86b1753f0be4f9a1bee68d459fcda5be4ea52b5d"
131 | integrity sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==
132 | dependencies:
133 | "@types/mime" "*"
134 | "@types/node" "*"
135 |
136 | accepts@~1.3.8:
137 | version "1.3.8"
138 | resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e"
139 | integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==
140 | dependencies:
141 | mime-types "~2.1.34"
142 | negotiator "0.6.3"
143 |
144 | acorn-walk@^8.1.1:
145 | version "8.2.0"
146 | resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1"
147 | integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==
148 |
149 | acorn@^8.4.1:
150 | version "8.8.2"
151 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a"
152 | integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==
153 |
154 | arg@^4.1.0:
155 | version "4.1.3"
156 | resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
157 | integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
158 |
159 | array-flatten@1.1.1:
160 | version "1.1.1"
161 | resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
162 | integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==
163 |
164 | body-parser@1.20.1:
165 | version "1.20.1"
166 | resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668"
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 | bytes@3.1.2:
183 | version "3.1.2"
184 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
185 | integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==
186 |
187 | call-bind@^1.0.0:
188 | version "1.0.2"
189 | resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
190 | integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==
191 | dependencies:
192 | function-bind "^1.1.1"
193 | get-intrinsic "^1.0.2"
194 |
195 | content-disposition@0.5.4:
196 | version "0.5.4"
197 | resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe"
198 | integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==
199 | dependencies:
200 | safe-buffer "5.2.1"
201 |
202 | content-type@~1.0.4:
203 | version "1.0.5"
204 | resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
205 | integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
206 |
207 | cookie-signature@1.0.6:
208 | version "1.0.6"
209 | resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
210 | integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==
211 |
212 | cookie@0.5.0:
213 | version "0.5.0"
214 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b"
215 | integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==
216 |
217 | cors@^2.8.5:
218 | version "2.8.5"
219 | resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29"
220 | integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==
221 | dependencies:
222 | object-assign "^4"
223 | vary "^1"
224 |
225 | create-require@^1.1.0:
226 | version "1.1.1"
227 | resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
228 | integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
229 |
230 | debug@2.6.9:
231 | version "2.6.9"
232 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
233 | integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
234 | dependencies:
235 | ms "2.0.0"
236 |
237 | depd@2.0.0:
238 | version "2.0.0"
239 | resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
240 | integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
241 |
242 | destroy@1.2.0:
243 | version "1.2.0"
244 | resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
245 | integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==
246 |
247 | diff@^4.0.1:
248 | version "4.0.2"
249 | resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
250 | integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
251 |
252 | ee-first@1.1.1:
253 | version "1.1.1"
254 | resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
255 | integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
256 |
257 | encodeurl@~1.0.2:
258 | version "1.0.2"
259 | resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
260 | integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==
261 |
262 | escape-html@~1.0.3:
263 | version "1.0.3"
264 | resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
265 | integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
266 |
267 | etag@~1.8.1:
268 | version "1.8.1"
269 | resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
270 | integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==
271 |
272 | express@4.18.2:
273 | version "4.18.2"
274 | resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
275 | integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==
276 | dependencies:
277 | accepts "~1.3.8"
278 | array-flatten "1.1.1"
279 | body-parser "1.20.1"
280 | content-disposition "0.5.4"
281 | content-type "~1.0.4"
282 | cookie "0.5.0"
283 | cookie-signature "1.0.6"
284 | debug "2.6.9"
285 | depd "2.0.0"
286 | encodeurl "~1.0.2"
287 | escape-html "~1.0.3"
288 | etag "~1.8.1"
289 | finalhandler "1.2.0"
290 | fresh "0.5.2"
291 | http-errors "2.0.0"
292 | merge-descriptors "1.0.1"
293 | methods "~1.1.2"
294 | on-finished "2.4.1"
295 | parseurl "~1.3.3"
296 | path-to-regexp "0.1.7"
297 | proxy-addr "~2.0.7"
298 | qs "6.11.0"
299 | range-parser "~1.2.1"
300 | safe-buffer "5.2.1"
301 | send "0.18.0"
302 | serve-static "1.15.0"
303 | setprototypeof "1.2.0"
304 | statuses "2.0.1"
305 | type-is "~1.6.18"
306 | utils-merge "1.0.1"
307 | vary "~1.1.2"
308 |
309 | finalhandler@1.2.0:
310 | version "1.2.0"
311 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32"
312 | integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==
313 | dependencies:
314 | debug "2.6.9"
315 | encodeurl "~1.0.2"
316 | escape-html "~1.0.3"
317 | on-finished "2.4.1"
318 | parseurl "~1.3.3"
319 | statuses "2.0.1"
320 | unpipe "~1.0.0"
321 |
322 | forwarded@0.2.0:
323 | version "0.2.0"
324 | resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
325 | integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
326 |
327 | fresh@0.5.2:
328 | version "0.5.2"
329 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
330 | integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==
331 |
332 | function-bind@^1.1.1:
333 | version "1.1.1"
334 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
335 | integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
336 |
337 | get-intrinsic@^1.0.2:
338 | version "1.2.0"
339 | resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz#7ad1dc0535f3a2904bba075772763e5051f6d05f"
340 | integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==
341 | dependencies:
342 | function-bind "^1.1.1"
343 | has "^1.0.3"
344 | has-symbols "^1.0.3"
345 |
346 | has-symbols@^1.0.3:
347 | version "1.0.3"
348 | resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
349 | integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
350 |
351 | has@^1.0.3:
352 | version "1.0.3"
353 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
354 | integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
355 | dependencies:
356 | function-bind "^1.1.1"
357 |
358 | http-errors@2.0.0:
359 | version "2.0.0"
360 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
361 | integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==
362 | dependencies:
363 | depd "2.0.0"
364 | inherits "2.0.4"
365 | setprototypeof "1.2.0"
366 | statuses "2.0.1"
367 | toidentifier "1.0.1"
368 |
369 | iconv-lite@0.4.24:
370 | version "0.4.24"
371 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
372 | integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==
373 | dependencies:
374 | safer-buffer ">= 2.1.2 < 3"
375 |
376 | inherits@2.0.4:
377 | version "2.0.4"
378 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
379 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
380 |
381 | ipaddr.js@1.9.1:
382 | version "1.9.1"
383 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
384 | integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==
385 |
386 | make-error@^1.1.1:
387 | version "1.3.6"
388 | resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
389 | integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
390 |
391 | media-typer@0.3.0:
392 | version "0.3.0"
393 | resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
394 | integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==
395 |
396 | merge-descriptors@1.0.1:
397 | version "1.0.1"
398 | resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
399 | integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==
400 |
401 | methods@~1.1.2:
402 | version "1.1.2"
403 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
404 | integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
405 |
406 | mime-db@1.52.0:
407 | version "1.52.0"
408 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
409 | integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
410 |
411 | mime-types@~2.1.24, mime-types@~2.1.34:
412 | version "2.1.35"
413 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
414 | integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
415 | dependencies:
416 | mime-db "1.52.0"
417 |
418 | mime@1.6.0:
419 | version "1.6.0"
420 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
421 | integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
422 |
423 | ms@2.0.0:
424 | version "2.0.0"
425 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
426 | integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==
427 |
428 | ms@2.1.3:
429 | version "2.1.3"
430 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
431 | integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
432 |
433 | negotiator@0.6.3:
434 | version "0.6.3"
435 | resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
436 | integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
437 |
438 | object-assign@^4:
439 | version "4.1.1"
440 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
441 | integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
442 |
443 | object-inspect@^1.9.0:
444 | version "1.12.3"
445 | resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9"
446 | integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==
447 |
448 | on-finished@2.4.1:
449 | version "2.4.1"
450 | resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"
451 | integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==
452 | dependencies:
453 | ee-first "1.1.1"
454 |
455 | parseurl@~1.3.3:
456 | version "1.3.3"
457 | resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"
458 | integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==
459 |
460 | path-to-regexp@0.1.7:
461 | version "0.1.7"
462 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
463 | integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==
464 |
465 | prisma@4.10.1:
466 | version "4.10.1"
467 | resolved "https://registry.yarnpkg.com/prisma/-/prisma-4.10.1.tgz#88084695d7b364ae6bebf93d5006f84439c4e7d1"
468 | integrity sha512-0jDxgg+DruB1kHVNlcspXQB9au62IFfVg9drkhzXudszHNUAQn0lVuu+T8np0uC2z1nKD5S3qPeCyR8u5YFLnA==
469 | dependencies:
470 | "@prisma/engines" "4.10.1"
471 |
472 | proxy-addr@~2.0.7:
473 | version "2.0.7"
474 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025"
475 | integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==
476 | dependencies:
477 | forwarded "0.2.0"
478 | ipaddr.js "1.9.1"
479 |
480 | qs@6.11.0:
481 | version "6.11.0"
482 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a"
483 | integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==
484 | dependencies:
485 | side-channel "^1.0.4"
486 |
487 | range-parser@~1.2.1:
488 | version "1.2.1"
489 | resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
490 | integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
491 |
492 | raw-body@2.5.1:
493 | version "2.5.1"
494 | resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857"
495 | integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==
496 | dependencies:
497 | bytes "3.1.2"
498 | http-errors "2.0.0"
499 | iconv-lite "0.4.24"
500 | unpipe "1.0.0"
501 |
502 | safe-buffer@5.2.1:
503 | version "5.2.1"
504 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
505 | integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
506 |
507 | "safer-buffer@>= 2.1.2 < 3":
508 | version "2.1.2"
509 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
510 | integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
511 |
512 | send@0.18.0:
513 | version "0.18.0"
514 | resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be"
515 | integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==
516 | dependencies:
517 | debug "2.6.9"
518 | depd "2.0.0"
519 | destroy "1.2.0"
520 | encodeurl "~1.0.2"
521 | escape-html "~1.0.3"
522 | etag "~1.8.1"
523 | fresh "0.5.2"
524 | http-errors "2.0.0"
525 | mime "1.6.0"
526 | ms "2.1.3"
527 | on-finished "2.4.1"
528 | range-parser "~1.2.1"
529 | statuses "2.0.1"
530 |
531 | serve-static@1.15.0:
532 | version "1.15.0"
533 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540"
534 | integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==
535 | dependencies:
536 | encodeurl "~1.0.2"
537 | escape-html "~1.0.3"
538 | parseurl "~1.3.3"
539 | send "0.18.0"
540 |
541 | setprototypeof@1.2.0:
542 | version "1.2.0"
543 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
544 | integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
545 |
546 | side-channel@^1.0.4:
547 | version "1.0.4"
548 | resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
549 | integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==
550 | dependencies:
551 | call-bind "^1.0.0"
552 | get-intrinsic "^1.0.2"
553 | object-inspect "^1.9.0"
554 |
555 | statuses@2.0.1:
556 | version "2.0.1"
557 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
558 | integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
559 |
560 | toidentifier@1.0.1:
561 | version "1.0.1"
562 | resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"
563 | integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==
564 |
565 | ts-node@10.9.1:
566 | version "10.9.1"
567 | resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b"
568 | integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==
569 | dependencies:
570 | "@cspotcode/source-map-support" "^0.8.0"
571 | "@tsconfig/node10" "^1.0.7"
572 | "@tsconfig/node12" "^1.0.7"
573 | "@tsconfig/node14" "^1.0.0"
574 | "@tsconfig/node16" "^1.0.2"
575 | acorn "^8.4.1"
576 | acorn-walk "^8.1.1"
577 | arg "^4.1.0"
578 | create-require "^1.1.0"
579 | diff "^4.0.1"
580 | make-error "^1.1.1"
581 | v8-compile-cache-lib "^3.0.1"
582 | yn "3.1.1"
583 |
584 | type-is@~1.6.18:
585 | version "1.6.18"
586 | resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"
587 | integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==
588 | dependencies:
589 | media-typer "0.3.0"
590 | mime-types "~2.1.24"
591 |
592 | typescript@4.9.5:
593 | version "4.9.5"
594 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
595 | integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
596 |
597 | unpipe@1.0.0, unpipe@~1.0.0:
598 | version "1.0.0"
599 | resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
600 | integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
601 |
602 | utils-merge@1.0.1:
603 | version "1.0.1"
604 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
605 | integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==
606 |
607 | v8-compile-cache-lib@^3.0.1:
608 | version "3.0.1"
609 | resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
610 | integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
611 |
612 | vary@^1, vary@~1.1.2:
613 | version "1.1.2"
614 | resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
615 | integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
616 |
617 | yn@3.1.1:
618 | version "3.1.1"
619 | resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
620 | integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
621 |
--------------------------------------------------------------------------------