├── .DS_Store
├── .gitignore
├── api
├── .DS_Store
├── .env
├── .env.example
├── Dockerfile
├── LICENSE
├── README.md
├── package-lock.json
├── package.json
└── src
│ ├── config
│ └── database.js
│ ├── controllers
│ ├── authController.js
│ └── transactionController.js
│ ├── middlewares
│ ├── authMiddleware.js
│ └── validationSchemaMiddleware.js
│ ├── repositories
│ ├── authRepository.js
│ └── transactionRepository.js
│ ├── routes
│ ├── authRoutes.js
│ └── transactionRoutes.js
│ ├── schemas
│ ├── Transaction.js
│ ├── User.js
│ └── validation
│ │ ├── AuthUser.js
│ │ ├── CreateTransaction.js
│ │ └── CreateUser.js
│ ├── server.js
│ └── services
│ ├── authService.js
│ └── transactionService.js
├── docker-compose.yml
├── nginx
├── Dockerfile
└── nginx.conf
└── spa
├── .env
├── .eslintrc.cjs
├── Dockerfile
├── index.html
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
└── icon.png
├── src
├── App.jsx
├── assets
│ └── logo.png
├── components
│ ├── Button.jsx
│ ├── ErrorInput.jsx
│ └── Input.jsx
├── index.css
├── main.jsx
├── pages
│ ├── ErrorPage.jsx
│ ├── Home.jsx
│ ├── NewTransaction.jsx
│ ├── Signin.jsx
│ └── Signup.jsx
├── schemas
│ ├── SigninSchema.js
│ ├── SignupSchema.js
│ └── TransactionSchema.js
└── services
│ ├── transactions.js
│ └── user.js
├── tailwind.config.js
└── vite.config.js
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codethi/ThiCodeWallet/2ccaf80dc035a2a05d66f621e9ca2ac5806f40c0/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | api/logs
3 | api/*.log
4 | api/npm-debug.log*
5 | api/yarn-debug.log*
6 | api/yarn-error.log*
7 | api/lerna-debug.log*
8 | api/.pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | api/report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | api/pids
15 | api/*.pid
16 | api/*.seed
17 | api/*.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | api/ib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | api/coverage
24 | api/*.lcov
25 |
26 | # nyc test coverage
27 | api/.nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | api/.grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | api/bower_components
34 |
35 | # node-waf configuration
36 | api/.lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | api/build/Release
40 |
41 | # Dependency directories
42 | api/node_modules/
43 | api/jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | api/web_modules/
47 |
48 | # TypeScript cache
49 | api/*.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | api/.npm
53 |
54 | # Optional eslint cache
55 | api/.eslintcache
56 |
57 | # Optional stylelint cache
58 | api/.stylelintcache
59 |
60 | # Microbundle cache
61 | api/.rpt2_cache/
62 | api/.rts2_cache_cjs/
63 | api/.rts2_cache_es/
64 | api/.rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | api/.node_repl_history
68 |
69 | # Output of 'npm pack'
70 | api/*.tgz
71 |
72 | # Yarn Integrity file
73 | api/.yarn-integrity
74 |
75 | # dotenv environment variable files
76 | # api/.env
77 | # api/.env.development.local
78 | # api/.env.test.local
79 | # api/.env.production.local
80 | # api/.env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | api/.cache
84 | api/.parcel-cache
85 |
86 | # Next.js build output
87 | api/.next
88 | api/out
89 |
90 | # Nuxt.js build / generate output
91 | api/.nuxt
92 | api/dist
93 |
94 | # Gatsby files
95 | api/.cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | api/.vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | api/.temp
105 | api/.cache
106 |
107 | # Docusaurus cache and generated files
108 | api/.docusaurus
109 |
110 | # Serverless directories
111 | api/.serverless/
112 |
113 | # FuseBox cache
114 | api/.fusebox/
115 |
116 | # DynamoDB Local files
117 | api/.dynamodb/
118 |
119 | # TernJS port file
120 | api/.tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | api/.vscode-test
124 |
125 | # yarn v2
126 | api/.yarn/cache
127 | api/.yarn/unplugged
128 | api/.yarn/build-state.yml
129 | api/.yarn/install-state.gz
130 | api/.pnp.*
131 |
132 | # Logs
133 | spa/logs
134 | spa/*.log
135 | spa/npm-debug.log*
136 | spa/yarn-debug.log*
137 | spa/yarn-error.log*
138 | spa/pnpm-debug.log*
139 | spa/lerna-debug.log*
140 |
141 | spa/node_modules
142 | spa/dist
143 | spa/dist-ssr
144 | spa/*.local
145 |
146 | # Editor directories and files
147 | spa/.vscode/*
148 | spa/!.vscode/extensions.json
149 | spa/.idea
150 | spa/.DS_Store
151 | spa/*.suo
152 | spa/*.ntvs*
153 | spa/*.njsproj
154 | spa/*.sln
155 | spa/*.sw?
156 |
--------------------------------------------------------------------------------
/api/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codethi/ThiCodeWallet/2ccaf80dc035a2a05d66f621e9ca2ac5806f40c0/api/.DS_Store
--------------------------------------------------------------------------------
/api/.env:
--------------------------------------------------------------------------------
1 | DATABASE_URI= mongodb://mongo-wallet:27017/wallet
2 | PORT= 5002
3 | SECRET= teste1234
--------------------------------------------------------------------------------
/api/.env.example:
--------------------------------------------------------------------------------
1 | DATABASE_URI=
2 | PORT=
3 | SECRET=
--------------------------------------------------------------------------------
/api/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:latest
2 |
3 | WORKDIR /api
4 |
5 | COPY . .
6 |
7 | RUN rm -rf node_modules
8 | RUN npm i
9 |
10 | CMD ["npm", "start"]
11 |
12 | EXPOSE 5002
--------------------------------------------------------------------------------
/api/LICENSE:
--------------------------------------------------------------------------------
1 | Mozilla Public License Version 2.0
2 | ==================================
3 |
4 | 1. Definitions
5 | --------------
6 |
7 | 1.1. "Contributor"
8 | means each individual or legal entity that creates, contributes to
9 | the creation of, or owns Covered Software.
10 |
11 | 1.2. "Contributor Version"
12 | means the combination of the Contributions of others (if any) used
13 | by a Contributor and that particular Contributor's Contribution.
14 |
15 | 1.3. "Contribution"
16 | means Covered Software of a particular Contributor.
17 |
18 | 1.4. "Covered Software"
19 | means Source Code Form to which the initial Contributor has attached
20 | the notice in Exhibit A, the Executable Form of such Source Code
21 | Form, and Modifications of such Source Code Form, in each case
22 | including portions thereof.
23 |
24 | 1.5. "Incompatible With Secondary Licenses"
25 | means
26 |
27 | (a) that the initial Contributor has attached the notice described
28 | in Exhibit B to the Covered Software; or
29 |
30 | (b) that the Covered Software was made available under the terms of
31 | version 1.1 or earlier of the License, but not also under the
32 | terms of a Secondary License.
33 |
34 | 1.6. "Executable Form"
35 | means any form of the work other than Source Code Form.
36 |
37 | 1.7. "Larger Work"
38 | means a work that combines Covered Software with other material, in
39 | a separate file or files, that is not Covered Software.
40 |
41 | 1.8. "License"
42 | means this document.
43 |
44 | 1.9. "Licensable"
45 | means having the right to grant, to the maximum extent possible,
46 | whether at the time of the initial grant or subsequently, any and
47 | all of the rights conveyed by this License.
48 |
49 | 1.10. "Modifications"
50 | means any of the following:
51 |
52 | (a) any file in Source Code Form that results from an addition to,
53 | deletion from, or modification of the contents of Covered
54 | Software; or
55 |
56 | (b) any new file in Source Code Form that contains any Covered
57 | Software.
58 |
59 | 1.11. "Patent Claims" of a Contributor
60 | means any patent claim(s), including without limitation, method,
61 | process, and apparatus claims, in any patent Licensable by such
62 | Contributor that would be infringed, but for the grant of the
63 | License, by the making, using, selling, offering for sale, having
64 | made, import, or transfer of either its Contributions or its
65 | Contributor Version.
66 |
67 | 1.12. "Secondary License"
68 | means either the GNU General Public License, Version 2.0, the GNU
69 | Lesser General Public License, Version 2.1, the GNU Affero General
70 | Public License, Version 3.0, or any later versions of those
71 | licenses.
72 |
73 | 1.13. "Source Code Form"
74 | means the form of the work preferred for making modifications.
75 |
76 | 1.14. "You" (or "Your")
77 | means an individual or a legal entity exercising rights under this
78 | License. For legal entities, "You" includes any entity that
79 | controls, is controlled by, or is under common control with You. For
80 | purposes of this definition, "control" means (a) the power, direct
81 | or indirect, to cause the direction or management of such entity,
82 | whether by contract or otherwise, or (b) ownership of more than
83 | fifty percent (50%) of the outstanding shares or beneficial
84 | ownership of such entity.
85 |
86 | 2. License Grants and Conditions
87 | --------------------------------
88 |
89 | 2.1. Grants
90 |
91 | Each Contributor hereby grants You a world-wide, royalty-free,
92 | non-exclusive license:
93 |
94 | (a) under intellectual property rights (other than patent or trademark)
95 | Licensable by such Contributor to use, reproduce, make available,
96 | modify, display, perform, distribute, and otherwise exploit its
97 | Contributions, either on an unmodified basis, with Modifications, or
98 | as part of a Larger Work; and
99 |
100 | (b) under Patent Claims of such Contributor to make, use, sell, offer
101 | for sale, have made, import, and otherwise transfer either its
102 | Contributions or its Contributor Version.
103 |
104 | 2.2. Effective Date
105 |
106 | The licenses granted in Section 2.1 with respect to any Contribution
107 | become effective for each Contribution on the date the Contributor first
108 | distributes such Contribution.
109 |
110 | 2.3. Limitations on Grant Scope
111 |
112 | The licenses granted in this Section 2 are the only rights granted under
113 | this License. No additional rights or licenses will be implied from the
114 | distribution or licensing of Covered Software under this License.
115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a
116 | Contributor:
117 |
118 | (a) for any code that a Contributor has removed from Covered Software;
119 | or
120 |
121 | (b) for infringements caused by: (i) Your and any other third party's
122 | modifications of Covered Software, or (ii) the combination of its
123 | Contributions with other software (except as part of its Contributor
124 | Version); or
125 |
126 | (c) under Patent Claims infringed by Covered Software in the absence of
127 | its Contributions.
128 |
129 | This License does not grant any rights in the trademarks, service marks,
130 | or logos of any Contributor (except as may be necessary to comply with
131 | the notice requirements in Section 3.4).
132 |
133 | 2.4. Subsequent Licenses
134 |
135 | No Contributor makes additional grants as a result of Your choice to
136 | distribute the Covered Software under a subsequent version of this
137 | License (see Section 10.2) or under the terms of a Secondary License (if
138 | permitted under the terms of Section 3.3).
139 |
140 | 2.5. Representation
141 |
142 | Each Contributor represents that the Contributor believes its
143 | Contributions are its original creation(s) or it has sufficient rights
144 | to grant the rights to its Contributions conveyed by this License.
145 |
146 | 2.6. Fair Use
147 |
148 | This License is not intended to limit any rights You have under
149 | applicable copyright doctrines of fair use, fair dealing, or other
150 | equivalents.
151 |
152 | 2.7. Conditions
153 |
154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155 | in Section 2.1.
156 |
157 | 3. Responsibilities
158 | -------------------
159 |
160 | 3.1. Distribution of Source Form
161 |
162 | All distribution of Covered Software in Source Code Form, including any
163 | Modifications that You create or to which You contribute, must be under
164 | the terms of this License. You must inform recipients that the Source
165 | Code Form of the Covered Software is governed by the terms of this
166 | License, and how they can obtain a copy of this License. You may not
167 | attempt to alter or restrict the recipients' rights in the Source Code
168 | Form.
169 |
170 | 3.2. Distribution of Executable Form
171 |
172 | If You distribute Covered Software in Executable Form then:
173 |
174 | (a) such Covered Software must also be made available in Source Code
175 | Form, as described in Section 3.1, and You must inform recipients of
176 | the Executable Form how they can obtain a copy of such Source Code
177 | Form by reasonable means in a timely manner, at a charge no more
178 | than the cost of distribution to the recipient; and
179 |
180 | (b) You may distribute such Executable Form under the terms of this
181 | License, or sublicense it under different terms, provided that the
182 | license for the Executable Form does not attempt to limit or alter
183 | the recipients' rights in the Source Code Form under this License.
184 |
185 | 3.3. Distribution of a Larger Work
186 |
187 | You may create and distribute a Larger Work under terms of Your choice,
188 | provided that You also comply with the requirements of this License for
189 | the Covered Software. If the Larger Work is a combination of Covered
190 | Software with a work governed by one or more Secondary Licenses, and the
191 | Covered Software is not Incompatible With Secondary Licenses, this
192 | License permits You to additionally distribute such Covered Software
193 | under the terms of such Secondary License(s), so that the recipient of
194 | the Larger Work may, at their option, further distribute the Covered
195 | Software under the terms of either this License or such Secondary
196 | License(s).
197 |
198 | 3.4. Notices
199 |
200 | You may not remove or alter the substance of any license notices
201 | (including copyright notices, patent notices, disclaimers of warranty,
202 | or limitations of liability) contained within the Source Code Form of
203 | the Covered Software, except that You may alter any license notices to
204 | the extent required to remedy known factual inaccuracies.
205 |
206 | 3.5. Application of Additional Terms
207 |
208 | You may choose to offer, and to charge a fee for, warranty, support,
209 | indemnity or liability obligations to one or more recipients of Covered
210 | Software. However, You may do so only on Your own behalf, and not on
211 | behalf of any Contributor. You must make it absolutely clear that any
212 | such warranty, support, indemnity, or liability obligation is offered by
213 | You alone, and You hereby agree to indemnify every Contributor for any
214 | liability incurred by such Contributor as a result of warranty, support,
215 | indemnity or liability terms You offer. You may include additional
216 | disclaimers of warranty and limitations of liability specific to any
217 | jurisdiction.
218 |
219 | 4. Inability to Comply Due to Statute or Regulation
220 | ---------------------------------------------------
221 |
222 | If it is impossible for You to comply with any of the terms of this
223 | License with respect to some or all of the Covered Software due to
224 | statute, judicial order, or regulation then You must: (a) comply with
225 | the terms of this License to the maximum extent possible; and (b)
226 | describe the limitations and the code they affect. Such description must
227 | be placed in a text file included with all distributions of the Covered
228 | Software under this License. Except to the extent prohibited by statute
229 | or regulation, such description must be sufficiently detailed for a
230 | recipient of ordinary skill to be able to understand it.
231 |
232 | 5. Termination
233 | --------------
234 |
235 | 5.1. The rights granted under this License will terminate automatically
236 | if You fail to comply with any of its terms. However, if You become
237 | compliant, then the rights granted under this License from a particular
238 | Contributor are reinstated (a) provisionally, unless and until such
239 | Contributor explicitly and finally terminates Your grants, and (b) on an
240 | ongoing basis, if such Contributor fails to notify You of the
241 | non-compliance by some reasonable means prior to 60 days after You have
242 | come back into compliance. Moreover, Your grants from a particular
243 | Contributor are reinstated on an ongoing basis if such Contributor
244 | notifies You of the non-compliance by some reasonable means, this is the
245 | first time You have received notice of non-compliance with this License
246 | from such Contributor, and You become compliant prior to 30 days after
247 | Your receipt of the notice.
248 |
249 | 5.2. If You initiate litigation against any entity by asserting a patent
250 | infringement claim (excluding declaratory judgment actions,
251 | counter-claims, and cross-claims) alleging that a Contributor Version
252 | directly or indirectly infringes any patent, then the rights granted to
253 | You by any and all Contributors for the Covered Software under Section
254 | 2.1 of this License shall terminate.
255 |
256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257 | end user license agreements (excluding distributors and resellers) which
258 | have been validly granted by You or Your distributors under this License
259 | prior to termination shall survive termination.
260 |
261 | ************************************************************************
262 | * *
263 | * 6. Disclaimer of Warranty *
264 | * ------------------------- *
265 | * *
266 | * Covered Software is provided under this License on an "as is" *
267 | * basis, without warranty of any kind, either expressed, implied, or *
268 | * statutory, including, without limitation, warranties that the *
269 | * Covered Software is free of defects, merchantable, fit for a *
270 | * particular purpose or non-infringing. The entire risk as to the *
271 | * quality and performance of the Covered Software is with You. *
272 | * Should any Covered Software prove defective in any respect, You *
273 | * (not any Contributor) assume the cost of any necessary servicing, *
274 | * repair, or correction. This disclaimer of warranty constitutes an *
275 | * essential part of this License. No use of any Covered Software is *
276 | * authorized under this License except under this disclaimer. *
277 | * *
278 | ************************************************************************
279 |
280 | ************************************************************************
281 | * *
282 | * 7. Limitation of Liability *
283 | * -------------------------- *
284 | * *
285 | * Under no circumstances and under no legal theory, whether tort *
286 | * (including negligence), contract, or otherwise, shall any *
287 | * Contributor, or anyone who distributes Covered Software as *
288 | * permitted above, be liable to You for any direct, indirect, *
289 | * special, incidental, or consequential damages of any character *
290 | * including, without limitation, damages for lost profits, loss of *
291 | * goodwill, work stoppage, computer failure or malfunction, or any *
292 | * and all other commercial damages or losses, even if such party *
293 | * shall have been informed of the possibility of such damages. This *
294 | * limitation of liability shall not apply to liability for death or *
295 | * personal injury resulting from such party's negligence to the *
296 | * extent applicable law prohibits such limitation. Some *
297 | * jurisdictions do not allow the exclusion or limitation of *
298 | * incidental or consequential damages, so this exclusion and *
299 | * limitation may not apply to You. *
300 | * *
301 | ************************************************************************
302 |
303 | 8. Litigation
304 | -------------
305 |
306 | Any litigation relating to this License may be brought only in the
307 | courts of a jurisdiction where the defendant maintains its principal
308 | place of business and such litigation shall be governed by laws of that
309 | jurisdiction, without reference to its conflict-of-law provisions.
310 | Nothing in this Section shall prevent a party's ability to bring
311 | cross-claims or counter-claims.
312 |
313 | 9. Miscellaneous
314 | ----------------
315 |
316 | This License represents the complete agreement concerning the subject
317 | matter hereof. If any provision of this License is held to be
318 | unenforceable, such provision shall be reformed only to the extent
319 | necessary to make it enforceable. Any law or regulation which provides
320 | that the language of a contract shall be construed against the drafter
321 | shall not be used to construe this License against a Contributor.
322 |
323 | 10. Versions of the License
324 | ---------------------------
325 |
326 | 10.1. New Versions
327 |
328 | Mozilla Foundation is the license steward. Except as provided in Section
329 | 10.3, no one other than the license steward has the right to modify or
330 | publish new versions of this License. Each version will be given a
331 | distinguishing version number.
332 |
333 | 10.2. Effect of New Versions
334 |
335 | You may distribute the Covered Software under the terms of the version
336 | of the License under which You originally received the Covered Software,
337 | or under the terms of any subsequent version published by the license
338 | steward.
339 |
340 | 10.3. Modified Versions
341 |
342 | If you create software not governed by this License, and you want to
343 | create a new license for such software, you may create and use a
344 | modified version of this License if you rename the license and remove
345 | any references to the name of the license steward (except to note that
346 | such modified license differs from this License).
347 |
348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary
349 | Licenses
350 |
351 | If You choose to distribute Source Code Form that is Incompatible With
352 | Secondary Licenses under the terms of this version of the License, the
353 | notice described in Exhibit B of this License must be attached.
354 |
355 | Exhibit A - Source Code Form License Notice
356 | -------------------------------------------
357 |
358 | This Source Code Form is subject to the terms of the Mozilla Public
359 | License, v. 2.0. If a copy of the MPL was not distributed with this
360 | file, You can obtain one at http://mozilla.org/MPL/2.0/.
361 |
362 | If it is not possible or desirable to put the notice in a particular
363 | file, then You may include the notice in a location (such as a LICENSE
364 | file in a relevant directory) where a recipient would be likely to look
365 | for such a notice.
366 |
367 | You may add additional accurate notices of copyright ownership.
368 |
369 | Exhibit B - "Incompatible With Secondary Licenses" Notice
370 | ---------------------------------------------------------
371 |
372 | This Source Code Form is "Incompatible With Secondary Licenses", as
373 | defined by the Mozilla Public License, v. 2.0.
374 |
--------------------------------------------------------------------------------
/api/README.md:
--------------------------------------------------------------------------------
1 | # diowallet-api
--------------------------------------------------------------------------------
/api/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "diowallet-api",
3 | "version": "1.0.0",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "diowallet-api",
9 | "version": "1.0.0",
10 | "license": "ISC",
11 | "dependencies": {
12 | "bcrypt": "^5.1.0",
13 | "cors": "^2.8.5",
14 | "dotenv": "^16.3.1",
15 | "express": "^4.18.2",
16 | "joi": "^17.9.2",
17 | "jsonwebtoken": "^9.0.0",
18 | "mongoose": "^7.3.1"
19 | },
20 | "devDependencies": {
21 | "nodemon": "^2.0.22"
22 | }
23 | },
24 | "node_modules/@hapi/hoek": {
25 | "version": "9.3.0",
26 | "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
27 | "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ=="
28 | },
29 | "node_modules/@hapi/topo": {
30 | "version": "5.1.0",
31 | "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz",
32 | "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==",
33 | "dependencies": {
34 | "@hapi/hoek": "^9.0.0"
35 | }
36 | },
37 | "node_modules/@mapbox/node-pre-gyp": {
38 | "version": "1.0.10",
39 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",
40 | "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==",
41 | "dependencies": {
42 | "detect-libc": "^2.0.0",
43 | "https-proxy-agent": "^5.0.0",
44 | "make-dir": "^3.1.0",
45 | "node-fetch": "^2.6.7",
46 | "nopt": "^5.0.0",
47 | "npmlog": "^5.0.1",
48 | "rimraf": "^3.0.2",
49 | "semver": "^7.3.5",
50 | "tar": "^6.1.11"
51 | },
52 | "bin": {
53 | "node-pre-gyp": "bin/node-pre-gyp"
54 | }
55 | },
56 | "node_modules/@mapbox/node-pre-gyp/node_modules/nopt": {
57 | "version": "5.0.0",
58 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
59 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
60 | "dependencies": {
61 | "abbrev": "1"
62 | },
63 | "bin": {
64 | "nopt": "bin/nopt.js"
65 | },
66 | "engines": {
67 | "node": ">=6"
68 | }
69 | },
70 | "node_modules/@mapbox/node-pre-gyp/node_modules/semver": {
71 | "version": "7.5.3",
72 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz",
73 | "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==",
74 | "dependencies": {
75 | "lru-cache": "^6.0.0"
76 | },
77 | "bin": {
78 | "semver": "bin/semver.js"
79 | },
80 | "engines": {
81 | "node": ">=10"
82 | }
83 | },
84 | "node_modules/@sideway/address": {
85 | "version": "4.1.4",
86 | "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz",
87 | "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==",
88 | "dependencies": {
89 | "@hapi/hoek": "^9.0.0"
90 | }
91 | },
92 | "node_modules/@sideway/formula": {
93 | "version": "3.0.1",
94 | "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz",
95 | "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg=="
96 | },
97 | "node_modules/@sideway/pinpoint": {
98 | "version": "2.0.0",
99 | "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz",
100 | "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ=="
101 | },
102 | "node_modules/@types/node": {
103 | "version": "20.3.3",
104 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.3.tgz",
105 | "integrity": "sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw=="
106 | },
107 | "node_modules/@types/webidl-conversions": {
108 | "version": "7.0.0",
109 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
110 | "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog=="
111 | },
112 | "node_modules/@types/whatwg-url": {
113 | "version": "8.2.2",
114 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz",
115 | "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==",
116 | "dependencies": {
117 | "@types/node": "*",
118 | "@types/webidl-conversions": "*"
119 | }
120 | },
121 | "node_modules/abbrev": {
122 | "version": "1.1.1",
123 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
124 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
125 | },
126 | "node_modules/accepts": {
127 | "version": "1.3.8",
128 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
129 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
130 | "dependencies": {
131 | "mime-types": "~2.1.34",
132 | "negotiator": "0.6.3"
133 | },
134 | "engines": {
135 | "node": ">= 0.6"
136 | }
137 | },
138 | "node_modules/agent-base": {
139 | "version": "6.0.2",
140 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
141 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
142 | "dependencies": {
143 | "debug": "4"
144 | },
145 | "engines": {
146 | "node": ">= 6.0.0"
147 | }
148 | },
149 | "node_modules/agent-base/node_modules/debug": {
150 | "version": "4.3.4",
151 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
152 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
153 | "dependencies": {
154 | "ms": "2.1.2"
155 | },
156 | "engines": {
157 | "node": ">=6.0"
158 | },
159 | "peerDependenciesMeta": {
160 | "supports-color": {
161 | "optional": true
162 | }
163 | }
164 | },
165 | "node_modules/agent-base/node_modules/ms": {
166 | "version": "2.1.2",
167 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
168 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
169 | },
170 | "node_modules/ansi-regex": {
171 | "version": "5.0.1",
172 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
173 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
174 | "engines": {
175 | "node": ">=8"
176 | }
177 | },
178 | "node_modules/anymatch": {
179 | "version": "3.1.3",
180 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
181 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
182 | "dev": true,
183 | "dependencies": {
184 | "normalize-path": "^3.0.0",
185 | "picomatch": "^2.0.4"
186 | },
187 | "engines": {
188 | "node": ">= 8"
189 | }
190 | },
191 | "node_modules/aproba": {
192 | "version": "2.0.0",
193 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
194 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
195 | },
196 | "node_modules/are-we-there-yet": {
197 | "version": "2.0.0",
198 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
199 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
200 | "dependencies": {
201 | "delegates": "^1.0.0",
202 | "readable-stream": "^3.6.0"
203 | },
204 | "engines": {
205 | "node": ">=10"
206 | }
207 | },
208 | "node_modules/array-flatten": {
209 | "version": "1.1.1",
210 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
211 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
212 | },
213 | "node_modules/balanced-match": {
214 | "version": "1.0.2",
215 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
216 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
217 | },
218 | "node_modules/bcrypt": {
219 | "version": "5.1.0",
220 | "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.0.tgz",
221 | "integrity": "sha512-RHBS7HI5N5tEnGTmtR/pppX0mmDSBpQ4aCBsj7CEQfYXDcO74A8sIBYcJMuCsis2E81zDxeENYhv66oZwLiA+Q==",
222 | "hasInstallScript": true,
223 | "dependencies": {
224 | "@mapbox/node-pre-gyp": "^1.0.10",
225 | "node-addon-api": "^5.0.0"
226 | },
227 | "engines": {
228 | "node": ">= 10.0.0"
229 | }
230 | },
231 | "node_modules/binary-extensions": {
232 | "version": "2.2.0",
233 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
234 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
235 | "dev": true,
236 | "engines": {
237 | "node": ">=8"
238 | }
239 | },
240 | "node_modules/body-parser": {
241 | "version": "1.20.1",
242 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
243 | "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
244 | "dependencies": {
245 | "bytes": "3.1.2",
246 | "content-type": "~1.0.4",
247 | "debug": "2.6.9",
248 | "depd": "2.0.0",
249 | "destroy": "1.2.0",
250 | "http-errors": "2.0.0",
251 | "iconv-lite": "0.4.24",
252 | "on-finished": "2.4.1",
253 | "qs": "6.11.0",
254 | "raw-body": "2.5.1",
255 | "type-is": "~1.6.18",
256 | "unpipe": "1.0.0"
257 | },
258 | "engines": {
259 | "node": ">= 0.8",
260 | "npm": "1.2.8000 || >= 1.4.16"
261 | }
262 | },
263 | "node_modules/brace-expansion": {
264 | "version": "1.1.11",
265 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
266 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
267 | "dependencies": {
268 | "balanced-match": "^1.0.0",
269 | "concat-map": "0.0.1"
270 | }
271 | },
272 | "node_modules/braces": {
273 | "version": "3.0.2",
274 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
275 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
276 | "dev": true,
277 | "dependencies": {
278 | "fill-range": "^7.0.1"
279 | },
280 | "engines": {
281 | "node": ">=8"
282 | }
283 | },
284 | "node_modules/bson": {
285 | "version": "5.3.0",
286 | "resolved": "https://registry.npmjs.org/bson/-/bson-5.3.0.tgz",
287 | "integrity": "sha512-ukmCZMneMlaC5ebPHXIkP8YJzNl5DC41N5MAIvKDqLggdao342t4McltoJBQfQya/nHBWAcSsYRqlXPoQkTJag==",
288 | "engines": {
289 | "node": ">=14.20.1"
290 | }
291 | },
292 | "node_modules/buffer-equal-constant-time": {
293 | "version": "1.0.1",
294 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
295 | "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
296 | },
297 | "node_modules/bytes": {
298 | "version": "3.1.2",
299 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
300 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
301 | "engines": {
302 | "node": ">= 0.8"
303 | }
304 | },
305 | "node_modules/call-bind": {
306 | "version": "1.0.2",
307 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
308 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
309 | "dependencies": {
310 | "function-bind": "^1.1.1",
311 | "get-intrinsic": "^1.0.2"
312 | },
313 | "funding": {
314 | "url": "https://github.com/sponsors/ljharb"
315 | }
316 | },
317 | "node_modules/chokidar": {
318 | "version": "3.5.3",
319 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
320 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
321 | "dev": true,
322 | "funding": [
323 | {
324 | "type": "individual",
325 | "url": "https://paulmillr.com/funding/"
326 | }
327 | ],
328 | "dependencies": {
329 | "anymatch": "~3.1.2",
330 | "braces": "~3.0.2",
331 | "glob-parent": "~5.1.2",
332 | "is-binary-path": "~2.1.0",
333 | "is-glob": "~4.0.1",
334 | "normalize-path": "~3.0.0",
335 | "readdirp": "~3.6.0"
336 | },
337 | "engines": {
338 | "node": ">= 8.10.0"
339 | },
340 | "optionalDependencies": {
341 | "fsevents": "~2.3.2"
342 | }
343 | },
344 | "node_modules/chownr": {
345 | "version": "2.0.0",
346 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
347 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
348 | "engines": {
349 | "node": ">=10"
350 | }
351 | },
352 | "node_modules/color-support": {
353 | "version": "1.1.3",
354 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
355 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
356 | "bin": {
357 | "color-support": "bin.js"
358 | }
359 | },
360 | "node_modules/concat-map": {
361 | "version": "0.0.1",
362 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
363 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
364 | },
365 | "node_modules/console-control-strings": {
366 | "version": "1.1.0",
367 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
368 | "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
369 | },
370 | "node_modules/content-disposition": {
371 | "version": "0.5.4",
372 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
373 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
374 | "dependencies": {
375 | "safe-buffer": "5.2.1"
376 | },
377 | "engines": {
378 | "node": ">= 0.6"
379 | }
380 | },
381 | "node_modules/content-type": {
382 | "version": "1.0.5",
383 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
384 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
385 | "engines": {
386 | "node": ">= 0.6"
387 | }
388 | },
389 | "node_modules/cookie": {
390 | "version": "0.5.0",
391 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
392 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
393 | "engines": {
394 | "node": ">= 0.6"
395 | }
396 | },
397 | "node_modules/cookie-signature": {
398 | "version": "1.0.6",
399 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
400 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
401 | },
402 | "node_modules/cors": {
403 | "version": "2.8.5",
404 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
405 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
406 | "dependencies": {
407 | "object-assign": "^4",
408 | "vary": "^1"
409 | },
410 | "engines": {
411 | "node": ">= 0.10"
412 | }
413 | },
414 | "node_modules/debug": {
415 | "version": "2.6.9",
416 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
417 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
418 | "dependencies": {
419 | "ms": "2.0.0"
420 | }
421 | },
422 | "node_modules/delegates": {
423 | "version": "1.0.0",
424 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
425 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
426 | },
427 | "node_modules/depd": {
428 | "version": "2.0.0",
429 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
430 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
431 | "engines": {
432 | "node": ">= 0.8"
433 | }
434 | },
435 | "node_modules/destroy": {
436 | "version": "1.2.0",
437 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
438 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
439 | "engines": {
440 | "node": ">= 0.8",
441 | "npm": "1.2.8000 || >= 1.4.16"
442 | }
443 | },
444 | "node_modules/detect-libc": {
445 | "version": "2.0.1",
446 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",
447 | "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==",
448 | "engines": {
449 | "node": ">=8"
450 | }
451 | },
452 | "node_modules/dotenv": {
453 | "version": "16.3.1",
454 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
455 | "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
456 | "engines": {
457 | "node": ">=12"
458 | },
459 | "funding": {
460 | "url": "https://github.com/motdotla/dotenv?sponsor=1"
461 | }
462 | },
463 | "node_modules/ecdsa-sig-formatter": {
464 | "version": "1.0.11",
465 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
466 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
467 | "dependencies": {
468 | "safe-buffer": "^5.0.1"
469 | }
470 | },
471 | "node_modules/ee-first": {
472 | "version": "1.1.1",
473 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
474 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
475 | },
476 | "node_modules/emoji-regex": {
477 | "version": "8.0.0",
478 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
479 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
480 | },
481 | "node_modules/encodeurl": {
482 | "version": "1.0.2",
483 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
484 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
485 | "engines": {
486 | "node": ">= 0.8"
487 | }
488 | },
489 | "node_modules/escape-html": {
490 | "version": "1.0.3",
491 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
492 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
493 | },
494 | "node_modules/etag": {
495 | "version": "1.8.1",
496 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
497 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
498 | "engines": {
499 | "node": ">= 0.6"
500 | }
501 | },
502 | "node_modules/express": {
503 | "version": "4.18.2",
504 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
505 | "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
506 | "dependencies": {
507 | "accepts": "~1.3.8",
508 | "array-flatten": "1.1.1",
509 | "body-parser": "1.20.1",
510 | "content-disposition": "0.5.4",
511 | "content-type": "~1.0.4",
512 | "cookie": "0.5.0",
513 | "cookie-signature": "1.0.6",
514 | "debug": "2.6.9",
515 | "depd": "2.0.0",
516 | "encodeurl": "~1.0.2",
517 | "escape-html": "~1.0.3",
518 | "etag": "~1.8.1",
519 | "finalhandler": "1.2.0",
520 | "fresh": "0.5.2",
521 | "http-errors": "2.0.0",
522 | "merge-descriptors": "1.0.1",
523 | "methods": "~1.1.2",
524 | "on-finished": "2.4.1",
525 | "parseurl": "~1.3.3",
526 | "path-to-regexp": "0.1.7",
527 | "proxy-addr": "~2.0.7",
528 | "qs": "6.11.0",
529 | "range-parser": "~1.2.1",
530 | "safe-buffer": "5.2.1",
531 | "send": "0.18.0",
532 | "serve-static": "1.15.0",
533 | "setprototypeof": "1.2.0",
534 | "statuses": "2.0.1",
535 | "type-is": "~1.6.18",
536 | "utils-merge": "1.0.1",
537 | "vary": "~1.1.2"
538 | },
539 | "engines": {
540 | "node": ">= 0.10.0"
541 | }
542 | },
543 | "node_modules/fill-range": {
544 | "version": "7.0.1",
545 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
546 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
547 | "dev": true,
548 | "dependencies": {
549 | "to-regex-range": "^5.0.1"
550 | },
551 | "engines": {
552 | "node": ">=8"
553 | }
554 | },
555 | "node_modules/finalhandler": {
556 | "version": "1.2.0",
557 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
558 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
559 | "dependencies": {
560 | "debug": "2.6.9",
561 | "encodeurl": "~1.0.2",
562 | "escape-html": "~1.0.3",
563 | "on-finished": "2.4.1",
564 | "parseurl": "~1.3.3",
565 | "statuses": "2.0.1",
566 | "unpipe": "~1.0.0"
567 | },
568 | "engines": {
569 | "node": ">= 0.8"
570 | }
571 | },
572 | "node_modules/forwarded": {
573 | "version": "0.2.0",
574 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
575 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
576 | "engines": {
577 | "node": ">= 0.6"
578 | }
579 | },
580 | "node_modules/fresh": {
581 | "version": "0.5.2",
582 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
583 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
584 | "engines": {
585 | "node": ">= 0.6"
586 | }
587 | },
588 | "node_modules/fs-minipass": {
589 | "version": "2.1.0",
590 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
591 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
592 | "dependencies": {
593 | "minipass": "^3.0.0"
594 | },
595 | "engines": {
596 | "node": ">= 8"
597 | }
598 | },
599 | "node_modules/fs-minipass/node_modules/minipass": {
600 | "version": "3.3.6",
601 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
602 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
603 | "dependencies": {
604 | "yallist": "^4.0.0"
605 | },
606 | "engines": {
607 | "node": ">=8"
608 | }
609 | },
610 | "node_modules/fs.realpath": {
611 | "version": "1.0.0",
612 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
613 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
614 | },
615 | "node_modules/fsevents": {
616 | "version": "2.3.2",
617 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
618 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
619 | "dev": true,
620 | "hasInstallScript": true,
621 | "optional": true,
622 | "os": [
623 | "darwin"
624 | ],
625 | "engines": {
626 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
627 | }
628 | },
629 | "node_modules/function-bind": {
630 | "version": "1.1.1",
631 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
632 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
633 | },
634 | "node_modules/gauge": {
635 | "version": "3.0.2",
636 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
637 | "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
638 | "dependencies": {
639 | "aproba": "^1.0.3 || ^2.0.0",
640 | "color-support": "^1.1.2",
641 | "console-control-strings": "^1.0.0",
642 | "has-unicode": "^2.0.1",
643 | "object-assign": "^4.1.1",
644 | "signal-exit": "^3.0.0",
645 | "string-width": "^4.2.3",
646 | "strip-ansi": "^6.0.1",
647 | "wide-align": "^1.1.2"
648 | },
649 | "engines": {
650 | "node": ">=10"
651 | }
652 | },
653 | "node_modules/get-intrinsic": {
654 | "version": "1.2.1",
655 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
656 | "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
657 | "dependencies": {
658 | "function-bind": "^1.1.1",
659 | "has": "^1.0.3",
660 | "has-proto": "^1.0.1",
661 | "has-symbols": "^1.0.3"
662 | },
663 | "funding": {
664 | "url": "https://github.com/sponsors/ljharb"
665 | }
666 | },
667 | "node_modules/glob": {
668 | "version": "7.2.3",
669 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
670 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
671 | "dependencies": {
672 | "fs.realpath": "^1.0.0",
673 | "inflight": "^1.0.4",
674 | "inherits": "2",
675 | "minimatch": "^3.1.1",
676 | "once": "^1.3.0",
677 | "path-is-absolute": "^1.0.0"
678 | },
679 | "engines": {
680 | "node": "*"
681 | },
682 | "funding": {
683 | "url": "https://github.com/sponsors/isaacs"
684 | }
685 | },
686 | "node_modules/glob-parent": {
687 | "version": "5.1.2",
688 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
689 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
690 | "dev": true,
691 | "dependencies": {
692 | "is-glob": "^4.0.1"
693 | },
694 | "engines": {
695 | "node": ">= 6"
696 | }
697 | },
698 | "node_modules/has": {
699 | "version": "1.0.3",
700 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
701 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
702 | "dependencies": {
703 | "function-bind": "^1.1.1"
704 | },
705 | "engines": {
706 | "node": ">= 0.4.0"
707 | }
708 | },
709 | "node_modules/has-flag": {
710 | "version": "3.0.0",
711 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
712 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
713 | "dev": true,
714 | "engines": {
715 | "node": ">=4"
716 | }
717 | },
718 | "node_modules/has-proto": {
719 | "version": "1.0.1",
720 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
721 | "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
722 | "engines": {
723 | "node": ">= 0.4"
724 | },
725 | "funding": {
726 | "url": "https://github.com/sponsors/ljharb"
727 | }
728 | },
729 | "node_modules/has-symbols": {
730 | "version": "1.0.3",
731 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
732 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
733 | "engines": {
734 | "node": ">= 0.4"
735 | },
736 | "funding": {
737 | "url": "https://github.com/sponsors/ljharb"
738 | }
739 | },
740 | "node_modules/has-unicode": {
741 | "version": "2.0.1",
742 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
743 | "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
744 | },
745 | "node_modules/http-errors": {
746 | "version": "2.0.0",
747 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
748 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
749 | "dependencies": {
750 | "depd": "2.0.0",
751 | "inherits": "2.0.4",
752 | "setprototypeof": "1.2.0",
753 | "statuses": "2.0.1",
754 | "toidentifier": "1.0.1"
755 | },
756 | "engines": {
757 | "node": ">= 0.8"
758 | }
759 | },
760 | "node_modules/https-proxy-agent": {
761 | "version": "5.0.1",
762 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
763 | "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
764 | "dependencies": {
765 | "agent-base": "6",
766 | "debug": "4"
767 | },
768 | "engines": {
769 | "node": ">= 6"
770 | }
771 | },
772 | "node_modules/https-proxy-agent/node_modules/debug": {
773 | "version": "4.3.4",
774 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
775 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
776 | "dependencies": {
777 | "ms": "2.1.2"
778 | },
779 | "engines": {
780 | "node": ">=6.0"
781 | },
782 | "peerDependenciesMeta": {
783 | "supports-color": {
784 | "optional": true
785 | }
786 | }
787 | },
788 | "node_modules/https-proxy-agent/node_modules/ms": {
789 | "version": "2.1.2",
790 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
791 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
792 | },
793 | "node_modules/iconv-lite": {
794 | "version": "0.4.24",
795 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
796 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
797 | "dependencies": {
798 | "safer-buffer": ">= 2.1.2 < 3"
799 | },
800 | "engines": {
801 | "node": ">=0.10.0"
802 | }
803 | },
804 | "node_modules/ignore-by-default": {
805 | "version": "1.0.1",
806 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz",
807 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==",
808 | "dev": true
809 | },
810 | "node_modules/inflight": {
811 | "version": "1.0.6",
812 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
813 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
814 | "dependencies": {
815 | "once": "^1.3.0",
816 | "wrappy": "1"
817 | }
818 | },
819 | "node_modules/inherits": {
820 | "version": "2.0.4",
821 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
822 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
823 | },
824 | "node_modules/ip": {
825 | "version": "2.0.0",
826 | "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",
827 | "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ=="
828 | },
829 | "node_modules/ipaddr.js": {
830 | "version": "1.9.1",
831 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
832 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
833 | "engines": {
834 | "node": ">= 0.10"
835 | }
836 | },
837 | "node_modules/is-binary-path": {
838 | "version": "2.1.0",
839 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
840 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
841 | "dev": true,
842 | "dependencies": {
843 | "binary-extensions": "^2.0.0"
844 | },
845 | "engines": {
846 | "node": ">=8"
847 | }
848 | },
849 | "node_modules/is-extglob": {
850 | "version": "2.1.1",
851 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
852 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
853 | "dev": true,
854 | "engines": {
855 | "node": ">=0.10.0"
856 | }
857 | },
858 | "node_modules/is-fullwidth-code-point": {
859 | "version": "3.0.0",
860 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
861 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
862 | "engines": {
863 | "node": ">=8"
864 | }
865 | },
866 | "node_modules/is-glob": {
867 | "version": "4.0.3",
868 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
869 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
870 | "dev": true,
871 | "dependencies": {
872 | "is-extglob": "^2.1.1"
873 | },
874 | "engines": {
875 | "node": ">=0.10.0"
876 | }
877 | },
878 | "node_modules/is-number": {
879 | "version": "7.0.0",
880 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
881 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
882 | "dev": true,
883 | "engines": {
884 | "node": ">=0.12.0"
885 | }
886 | },
887 | "node_modules/joi": {
888 | "version": "17.9.2",
889 | "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz",
890 | "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==",
891 | "dependencies": {
892 | "@hapi/hoek": "^9.0.0",
893 | "@hapi/topo": "^5.0.0",
894 | "@sideway/address": "^4.1.3",
895 | "@sideway/formula": "^3.0.1",
896 | "@sideway/pinpoint": "^2.0.0"
897 | }
898 | },
899 | "node_modules/jsonwebtoken": {
900 | "version": "9.0.0",
901 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz",
902 | "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==",
903 | "dependencies": {
904 | "jws": "^3.2.2",
905 | "lodash": "^4.17.21",
906 | "ms": "^2.1.1",
907 | "semver": "^7.3.8"
908 | },
909 | "engines": {
910 | "node": ">=12",
911 | "npm": ">=6"
912 | }
913 | },
914 | "node_modules/jsonwebtoken/node_modules/ms": {
915 | "version": "2.1.3",
916 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
917 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
918 | },
919 | "node_modules/jsonwebtoken/node_modules/semver": {
920 | "version": "7.5.3",
921 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz",
922 | "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==",
923 | "dependencies": {
924 | "lru-cache": "^6.0.0"
925 | },
926 | "bin": {
927 | "semver": "bin/semver.js"
928 | },
929 | "engines": {
930 | "node": ">=10"
931 | }
932 | },
933 | "node_modules/jwa": {
934 | "version": "1.4.1",
935 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
936 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
937 | "dependencies": {
938 | "buffer-equal-constant-time": "1.0.1",
939 | "ecdsa-sig-formatter": "1.0.11",
940 | "safe-buffer": "^5.0.1"
941 | }
942 | },
943 | "node_modules/jws": {
944 | "version": "3.2.2",
945 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
946 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
947 | "dependencies": {
948 | "jwa": "^1.4.1",
949 | "safe-buffer": "^5.0.1"
950 | }
951 | },
952 | "node_modules/kareem": {
953 | "version": "2.5.1",
954 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz",
955 | "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==",
956 | "engines": {
957 | "node": ">=12.0.0"
958 | }
959 | },
960 | "node_modules/lodash": {
961 | "version": "4.17.21",
962 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
963 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
964 | },
965 | "node_modules/lru-cache": {
966 | "version": "6.0.0",
967 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
968 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
969 | "dependencies": {
970 | "yallist": "^4.0.0"
971 | },
972 | "engines": {
973 | "node": ">=10"
974 | }
975 | },
976 | "node_modules/make-dir": {
977 | "version": "3.1.0",
978 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
979 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
980 | "dependencies": {
981 | "semver": "^6.0.0"
982 | },
983 | "engines": {
984 | "node": ">=8"
985 | },
986 | "funding": {
987 | "url": "https://github.com/sponsors/sindresorhus"
988 | }
989 | },
990 | "node_modules/make-dir/node_modules/semver": {
991 | "version": "6.3.0",
992 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
993 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
994 | "bin": {
995 | "semver": "bin/semver.js"
996 | }
997 | },
998 | "node_modules/media-typer": {
999 | "version": "0.3.0",
1000 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
1001 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
1002 | "engines": {
1003 | "node": ">= 0.6"
1004 | }
1005 | },
1006 | "node_modules/memory-pager": {
1007 | "version": "1.5.0",
1008 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
1009 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
1010 | "optional": true
1011 | },
1012 | "node_modules/merge-descriptors": {
1013 | "version": "1.0.1",
1014 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
1015 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
1016 | },
1017 | "node_modules/methods": {
1018 | "version": "1.1.2",
1019 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
1020 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
1021 | "engines": {
1022 | "node": ">= 0.6"
1023 | }
1024 | },
1025 | "node_modules/mime": {
1026 | "version": "1.6.0",
1027 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
1028 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
1029 | "bin": {
1030 | "mime": "cli.js"
1031 | },
1032 | "engines": {
1033 | "node": ">=4"
1034 | }
1035 | },
1036 | "node_modules/mime-db": {
1037 | "version": "1.52.0",
1038 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
1039 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
1040 | "engines": {
1041 | "node": ">= 0.6"
1042 | }
1043 | },
1044 | "node_modules/mime-types": {
1045 | "version": "2.1.35",
1046 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
1047 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
1048 | "dependencies": {
1049 | "mime-db": "1.52.0"
1050 | },
1051 | "engines": {
1052 | "node": ">= 0.6"
1053 | }
1054 | },
1055 | "node_modules/minimatch": {
1056 | "version": "3.1.2",
1057 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
1058 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
1059 | "dependencies": {
1060 | "brace-expansion": "^1.1.7"
1061 | },
1062 | "engines": {
1063 | "node": "*"
1064 | }
1065 | },
1066 | "node_modules/minipass": {
1067 | "version": "5.0.0",
1068 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
1069 | "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
1070 | "engines": {
1071 | "node": ">=8"
1072 | }
1073 | },
1074 | "node_modules/minizlib": {
1075 | "version": "2.1.2",
1076 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
1077 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
1078 | "dependencies": {
1079 | "minipass": "^3.0.0",
1080 | "yallist": "^4.0.0"
1081 | },
1082 | "engines": {
1083 | "node": ">= 8"
1084 | }
1085 | },
1086 | "node_modules/minizlib/node_modules/minipass": {
1087 | "version": "3.3.6",
1088 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
1089 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
1090 | "dependencies": {
1091 | "yallist": "^4.0.0"
1092 | },
1093 | "engines": {
1094 | "node": ">=8"
1095 | }
1096 | },
1097 | "node_modules/mkdirp": {
1098 | "version": "1.0.4",
1099 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
1100 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
1101 | "bin": {
1102 | "mkdirp": "bin/cmd.js"
1103 | },
1104 | "engines": {
1105 | "node": ">=10"
1106 | }
1107 | },
1108 | "node_modules/mongodb": {
1109 | "version": "5.6.0",
1110 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.6.0.tgz",
1111 | "integrity": "sha512-z8qVs9NfobHJm6uzK56XBZF8XwM9H294iRnB7wNjF0SnY93si5HPziIJn+qqvUR5QOff/4L0gCD6SShdR/GtVQ==",
1112 | "dependencies": {
1113 | "bson": "^5.3.0",
1114 | "mongodb-connection-string-url": "^2.6.0",
1115 | "socks": "^2.7.1"
1116 | },
1117 | "engines": {
1118 | "node": ">=14.20.1"
1119 | },
1120 | "optionalDependencies": {
1121 | "saslprep": "^1.0.3"
1122 | },
1123 | "peerDependencies": {
1124 | "@aws-sdk/credential-providers": "^3.201.0",
1125 | "mongodb-client-encryption": ">=2.3.0 <3",
1126 | "snappy": "^7.2.2"
1127 | },
1128 | "peerDependenciesMeta": {
1129 | "@aws-sdk/credential-providers": {
1130 | "optional": true
1131 | },
1132 | "mongodb-client-encryption": {
1133 | "optional": true
1134 | },
1135 | "snappy": {
1136 | "optional": true
1137 | }
1138 | }
1139 | },
1140 | "node_modules/mongodb-connection-string-url": {
1141 | "version": "2.6.0",
1142 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz",
1143 | "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==",
1144 | "dependencies": {
1145 | "@types/whatwg-url": "^8.2.1",
1146 | "whatwg-url": "^11.0.0"
1147 | }
1148 | },
1149 | "node_modules/mongoose": {
1150 | "version": "7.3.1",
1151 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.3.1.tgz",
1152 | "integrity": "sha512-6289bmSIhvR8xMHsYe2/CuzN7wHK+2RHcK7idDdzniCPC5zix5JH0Hc4k3CmXlr/9zQ2250gUQiUWtvDB0vF1Q==",
1153 | "dependencies": {
1154 | "bson": "^5.3.0",
1155 | "kareem": "2.5.1",
1156 | "mongodb": "5.6.0",
1157 | "mpath": "0.9.0",
1158 | "mquery": "5.0.0",
1159 | "ms": "2.1.3",
1160 | "sift": "16.0.1"
1161 | },
1162 | "engines": {
1163 | "node": ">=14.20.1"
1164 | },
1165 | "funding": {
1166 | "type": "opencollective",
1167 | "url": "https://opencollective.com/mongoose"
1168 | }
1169 | },
1170 | "node_modules/mongoose/node_modules/ms": {
1171 | "version": "2.1.3",
1172 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1173 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
1174 | },
1175 | "node_modules/mpath": {
1176 | "version": "0.9.0",
1177 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz",
1178 | "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==",
1179 | "engines": {
1180 | "node": ">=4.0.0"
1181 | }
1182 | },
1183 | "node_modules/mquery": {
1184 | "version": "5.0.0",
1185 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz",
1186 | "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==",
1187 | "dependencies": {
1188 | "debug": "4.x"
1189 | },
1190 | "engines": {
1191 | "node": ">=14.0.0"
1192 | }
1193 | },
1194 | "node_modules/mquery/node_modules/debug": {
1195 | "version": "4.3.4",
1196 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
1197 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
1198 | "dependencies": {
1199 | "ms": "2.1.2"
1200 | },
1201 | "engines": {
1202 | "node": ">=6.0"
1203 | },
1204 | "peerDependenciesMeta": {
1205 | "supports-color": {
1206 | "optional": true
1207 | }
1208 | }
1209 | },
1210 | "node_modules/mquery/node_modules/ms": {
1211 | "version": "2.1.2",
1212 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1213 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
1214 | },
1215 | "node_modules/ms": {
1216 | "version": "2.0.0",
1217 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
1218 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
1219 | },
1220 | "node_modules/negotiator": {
1221 | "version": "0.6.3",
1222 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
1223 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
1224 | "engines": {
1225 | "node": ">= 0.6"
1226 | }
1227 | },
1228 | "node_modules/node-addon-api": {
1229 | "version": "5.1.0",
1230 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",
1231 | "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA=="
1232 | },
1233 | "node_modules/node-fetch": {
1234 | "version": "2.6.12",
1235 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz",
1236 | "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==",
1237 | "dependencies": {
1238 | "whatwg-url": "^5.0.0"
1239 | },
1240 | "engines": {
1241 | "node": "4.x || >=6.0.0"
1242 | },
1243 | "peerDependencies": {
1244 | "encoding": "^0.1.0"
1245 | },
1246 | "peerDependenciesMeta": {
1247 | "encoding": {
1248 | "optional": true
1249 | }
1250 | }
1251 | },
1252 | "node_modules/node-fetch/node_modules/tr46": {
1253 | "version": "0.0.3",
1254 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
1255 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
1256 | },
1257 | "node_modules/node-fetch/node_modules/webidl-conversions": {
1258 | "version": "3.0.1",
1259 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
1260 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
1261 | },
1262 | "node_modules/node-fetch/node_modules/whatwg-url": {
1263 | "version": "5.0.0",
1264 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
1265 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
1266 | "dependencies": {
1267 | "tr46": "~0.0.3",
1268 | "webidl-conversions": "^3.0.0"
1269 | }
1270 | },
1271 | "node_modules/nodemon": {
1272 | "version": "2.0.22",
1273 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz",
1274 | "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==",
1275 | "dev": true,
1276 | "dependencies": {
1277 | "chokidar": "^3.5.2",
1278 | "debug": "^3.2.7",
1279 | "ignore-by-default": "^1.0.1",
1280 | "minimatch": "^3.1.2",
1281 | "pstree.remy": "^1.1.8",
1282 | "semver": "^5.7.1",
1283 | "simple-update-notifier": "^1.0.7",
1284 | "supports-color": "^5.5.0",
1285 | "touch": "^3.1.0",
1286 | "undefsafe": "^2.0.5"
1287 | },
1288 | "bin": {
1289 | "nodemon": "bin/nodemon.js"
1290 | },
1291 | "engines": {
1292 | "node": ">=8.10.0"
1293 | },
1294 | "funding": {
1295 | "type": "opencollective",
1296 | "url": "https://opencollective.com/nodemon"
1297 | }
1298 | },
1299 | "node_modules/nodemon/node_modules/debug": {
1300 | "version": "3.2.7",
1301 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
1302 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
1303 | "dev": true,
1304 | "dependencies": {
1305 | "ms": "^2.1.1"
1306 | }
1307 | },
1308 | "node_modules/nodemon/node_modules/ms": {
1309 | "version": "2.1.3",
1310 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1311 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1312 | "dev": true
1313 | },
1314 | "node_modules/nopt": {
1315 | "version": "1.0.10",
1316 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz",
1317 | "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==",
1318 | "dev": true,
1319 | "dependencies": {
1320 | "abbrev": "1"
1321 | },
1322 | "bin": {
1323 | "nopt": "bin/nopt.js"
1324 | },
1325 | "engines": {
1326 | "node": "*"
1327 | }
1328 | },
1329 | "node_modules/normalize-path": {
1330 | "version": "3.0.0",
1331 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
1332 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
1333 | "dev": true,
1334 | "engines": {
1335 | "node": ">=0.10.0"
1336 | }
1337 | },
1338 | "node_modules/npmlog": {
1339 | "version": "5.0.1",
1340 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
1341 | "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
1342 | "dependencies": {
1343 | "are-we-there-yet": "^2.0.0",
1344 | "console-control-strings": "^1.1.0",
1345 | "gauge": "^3.0.0",
1346 | "set-blocking": "^2.0.0"
1347 | }
1348 | },
1349 | "node_modules/object-assign": {
1350 | "version": "4.1.1",
1351 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1352 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1353 | "engines": {
1354 | "node": ">=0.10.0"
1355 | }
1356 | },
1357 | "node_modules/object-inspect": {
1358 | "version": "1.12.3",
1359 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
1360 | "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
1361 | "funding": {
1362 | "url": "https://github.com/sponsors/ljharb"
1363 | }
1364 | },
1365 | "node_modules/on-finished": {
1366 | "version": "2.4.1",
1367 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
1368 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
1369 | "dependencies": {
1370 | "ee-first": "1.1.1"
1371 | },
1372 | "engines": {
1373 | "node": ">= 0.8"
1374 | }
1375 | },
1376 | "node_modules/once": {
1377 | "version": "1.4.0",
1378 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1379 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1380 | "dependencies": {
1381 | "wrappy": "1"
1382 | }
1383 | },
1384 | "node_modules/parseurl": {
1385 | "version": "1.3.3",
1386 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
1387 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
1388 | "engines": {
1389 | "node": ">= 0.8"
1390 | }
1391 | },
1392 | "node_modules/path-is-absolute": {
1393 | "version": "1.0.1",
1394 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1395 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
1396 | "engines": {
1397 | "node": ">=0.10.0"
1398 | }
1399 | },
1400 | "node_modules/path-to-regexp": {
1401 | "version": "0.1.7",
1402 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
1403 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
1404 | },
1405 | "node_modules/picomatch": {
1406 | "version": "2.3.1",
1407 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
1408 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
1409 | "dev": true,
1410 | "engines": {
1411 | "node": ">=8.6"
1412 | },
1413 | "funding": {
1414 | "url": "https://github.com/sponsors/jonschlinkert"
1415 | }
1416 | },
1417 | "node_modules/proxy-addr": {
1418 | "version": "2.0.7",
1419 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
1420 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
1421 | "dependencies": {
1422 | "forwarded": "0.2.0",
1423 | "ipaddr.js": "1.9.1"
1424 | },
1425 | "engines": {
1426 | "node": ">= 0.10"
1427 | }
1428 | },
1429 | "node_modules/pstree.remy": {
1430 | "version": "1.1.8",
1431 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz",
1432 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==",
1433 | "dev": true
1434 | },
1435 | "node_modules/punycode": {
1436 | "version": "2.3.0",
1437 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
1438 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
1439 | "engines": {
1440 | "node": ">=6"
1441 | }
1442 | },
1443 | "node_modules/qs": {
1444 | "version": "6.11.0",
1445 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
1446 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
1447 | "dependencies": {
1448 | "side-channel": "^1.0.4"
1449 | },
1450 | "engines": {
1451 | "node": ">=0.6"
1452 | },
1453 | "funding": {
1454 | "url": "https://github.com/sponsors/ljharb"
1455 | }
1456 | },
1457 | "node_modules/range-parser": {
1458 | "version": "1.2.1",
1459 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1460 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1461 | "engines": {
1462 | "node": ">= 0.6"
1463 | }
1464 | },
1465 | "node_modules/raw-body": {
1466 | "version": "2.5.1",
1467 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
1468 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
1469 | "dependencies": {
1470 | "bytes": "3.1.2",
1471 | "http-errors": "2.0.0",
1472 | "iconv-lite": "0.4.24",
1473 | "unpipe": "1.0.0"
1474 | },
1475 | "engines": {
1476 | "node": ">= 0.8"
1477 | }
1478 | },
1479 | "node_modules/readable-stream": {
1480 | "version": "3.6.2",
1481 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1482 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1483 | "dependencies": {
1484 | "inherits": "^2.0.3",
1485 | "string_decoder": "^1.1.1",
1486 | "util-deprecate": "^1.0.1"
1487 | },
1488 | "engines": {
1489 | "node": ">= 6"
1490 | }
1491 | },
1492 | "node_modules/readdirp": {
1493 | "version": "3.6.0",
1494 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
1495 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
1496 | "dev": true,
1497 | "dependencies": {
1498 | "picomatch": "^2.2.1"
1499 | },
1500 | "engines": {
1501 | "node": ">=8.10.0"
1502 | }
1503 | },
1504 | "node_modules/rimraf": {
1505 | "version": "3.0.2",
1506 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1507 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1508 | "dependencies": {
1509 | "glob": "^7.1.3"
1510 | },
1511 | "bin": {
1512 | "rimraf": "bin.js"
1513 | },
1514 | "funding": {
1515 | "url": "https://github.com/sponsors/isaacs"
1516 | }
1517 | },
1518 | "node_modules/safe-buffer": {
1519 | "version": "5.2.1",
1520 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1521 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1522 | "funding": [
1523 | {
1524 | "type": "github",
1525 | "url": "https://github.com/sponsors/feross"
1526 | },
1527 | {
1528 | "type": "patreon",
1529 | "url": "https://www.patreon.com/feross"
1530 | },
1531 | {
1532 | "type": "consulting",
1533 | "url": "https://feross.org/support"
1534 | }
1535 | ]
1536 | },
1537 | "node_modules/safer-buffer": {
1538 | "version": "2.1.2",
1539 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1540 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
1541 | },
1542 | "node_modules/saslprep": {
1543 | "version": "1.0.3",
1544 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
1545 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
1546 | "optional": true,
1547 | "dependencies": {
1548 | "sparse-bitfield": "^3.0.3"
1549 | },
1550 | "engines": {
1551 | "node": ">=6"
1552 | }
1553 | },
1554 | "node_modules/semver": {
1555 | "version": "5.7.1",
1556 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
1557 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
1558 | "dev": true,
1559 | "bin": {
1560 | "semver": "bin/semver"
1561 | }
1562 | },
1563 | "node_modules/send": {
1564 | "version": "0.18.0",
1565 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
1566 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
1567 | "dependencies": {
1568 | "debug": "2.6.9",
1569 | "depd": "2.0.0",
1570 | "destroy": "1.2.0",
1571 | "encodeurl": "~1.0.2",
1572 | "escape-html": "~1.0.3",
1573 | "etag": "~1.8.1",
1574 | "fresh": "0.5.2",
1575 | "http-errors": "2.0.0",
1576 | "mime": "1.6.0",
1577 | "ms": "2.1.3",
1578 | "on-finished": "2.4.1",
1579 | "range-parser": "~1.2.1",
1580 | "statuses": "2.0.1"
1581 | },
1582 | "engines": {
1583 | "node": ">= 0.8.0"
1584 | }
1585 | },
1586 | "node_modules/send/node_modules/ms": {
1587 | "version": "2.1.3",
1588 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1589 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
1590 | },
1591 | "node_modules/serve-static": {
1592 | "version": "1.15.0",
1593 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
1594 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
1595 | "dependencies": {
1596 | "encodeurl": "~1.0.2",
1597 | "escape-html": "~1.0.3",
1598 | "parseurl": "~1.3.3",
1599 | "send": "0.18.0"
1600 | },
1601 | "engines": {
1602 | "node": ">= 0.8.0"
1603 | }
1604 | },
1605 | "node_modules/set-blocking": {
1606 | "version": "2.0.0",
1607 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1608 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
1609 | },
1610 | "node_modules/setprototypeof": {
1611 | "version": "1.2.0",
1612 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1613 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
1614 | },
1615 | "node_modules/side-channel": {
1616 | "version": "1.0.4",
1617 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
1618 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
1619 | "dependencies": {
1620 | "call-bind": "^1.0.0",
1621 | "get-intrinsic": "^1.0.2",
1622 | "object-inspect": "^1.9.0"
1623 | },
1624 | "funding": {
1625 | "url": "https://github.com/sponsors/ljharb"
1626 | }
1627 | },
1628 | "node_modules/sift": {
1629 | "version": "16.0.1",
1630 | "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz",
1631 | "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ=="
1632 | },
1633 | "node_modules/signal-exit": {
1634 | "version": "3.0.7",
1635 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
1636 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
1637 | },
1638 | "node_modules/simple-update-notifier": {
1639 | "version": "1.1.0",
1640 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz",
1641 | "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==",
1642 | "dev": true,
1643 | "dependencies": {
1644 | "semver": "~7.0.0"
1645 | },
1646 | "engines": {
1647 | "node": ">=8.10.0"
1648 | }
1649 | },
1650 | "node_modules/simple-update-notifier/node_modules/semver": {
1651 | "version": "7.0.0",
1652 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz",
1653 | "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==",
1654 | "dev": true,
1655 | "bin": {
1656 | "semver": "bin/semver.js"
1657 | }
1658 | },
1659 | "node_modules/smart-buffer": {
1660 | "version": "4.2.0",
1661 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
1662 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
1663 | "engines": {
1664 | "node": ">= 6.0.0",
1665 | "npm": ">= 3.0.0"
1666 | }
1667 | },
1668 | "node_modules/socks": {
1669 | "version": "2.7.1",
1670 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz",
1671 | "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==",
1672 | "dependencies": {
1673 | "ip": "^2.0.0",
1674 | "smart-buffer": "^4.2.0"
1675 | },
1676 | "engines": {
1677 | "node": ">= 10.13.0",
1678 | "npm": ">= 3.0.0"
1679 | }
1680 | },
1681 | "node_modules/sparse-bitfield": {
1682 | "version": "3.0.3",
1683 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
1684 | "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==",
1685 | "optional": true,
1686 | "dependencies": {
1687 | "memory-pager": "^1.0.2"
1688 | }
1689 | },
1690 | "node_modules/statuses": {
1691 | "version": "2.0.1",
1692 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1693 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
1694 | "engines": {
1695 | "node": ">= 0.8"
1696 | }
1697 | },
1698 | "node_modules/string_decoder": {
1699 | "version": "1.3.0",
1700 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
1701 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
1702 | "dependencies": {
1703 | "safe-buffer": "~5.2.0"
1704 | }
1705 | },
1706 | "node_modules/string-width": {
1707 | "version": "4.2.3",
1708 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
1709 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1710 | "dependencies": {
1711 | "emoji-regex": "^8.0.0",
1712 | "is-fullwidth-code-point": "^3.0.0",
1713 | "strip-ansi": "^6.0.1"
1714 | },
1715 | "engines": {
1716 | "node": ">=8"
1717 | }
1718 | },
1719 | "node_modules/strip-ansi": {
1720 | "version": "6.0.1",
1721 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1722 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1723 | "dependencies": {
1724 | "ansi-regex": "^5.0.1"
1725 | },
1726 | "engines": {
1727 | "node": ">=8"
1728 | }
1729 | },
1730 | "node_modules/supports-color": {
1731 | "version": "5.5.0",
1732 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1733 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1734 | "dev": true,
1735 | "dependencies": {
1736 | "has-flag": "^3.0.0"
1737 | },
1738 | "engines": {
1739 | "node": ">=4"
1740 | }
1741 | },
1742 | "node_modules/tar": {
1743 | "version": "6.1.15",
1744 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
1745 | "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
1746 | "dependencies": {
1747 | "chownr": "^2.0.0",
1748 | "fs-minipass": "^2.0.0",
1749 | "minipass": "^5.0.0",
1750 | "minizlib": "^2.1.1",
1751 | "mkdirp": "^1.0.3",
1752 | "yallist": "^4.0.0"
1753 | },
1754 | "engines": {
1755 | "node": ">=10"
1756 | }
1757 | },
1758 | "node_modules/to-regex-range": {
1759 | "version": "5.0.1",
1760 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1761 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1762 | "dev": true,
1763 | "dependencies": {
1764 | "is-number": "^7.0.0"
1765 | },
1766 | "engines": {
1767 | "node": ">=8.0"
1768 | }
1769 | },
1770 | "node_modules/toidentifier": {
1771 | "version": "1.0.1",
1772 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1773 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1774 | "engines": {
1775 | "node": ">=0.6"
1776 | }
1777 | },
1778 | "node_modules/touch": {
1779 | "version": "3.1.0",
1780 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz",
1781 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==",
1782 | "dev": true,
1783 | "dependencies": {
1784 | "nopt": "~1.0.10"
1785 | },
1786 | "bin": {
1787 | "nodetouch": "bin/nodetouch.js"
1788 | }
1789 | },
1790 | "node_modules/tr46": {
1791 | "version": "3.0.0",
1792 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
1793 | "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
1794 | "dependencies": {
1795 | "punycode": "^2.1.1"
1796 | },
1797 | "engines": {
1798 | "node": ">=12"
1799 | }
1800 | },
1801 | "node_modules/type-is": {
1802 | "version": "1.6.18",
1803 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1804 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1805 | "dependencies": {
1806 | "media-typer": "0.3.0",
1807 | "mime-types": "~2.1.24"
1808 | },
1809 | "engines": {
1810 | "node": ">= 0.6"
1811 | }
1812 | },
1813 | "node_modules/undefsafe": {
1814 | "version": "2.0.5",
1815 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",
1816 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==",
1817 | "dev": true
1818 | },
1819 | "node_modules/unpipe": {
1820 | "version": "1.0.0",
1821 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1822 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1823 | "engines": {
1824 | "node": ">= 0.8"
1825 | }
1826 | },
1827 | "node_modules/util-deprecate": {
1828 | "version": "1.0.2",
1829 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1830 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
1831 | },
1832 | "node_modules/utils-merge": {
1833 | "version": "1.0.1",
1834 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1835 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1836 | "engines": {
1837 | "node": ">= 0.4.0"
1838 | }
1839 | },
1840 | "node_modules/vary": {
1841 | "version": "1.1.2",
1842 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1843 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1844 | "engines": {
1845 | "node": ">= 0.8"
1846 | }
1847 | },
1848 | "node_modules/webidl-conversions": {
1849 | "version": "7.0.0",
1850 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
1851 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",
1852 | "engines": {
1853 | "node": ">=12"
1854 | }
1855 | },
1856 | "node_modules/whatwg-url": {
1857 | "version": "11.0.0",
1858 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
1859 | "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
1860 | "dependencies": {
1861 | "tr46": "^3.0.0",
1862 | "webidl-conversions": "^7.0.0"
1863 | },
1864 | "engines": {
1865 | "node": ">=12"
1866 | }
1867 | },
1868 | "node_modules/wide-align": {
1869 | "version": "1.1.5",
1870 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
1871 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
1872 | "dependencies": {
1873 | "string-width": "^1.0.2 || 2 || 3 || 4"
1874 | }
1875 | },
1876 | "node_modules/wrappy": {
1877 | "version": "1.0.2",
1878 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1879 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
1880 | },
1881 | "node_modules/yallist": {
1882 | "version": "4.0.0",
1883 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1884 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
1885 | }
1886 | }
1887 | }
1888 |
--------------------------------------------------------------------------------
/api/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "diowallet-api",
3 | "version": "1.0.0",
4 | "type": "module",
5 | "description": "",
6 | "main": "index.js",
7 | "scripts": {
8 | "dev": "nodemon src/server.js",
9 | "start": "node src/server.js"
10 | },
11 | "keywords": [],
12 | "author": "Thi Code",
13 | "license": "ISC",
14 | "dependencies": {
15 | "bcrypt": "^5.1.0",
16 | "cors": "^2.8.5",
17 | "dotenv": "^16.3.1",
18 | "express": "^4.18.2",
19 | "joi": "^17.9.2",
20 | "jsonwebtoken": "^9.0.0",
21 | "mongoose": "^7.3.1"
22 | },
23 | "devDependencies": {
24 | "nodemon": "^2.0.22"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/api/src/config/database.js:
--------------------------------------------------------------------------------
1 | import mongoose from "mongoose";
2 | import "dotenv/config";
3 |
4 | export async function connectDb() {
5 | try {
6 | await mongoose.connect(process.env.DATABASE_URI);
7 | console.log("MongoDB Atlas connected!");
8 | } catch (err) {
9 | console.log(err.message);
10 | }
11 | }
12 |
13 | export async function disconnectDb() {
14 | await mongoose.disconnect();
15 | }
16 |
--------------------------------------------------------------------------------
/api/src/controllers/authController.js:
--------------------------------------------------------------------------------
1 | import authService from "../services/authService.js";
2 |
3 | async function signup(req, res) {
4 | const body = req.body;
5 |
6 | try {
7 | const resService = await authService.signup(body);
8 | return res.status(201).send(resService);
9 | } catch (err) {
10 | return res.status(409).send(err.message);
11 | }
12 | }
13 |
14 | async function signin(req, res) {
15 | const body = req.body;
16 |
17 | try {
18 | const token = await authService.signin(body);
19 | return res.send(token);
20 | } catch (err) {
21 | return res.status(401).send(err.message);
22 | }
23 | }
24 |
25 | async function userLogged(req, res) {
26 | const { _id: id } = res.locals.user;
27 |
28 | try {
29 | const user = await authService.userLogged(id);
30 | return res.send(user);
31 | } catch (err) {
32 | return res.status(404).send(err.message);
33 | }
34 | }
35 |
36 | export default { signup, signin, userLogged };
37 |
--------------------------------------------------------------------------------
/api/src/controllers/transactionController.js:
--------------------------------------------------------------------------------
1 | import transactionService from "../services/transactionService.js";
2 |
3 | async function create(req, res) {
4 | const body = req.body;
5 | const { _id: id } = res.locals.user;
6 |
7 | try {
8 | const transaction = await transactionService.create(body, id);
9 | return res.status(201).send(transaction);
10 | } catch (err) {
11 | return res.status(409).send(err.message);
12 | }
13 | }
14 |
15 | async function findAllByUser(req, res) {
16 | const { _id: id } = res.locals.user;
17 |
18 | try {
19 | const transactions = await transactionService.findAllByUser(id);
20 | return res.send(transactions);
21 | } catch (err) {
22 | return res.status(500).send(err.message);
23 | }
24 | }
25 |
26 | export default { create, findAllByUser };
27 |
--------------------------------------------------------------------------------
/api/src/middlewares/authMiddleware.js:
--------------------------------------------------------------------------------
1 | import jwt from "jsonwebtoken";
2 | import "dotenv/config";
3 | import authRepository from "../repositories/authRepository.js";
4 |
5 | export async function authMiddleware(req, res, next) {
6 | const { authorization } = req.headers;
7 | if (!authorization) return res.status(401).send({ message: "Invalid token" });
8 |
9 | const parts = authorization?.split(" ");
10 | if (parts.length !== 2)
11 | return res.status(401).send({ message: "Invalid token" });
12 |
13 | const [schema, token] = parts;
14 |
15 | if (!/^Bearer$/i.test(schema))
16 | return res.status(401).send({ message: "Invalid token" });
17 |
18 | jwt.verify(token, process.env.SECRET, async (err, decode) => {
19 | if (err) return res.status(401).send({ message: "Invalid token" });
20 | if (!decode) return res.status(401).send({ message: "Invalid token" });
21 |
22 | const user = await authRepository.findById(decode.id);
23 | if (!user) return res.status(401).send({ message: "Invalid token" });
24 |
25 | res.locals.user = user;
26 |
27 | next();
28 | });
29 | }
30 |
--------------------------------------------------------------------------------
/api/src/middlewares/validationSchemaMiddleware.js:
--------------------------------------------------------------------------------
1 | export function validationSchemaMiddleware(schema) {
2 | return (req, res, next) => {
3 | const { error } = schema.validate(req.body, { abortEarly: false });
4 | if (error) {
5 | const errors = error.details.map((detail) => detail.message);
6 | return res.status(422).send(errors);
7 | }
8 |
9 | next();
10 | };
11 | }
12 |
--------------------------------------------------------------------------------
/api/src/repositories/authRepository.js:
--------------------------------------------------------------------------------
1 | import UserSchema from "../schemas/User.js";
2 | import jwt from "jsonwebtoken";
3 | import "dotenv/config";
4 |
5 | async function create(data) {
6 | return await UserSchema.create(data);
7 | }
8 |
9 | async function findByEmail(email) {
10 | const user = await UserSchema.findOne({ email });
11 | return user;
12 | }
13 |
14 | async function generateToken(id) {
15 | return jwt.sign({ id }, process.env.SECRET, { expiresIn: 86400 });
16 | }
17 |
18 | async function findById(id) {
19 | const user = await UserSchema.findById(id);
20 | return user;
21 | }
22 |
23 | export default { create, findByEmail, generateToken, findById };
24 |
--------------------------------------------------------------------------------
/api/src/repositories/transactionRepository.js:
--------------------------------------------------------------------------------
1 | import TransactionSchema from "../schemas/Transaction.js";
2 |
3 | async function create(data) {
4 | return TransactionSchema.create(data);
5 | }
6 |
7 | async function findAllByUser(id) {
8 | return await TransactionSchema.find({ userId: id });
9 | }
10 |
11 | export default { create, findAllByUser };
12 |
--------------------------------------------------------------------------------
/api/src/routes/authRoutes.js:
--------------------------------------------------------------------------------
1 | import { Router } from "express";
2 | import authController from "../controllers/authController.js";
3 | import { authMiddleware } from "../middlewares/authMiddleware.js";
4 | import { validationSchemaMiddleware } from "../middlewares/validationSchemaMiddleware.js";
5 | import { CreateUser } from "../schemas/validation/CreateUser.js";
6 | import { AuthUser } from "../schemas/validation/AuthUser.js";
7 |
8 | const authRouter = Router();
9 |
10 | authRouter.post(
11 | "/signup",
12 | validationSchemaMiddleware(CreateUser),
13 | authController.signup
14 | );
15 | authRouter.post(
16 | "/signin",
17 | validationSchemaMiddleware(AuthUser),
18 | authController.signin
19 | );
20 | authRouter.get("/me", authMiddleware, authController.userLogged);
21 |
22 | export default authRouter;
23 |
--------------------------------------------------------------------------------
/api/src/routes/transactionRoutes.js:
--------------------------------------------------------------------------------
1 | import { Router } from "express";
2 | import transactionController from "../controllers/transactionController.js";
3 | import { authMiddleware } from "../middlewares/authMiddleware.js";
4 | import { validationSchemaMiddleware } from "../middlewares/validationSchemaMiddleware.js";
5 | import { CreateTransaction } from "../schemas/validation/CreateTransaction.js";
6 |
7 | const transactionRouter = Router();
8 |
9 | transactionRouter.use(authMiddleware);
10 |
11 | transactionRouter.post(
12 | "/transactions",
13 | validationSchemaMiddleware(CreateTransaction),
14 | transactionController.create
15 | );
16 |
17 | transactionRouter.get("/transactions", transactionController.findAllByUser);
18 |
19 | export default transactionRouter;
20 |
--------------------------------------------------------------------------------
/api/src/schemas/Transaction.js:
--------------------------------------------------------------------------------
1 | import { Schema, model } from "mongoose";
2 |
3 | const TransactionSchema = new Schema({
4 | value: { type: Number, required: true },
5 | description: { type: String, required: true },
6 | type: { type: String, required: true },
7 | userId: { type: Schema.Types.ObjectId, require: true, ref: "users" },
8 | created_at: { type: Date, default: Date.now() },
9 | });
10 |
11 | export default model("transactions", TransactionSchema);
12 |
--------------------------------------------------------------------------------
/api/src/schemas/User.js:
--------------------------------------------------------------------------------
1 | import { Schema, model } from "mongoose";
2 |
3 | const UserSchema = new Schema({
4 | name: { type: String, required: true },
5 | email: { type: String, unique: true, required: true },
6 | password: { type: String, required: true },
7 | createdAt: { type: Date, default: Date.now() },
8 | });
9 |
10 |
11 | export default model("users", UserSchema);
12 |
--------------------------------------------------------------------------------
/api/src/schemas/validation/AuthUser.js:
--------------------------------------------------------------------------------
1 | import Joi from "joi";
2 |
3 | export const AuthUser = Joi.object({
4 | email: Joi.string().email().required().min(3),
5 | password: Joi.string().required().min(3),
6 | });
7 |
--------------------------------------------------------------------------------
/api/src/schemas/validation/CreateTransaction.js:
--------------------------------------------------------------------------------
1 | import Joi from "joi";
2 |
3 | export const CreateTransaction = Joi.object({
4 | value: Joi.number().required(),
5 | description: Joi.string().required().min(3),
6 | type: Joi.string().required().valid("input", "output"),
7 | userId: Joi.object(),
8 | createdAt: Joi.string(),
9 | });
10 |
--------------------------------------------------------------------------------
/api/src/schemas/validation/CreateUser.js:
--------------------------------------------------------------------------------
1 | import Joi from "joi";
2 |
3 | export const CreateUser = Joi.object({
4 | name: Joi.string().required().min(3),
5 | email: Joi.string().email().required().min(3),
6 | password: Joi.string().required().min(3),
7 | createdAt: Joi.string(),
8 | });
9 |
--------------------------------------------------------------------------------
/api/src/server.js:
--------------------------------------------------------------------------------
1 | import express, { json } from "express";
2 | import authRouter from "./routes/authRoutes.js";
3 | import transactionRouter from "./routes/transactionRoutes.js";
4 | import { connectDb } from "./config/database.js";
5 | import cors from "cors";
6 |
7 | const app = express();
8 |
9 | connectDb();
10 | app.use(json());
11 | app.use(cors());
12 | app.use(authRouter);
13 | app.use(transactionRouter);
14 |
15 | const port = process.env.PORT;
16 | app.listen(port, () => console.log(`Server listening in port ${port}`));
17 |
--------------------------------------------------------------------------------
/api/src/services/authService.js:
--------------------------------------------------------------------------------
1 | import bcrypt from "bcrypt";
2 | import authRepository from "../repositories/authRepository.js";
3 |
4 | async function signup(body) {
5 | const hasPassword = bcrypt.hashSync(body.password, 10);
6 |
7 | const userExists = await authRepository.findByEmail(body.email);
8 | if (userExists) throw new Error("User already exists!");
9 |
10 | return await authRepository.create({ ...body, password: hasPassword });
11 | }
12 |
13 | async function signin(body) {
14 | const userExists = await authRepository.findByEmail(body.email);
15 | if (!userExists) throw new Error("Email or password incorrect!");
16 |
17 | const passwordOk = bcrypt.compareSync(body.password, userExists.password);
18 | if (!passwordOk) throw new Error("Email or password incorrect!");
19 |
20 | return authRepository.generateToken(userExists._id);
21 | }
22 |
23 | async function userLogged(id) {
24 | const user = await authRepository.findById(id);
25 | if (!user) throw new Error("User not found");
26 | return user;
27 | }
28 |
29 | export default {
30 | signup,
31 | signin,
32 | userLogged,
33 | };
34 |
--------------------------------------------------------------------------------
/api/src/services/transactionService.js:
--------------------------------------------------------------------------------
1 | import transactionRepository from "../repositories/transactionRepository.js";
2 |
3 | async function create(body, id) {
4 | if (!id) throw new Error("User id is required");
5 | return await transactionRepository.create({ ...body, userId: id });
6 | }
7 |
8 | async function findAllByUser(id) {
9 | if (!id) throw new Error("User id is required");
10 | return await transactionRepository.findAllByUser(id);
11 | }
12 |
13 | export default { create, findAllByUser };
14 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | services:
2 | mongo-wallet:
3 | image: mongo:latest
4 | ports:
5 | - "27017:27017"
6 | volumes:
7 | - mongdb-wallet-volume:/data/db
8 | restart: always
9 |
10 | api:
11 | container_name: api-wallet
12 | build: ./api
13 | restart: always
14 | ports:
15 | - 5002:5002
16 | depends_on:
17 | - mongo-wallet
18 | env_file:
19 | - ./api/.env
20 |
21 | spa:
22 | container_name: spa-wallet
23 | build: ./spa
24 | depends_on:
25 | - api
26 | env_file:
27 | - ./spa/.env
28 | volumes:
29 | - spa-volume:/var/www/html
30 |
31 | nginx:
32 | container_name: nginx-wallet
33 | build: ./nginx
34 | ports:
35 | - 80:80
36 | volumes:
37 | - spa-volume:/var/www/html
38 | depends_on:
39 | - mongo-wallet
40 | - api
41 | - spa
42 |
43 | volumes:
44 | mongdb-wallet-volume:
45 | spa-volume:
--------------------------------------------------------------------------------
/nginx/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM nginx:1.15.0
2 |
3 | RUN rm /etc/nginx/conf.d/default.conf
4 |
5 | COPY nginx.conf /etc/nginx/conf.d
--------------------------------------------------------------------------------
/nginx/nginx.conf:
--------------------------------------------------------------------------------
1 | server {
2 | listen 80;
3 |
4 | location / {
5 | root /var/www/html;
6 | index index.html;
7 |
8 | #fallback
9 | try_files $uri $uri/ /index.html;
10 | }
11 |
12 | location /api/ {
13 | proxy_set_header X-Real-IP $remote_addr;
14 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15 | proxy_set_header Host $http_host;
16 |
17 | proxy_pass http://api-wallet:5002/;
18 | }
19 | }
--------------------------------------------------------------------------------
/spa/.env:
--------------------------------------------------------------------------------
1 | VITE_API_BASE_URL=http://54.84.68.231/api
--------------------------------------------------------------------------------
/spa/.eslintrc.cjs:
--------------------------------------------------------------------------------
1 | /* eslint-env node */
2 |
3 | module.exports = {
4 | env: { browser: true, es2020: true },
5 | extends: [
6 | 'eslint:recommended',
7 | 'plugin:react/recommended',
8 | 'plugin:react/jsx-runtime',
9 | 'plugin:react-hooks/recommended',
10 | ],
11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12 | settings: { react: { version: '18.2' } },
13 | plugins: ['react-refresh'],
14 | rules: {
15 | 'react-refresh/only-export-components': [
16 | 'warn',
17 | { allowConstantExport: true },
18 | ],
19 | },
20 | }
21 |
--------------------------------------------------------------------------------
/spa/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:latest
2 |
3 | WORKDIR /tmp/react
4 |
5 | COPY . .
6 |
7 | RUN rm -rf node_modules
8 | RUN npm install
9 |
10 | RUN npm run build
11 |
12 | RUN mkdir -p /var/www/html
13 |
14 | RUN mv dist/* /var/www/html
15 |
16 | VOLUME /var/www/html
17 |
18 | WORKDIR /
19 |
20 | RUN rm -rf /tmp/react
--------------------------------------------------------------------------------
/spa/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | ThiCodeWallet
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/spa/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "diowallet-spa",
3 | "private": true,
4 | "version": "0.0.0",
5 | "type": "module",
6 | "scripts": {
7 | "dev": "vite",
8 | "build": "vite build",
9 | "lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0",
10 | "preview": "vite preview"
11 | },
12 | "dependencies": {
13 | "@hookform/resolvers": "^3.1.1",
14 | "axios": "^1.4.0",
15 | "dayjs": "^1.11.9",
16 | "js-cookie": "^3.0.5",
17 | "localforage": "^1.10.0",
18 | "match-sorter": "^6.3.1",
19 | "react": "^18.2.0",
20 | "react-dom": "^18.2.0",
21 | "react-hook-form": "^7.45.1",
22 | "react-icons": "^4.10.1",
23 | "react-router-dom": "^6.14.1",
24 | "sort-by": "^1.2.0",
25 | "zod": "^3.21.4"
26 | },
27 | "devDependencies": {
28 | "@types/react": "^18.2.14",
29 | "@types/react-dom": "^18.2.6",
30 | "@vitejs/plugin-react-swc": "^3.3.2",
31 | "autoprefixer": "^10.4.14",
32 | "eslint": "^8.44.0",
33 | "eslint-plugin-react": "^7.32.2",
34 | "eslint-plugin-react-hooks": "^4.6.0",
35 | "eslint-plugin-react-refresh": "^0.4.1",
36 | "postcss": "^8.4.25",
37 | "tailwindcss": "^3.3.2",
38 | "vite": "^4.4.0"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/spa/postcss.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/spa/public/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codethi/ThiCodeWallet/2ccaf80dc035a2a05d66f621e9ca2ac5806f40c0/spa/public/icon.png
--------------------------------------------------------------------------------
/spa/src/App.jsx:
--------------------------------------------------------------------------------
1 | import { Outlet } from "react-router-dom";
2 |
3 | function App() {
4 | return
5 | }
6 |
7 | export default App;
8 |
--------------------------------------------------------------------------------
/spa/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codethi/ThiCodeWallet/2ccaf80dc035a2a05d66f621e9ca2ac5806f40c0/spa/src/assets/logo.png
--------------------------------------------------------------------------------
/spa/src/components/Button.jsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable react/prop-types */
2 | import { BiPlusCircle, BiMinusCircle } from "react-icons/bi";
3 | import { useNavigate } from "react-router-dom";
4 |
5 | export default function Button({ text, type, icon, transaction }) {
6 | let IconComponent;
7 | const navigate = useNavigate();
8 |
9 | if (icon === "plus") IconComponent = BiPlusCircle;
10 | if (icon === "minus") IconComponent = BiMinusCircle;
11 |
12 | return (
13 |
20 | );
21 | }
22 |
--------------------------------------------------------------------------------
/spa/src/components/ErrorInput.jsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable react/prop-types */
2 | export default function ErrorInput({ text }) {
3 | return (
4 |
5 | {text}
6 |
7 | );
8 | }
9 |
--------------------------------------------------------------------------------
/spa/src/components/Input.jsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable react/prop-types */
2 | export default function Input({ type, placeholder, register, name }) {
3 | return (
4 |
10 | );
11 | }
12 |
--------------------------------------------------------------------------------
/spa/src/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/spa/src/main.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom/client";
3 | import "./index.css";
4 | import { createBrowserRouter, RouterProvider } from "react-router-dom";
5 | import Signin from "./pages/Signin.jsx";
6 | import Signup from "./pages/Signup.jsx";
7 | import Home from "./pages/Home";
8 | import NewTransaction from "./pages/NewTransaction";
9 | import ErrorPage from "./pages/ErrorPage";
10 |
11 | const router = createBrowserRouter([
12 | {
13 | path: "/",
14 | element: ,
15 | errorElement: ,
16 | },
17 | {
18 | path: "/signin",
19 | element: ,
20 | },
21 | {
22 | path: "/signup",
23 | element: ,
24 | },
25 | {
26 | path: "/transaction/:type",
27 | element: ,
28 | },
29 | ]);
30 |
31 | ReactDOM.createRoot(document.getElementById("root")).render(
32 |
33 |
34 |
35 | );
36 |
--------------------------------------------------------------------------------
/spa/src/pages/ErrorPage.jsx:
--------------------------------------------------------------------------------
1 | import { useRouteError } from "react-router-dom";
2 |
3 | export default function ErrorPage() {
4 | const error = useRouteError();
5 |
6 | return (
7 |
8 |
{error.status}
9 | {error.statusText}
10 | {error.data}
11 |
12 | );
13 | }
14 |
--------------------------------------------------------------------------------
/spa/src/pages/Home.jsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable react-hooks/exhaustive-deps */
2 | import { Link, useNavigate } from "react-router-dom";
3 | import { GoSignOut } from "react-icons/go";
4 | import logo from "../assets/logo.png";
5 | import Button from "../components/Button";
6 | import Cookies from "js-cookie";
7 | import { useEffect, useState } from "react";
8 | import { userLogged } from "../services/user";
9 | import { findAllTransaction } from "../services/transactions";
10 | import dayjs from "dayjs";
11 | import ErrorInput from "../components/ErrorInput";
12 |
13 | export default function Home() {
14 | const navigate = useNavigate();
15 | const [user, setUser] = useState({});
16 | const [transactions, setTrasactions] = useState([]);
17 | const [balance, setBalance] = useState(0);
18 | const [apiErrors, setApiErrors] = useState("");
19 |
20 | function validateToken() {
21 | const token = Cookies.get("token");
22 | if (!token) navigate("/signin");
23 | }
24 |
25 | async function getUserLogged() {
26 | try {
27 | const userResponse = await userLogged();
28 | setUser(userResponse.data);
29 | } catch (error) {
30 | console.log(error);
31 | setApiErrors(error.message);
32 | }
33 | }
34 |
35 | async function getAllTrasactions() {
36 | try {
37 | const response = await findAllTransaction();
38 | setTrasactions(response.data);
39 | calculateBalance(response.data);
40 | } catch (error) {
41 | console.log(error);
42 | setApiErrors(error.message);
43 | }
44 | }
45 |
46 | function calculateBalance(transactions) {
47 | let total = 0;
48 | transactions.forEach((transaction) => {
49 | transaction.type === "input"
50 | ? (total += Number(transaction.value))
51 | : (total -= Number(transaction.value));
52 | });
53 |
54 | setBalance(total);
55 | }
56 |
57 | useEffect(() => {
58 | validateToken();
59 | getUserLogged();
60 | getAllTrasactions();
61 | }, []);
62 |
63 | return (
64 |
65 | {apiErrors && }
66 |
75 |
76 |
77 | {transactions.length ? (
78 |
79 |
80 | {transactions.map((transaction, index) => (
81 |
-
85 |
86 |
87 | {dayjs(transaction.created_at).format("DD/MM")}
88 |
89 | {transaction.description}
90 |
91 |
92 |
101 | R$ {transaction.value}
102 |
103 |
104 | ))}
105 |
106 | -
107 | Balance
108 | 0 ? "text-green-700" : "text-red-700"}
111 | `}
112 | >
113 | R$ {balance}
114 |
115 |
116 |
117 | ) : (
118 | There is no check-in or check-out
119 | )}
120 |
121 |
122 |
136 |
137 | );
138 | }
139 |
--------------------------------------------------------------------------------
/spa/src/pages/NewTransaction.jsx:
--------------------------------------------------------------------------------
1 | import { Link, useNavigate, useParams } from "react-router-dom";
2 | import { BiArrowBack } from "react-icons/bi";
3 | import { useForm } from "react-hook-form";
4 | import { zodResolver } from "@hookform/resolvers/zod";
5 | import { transactionSchema } from "../schemas/TransactionSchema";
6 | import Input from "../components/Input";
7 | import ErrorInput from "../components/ErrorInput";
8 | import Button from "../components/Button";
9 | import { createNewTransaction } from "../services/transactions";
10 | import { useState } from "react";
11 |
12 | export default function NewTransaction() {
13 | const { type } = useParams();
14 | const navigate = useNavigate();
15 | const [apiErrors, setApiErrors] = useState("");
16 |
17 | const {
18 | register,
19 | handleSubmit,
20 | formState: { errors },
21 | } = useForm({
22 | resolver: zodResolver(transactionSchema),
23 | });
24 |
25 | async function onSubmitForm(data) {
26 | try {
27 | const body = { ...data, type };
28 | await createNewTransaction(body);
29 | navigate("/");
30 | } catch (error) {
31 | setApiErrors(error.message);
32 | console.log(error);
33 | }
34 | }
35 |
36 | return (
37 |
38 |
39 |
40 |
41 |
42 | New {type}
43 |
44 |
45 | {apiErrors && }
46 |
47 |
67 |
68 | );
69 | }
70 |
--------------------------------------------------------------------------------
/spa/src/pages/Signin.jsx:
--------------------------------------------------------------------------------
1 | import { Link, useNavigate } from "react-router-dom";
2 | import logo from "../assets/logo.png";
3 | import Button from "../components/Button";
4 | import Input from "../components/Input";
5 | import { useForm } from "react-hook-form";
6 |
7 | import { zodResolver } from "@hookform/resolvers/zod";
8 | import ErrorInput from "../components/ErrorInput";
9 | import { signinSchema } from "../schemas/SigninSchema";
10 | import { signin } from "../services/user";
11 | import Cookies from "js-cookie";
12 | import { useEffect, useState } from "react";
13 |
14 | export default function Signin() {
15 | const {
16 | register,
17 | handleSubmit,
18 | formState: { errors },
19 | } = useForm({ resolver: zodResolver(signinSchema) });
20 | const navigate = useNavigate();
21 | const [apiErrors, setApiErrors] = useState("");
22 |
23 | async function handleSubmitForm(data) {
24 | try {
25 | const token = await signin(data);
26 | Cookies.set("token", token.data, { expires: 1 });
27 | navigate("/");
28 | } catch (error) {
29 | console.log(error.message);
30 | setApiErrors(error.message);
31 | }
32 | }
33 |
34 | useEffect(() => {
35 | Cookies.remove("token");
36 | }, []);
37 |
38 | return (
39 |
40 |

41 | {apiErrors &&
}
42 |
62 |
63 |
64 | Dont have an account?{" "}
65 |
66 | Register
67 |
68 |
69 |
70 | );
71 | }
72 |
--------------------------------------------------------------------------------
/spa/src/pages/Signup.jsx:
--------------------------------------------------------------------------------
1 | import { Link } from "react-router-dom";
2 | import logo from "../assets/logo.png";
3 | import Button from "../components/Button";
4 | import Input from "../components/Input";
5 | import { BiArrowBack } from "react-icons/bi";
6 | import { useForm } from "react-hook-form";
7 | import { zodResolver } from "@hookform/resolvers/zod";
8 | import ErrorInput from "../components/ErrorInput";
9 | import { signupSchema } from "../schemas/SignupSchema";
10 | import { signup } from "../services/user";
11 | import { useNavigate } from "react-router-dom";
12 | import { useState } from "react";
13 |
14 | export default function Signup() {
15 | const {
16 | register,
17 | handleSubmit,
18 | formState: { errors },
19 | } = useForm({ resolver: zodResolver(signupSchema) });
20 | const navigate = useNavigate();
21 | const [apiErrors, setApiErrors] = useState("");
22 |
23 | async function handleSubmitForm(data) {
24 | try {
25 | await signup(data);
26 | navigate("/signin");
27 | } catch (error) {
28 | console.log(error.message);
29 | setApiErrors(error.message);
30 | }
31 | }
32 |
33 | return (
34 |
35 |
36 |
37 |
38 |
39 |

40 | {apiErrors &&
}
41 |
77 |
78 | );
79 | }
80 |
--------------------------------------------------------------------------------
/spa/src/schemas/SigninSchema.js:
--------------------------------------------------------------------------------
1 | import z from "zod";
2 |
3 | export const signinSchema = z.object({
4 | email: z.string().nonempty("O email é obrigatório").email().toLowerCase(),
5 | password: z.string().min(6, "A senha precisa ter no mínimo 6 caracteres"),
6 | });
7 |
--------------------------------------------------------------------------------
/spa/src/schemas/SignupSchema.js:
--------------------------------------------------------------------------------
1 | import z from "zod";
2 |
3 | export const signupSchema = z
4 | .object({
5 | name: z
6 | .string()
7 | .min(3, "O nome precisa ter no minímo 3 caracteres")
8 | .transform((name) => {
9 | return name
10 | .trim()
11 | .split(" ")
12 | .map((word) => {
13 | return word[0].toLocaleUpperCase().concat(word.substring(1));
14 | })
15 | .join(" ");
16 | }),
17 | email: z
18 | .string()
19 | .email("Email inválido.")
20 | .nonempty("O email é obrigatório.")
21 | .toLowerCase(),
22 | password: z.string().min(6, "A senha precisa ter no minímo 6 caracteres"),
23 | confirmPassword: z
24 | .string()
25 | .min(6, "A senha precisa ter no minímo 6 caracteres"),
26 | })
27 | .refine((data) => data.password === data.confirmPassword, {
28 | message: "As senhas não correspondem",
29 | path: ["confirmPassword"],
30 | });
31 |
--------------------------------------------------------------------------------
/spa/src/schemas/TransactionSchema.js:
--------------------------------------------------------------------------------
1 | import { z } from "zod";
2 |
3 | export const transactionSchema = z.object({
4 | value: z
5 | .string()
6 | .min(3, "O valor precisa ter no minímo 3 caracteres")
7 | .transform((value) => Number(value)),
8 | description: z
9 | .string()
10 | .min(3, "A descrição precisa ter no minímo 3 caracteres"),
11 | });
12 |
--------------------------------------------------------------------------------
/spa/src/services/transactions.js:
--------------------------------------------------------------------------------
1 | import axios from "axios";
2 | import Cookies from "js-cookie";
3 |
4 | const BASE_URL = import.meta.env.VITE_API_BASE_URL;
5 |
6 | export function findAllTransaction() {
7 | const response = axios.get(`${BASE_URL}/transactions`, {
8 | headers: { Authorization: `Bearer ${Cookies.get("token")}` },
9 | });
10 |
11 | return response;
12 | }
13 |
14 | export function createNewTransaction(body) {
15 | const response = axios.post(`${BASE_URL}/transactions`, body, {
16 | headers: { Authorization: `Bearer ${Cookies.get("token")}` },
17 | });
18 |
19 | return response;
20 | }
21 |
--------------------------------------------------------------------------------
/spa/src/services/user.js:
--------------------------------------------------------------------------------
1 | import axios from "axios";
2 | import Cookies from "js-cookie";
3 |
4 | const BASE_URL = import.meta.env.VITE_API_BASE_URL;
5 |
6 | export function signup(data) {
7 | delete data.confirmPassword;
8 | const response = axios.post(`${BASE_URL}/signup`, data);
9 | return response;
10 | }
11 |
12 | export function signin(data) {
13 | const response = axios.post(`${BASE_URL}/signin`, data);
14 | return response;
15 | }
16 |
17 | export function userLogged() {
18 | const response = axios.get(`${BASE_URL}/me`, {
19 | headers: { Authorization: `Bearer ${Cookies.get("token")}` },
20 | });
21 |
22 | return response;
23 | }
24 |
--------------------------------------------------------------------------------
/spa/tailwind.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | export default {
3 | content: [
4 | "./index.html",
5 | "./src/**/*.{js,ts,jsx,tsx}",
6 | ],
7 | theme: {
8 | extend: {},
9 | },
10 | plugins: [],
11 | }
--------------------------------------------------------------------------------
/spa/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react-swc'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | })
8 |
--------------------------------------------------------------------------------