API-Handler commited on
Commit
567f740
·
verified ·
1 Parent(s): 3824c20

Upload 6 files

Browse files
Files changed (6) hide show
  1. Dockerfile +13 -7
  2. package-lock.json +1181 -0
  3. package.json +19 -0
  4. src/deepinfra_handler.js +74 -0
  5. src/server.js +104 -0
  6. src/validators.js +24 -0
Dockerfile CHANGED
@@ -1,14 +1,20 @@
1
- FROM python:3.10
 
2
 
3
- WORKDIR /code
 
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
8
 
 
9
  COPY . .
10
 
11
- RUN wget https://huggingface.co/datasets/API-Handler/Testing/resolve/main/app.py
12
- RUN wget https://huggingface.co/datasets/API-Handler/Testing/resolve/main/data.txt
13
 
14
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # Use Node.js LTS version
2
+ FROM node:18-slim
3
 
4
+ # Set working directory
5
+ WORKDIR /app
6
 
7
+ # Copy package files
8
+ COPY package*.json ./
9
 
10
+ # Install dependencies
11
+ RUN npm install
12
 
13
+ # Copy application files
14
  COPY . .
15
 
16
+ # Expose port
17
+ EXPOSE 7860
18
 
19
+ # Start the application
20
+ CMD ["npm", "start"]
package-lock.json ADDED
@@ -0,0 +1,1181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "deepinfra-api",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "deepinfra-api",
9
+ "version": "1.0.0",
10
+ "dependencies": {
11
+ "axios": "^1.6.2",
12
+ "dotenv": "^16.3.1",
13
+ "express": "^4.18.2",
14
+ "joi": "^17.11.0"
15
+ },
16
+ "devDependencies": {
17
+ "nodemon": "^3.0.2"
18
+ }
19
+ },
20
+ "node_modules/@hapi/hoek": {
21
+ "version": "9.3.0",
22
+ "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
23
+ "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ=="
24
+ },
25
+ "node_modules/@hapi/topo": {
26
+ "version": "5.1.0",
27
+ "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz",
28
+ "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==",
29
+ "dependencies": {
30
+ "@hapi/hoek": "^9.0.0"
31
+ }
32
+ },
33
+ "node_modules/@sideway/address": {
34
+ "version": "4.1.5",
35
+ "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz",
36
+ "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==",
37
+ "dependencies": {
38
+ "@hapi/hoek": "^9.0.0"
39
+ }
40
+ },
41
+ "node_modules/@sideway/formula": {
42
+ "version": "3.0.1",
43
+ "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz",
44
+ "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg=="
45
+ },
46
+ "node_modules/@sideway/pinpoint": {
47
+ "version": "2.0.0",
48
+ "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz",
49
+ "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ=="
50
+ },
51
+ "node_modules/accepts": {
52
+ "version": "1.3.8",
53
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
54
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
55
+ "dependencies": {
56
+ "mime-types": "~2.1.34",
57
+ "negotiator": "0.6.3"
58
+ },
59
+ "engines": {
60
+ "node": ">= 0.6"
61
+ }
62
+ },
63
+ "node_modules/anymatch": {
64
+ "version": "3.1.3",
65
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
66
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
67
+ "dev": true,
68
+ "dependencies": {
69
+ "normalize-path": "^3.0.0",
70
+ "picomatch": "^2.0.4"
71
+ },
72
+ "engines": {
73
+ "node": ">= 8"
74
+ }
75
+ },
76
+ "node_modules/array-flatten": {
77
+ "version": "1.1.1",
78
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
79
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
80
+ },
81
+ "node_modules/asynckit": {
82
+ "version": "0.4.0",
83
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
84
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
85
+ },
86
+ "node_modules/axios": {
87
+ "version": "1.7.7",
88
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
89
+ "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
90
+ "dependencies": {
91
+ "follow-redirects": "^1.15.6",
92
+ "form-data": "^4.0.0",
93
+ "proxy-from-env": "^1.1.0"
94
+ }
95
+ },
96
+ "node_modules/balanced-match": {
97
+ "version": "1.0.2",
98
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
99
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
100
+ "dev": true
101
+ },
102
+ "node_modules/binary-extensions": {
103
+ "version": "2.3.0",
104
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
105
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
106
+ "dev": true,
107
+ "engines": {
108
+ "node": ">=8"
109
+ },
110
+ "funding": {
111
+ "url": "https://github.com/sponsors/sindresorhus"
112
+ }
113
+ },
114
+ "node_modules/body-parser": {
115
+ "version": "1.20.3",
116
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
117
+ "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
118
+ "dependencies": {
119
+ "bytes": "3.1.2",
120
+ "content-type": "~1.0.5",
121
+ "debug": "2.6.9",
122
+ "depd": "2.0.0",
123
+ "destroy": "1.2.0",
124
+ "http-errors": "2.0.0",
125
+ "iconv-lite": "0.4.24",
126
+ "on-finished": "2.4.1",
127
+ "qs": "6.13.0",
128
+ "raw-body": "2.5.2",
129
+ "type-is": "~1.6.18",
130
+ "unpipe": "1.0.0"
131
+ },
132
+ "engines": {
133
+ "node": ">= 0.8",
134
+ "npm": "1.2.8000 || >= 1.4.16"
135
+ }
136
+ },
137
+ "node_modules/brace-expansion": {
138
+ "version": "1.1.11",
139
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
140
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
141
+ "dev": true,
142
+ "dependencies": {
143
+ "balanced-match": "^1.0.0",
144
+ "concat-map": "0.0.1"
145
+ }
146
+ },
147
+ "node_modules/braces": {
148
+ "version": "3.0.3",
149
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
150
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
151
+ "dev": true,
152
+ "dependencies": {
153
+ "fill-range": "^7.1.1"
154
+ },
155
+ "engines": {
156
+ "node": ">=8"
157
+ }
158
+ },
159
+ "node_modules/bytes": {
160
+ "version": "3.1.2",
161
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
162
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
163
+ "engines": {
164
+ "node": ">= 0.8"
165
+ }
166
+ },
167
+ "node_modules/call-bind": {
168
+ "version": "1.0.7",
169
+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
170
+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
171
+ "dependencies": {
172
+ "es-define-property": "^1.0.0",
173
+ "es-errors": "^1.3.0",
174
+ "function-bind": "^1.1.2",
175
+ "get-intrinsic": "^1.2.4",
176
+ "set-function-length": "^1.2.1"
177
+ },
178
+ "engines": {
179
+ "node": ">= 0.4"
180
+ },
181
+ "funding": {
182
+ "url": "https://github.com/sponsors/ljharb"
183
+ }
184
+ },
185
+ "node_modules/chokidar": {
186
+ "version": "3.6.0",
187
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
188
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
189
+ "dev": true,
190
+ "dependencies": {
191
+ "anymatch": "~3.1.2",
192
+ "braces": "~3.0.2",
193
+ "glob-parent": "~5.1.2",
194
+ "is-binary-path": "~2.1.0",
195
+ "is-glob": "~4.0.1",
196
+ "normalize-path": "~3.0.0",
197
+ "readdirp": "~3.6.0"
198
+ },
199
+ "engines": {
200
+ "node": ">= 8.10.0"
201
+ },
202
+ "funding": {
203
+ "url": "https://paulmillr.com/funding/"
204
+ },
205
+ "optionalDependencies": {
206
+ "fsevents": "~2.3.2"
207
+ }
208
+ },
209
+ "node_modules/combined-stream": {
210
+ "version": "1.0.8",
211
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
212
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
213
+ "dependencies": {
214
+ "delayed-stream": "~1.0.0"
215
+ },
216
+ "engines": {
217
+ "node": ">= 0.8"
218
+ }
219
+ },
220
+ "node_modules/concat-map": {
221
+ "version": "0.0.1",
222
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
223
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
224
+ "dev": true
225
+ },
226
+ "node_modules/content-disposition": {
227
+ "version": "0.5.4",
228
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
229
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
230
+ "dependencies": {
231
+ "safe-buffer": "5.2.1"
232
+ },
233
+ "engines": {
234
+ "node": ">= 0.6"
235
+ }
236
+ },
237
+ "node_modules/content-type": {
238
+ "version": "1.0.5",
239
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
240
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
241
+ "engines": {
242
+ "node": ">= 0.6"
243
+ }
244
+ },
245
+ "node_modules/cookie": {
246
+ "version": "0.7.1",
247
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
248
+ "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
249
+ "engines": {
250
+ "node": ">= 0.6"
251
+ }
252
+ },
253
+ "node_modules/cookie-signature": {
254
+ "version": "1.0.6",
255
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
256
+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
257
+ },
258
+ "node_modules/debug": {
259
+ "version": "2.6.9",
260
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
261
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
262
+ "dependencies": {
263
+ "ms": "2.0.0"
264
+ }
265
+ },
266
+ "node_modules/define-data-property": {
267
+ "version": "1.1.4",
268
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
269
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
270
+ "dependencies": {
271
+ "es-define-property": "^1.0.0",
272
+ "es-errors": "^1.3.0",
273
+ "gopd": "^1.0.1"
274
+ },
275
+ "engines": {
276
+ "node": ">= 0.4"
277
+ },
278
+ "funding": {
279
+ "url": "https://github.com/sponsors/ljharb"
280
+ }
281
+ },
282
+ "node_modules/delayed-stream": {
283
+ "version": "1.0.0",
284
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
285
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
286
+ "engines": {
287
+ "node": ">=0.4.0"
288
+ }
289
+ },
290
+ "node_modules/depd": {
291
+ "version": "2.0.0",
292
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
293
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
294
+ "engines": {
295
+ "node": ">= 0.8"
296
+ }
297
+ },
298
+ "node_modules/destroy": {
299
+ "version": "1.2.0",
300
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
301
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
302
+ "engines": {
303
+ "node": ">= 0.8",
304
+ "npm": "1.2.8000 || >= 1.4.16"
305
+ }
306
+ },
307
+ "node_modules/dotenv": {
308
+ "version": "16.4.5",
309
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
310
+ "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
311
+ "engines": {
312
+ "node": ">=12"
313
+ },
314
+ "funding": {
315
+ "url": "https://dotenvx.com"
316
+ }
317
+ },
318
+ "node_modules/ee-first": {
319
+ "version": "1.1.1",
320
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
321
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
322
+ },
323
+ "node_modules/encodeurl": {
324
+ "version": "2.0.0",
325
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
326
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
327
+ "engines": {
328
+ "node": ">= 0.8"
329
+ }
330
+ },
331
+ "node_modules/es-define-property": {
332
+ "version": "1.0.0",
333
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
334
+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
335
+ "dependencies": {
336
+ "get-intrinsic": "^1.2.4"
337
+ },
338
+ "engines": {
339
+ "node": ">= 0.4"
340
+ }
341
+ },
342
+ "node_modules/es-errors": {
343
+ "version": "1.3.0",
344
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
345
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
346
+ "engines": {
347
+ "node": ">= 0.4"
348
+ }
349
+ },
350
+ "node_modules/escape-html": {
351
+ "version": "1.0.3",
352
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
353
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
354
+ },
355
+ "node_modules/etag": {
356
+ "version": "1.8.1",
357
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
358
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
359
+ "engines": {
360
+ "node": ">= 0.6"
361
+ }
362
+ },
363
+ "node_modules/express": {
364
+ "version": "4.21.1",
365
+ "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
366
+ "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
367
+ "dependencies": {
368
+ "accepts": "~1.3.8",
369
+ "array-flatten": "1.1.1",
370
+ "body-parser": "1.20.3",
371
+ "content-disposition": "0.5.4",
372
+ "content-type": "~1.0.4",
373
+ "cookie": "0.7.1",
374
+ "cookie-signature": "1.0.6",
375
+ "debug": "2.6.9",
376
+ "depd": "2.0.0",
377
+ "encodeurl": "~2.0.0",
378
+ "escape-html": "~1.0.3",
379
+ "etag": "~1.8.1",
380
+ "finalhandler": "1.3.1",
381
+ "fresh": "0.5.2",
382
+ "http-errors": "2.0.0",
383
+ "merge-descriptors": "1.0.3",
384
+ "methods": "~1.1.2",
385
+ "on-finished": "2.4.1",
386
+ "parseurl": "~1.3.3",
387
+ "path-to-regexp": "0.1.10",
388
+ "proxy-addr": "~2.0.7",
389
+ "qs": "6.13.0",
390
+ "range-parser": "~1.2.1",
391
+ "safe-buffer": "5.2.1",
392
+ "send": "0.19.0",
393
+ "serve-static": "1.16.2",
394
+ "setprototypeof": "1.2.0",
395
+ "statuses": "2.0.1",
396
+ "type-is": "~1.6.18",
397
+ "utils-merge": "1.0.1",
398
+ "vary": "~1.1.2"
399
+ },
400
+ "engines": {
401
+ "node": ">= 0.10.0"
402
+ }
403
+ },
404
+ "node_modules/fill-range": {
405
+ "version": "7.1.1",
406
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
407
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
408
+ "dev": true,
409
+ "dependencies": {
410
+ "to-regex-range": "^5.0.1"
411
+ },
412
+ "engines": {
413
+ "node": ">=8"
414
+ }
415
+ },
416
+ "node_modules/finalhandler": {
417
+ "version": "1.3.1",
418
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
419
+ "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
420
+ "dependencies": {
421
+ "debug": "2.6.9",
422
+ "encodeurl": "~2.0.0",
423
+ "escape-html": "~1.0.3",
424
+ "on-finished": "2.4.1",
425
+ "parseurl": "~1.3.3",
426
+ "statuses": "2.0.1",
427
+ "unpipe": "~1.0.0"
428
+ },
429
+ "engines": {
430
+ "node": ">= 0.8"
431
+ }
432
+ },
433
+ "node_modules/follow-redirects": {
434
+ "version": "1.15.9",
435
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
436
+ "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
437
+ "funding": [
438
+ {
439
+ "type": "individual",
440
+ "url": "https://github.com/sponsors/RubenVerborgh"
441
+ }
442
+ ],
443
+ "engines": {
444
+ "node": ">=4.0"
445
+ },
446
+ "peerDependenciesMeta": {
447
+ "debug": {
448
+ "optional": true
449
+ }
450
+ }
451
+ },
452
+ "node_modules/form-data": {
453
+ "version": "4.0.1",
454
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
455
+ "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
456
+ "dependencies": {
457
+ "asynckit": "^0.4.0",
458
+ "combined-stream": "^1.0.8",
459
+ "mime-types": "^2.1.12"
460
+ },
461
+ "engines": {
462
+ "node": ">= 6"
463
+ }
464
+ },
465
+ "node_modules/forwarded": {
466
+ "version": "0.2.0",
467
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
468
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
469
+ "engines": {
470
+ "node": ">= 0.6"
471
+ }
472
+ },
473
+ "node_modules/fresh": {
474
+ "version": "0.5.2",
475
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
476
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
477
+ "engines": {
478
+ "node": ">= 0.6"
479
+ }
480
+ },
481
+ "node_modules/fsevents": {
482
+ "version": "2.3.3",
483
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
484
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
485
+ "dev": true,
486
+ "hasInstallScript": true,
487
+ "optional": true,
488
+ "os": [
489
+ "darwin"
490
+ ],
491
+ "engines": {
492
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
493
+ }
494
+ },
495
+ "node_modules/function-bind": {
496
+ "version": "1.1.2",
497
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
498
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
499
+ "funding": {
500
+ "url": "https://github.com/sponsors/ljharb"
501
+ }
502
+ },
503
+ "node_modules/get-intrinsic": {
504
+ "version": "1.2.4",
505
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
506
+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
507
+ "dependencies": {
508
+ "es-errors": "^1.3.0",
509
+ "function-bind": "^1.1.2",
510
+ "has-proto": "^1.0.1",
511
+ "has-symbols": "^1.0.3",
512
+ "hasown": "^2.0.0"
513
+ },
514
+ "engines": {
515
+ "node": ">= 0.4"
516
+ },
517
+ "funding": {
518
+ "url": "https://github.com/sponsors/ljharb"
519
+ }
520
+ },
521
+ "node_modules/glob-parent": {
522
+ "version": "5.1.2",
523
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
524
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
525
+ "dev": true,
526
+ "dependencies": {
527
+ "is-glob": "^4.0.1"
528
+ },
529
+ "engines": {
530
+ "node": ">= 6"
531
+ }
532
+ },
533
+ "node_modules/gopd": {
534
+ "version": "1.0.1",
535
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
536
+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
537
+ "dependencies": {
538
+ "get-intrinsic": "^1.1.3"
539
+ },
540
+ "funding": {
541
+ "url": "https://github.com/sponsors/ljharb"
542
+ }
543
+ },
544
+ "node_modules/has-flag": {
545
+ "version": "3.0.0",
546
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
547
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
548
+ "dev": true,
549
+ "engines": {
550
+ "node": ">=4"
551
+ }
552
+ },
553
+ "node_modules/has-property-descriptors": {
554
+ "version": "1.0.2",
555
+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
556
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
557
+ "dependencies": {
558
+ "es-define-property": "^1.0.0"
559
+ },
560
+ "funding": {
561
+ "url": "https://github.com/sponsors/ljharb"
562
+ }
563
+ },
564
+ "node_modules/has-proto": {
565
+ "version": "1.0.3",
566
+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
567
+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
568
+ "engines": {
569
+ "node": ">= 0.4"
570
+ },
571
+ "funding": {
572
+ "url": "https://github.com/sponsors/ljharb"
573
+ }
574
+ },
575
+ "node_modules/has-symbols": {
576
+ "version": "1.0.3",
577
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
578
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
579
+ "engines": {
580
+ "node": ">= 0.4"
581
+ },
582
+ "funding": {
583
+ "url": "https://github.com/sponsors/ljharb"
584
+ }
585
+ },
586
+ "node_modules/hasown": {
587
+ "version": "2.0.2",
588
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
589
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
590
+ "dependencies": {
591
+ "function-bind": "^1.1.2"
592
+ },
593
+ "engines": {
594
+ "node": ">= 0.4"
595
+ }
596
+ },
597
+ "node_modules/http-errors": {
598
+ "version": "2.0.0",
599
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
600
+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
601
+ "dependencies": {
602
+ "depd": "2.0.0",
603
+ "inherits": "2.0.4",
604
+ "setprototypeof": "1.2.0",
605
+ "statuses": "2.0.1",
606
+ "toidentifier": "1.0.1"
607
+ },
608
+ "engines": {
609
+ "node": ">= 0.8"
610
+ }
611
+ },
612
+ "node_modules/iconv-lite": {
613
+ "version": "0.4.24",
614
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
615
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
616
+ "dependencies": {
617
+ "safer-buffer": ">= 2.1.2 < 3"
618
+ },
619
+ "engines": {
620
+ "node": ">=0.10.0"
621
+ }
622
+ },
623
+ "node_modules/ignore-by-default": {
624
+ "version": "1.0.1",
625
+ "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz",
626
+ "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==",
627
+ "dev": true
628
+ },
629
+ "node_modules/inherits": {
630
+ "version": "2.0.4",
631
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
632
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
633
+ },
634
+ "node_modules/ipaddr.js": {
635
+ "version": "1.9.1",
636
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
637
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
638
+ "engines": {
639
+ "node": ">= 0.10"
640
+ }
641
+ },
642
+ "node_modules/is-binary-path": {
643
+ "version": "2.1.0",
644
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
645
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
646
+ "dev": true,
647
+ "dependencies": {
648
+ "binary-extensions": "^2.0.0"
649
+ },
650
+ "engines": {
651
+ "node": ">=8"
652
+ }
653
+ },
654
+ "node_modules/is-extglob": {
655
+ "version": "2.1.1",
656
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
657
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
658
+ "dev": true,
659
+ "engines": {
660
+ "node": ">=0.10.0"
661
+ }
662
+ },
663
+ "node_modules/is-glob": {
664
+ "version": "4.0.3",
665
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
666
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
667
+ "dev": true,
668
+ "dependencies": {
669
+ "is-extglob": "^2.1.1"
670
+ },
671
+ "engines": {
672
+ "node": ">=0.10.0"
673
+ }
674
+ },
675
+ "node_modules/is-number": {
676
+ "version": "7.0.0",
677
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
678
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
679
+ "dev": true,
680
+ "engines": {
681
+ "node": ">=0.12.0"
682
+ }
683
+ },
684
+ "node_modules/joi": {
685
+ "version": "17.13.3",
686
+ "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz",
687
+ "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==",
688
+ "dependencies": {
689
+ "@hapi/hoek": "^9.3.0",
690
+ "@hapi/topo": "^5.1.0",
691
+ "@sideway/address": "^4.1.5",
692
+ "@sideway/formula": "^3.0.1",
693
+ "@sideway/pinpoint": "^2.0.0"
694
+ }
695
+ },
696
+ "node_modules/media-typer": {
697
+ "version": "0.3.0",
698
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
699
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
700
+ "engines": {
701
+ "node": ">= 0.6"
702
+ }
703
+ },
704
+ "node_modules/merge-descriptors": {
705
+ "version": "1.0.3",
706
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
707
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
708
+ "funding": {
709
+ "url": "https://github.com/sponsors/sindresorhus"
710
+ }
711
+ },
712
+ "node_modules/methods": {
713
+ "version": "1.1.2",
714
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
715
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
716
+ "engines": {
717
+ "node": ">= 0.6"
718
+ }
719
+ },
720
+ "node_modules/mime": {
721
+ "version": "1.6.0",
722
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
723
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
724
+ "bin": {
725
+ "mime": "cli.js"
726
+ },
727
+ "engines": {
728
+ "node": ">=4"
729
+ }
730
+ },
731
+ "node_modules/mime-db": {
732
+ "version": "1.52.0",
733
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
734
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
735
+ "engines": {
736
+ "node": ">= 0.6"
737
+ }
738
+ },
739
+ "node_modules/mime-types": {
740
+ "version": "2.1.35",
741
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
742
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
743
+ "dependencies": {
744
+ "mime-db": "1.52.0"
745
+ },
746
+ "engines": {
747
+ "node": ">= 0.6"
748
+ }
749
+ },
750
+ "node_modules/minimatch": {
751
+ "version": "3.1.2",
752
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
753
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
754
+ "dev": true,
755
+ "dependencies": {
756
+ "brace-expansion": "^1.1.7"
757
+ },
758
+ "engines": {
759
+ "node": "*"
760
+ }
761
+ },
762
+ "node_modules/ms": {
763
+ "version": "2.0.0",
764
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
765
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
766
+ },
767
+ "node_modules/negotiator": {
768
+ "version": "0.6.3",
769
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
770
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
771
+ "engines": {
772
+ "node": ">= 0.6"
773
+ }
774
+ },
775
+ "node_modules/nodemon": {
776
+ "version": "3.1.7",
777
+ "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.7.tgz",
778
+ "integrity": "sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==",
779
+ "dev": true,
780
+ "dependencies": {
781
+ "chokidar": "^3.5.2",
782
+ "debug": "^4",
783
+ "ignore-by-default": "^1.0.1",
784
+ "minimatch": "^3.1.2",
785
+ "pstree.remy": "^1.1.8",
786
+ "semver": "^7.5.3",
787
+ "simple-update-notifier": "^2.0.0",
788
+ "supports-color": "^5.5.0",
789
+ "touch": "^3.1.0",
790
+ "undefsafe": "^2.0.5"
791
+ },
792
+ "bin": {
793
+ "nodemon": "bin/nodemon.js"
794
+ },
795
+ "engines": {
796
+ "node": ">=10"
797
+ },
798
+ "funding": {
799
+ "type": "opencollective",
800
+ "url": "https://opencollective.com/nodemon"
801
+ }
802
+ },
803
+ "node_modules/nodemon/node_modules/debug": {
804
+ "version": "4.3.7",
805
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
806
+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
807
+ "dev": true,
808
+ "dependencies": {
809
+ "ms": "^2.1.3"
810
+ },
811
+ "engines": {
812
+ "node": ">=6.0"
813
+ },
814
+ "peerDependenciesMeta": {
815
+ "supports-color": {
816
+ "optional": true
817
+ }
818
+ }
819
+ },
820
+ "node_modules/nodemon/node_modules/ms": {
821
+ "version": "2.1.3",
822
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
823
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
824
+ "dev": true
825
+ },
826
+ "node_modules/normalize-path": {
827
+ "version": "3.0.0",
828
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
829
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
830
+ "dev": true,
831
+ "engines": {
832
+ "node": ">=0.10.0"
833
+ }
834
+ },
835
+ "node_modules/object-inspect": {
836
+ "version": "1.13.3",
837
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
838
+ "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
839
+ "engines": {
840
+ "node": ">= 0.4"
841
+ },
842
+ "funding": {
843
+ "url": "https://github.com/sponsors/ljharb"
844
+ }
845
+ },
846
+ "node_modules/on-finished": {
847
+ "version": "2.4.1",
848
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
849
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
850
+ "dependencies": {
851
+ "ee-first": "1.1.1"
852
+ },
853
+ "engines": {
854
+ "node": ">= 0.8"
855
+ }
856
+ },
857
+ "node_modules/parseurl": {
858
+ "version": "1.3.3",
859
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
860
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
861
+ "engines": {
862
+ "node": ">= 0.8"
863
+ }
864
+ },
865
+ "node_modules/path-to-regexp": {
866
+ "version": "0.1.10",
867
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
868
+ "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w=="
869
+ },
870
+ "node_modules/picomatch": {
871
+ "version": "2.3.1",
872
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
873
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
874
+ "dev": true,
875
+ "engines": {
876
+ "node": ">=8.6"
877
+ },
878
+ "funding": {
879
+ "url": "https://github.com/sponsors/jonschlinkert"
880
+ }
881
+ },
882
+ "node_modules/proxy-addr": {
883
+ "version": "2.0.7",
884
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
885
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
886
+ "dependencies": {
887
+ "forwarded": "0.2.0",
888
+ "ipaddr.js": "1.9.1"
889
+ },
890
+ "engines": {
891
+ "node": ">= 0.10"
892
+ }
893
+ },
894
+ "node_modules/proxy-from-env": {
895
+ "version": "1.1.0",
896
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
897
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
898
+ },
899
+ "node_modules/pstree.remy": {
900
+ "version": "1.1.8",
901
+ "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz",
902
+ "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==",
903
+ "dev": true
904
+ },
905
+ "node_modules/qs": {
906
+ "version": "6.13.0",
907
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
908
+ "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
909
+ "dependencies": {
910
+ "side-channel": "^1.0.6"
911
+ },
912
+ "engines": {
913
+ "node": ">=0.6"
914
+ },
915
+ "funding": {
916
+ "url": "https://github.com/sponsors/ljharb"
917
+ }
918
+ },
919
+ "node_modules/range-parser": {
920
+ "version": "1.2.1",
921
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
922
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
923
+ "engines": {
924
+ "node": ">= 0.6"
925
+ }
926
+ },
927
+ "node_modules/raw-body": {
928
+ "version": "2.5.2",
929
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
930
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
931
+ "dependencies": {
932
+ "bytes": "3.1.2",
933
+ "http-errors": "2.0.0",
934
+ "iconv-lite": "0.4.24",
935
+ "unpipe": "1.0.0"
936
+ },
937
+ "engines": {
938
+ "node": ">= 0.8"
939
+ }
940
+ },
941
+ "node_modules/readdirp": {
942
+ "version": "3.6.0",
943
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
944
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
945
+ "dev": true,
946
+ "dependencies": {
947
+ "picomatch": "^2.2.1"
948
+ },
949
+ "engines": {
950
+ "node": ">=8.10.0"
951
+ }
952
+ },
953
+ "node_modules/safe-buffer": {
954
+ "version": "5.2.1",
955
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
956
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
957
+ "funding": [
958
+ {
959
+ "type": "github",
960
+ "url": "https://github.com/sponsors/feross"
961
+ },
962
+ {
963
+ "type": "patreon",
964
+ "url": "https://www.patreon.com/feross"
965
+ },
966
+ {
967
+ "type": "consulting",
968
+ "url": "https://feross.org/support"
969
+ }
970
+ ]
971
+ },
972
+ "node_modules/safer-buffer": {
973
+ "version": "2.1.2",
974
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
975
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
976
+ },
977
+ "node_modules/semver": {
978
+ "version": "7.6.3",
979
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
980
+ "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
981
+ "dev": true,
982
+ "bin": {
983
+ "semver": "bin/semver.js"
984
+ },
985
+ "engines": {
986
+ "node": ">=10"
987
+ }
988
+ },
989
+ "node_modules/send": {
990
+ "version": "0.19.0",
991
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
992
+ "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
993
+ "dependencies": {
994
+ "debug": "2.6.9",
995
+ "depd": "2.0.0",
996
+ "destroy": "1.2.0",
997
+ "encodeurl": "~1.0.2",
998
+ "escape-html": "~1.0.3",
999
+ "etag": "~1.8.1",
1000
+ "fresh": "0.5.2",
1001
+ "http-errors": "2.0.0",
1002
+ "mime": "1.6.0",
1003
+ "ms": "2.1.3",
1004
+ "on-finished": "2.4.1",
1005
+ "range-parser": "~1.2.1",
1006
+ "statuses": "2.0.1"
1007
+ },
1008
+ "engines": {
1009
+ "node": ">= 0.8.0"
1010
+ }
1011
+ },
1012
+ "node_modules/send/node_modules/encodeurl": {
1013
+ "version": "1.0.2",
1014
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
1015
+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
1016
+ "engines": {
1017
+ "node": ">= 0.8"
1018
+ }
1019
+ },
1020
+ "node_modules/send/node_modules/ms": {
1021
+ "version": "2.1.3",
1022
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1023
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
1024
+ },
1025
+ "node_modules/serve-static": {
1026
+ "version": "1.16.2",
1027
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
1028
+ "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
1029
+ "dependencies": {
1030
+ "encodeurl": "~2.0.0",
1031
+ "escape-html": "~1.0.3",
1032
+ "parseurl": "~1.3.3",
1033
+ "send": "0.19.0"
1034
+ },
1035
+ "engines": {
1036
+ "node": ">= 0.8.0"
1037
+ }
1038
+ },
1039
+ "node_modules/set-function-length": {
1040
+ "version": "1.2.2",
1041
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
1042
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
1043
+ "dependencies": {
1044
+ "define-data-property": "^1.1.4",
1045
+ "es-errors": "^1.3.0",
1046
+ "function-bind": "^1.1.2",
1047
+ "get-intrinsic": "^1.2.4",
1048
+ "gopd": "^1.0.1",
1049
+ "has-property-descriptors": "^1.0.2"
1050
+ },
1051
+ "engines": {
1052
+ "node": ">= 0.4"
1053
+ }
1054
+ },
1055
+ "node_modules/setprototypeof": {
1056
+ "version": "1.2.0",
1057
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1058
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
1059
+ },
1060
+ "node_modules/side-channel": {
1061
+ "version": "1.0.6",
1062
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
1063
+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
1064
+ "dependencies": {
1065
+ "call-bind": "^1.0.7",
1066
+ "es-errors": "^1.3.0",
1067
+ "get-intrinsic": "^1.2.4",
1068
+ "object-inspect": "^1.13.1"
1069
+ },
1070
+ "engines": {
1071
+ "node": ">= 0.4"
1072
+ },
1073
+ "funding": {
1074
+ "url": "https://github.com/sponsors/ljharb"
1075
+ }
1076
+ },
1077
+ "node_modules/simple-update-notifier": {
1078
+ "version": "2.0.0",
1079
+ "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",
1080
+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",
1081
+ "dev": true,
1082
+ "dependencies": {
1083
+ "semver": "^7.5.3"
1084
+ },
1085
+ "engines": {
1086
+ "node": ">=10"
1087
+ }
1088
+ },
1089
+ "node_modules/statuses": {
1090
+ "version": "2.0.1",
1091
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1092
+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
1093
+ "engines": {
1094
+ "node": ">= 0.8"
1095
+ }
1096
+ },
1097
+ "node_modules/supports-color": {
1098
+ "version": "5.5.0",
1099
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1100
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1101
+ "dev": true,
1102
+ "dependencies": {
1103
+ "has-flag": "^3.0.0"
1104
+ },
1105
+ "engines": {
1106
+ "node": ">=4"
1107
+ }
1108
+ },
1109
+ "node_modules/to-regex-range": {
1110
+ "version": "5.0.1",
1111
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1112
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1113
+ "dev": true,
1114
+ "dependencies": {
1115
+ "is-number": "^7.0.0"
1116
+ },
1117
+ "engines": {
1118
+ "node": ">=8.0"
1119
+ }
1120
+ },
1121
+ "node_modules/toidentifier": {
1122
+ "version": "1.0.1",
1123
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1124
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1125
+ "engines": {
1126
+ "node": ">=0.6"
1127
+ }
1128
+ },
1129
+ "node_modules/touch": {
1130
+ "version": "3.1.1",
1131
+ "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz",
1132
+ "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==",
1133
+ "dev": true,
1134
+ "bin": {
1135
+ "nodetouch": "bin/nodetouch.js"
1136
+ }
1137
+ },
1138
+ "node_modules/type-is": {
1139
+ "version": "1.6.18",
1140
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1141
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1142
+ "dependencies": {
1143
+ "media-typer": "0.3.0",
1144
+ "mime-types": "~2.1.24"
1145
+ },
1146
+ "engines": {
1147
+ "node": ">= 0.6"
1148
+ }
1149
+ },
1150
+ "node_modules/undefsafe": {
1151
+ "version": "2.0.5",
1152
+ "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",
1153
+ "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==",
1154
+ "dev": true
1155
+ },
1156
+ "node_modules/unpipe": {
1157
+ "version": "1.0.0",
1158
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1159
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1160
+ "engines": {
1161
+ "node": ">= 0.8"
1162
+ }
1163
+ },
1164
+ "node_modules/utils-merge": {
1165
+ "version": "1.0.1",
1166
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1167
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1168
+ "engines": {
1169
+ "node": ">= 0.4.0"
1170
+ }
1171
+ },
1172
+ "node_modules/vary": {
1173
+ "version": "1.1.2",
1174
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1175
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1176
+ "engines": {
1177
+ "node": ">= 0.8"
1178
+ }
1179
+ }
1180
+ }
1181
+ }
package.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "deepinfra-api",
3
+ "version": "1.0.0",
4
+ "description": "DeepInfra API Handler",
5
+ "main": "src/server.js",
6
+ "scripts": {
7
+ "start": "node src/server.js",
8
+ "dev": "nodemon src/server.js"
9
+ },
10
+ "dependencies": {
11
+ "express": "^4.18.2",
12
+ "axios": "^1.6.2",
13
+ "joi": "^17.11.0",
14
+ "dotenv": "^16.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "nodemon": "^3.0.2"
18
+ }
19
+ }
src/deepinfra_handler.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const axios = require('axios');
2
+
3
+ class DeepInfraHandler {
4
+ constructor() {
5
+ this.API_URL = 'https://api.deepinfra.com/v1/openai/chat/completions';
6
+ this.headers = {
7
+ 'Accept': 'text/event-stream',
8
+ 'Accept-Encoding': 'gzip, deflate, br, zstd',
9
+ 'Content-Type': 'application/json',
10
+ 'Connection': 'keep-alive',
11
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'
12
+ };
13
+ }
14
+
15
+ _preparePayload(params) {
16
+ return {
17
+ model: params.model,
18
+ messages: params.messages,
19
+ temperature: params.temperature || 0.7,
20
+ max_tokens: params.max_tokens || 4096,
21
+ top_p: params.top_p || 1.0,
22
+ frequency_penalty: params.frequency_penalty || 0.0,
23
+ presence_penalty: params.presence_penalty || 0.0,
24
+ stop: params.stop || [],
25
+ stream: params.stream || false
26
+ };
27
+ }
28
+
29
+ async generateCompletion(params) {
30
+ const payload = this._preparePayload(params);
31
+
32
+ try {
33
+ if (payload.stream) {
34
+ return this._handleStreamingResponse(payload);
35
+ } else {
36
+ return this._handleRegularResponse(payload);
37
+ }
38
+ } catch (error) {
39
+ throw new Error(`API request failed: ${error.message}`);
40
+ }
41
+ }
42
+
43
+ async _handleRegularResponse(payload) {
44
+ const response = await axios.post(this.API_URL, payload, {
45
+ headers: this.headers
46
+ });
47
+ return response.data;
48
+ }
49
+
50
+ async* _handleStreamingResponse(payload) {
51
+ const response = await axios.post(this.API_URL, payload, {
52
+ headers: this.headers,
53
+ responseType: 'stream'
54
+ });
55
+
56
+ for await (const chunk of response.data) {
57
+ const lines = chunk.toString().split('\n');
58
+ for (const line of lines) {
59
+ if (line.startsWith('data: ')) {
60
+ try {
61
+ const content = JSON.parse(line.slice(6));
62
+ if (content === '[DONE]') continue;
63
+ const deltaContent = content?.choices?.[0]?.delta?.content;
64
+ if (deltaContent) yield deltaContent;
65
+ } catch (error) {
66
+ continue;
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ module.exports = { DeepInfraHandler };
src/server.js ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const express = require('express');
2
+ const axios = require('axios');
3
+
4
+ class DeepInfraHandler {
5
+ constructor() {
6
+ this.API_URL = 'https://api.deepinfra.com/v1/openai/chat/completions';
7
+ this.headers = {
8
+ 'Accept': 'text/event-stream',
9
+ 'Accept-Encoding': 'gzip, deflate, br, zstd',
10
+ 'Content-Type': 'application/json',
11
+ 'Connection': 'keep-alive',
12
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'
13
+ };
14
+ }
15
+
16
+ _preparePayload(params) {
17
+ return {
18
+ model: params.model,
19
+ messages: params.messages,
20
+ temperature: params.temperature || 0.7,
21
+ max_tokens: params.max_tokens || 4096,
22
+ top_p: params.top_p || 1.0,
23
+ frequency_penalty: params.frequency_penalty || 0.0,
24
+ presence_penalty: params.presence_penalty || 0.0,
25
+ stop: params.stop || [],
26
+ stream: params.stream || false
27
+ };
28
+ }
29
+
30
+ async generateCompletion(params) {
31
+ const payload = this._preparePayload(params);
32
+
33
+ if (payload.stream) {
34
+ const response = await axios({
35
+ method: 'post',
36
+ url: this.API_URL,
37
+ data: payload,
38
+ headers: this.headers,
39
+ responseType: 'stream'
40
+ });
41
+ return response.data;
42
+ } else {
43
+ const response = await axios.post(this.API_URL, payload, {
44
+ headers: this.headers
45
+ });
46
+ return response.data;
47
+ }
48
+ }
49
+ }
50
+
51
+ const app = express();
52
+ const PORT = process.env.PORT || 7860;
53
+ const apiHandler = new DeepInfraHandler();
54
+
55
+ app.use(express.json());
56
+
57
+ app.post('/chat/completions', async (req, res) => {
58
+ try {
59
+ if (req.body.stream) {
60
+ res.setHeader('Content-Type', 'text/event-stream');
61
+ res.setHeader('Cache-Control', 'no-cache');
62
+ res.setHeader('Connection', 'keep-alive');
63
+
64
+ const stream = await apiHandler.generateCompletion(req.body);
65
+
66
+ stream.on('data', chunk => {
67
+ const lines = chunk.toString().split('\n');
68
+ for (const line of lines) {
69
+ if (line.startsWith('data: ')) {
70
+ try {
71
+ const content = JSON.parse(line.slice(6));
72
+ if (content === '[DONE]') {
73
+ res.write('data: [DONE]\n\n');
74
+ continue;
75
+ }
76
+ res.write(line + '\n\n');
77
+ } catch (error) {
78
+ continue;
79
+ }
80
+ }
81
+ }
82
+ });
83
+
84
+ stream.on('end', () => {
85
+ res.end();
86
+ });
87
+
88
+ stream.on('error', (error) => {
89
+ console.error('Stream error:', error);
90
+ res.end();
91
+ });
92
+ } else {
93
+ const response = await apiHandler.generateCompletion(req.body);
94
+ res.json(response);
95
+ }
96
+ } catch (error) {
97
+ console.error('Error:', error);
98
+ res.status(500).json({ error: error.message });
99
+ }
100
+ });
101
+
102
+ app.listen(PORT, () => {
103
+ console.log(`Server running on port ${PORT}`);
104
+ });
src/validators.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const Joi = require('joi');
2
+
3
+ const messageSchema = Joi.object({
4
+ role: Joi.string().required(),
5
+ content: Joi.string().required()
6
+ });
7
+
8
+ const chatRequestSchema = Joi.object({
9
+ model: Joi.string().required(),
10
+ messages: Joi.array().items(messageSchema).required(),
11
+ temperature: Joi.number().min(0).max(2).default(0.7),
12
+ max_tokens: Joi.number().integer().min(1).default(4096),
13
+ top_p: Joi.number().min(0).max(1).default(1.0),
14
+ frequency_penalty: Joi.number().min(-2).max(2).default(0.0),
15
+ presence_penalty: Joi.number().min(-2).max(2).default(0.0),
16
+ stop: Joi.array().items(Joi.string()).default([]),
17
+ stream: Joi.boolean().default(false)
18
+ });
19
+
20
+ function validateChatRequest(data) {
21
+ return chatRequestSchema.validate(data);
22
+ }
23
+
24
+ module.exports = { validateChatRequest };