Commit
•
dc5db88
0
Parent(s):
Duplicate from coyotte508/test-req
Browse files- .gitattributes +34 -0
- .gitignore +1 -0
- Dockerfile +10 -0
- README.md +11 -0
- package-lock.json +771 -0
- package.json +19 -0
- server.ts +15 -0
.gitattributes
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
node_modules
|
Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:18
|
2 |
+
|
3 |
+
COPY package.json package.json
|
4 |
+
COPY package-lock.json package-lock.json
|
5 |
+
|
6 |
+
RUN npm install
|
7 |
+
|
8 |
+
COPY . .
|
9 |
+
|
10 |
+
CMD ["npm", "start"]
|
README.md
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Test Req
|
3 |
+
emoji: 📊
|
4 |
+
colorFrom: gray
|
5 |
+
colorTo: blue
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
duplicated_from: coyotte508/test-req
|
9 |
+
---
|
10 |
+
|
11 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
package-lock.json
ADDED
@@ -0,0 +1,771 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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+
"version": "1.0.0",
|
4 |
+
"lockfileVersion": 3,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "test-req",
|
9 |
+
"version": "1.0.0",
|
10 |
+
"license": "ISC",
|
11 |
+
"dependencies": {
|
12 |
+
"koa": "^2.14.2"
|
13 |
+
},
|
14 |
+
"devDependencies": {
|
15 |
+
"@types/koa": "^2.13.6",
|
16 |
+
"ts-node": "^10.9.1"
|
17 |
+
}
|
18 |
+
},
|
19 |
+
"node_modules/@cspotcode/source-map-support": {
|
20 |
+
"version": "0.8.1",
|
21 |
+
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
|
22 |
+
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
|
23 |
+
"dev": true,
|
24 |
+
"dependencies": {
|
25 |
+
"@jridgewell/trace-mapping": "0.3.9"
|
26 |
+
},
|
27 |
+
"engines": {
|
28 |
+
"node": ">=12"
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"node_modules/@jridgewell/resolve-uri": {
|
32 |
+
"version": "3.1.1",
|
33 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
34 |
+
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
35 |
+
"dev": true,
|
36 |
+
"engines": {
|
37 |
+
"node": ">=6.0.0"
|
38 |
+
}
|
39 |
+
},
|
40 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
41 |
+
"version": "1.4.15",
|
42 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
43 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
44 |
+
"dev": true
|
45 |
+
},
|
46 |
+
"node_modules/@jridgewell/trace-mapping": {
|
47 |
+
"version": "0.3.9",
|
48 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
|
49 |
+
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
|
50 |
+
"dev": true,
|
51 |
+
"dependencies": {
|
52 |
+
"@jridgewell/resolve-uri": "^3.0.3",
|
53 |
+
"@jridgewell/sourcemap-codec": "^1.4.10"
|
54 |
+
}
|
55 |
+
},
|
56 |
+
"node_modules/@tsconfig/node10": {
|
57 |
+
"version": "1.0.9",
|
58 |
+
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
|
59 |
+
"integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==",
|
60 |
+
"dev": true
|
61 |
+
},
|
62 |
+
"node_modules/@tsconfig/node12": {
|
63 |
+
"version": "1.0.11",
|
64 |
+
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
|
65 |
+
"integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
|
66 |
+
"dev": true
|
67 |
+
},
|
68 |
+
"node_modules/@tsconfig/node14": {
|
69 |
+
"version": "1.0.3",
|
70 |
+
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
|
71 |
+
"integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
|
72 |
+
"dev": true
|
73 |
+
},
|
74 |
+
"node_modules/@tsconfig/node16": {
|
75 |
+
"version": "1.0.4",
|
76 |
+
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
|
77 |
+
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
78 |
+
"dev": true
|
79 |
+
},
|
80 |
+
"node_modules/@types/accepts": {
|
81 |
+
"version": "1.3.5",
|
82 |
+
"resolved": "https://registry.npmjs.org/@types/accepts/-/accepts-1.3.5.tgz",
|
83 |
+
"integrity": "sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==",
|
84 |
+
"dev": true,
|
85 |
+
"dependencies": {
|
86 |
+
"@types/node": "*"
|
87 |
+
}
|
88 |
+
},
|
89 |
+
"node_modules/@types/body-parser": {
|
90 |
+
"version": "1.19.2",
|
91 |
+
"resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz",
|
92 |
+
"integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==",
|
93 |
+
"dev": true,
|
94 |
+
"dependencies": {
|
95 |
+
"@types/connect": "*",
|
96 |
+
"@types/node": "*"
|
97 |
+
}
|
98 |
+
},
|
99 |
+
"node_modules/@types/connect": {
|
100 |
+
"version": "3.4.35",
|
101 |
+
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz",
|
102 |
+
"integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==",
|
103 |
+
"dev": true,
|
104 |
+
"dependencies": {
|
105 |
+
"@types/node": "*"
|
106 |
+
}
|
107 |
+
},
|
108 |
+
"node_modules/@types/content-disposition": {
|
109 |
+
"version": "0.5.5",
|
110 |
+
"resolved": "https://registry.npmjs.org/@types/content-disposition/-/content-disposition-0.5.5.tgz",
|
111 |
+
"integrity": "sha512-v6LCdKfK6BwcqMo+wYW05rLS12S0ZO0Fl4w1h4aaZMD7bqT3gVUns6FvLJKGZHQmYn3SX55JWGpziwJRwVgutA==",
|
112 |
+
"dev": true
|
113 |
+
},
|
114 |
+
"node_modules/@types/cookies": {
|
115 |
+
"version": "0.7.7",
|
116 |
+
"resolved": "https://registry.npmjs.org/@types/cookies/-/cookies-0.7.7.tgz",
|
117 |
+
"integrity": "sha512-h7BcvPUogWbKCzBR2lY4oqaZbO3jXZksexYJVFvkrFeLgbZjQkU4x8pRq6eg2MHXQhY0McQdqmmsxRWlVAHooA==",
|
118 |
+
"dev": true,
|
119 |
+
"dependencies": {
|
120 |
+
"@types/connect": "*",
|
121 |
+
"@types/express": "*",
|
122 |
+
"@types/keygrip": "*",
|
123 |
+
"@types/node": "*"
|
124 |
+
}
|
125 |
+
},
|
126 |
+
"node_modules/@types/express": {
|
127 |
+
"version": "4.17.17",
|
128 |
+
"resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz",
|
129 |
+
"integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==",
|
130 |
+
"dev": true,
|
131 |
+
"dependencies": {
|
132 |
+
"@types/body-parser": "*",
|
133 |
+
"@types/express-serve-static-core": "^4.17.33",
|
134 |
+
"@types/qs": "*",
|
135 |
+
"@types/serve-static": "*"
|
136 |
+
}
|
137 |
+
},
|
138 |
+
"node_modules/@types/express-serve-static-core": {
|
139 |
+
"version": "4.17.35",
|
140 |
+
"resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz",
|
141 |
+
"integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==",
|
142 |
+
"dev": true,
|
143 |
+
"dependencies": {
|
144 |
+
"@types/node": "*",
|
145 |
+
"@types/qs": "*",
|
146 |
+
"@types/range-parser": "*",
|
147 |
+
"@types/send": "*"
|
148 |
+
}
|
149 |
+
},
|
150 |
+
"node_modules/@types/http-assert": {
|
151 |
+
"version": "1.5.3",
|
152 |
+
"resolved": "https://registry.npmjs.org/@types/http-assert/-/http-assert-1.5.3.tgz",
|
153 |
+
"integrity": "sha512-FyAOrDuQmBi8/or3ns4rwPno7/9tJTijVW6aQQjK02+kOQ8zmoNg2XJtAuQhvQcy1ASJq38wirX5//9J1EqoUA==",
|
154 |
+
"dev": true
|
155 |
+
},
|
156 |
+
"node_modules/@types/http-errors": {
|
157 |
+
"version": "2.0.1",
|
158 |
+
"resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz",
|
159 |
+
"integrity": "sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==",
|
160 |
+
"dev": true
|
161 |
+
},
|
162 |
+
"node_modules/@types/keygrip": {
|
163 |
+
"version": "1.0.2",
|
164 |
+
"resolved": "https://registry.npmjs.org/@types/keygrip/-/keygrip-1.0.2.tgz",
|
165 |
+
"integrity": "sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==",
|
166 |
+
"dev": true
|
167 |
+
},
|
168 |
+
"node_modules/@types/koa": {
|
169 |
+
"version": "2.13.6",
|
170 |
+
"resolved": "https://registry.npmjs.org/@types/koa/-/koa-2.13.6.tgz",
|
171 |
+
"integrity": "sha512-diYUfp/GqfWBAiwxHtYJ/FQYIXhlEhlyaU7lB/bWQrx4Il9lCET5UwpFy3StOAohfsxxvEQ11qIJgT1j2tfBvw==",
|
172 |
+
"dev": true,
|
173 |
+
"dependencies": {
|
174 |
+
"@types/accepts": "*",
|
175 |
+
"@types/content-disposition": "*",
|
176 |
+
"@types/cookies": "*",
|
177 |
+
"@types/http-assert": "*",
|
178 |
+
"@types/http-errors": "*",
|
179 |
+
"@types/keygrip": "*",
|
180 |
+
"@types/koa-compose": "*",
|
181 |
+
"@types/node": "*"
|
182 |
+
}
|
183 |
+
},
|
184 |
+
"node_modules/@types/koa-compose": {
|
185 |
+
"version": "3.2.5",
|
186 |
+
"resolved": "https://registry.npmjs.org/@types/koa-compose/-/koa-compose-3.2.5.tgz",
|
187 |
+
"integrity": "sha512-B8nG/OoE1ORZqCkBVsup/AKcvjdgoHnfi4pZMn5UwAPCbhk/96xyv284eBYW8JlQbQ7zDmnpFr68I/40mFoIBQ==",
|
188 |
+
"dev": true,
|
189 |
+
"dependencies": {
|
190 |
+
"@types/koa": "*"
|
191 |
+
}
|
192 |
+
},
|
193 |
+
"node_modules/@types/mime": {
|
194 |
+
"version": "1.3.2",
|
195 |
+
"resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz",
|
196 |
+
"integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==",
|
197 |
+
"dev": true
|
198 |
+
},
|
199 |
+
"node_modules/@types/node": {
|
200 |
+
"version": "20.2.5",
|
201 |
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz",
|
202 |
+
"integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==",
|
203 |
+
"dev": true
|
204 |
+
},
|
205 |
+
"node_modules/@types/qs": {
|
206 |
+
"version": "6.9.7",
|
207 |
+
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",
|
208 |
+
"integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==",
|
209 |
+
"dev": true
|
210 |
+
},
|
211 |
+
"node_modules/@types/range-parser": {
|
212 |
+
"version": "1.2.4",
|
213 |
+
"resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz",
|
214 |
+
"integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==",
|
215 |
+
"dev": true
|
216 |
+
},
|
217 |
+
"node_modules/@types/send": {
|
218 |
+
"version": "0.17.1",
|
219 |
+
"resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz",
|
220 |
+
"integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==",
|
221 |
+
"dev": true,
|
222 |
+
"dependencies": {
|
223 |
+
"@types/mime": "^1",
|
224 |
+
"@types/node": "*"
|
225 |
+
}
|
226 |
+
},
|
227 |
+
"node_modules/@types/serve-static": {
|
228 |
+
"version": "1.15.1",
|
229 |
+
"resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz",
|
230 |
+
"integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==",
|
231 |
+
"dev": true,
|
232 |
+
"dependencies": {
|
233 |
+
"@types/mime": "*",
|
234 |
+
"@types/node": "*"
|
235 |
+
}
|
236 |
+
},
|
237 |
+
"node_modules/accepts": {
|
238 |
+
"version": "1.3.8",
|
239 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
240 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
241 |
+
"dependencies": {
|
242 |
+
"mime-types": "~2.1.34",
|
243 |
+
"negotiator": "0.6.3"
|
244 |
+
},
|
245 |
+
"engines": {
|
246 |
+
"node": ">= 0.6"
|
247 |
+
}
|
248 |
+
},
|
249 |
+
"node_modules/acorn": {
|
250 |
+
"version": "8.8.2",
|
251 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
|
252 |
+
"integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
|
253 |
+
"dev": true,
|
254 |
+
"bin": {
|
255 |
+
"acorn": "bin/acorn"
|
256 |
+
},
|
257 |
+
"engines": {
|
258 |
+
"node": ">=0.4.0"
|
259 |
+
}
|
260 |
+
},
|
261 |
+
"node_modules/acorn-walk": {
|
262 |
+
"version": "8.2.0",
|
263 |
+
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz",
|
264 |
+
"integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==",
|
265 |
+
"dev": true,
|
266 |
+
"engines": {
|
267 |
+
"node": ">=0.4.0"
|
268 |
+
}
|
269 |
+
},
|
270 |
+
"node_modules/arg": {
|
271 |
+
"version": "4.1.3",
|
272 |
+
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
273 |
+
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
274 |
+
"dev": true
|
275 |
+
},
|
276 |
+
"node_modules/cache-content-type": {
|
277 |
+
"version": "1.0.1",
|
278 |
+
"resolved": "https://registry.npmjs.org/cache-content-type/-/cache-content-type-1.0.1.tgz",
|
279 |
+
"integrity": "sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==",
|
280 |
+
"dependencies": {
|
281 |
+
"mime-types": "^2.1.18",
|
282 |
+
"ylru": "^1.2.0"
|
283 |
+
},
|
284 |
+
"engines": {
|
285 |
+
"node": ">= 6.0.0"
|
286 |
+
}
|
287 |
+
},
|
288 |
+
"node_modules/co": {
|
289 |
+
"version": "4.6.0",
|
290 |
+
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
|
291 |
+
"integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",
|
292 |
+
"engines": {
|
293 |
+
"iojs": ">= 1.0.0",
|
294 |
+
"node": ">= 0.12.0"
|
295 |
+
}
|
296 |
+
},
|
297 |
+
"node_modules/content-disposition": {
|
298 |
+
"version": "0.5.4",
|
299 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
300 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
301 |
+
"dependencies": {
|
302 |
+
"safe-buffer": "5.2.1"
|
303 |
+
},
|
304 |
+
"engines": {
|
305 |
+
"node": ">= 0.6"
|
306 |
+
}
|
307 |
+
},
|
308 |
+
"node_modules/content-type": {
|
309 |
+
"version": "1.0.5",
|
310 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
311 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
312 |
+
"engines": {
|
313 |
+
"node": ">= 0.6"
|
314 |
+
}
|
315 |
+
},
|
316 |
+
"node_modules/cookies": {
|
317 |
+
"version": "0.8.0",
|
318 |
+
"resolved": "https://registry.npmjs.org/cookies/-/cookies-0.8.0.tgz",
|
319 |
+
"integrity": "sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==",
|
320 |
+
"dependencies": {
|
321 |
+
"depd": "~2.0.0",
|
322 |
+
"keygrip": "~1.1.0"
|
323 |
+
},
|
324 |
+
"engines": {
|
325 |
+
"node": ">= 0.8"
|
326 |
+
}
|
327 |
+
},
|
328 |
+
"node_modules/create-require": {
|
329 |
+
"version": "1.1.1",
|
330 |
+
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
331 |
+
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
332 |
+
"dev": true
|
333 |
+
},
|
334 |
+
"node_modules/debug": {
|
335 |
+
"version": "4.3.4",
|
336 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
337 |
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
338 |
+
"dependencies": {
|
339 |
+
"ms": "2.1.2"
|
340 |
+
},
|
341 |
+
"engines": {
|
342 |
+
"node": ">=6.0"
|
343 |
+
},
|
344 |
+
"peerDependenciesMeta": {
|
345 |
+
"supports-color": {
|
346 |
+
"optional": true
|
347 |
+
}
|
348 |
+
}
|
349 |
+
},
|
350 |
+
"node_modules/deep-equal": {
|
351 |
+
"version": "1.0.1",
|
352 |
+
"resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz",
|
353 |
+
"integrity": "sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw=="
|
354 |
+
},
|
355 |
+
"node_modules/delegates": {
|
356 |
+
"version": "1.0.0",
|
357 |
+
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
|
358 |
+
"integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
|
359 |
+
},
|
360 |
+
"node_modules/depd": {
|
361 |
+
"version": "2.0.0",
|
362 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
363 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
364 |
+
"engines": {
|
365 |
+
"node": ">= 0.8"
|
366 |
+
}
|
367 |
+
},
|
368 |
+
"node_modules/destroy": {
|
369 |
+
"version": "1.2.0",
|
370 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
371 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
372 |
+
"engines": {
|
373 |
+
"node": ">= 0.8",
|
374 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
375 |
+
}
|
376 |
+
},
|
377 |
+
"node_modules/diff": {
|
378 |
+
"version": "4.0.2",
|
379 |
+
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
|
380 |
+
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
|
381 |
+
"dev": true,
|
382 |
+
"engines": {
|
383 |
+
"node": ">=0.3.1"
|
384 |
+
}
|
385 |
+
},
|
386 |
+
"node_modules/ee-first": {
|
387 |
+
"version": "1.1.1",
|
388 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
389 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
390 |
+
},
|
391 |
+
"node_modules/encodeurl": {
|
392 |
+
"version": "1.0.2",
|
393 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
394 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
395 |
+
"engines": {
|
396 |
+
"node": ">= 0.8"
|
397 |
+
}
|
398 |
+
},
|
399 |
+
"node_modules/escape-html": {
|
400 |
+
"version": "1.0.3",
|
401 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
402 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
|
403 |
+
},
|
404 |
+
"node_modules/fresh": {
|
405 |
+
"version": "0.5.2",
|
406 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
407 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
408 |
+
"engines": {
|
409 |
+
"node": ">= 0.6"
|
410 |
+
}
|
411 |
+
},
|
412 |
+
"node_modules/has-symbols": {
|
413 |
+
"version": "1.0.3",
|
414 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
415 |
+
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
416 |
+
"engines": {
|
417 |
+
"node": ">= 0.4"
|
418 |
+
},
|
419 |
+
"funding": {
|
420 |
+
"url": "https://github.com/sponsors/ljharb"
|
421 |
+
}
|
422 |
+
},
|
423 |
+
"node_modules/has-tostringtag": {
|
424 |
+
"version": "1.0.0",
|
425 |
+
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz",
|
426 |
+
"integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==",
|
427 |
+
"dependencies": {
|
428 |
+
"has-symbols": "^1.0.2"
|
429 |
+
},
|
430 |
+
"engines": {
|
431 |
+
"node": ">= 0.4"
|
432 |
+
},
|
433 |
+
"funding": {
|
434 |
+
"url": "https://github.com/sponsors/ljharb"
|
435 |
+
}
|
436 |
+
},
|
437 |
+
"node_modules/http-assert": {
|
438 |
+
"version": "1.5.0",
|
439 |
+
"resolved": "https://registry.npmjs.org/http-assert/-/http-assert-1.5.0.tgz",
|
440 |
+
"integrity": "sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==",
|
441 |
+
"dependencies": {
|
442 |
+
"deep-equal": "~1.0.1",
|
443 |
+
"http-errors": "~1.8.0"
|
444 |
+
},
|
445 |
+
"engines": {
|
446 |
+
"node": ">= 0.8"
|
447 |
+
}
|
448 |
+
},
|
449 |
+
"node_modules/http-errors": {
|
450 |
+
"version": "1.8.1",
|
451 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz",
|
452 |
+
"integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==",
|
453 |
+
"dependencies": {
|
454 |
+
"depd": "~1.1.2",
|
455 |
+
"inherits": "2.0.4",
|
456 |
+
"setprototypeof": "1.2.0",
|
457 |
+
"statuses": ">= 1.5.0 < 2",
|
458 |
+
"toidentifier": "1.0.1"
|
459 |
+
},
|
460 |
+
"engines": {
|
461 |
+
"node": ">= 0.6"
|
462 |
+
}
|
463 |
+
},
|
464 |
+
"node_modules/http-errors/node_modules/depd": {
|
465 |
+
"version": "1.1.2",
|
466 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
|
467 |
+
"integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==",
|
468 |
+
"engines": {
|
469 |
+
"node": ">= 0.6"
|
470 |
+
}
|
471 |
+
},
|
472 |
+
"node_modules/inherits": {
|
473 |
+
"version": "2.0.4",
|
474 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
475 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
476 |
+
},
|
477 |
+
"node_modules/is-generator-function": {
|
478 |
+
"version": "1.0.10",
|
479 |
+
"resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz",
|
480 |
+
"integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==",
|
481 |
+
"dependencies": {
|
482 |
+
"has-tostringtag": "^1.0.0"
|
483 |
+
},
|
484 |
+
"engines": {
|
485 |
+
"node": ">= 0.4"
|
486 |
+
},
|
487 |
+
"funding": {
|
488 |
+
"url": "https://github.com/sponsors/ljharb"
|
489 |
+
}
|
490 |
+
},
|
491 |
+
"node_modules/keygrip": {
|
492 |
+
"version": "1.1.0",
|
493 |
+
"resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz",
|
494 |
+
"integrity": "sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==",
|
495 |
+
"dependencies": {
|
496 |
+
"tsscmp": "1.0.6"
|
497 |
+
},
|
498 |
+
"engines": {
|
499 |
+
"node": ">= 0.6"
|
500 |
+
}
|
501 |
+
},
|
502 |
+
"node_modules/koa": {
|
503 |
+
"version": "2.14.2",
|
504 |
+
"resolved": "https://registry.npmjs.org/koa/-/koa-2.14.2.tgz",
|
505 |
+
"integrity": "sha512-VFI2bpJaodz6P7x2uyLiX6RLYpZmOJqNmoCst/Yyd7hQlszyPwG/I9CQJ63nOtKSxpt5M7NH67V6nJL2BwCl7g==",
|
506 |
+
"dependencies": {
|
507 |
+
"accepts": "^1.3.5",
|
508 |
+
"cache-content-type": "^1.0.0",
|
509 |
+
"content-disposition": "~0.5.2",
|
510 |
+
"content-type": "^1.0.4",
|
511 |
+
"cookies": "~0.8.0",
|
512 |
+
"debug": "^4.3.2",
|
513 |
+
"delegates": "^1.0.0",
|
514 |
+
"depd": "^2.0.0",
|
515 |
+
"destroy": "^1.0.4",
|
516 |
+
"encodeurl": "^1.0.2",
|
517 |
+
"escape-html": "^1.0.3",
|
518 |
+
"fresh": "~0.5.2",
|
519 |
+
"http-assert": "^1.3.0",
|
520 |
+
"http-errors": "^1.6.3",
|
521 |
+
"is-generator-function": "^1.0.7",
|
522 |
+
"koa-compose": "^4.1.0",
|
523 |
+
"koa-convert": "^2.0.0",
|
524 |
+
"on-finished": "^2.3.0",
|
525 |
+
"only": "~0.0.2",
|
526 |
+
"parseurl": "^1.3.2",
|
527 |
+
"statuses": "^1.5.0",
|
528 |
+
"type-is": "^1.6.16",
|
529 |
+
"vary": "^1.1.2"
|
530 |
+
},
|
531 |
+
"engines": {
|
532 |
+
"node": "^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4"
|
533 |
+
}
|
534 |
+
},
|
535 |
+
"node_modules/koa-compose": {
|
536 |
+
"version": "4.1.0",
|
537 |
+
"resolved": "https://registry.npmjs.org/koa-compose/-/koa-compose-4.1.0.tgz",
|
538 |
+
"integrity": "sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw=="
|
539 |
+
},
|
540 |
+
"node_modules/koa-convert": {
|
541 |
+
"version": "2.0.0",
|
542 |
+
"resolved": "https://registry.npmjs.org/koa-convert/-/koa-convert-2.0.0.tgz",
|
543 |
+
"integrity": "sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==",
|
544 |
+
"dependencies": {
|
545 |
+
"co": "^4.6.0",
|
546 |
+
"koa-compose": "^4.1.0"
|
547 |
+
},
|
548 |
+
"engines": {
|
549 |
+
"node": ">= 10"
|
550 |
+
}
|
551 |
+
},
|
552 |
+
"node_modules/make-error": {
|
553 |
+
"version": "1.3.6",
|
554 |
+
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
555 |
+
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
556 |
+
"dev": true
|
557 |
+
},
|
558 |
+
"node_modules/media-typer": {
|
559 |
+
"version": "0.3.0",
|
560 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
561 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
562 |
+
"engines": {
|
563 |
+
"node": ">= 0.6"
|
564 |
+
}
|
565 |
+
},
|
566 |
+
"node_modules/mime-db": {
|
567 |
+
"version": "1.52.0",
|
568 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
569 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
570 |
+
"engines": {
|
571 |
+
"node": ">= 0.6"
|
572 |
+
}
|
573 |
+
},
|
574 |
+
"node_modules/mime-types": {
|
575 |
+
"version": "2.1.35",
|
576 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
577 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
578 |
+
"dependencies": {
|
579 |
+
"mime-db": "1.52.0"
|
580 |
+
},
|
581 |
+
"engines": {
|
582 |
+
"node": ">= 0.6"
|
583 |
+
}
|
584 |
+
},
|
585 |
+
"node_modules/ms": {
|
586 |
+
"version": "2.1.2",
|
587 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
588 |
+
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
589 |
+
},
|
590 |
+
"node_modules/negotiator": {
|
591 |
+
"version": "0.6.3",
|
592 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
593 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
594 |
+
"engines": {
|
595 |
+
"node": ">= 0.6"
|
596 |
+
}
|
597 |
+
},
|
598 |
+
"node_modules/on-finished": {
|
599 |
+
"version": "2.4.1",
|
600 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
601 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
602 |
+
"dependencies": {
|
603 |
+
"ee-first": "1.1.1"
|
604 |
+
},
|
605 |
+
"engines": {
|
606 |
+
"node": ">= 0.8"
|
607 |
+
}
|
608 |
+
},
|
609 |
+
"node_modules/only": {
|
610 |
+
"version": "0.0.2",
|
611 |
+
"resolved": "https://registry.npmjs.org/only/-/only-0.0.2.tgz",
|
612 |
+
"integrity": "sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ=="
|
613 |
+
},
|
614 |
+
"node_modules/parseurl": {
|
615 |
+
"version": "1.3.3",
|
616 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
617 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
618 |
+
"engines": {
|
619 |
+
"node": ">= 0.8"
|
620 |
+
}
|
621 |
+
},
|
622 |
+
"node_modules/safe-buffer": {
|
623 |
+
"version": "5.2.1",
|
624 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
625 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
626 |
+
"funding": [
|
627 |
+
{
|
628 |
+
"type": "github",
|
629 |
+
"url": "https://github.com/sponsors/feross"
|
630 |
+
},
|
631 |
+
{
|
632 |
+
"type": "patreon",
|
633 |
+
"url": "https://www.patreon.com/feross"
|
634 |
+
},
|
635 |
+
{
|
636 |
+
"type": "consulting",
|
637 |
+
"url": "https://feross.org/support"
|
638 |
+
}
|
639 |
+
]
|
640 |
+
},
|
641 |
+
"node_modules/setprototypeof": {
|
642 |
+
"version": "1.2.0",
|
643 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
644 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
645 |
+
},
|
646 |
+
"node_modules/statuses": {
|
647 |
+
"version": "1.5.0",
|
648 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
|
649 |
+
"integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==",
|
650 |
+
"engines": {
|
651 |
+
"node": ">= 0.6"
|
652 |
+
}
|
653 |
+
},
|
654 |
+
"node_modules/toidentifier": {
|
655 |
+
"version": "1.0.1",
|
656 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
657 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
658 |
+
"engines": {
|
659 |
+
"node": ">=0.6"
|
660 |
+
}
|
661 |
+
},
|
662 |
+
"node_modules/ts-node": {
|
663 |
+
"version": "10.9.1",
|
664 |
+
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
|
665 |
+
"integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
|
666 |
+
"dev": true,
|
667 |
+
"dependencies": {
|
668 |
+
"@cspotcode/source-map-support": "^0.8.0",
|
669 |
+
"@tsconfig/node10": "^1.0.7",
|
670 |
+
"@tsconfig/node12": "^1.0.7",
|
671 |
+
"@tsconfig/node14": "^1.0.0",
|
672 |
+
"@tsconfig/node16": "^1.0.2",
|
673 |
+
"acorn": "^8.4.1",
|
674 |
+
"acorn-walk": "^8.1.1",
|
675 |
+
"arg": "^4.1.0",
|
676 |
+
"create-require": "^1.1.0",
|
677 |
+
"diff": "^4.0.1",
|
678 |
+
"make-error": "^1.1.1",
|
679 |
+
"v8-compile-cache-lib": "^3.0.1",
|
680 |
+
"yn": "3.1.1"
|
681 |
+
},
|
682 |
+
"bin": {
|
683 |
+
"ts-node": "dist/bin.js",
|
684 |
+
"ts-node-cwd": "dist/bin-cwd.js",
|
685 |
+
"ts-node-esm": "dist/bin-esm.js",
|
686 |
+
"ts-node-script": "dist/bin-script.js",
|
687 |
+
"ts-node-transpile-only": "dist/bin-transpile.js",
|
688 |
+
"ts-script": "dist/bin-script-deprecated.js"
|
689 |
+
},
|
690 |
+
"peerDependencies": {
|
691 |
+
"@swc/core": ">=1.2.50",
|
692 |
+
"@swc/wasm": ">=1.2.50",
|
693 |
+
"@types/node": "*",
|
694 |
+
"typescript": ">=2.7"
|
695 |
+
},
|
696 |
+
"peerDependenciesMeta": {
|
697 |
+
"@swc/core": {
|
698 |
+
"optional": true
|
699 |
+
},
|
700 |
+
"@swc/wasm": {
|
701 |
+
"optional": true
|
702 |
+
}
|
703 |
+
}
|
704 |
+
},
|
705 |
+
"node_modules/tsscmp": {
|
706 |
+
"version": "1.0.6",
|
707 |
+
"resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz",
|
708 |
+
"integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==",
|
709 |
+
"engines": {
|
710 |
+
"node": ">=0.6.x"
|
711 |
+
}
|
712 |
+
},
|
713 |
+
"node_modules/type-is": {
|
714 |
+
"version": "1.6.18",
|
715 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
716 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
717 |
+
"dependencies": {
|
718 |
+
"media-typer": "0.3.0",
|
719 |
+
"mime-types": "~2.1.24"
|
720 |
+
},
|
721 |
+
"engines": {
|
722 |
+
"node": ">= 0.6"
|
723 |
+
}
|
724 |
+
},
|
725 |
+
"node_modules/typescript": {
|
726 |
+
"version": "5.1.3",
|
727 |
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
|
728 |
+
"integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
|
729 |
+
"dev": true,
|
730 |
+
"peer": true,
|
731 |
+
"bin": {
|
732 |
+
"tsc": "bin/tsc",
|
733 |
+
"tsserver": "bin/tsserver"
|
734 |
+
},
|
735 |
+
"engines": {
|
736 |
+
"node": ">=14.17"
|
737 |
+
}
|
738 |
+
},
|
739 |
+
"node_modules/v8-compile-cache-lib": {
|
740 |
+
"version": "3.0.1",
|
741 |
+
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
|
742 |
+
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
|
743 |
+
"dev": true
|
744 |
+
},
|
745 |
+
"node_modules/vary": {
|
746 |
+
"version": "1.1.2",
|
747 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
748 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
749 |
+
"engines": {
|
750 |
+
"node": ">= 0.8"
|
751 |
+
}
|
752 |
+
},
|
753 |
+
"node_modules/ylru": {
|
754 |
+
"version": "1.3.2",
|
755 |
+
"resolved": "https://registry.npmjs.org/ylru/-/ylru-1.3.2.tgz",
|
756 |
+
"integrity": "sha512-RXRJzMiK6U2ye0BlGGZnmpwJDPgakn6aNQ0A7gHRbD4I0uvK4TW6UqkK1V0pp9jskjJBAXd3dRrbzWkqJ+6cxA==",
|
757 |
+
"engines": {
|
758 |
+
"node": ">= 4.0.0"
|
759 |
+
}
|
760 |
+
},
|
761 |
+
"node_modules/yn": {
|
762 |
+
"version": "3.1.1",
|
763 |
+
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
764 |
+
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
765 |
+
"dev": true,
|
766 |
+
"engines": {
|
767 |
+
"node": ">=6"
|
768 |
+
}
|
769 |
+
}
|
770 |
+
}
|
771 |
+
}
|
package.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "test-req",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "--- title: Test Req emoji: 📊 colorFrom: gray colorTo: blue sdk: docker pinned: false ---",
|
5 |
+
"main": "index.js",
|
6 |
+
"scripts": {
|
7 |
+
"start": "ts-node -T server.ts",
|
8 |
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9 |
+
},
|
10 |
+
"author": "",
|
11 |
+
"license": "ISC",
|
12 |
+
"devDependencies": {
|
13 |
+
"@types/koa": "^2.13.6",
|
14 |
+
"ts-node": "^10.9.1"
|
15 |
+
},
|
16 |
+
"dependencies": {
|
17 |
+
"koa": "^2.14.2"
|
18 |
+
}
|
19 |
+
}
|
server.ts
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import Koa from "koa";
|
2 |
+
|
3 |
+
const app = new Koa();
|
4 |
+
|
5 |
+
app.use((ctx) => {
|
6 |
+
console.log(ctx.request.url, ctx.request.method);
|
7 |
+
ctx.body = {
|
8 |
+
fullUrl: ctx.request.url,
|
9 |
+
query: ctx.request.query,
|
10 |
+
headers: Object.fromEntries(Object.entries(ctx.request.headers)),
|
11 |
+
env: process.env
|
12 |
+
};
|
13 |
+
});
|
14 |
+
|
15 |
+
app.listen(7860);
|