Spaces:
Sleeping
Sleeping
Delete server
Browse files- server/.DS_Store +0 -0
- server/package-lock.json +0 -1698
- server/package.json +0 -29
- server/src/ai.js +0 -178
- server/src/auth.js +0 -89
- server/src/db.js +0 -142
- server/src/files.js +0 -80
- server/src/reset.js +0 -32
- server/src/root.js +0 -52
- server/src/server.js +0 -67
- server/src/temp.js +0 -48
- server/src/terminal.js +0 -120
- server/src/test_db.js +0 -21
server/.DS_Store
DELETED
|
Binary file (6.15 kB)
|
|
|
server/package-lock.json
DELETED
|
@@ -1,1698 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "server",
|
| 3 |
-
"version": "1.0.0",
|
| 4 |
-
"lockfileVersion": 3,
|
| 5 |
-
"requires": true,
|
| 6 |
-
"packages": {
|
| 7 |
-
"": {
|
| 8 |
-
"name": "server",
|
| 9 |
-
"version": "1.0.0",
|
| 10 |
-
"license": "ISC",
|
| 11 |
-
"dependencies": {
|
| 12 |
-
"bcrypt": "^6.0.0",
|
| 13 |
-
"bcryptjs": "^3.0.2",
|
| 14 |
-
"better-sse": "^0.15.1",
|
| 15 |
-
"cookie-parser": "^1.4.7",
|
| 16 |
-
"cors": "^2.8.5",
|
| 17 |
-
"express": "^5.1.0",
|
| 18 |
-
"express-rate-limit": "^8.1.0",
|
| 19 |
-
"jsonwebtoken": "^9.0.2",
|
| 20 |
-
"mysql2": "^3.15.3",
|
| 21 |
-
"pg": "^8.16.3",
|
| 22 |
-
"uuid": "^13.0.0"
|
| 23 |
-
},
|
| 24 |
-
"devDependencies": {
|
| 25 |
-
"nodemon": "^3.1.10"
|
| 26 |
-
}
|
| 27 |
-
},
|
| 28 |
-
"node_modules/accepts": {
|
| 29 |
-
"version": "2.0.0",
|
| 30 |
-
"resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
|
| 31 |
-
"integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
|
| 32 |
-
"license": "MIT",
|
| 33 |
-
"dependencies": {
|
| 34 |
-
"mime-types": "^3.0.0",
|
| 35 |
-
"negotiator": "^1.0.0"
|
| 36 |
-
},
|
| 37 |
-
"engines": {
|
| 38 |
-
"node": ">= 0.6"
|
| 39 |
-
}
|
| 40 |
-
},
|
| 41 |
-
"node_modules/anymatch": {
|
| 42 |
-
"version": "3.1.3",
|
| 43 |
-
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
|
| 44 |
-
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
|
| 45 |
-
"dev": true,
|
| 46 |
-
"license": "ISC",
|
| 47 |
-
"dependencies": {
|
| 48 |
-
"normalize-path": "^3.0.0",
|
| 49 |
-
"picomatch": "^2.0.4"
|
| 50 |
-
},
|
| 51 |
-
"engines": {
|
| 52 |
-
"node": ">= 8"
|
| 53 |
-
}
|
| 54 |
-
},
|
| 55 |
-
"node_modules/aws-ssl-profiles": {
|
| 56 |
-
"version": "1.1.2",
|
| 57 |
-
"resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz",
|
| 58 |
-
"integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==",
|
| 59 |
-
"license": "MIT",
|
| 60 |
-
"engines": {
|
| 61 |
-
"node": ">= 6.0.0"
|
| 62 |
-
}
|
| 63 |
-
},
|
| 64 |
-
"node_modules/balanced-match": {
|
| 65 |
-
"version": "1.0.2",
|
| 66 |
-
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 67 |
-
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 68 |
-
"dev": true,
|
| 69 |
-
"license": "MIT"
|
| 70 |
-
},
|
| 71 |
-
"node_modules/bcrypt": {
|
| 72 |
-
"version": "6.0.0",
|
| 73 |
-
"resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-6.0.0.tgz",
|
| 74 |
-
"integrity": "sha512-cU8v/EGSrnH+HnxV2z0J7/blxH8gq7Xh2JFT6Aroax7UohdmiJJlxApMxtKfuI7z68NvvVcmR78k2LbT6efhRg==",
|
| 75 |
-
"hasInstallScript": true,
|
| 76 |
-
"license": "MIT",
|
| 77 |
-
"dependencies": {
|
| 78 |
-
"node-addon-api": "^8.3.0",
|
| 79 |
-
"node-gyp-build": "^4.8.4"
|
| 80 |
-
},
|
| 81 |
-
"engines": {
|
| 82 |
-
"node": ">= 18"
|
| 83 |
-
}
|
| 84 |
-
},
|
| 85 |
-
"node_modules/bcryptjs": {
|
| 86 |
-
"version": "3.0.2",
|
| 87 |
-
"resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-3.0.2.tgz",
|
| 88 |
-
"integrity": "sha512-k38b3XOZKv60C4E2hVsXTolJWfkGRMbILBIe2IBITXciy5bOsTKot5kDrf3ZfufQtQOUN5mXceUEpU1rTl9Uog==",
|
| 89 |
-
"license": "BSD-3-Clause",
|
| 90 |
-
"bin": {
|
| 91 |
-
"bcrypt": "bin/bcrypt"
|
| 92 |
-
}
|
| 93 |
-
},
|
| 94 |
-
"node_modules/better-sse": {
|
| 95 |
-
"version": "0.15.1",
|
| 96 |
-
"resolved": "https://registry.npmjs.org/better-sse/-/better-sse-0.15.1.tgz",
|
| 97 |
-
"integrity": "sha512-E8YmmIs7P2T5nHM8VG5Pmtp8CgDsIhT+6CYhg+8Gmke5kJb11ohN1jtEXn/2taSr7WkcU3yNTgoqNYvZ/GQ4sw==",
|
| 98 |
-
"license": "MIT",
|
| 99 |
-
"engines": {
|
| 100 |
-
"node": ">=20",
|
| 101 |
-
"pnpm": ">=9"
|
| 102 |
-
}
|
| 103 |
-
},
|
| 104 |
-
"node_modules/binary-extensions": {
|
| 105 |
-
"version": "2.3.0",
|
| 106 |
-
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
|
| 107 |
-
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
|
| 108 |
-
"dev": true,
|
| 109 |
-
"license": "MIT",
|
| 110 |
-
"engines": {
|
| 111 |
-
"node": ">=8"
|
| 112 |
-
},
|
| 113 |
-
"funding": {
|
| 114 |
-
"url": "https://github.com/sponsors/sindresorhus"
|
| 115 |
-
}
|
| 116 |
-
},
|
| 117 |
-
"node_modules/body-parser": {
|
| 118 |
-
"version": "2.2.0",
|
| 119 |
-
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz",
|
| 120 |
-
"integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==",
|
| 121 |
-
"license": "MIT",
|
| 122 |
-
"dependencies": {
|
| 123 |
-
"bytes": "^3.1.2",
|
| 124 |
-
"content-type": "^1.0.5",
|
| 125 |
-
"debug": "^4.4.0",
|
| 126 |
-
"http-errors": "^2.0.0",
|
| 127 |
-
"iconv-lite": "^0.6.3",
|
| 128 |
-
"on-finished": "^2.4.1",
|
| 129 |
-
"qs": "^6.14.0",
|
| 130 |
-
"raw-body": "^3.0.0",
|
| 131 |
-
"type-is": "^2.0.0"
|
| 132 |
-
},
|
| 133 |
-
"engines": {
|
| 134 |
-
"node": ">=18"
|
| 135 |
-
}
|
| 136 |
-
},
|
| 137 |
-
"node_modules/brace-expansion": {
|
| 138 |
-
"version": "1.1.12",
|
| 139 |
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
| 140 |
-
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
| 141 |
-
"dev": true,
|
| 142 |
-
"license": "MIT",
|
| 143 |
-
"dependencies": {
|
| 144 |
-
"balanced-match": "^1.0.0",
|
| 145 |
-
"concat-map": "0.0.1"
|
| 146 |
-
}
|
| 147 |
-
},
|
| 148 |
-
"node_modules/braces": {
|
| 149 |
-
"version": "3.0.3",
|
| 150 |
-
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
| 151 |
-
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
| 152 |
-
"dev": true,
|
| 153 |
-
"license": "MIT",
|
| 154 |
-
"dependencies": {
|
| 155 |
-
"fill-range": "^7.1.1"
|
| 156 |
-
},
|
| 157 |
-
"engines": {
|
| 158 |
-
"node": ">=8"
|
| 159 |
-
}
|
| 160 |
-
},
|
| 161 |
-
"node_modules/buffer-equal-constant-time": {
|
| 162 |
-
"version": "1.0.1",
|
| 163 |
-
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
|
| 164 |
-
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
|
| 165 |
-
"license": "BSD-3-Clause"
|
| 166 |
-
},
|
| 167 |
-
"node_modules/bytes": {
|
| 168 |
-
"version": "3.1.2",
|
| 169 |
-
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
| 170 |
-
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
| 171 |
-
"license": "MIT",
|
| 172 |
-
"engines": {
|
| 173 |
-
"node": ">= 0.8"
|
| 174 |
-
}
|
| 175 |
-
},
|
| 176 |
-
"node_modules/call-bind-apply-helpers": {
|
| 177 |
-
"version": "1.0.2",
|
| 178 |
-
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
| 179 |
-
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
| 180 |
-
"license": "MIT",
|
| 181 |
-
"dependencies": {
|
| 182 |
-
"es-errors": "^1.3.0",
|
| 183 |
-
"function-bind": "^1.1.2"
|
| 184 |
-
},
|
| 185 |
-
"engines": {
|
| 186 |
-
"node": ">= 0.4"
|
| 187 |
-
}
|
| 188 |
-
},
|
| 189 |
-
"node_modules/call-bound": {
|
| 190 |
-
"version": "1.0.4",
|
| 191 |
-
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
| 192 |
-
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
| 193 |
-
"license": "MIT",
|
| 194 |
-
"dependencies": {
|
| 195 |
-
"call-bind-apply-helpers": "^1.0.2",
|
| 196 |
-
"get-intrinsic": "^1.3.0"
|
| 197 |
-
},
|
| 198 |
-
"engines": {
|
| 199 |
-
"node": ">= 0.4"
|
| 200 |
-
},
|
| 201 |
-
"funding": {
|
| 202 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 203 |
-
}
|
| 204 |
-
},
|
| 205 |
-
"node_modules/chokidar": {
|
| 206 |
-
"version": "3.6.0",
|
| 207 |
-
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
| 208 |
-
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
| 209 |
-
"dev": true,
|
| 210 |
-
"license": "MIT",
|
| 211 |
-
"dependencies": {
|
| 212 |
-
"anymatch": "~3.1.2",
|
| 213 |
-
"braces": "~3.0.2",
|
| 214 |
-
"glob-parent": "~5.1.2",
|
| 215 |
-
"is-binary-path": "~2.1.0",
|
| 216 |
-
"is-glob": "~4.0.1",
|
| 217 |
-
"normalize-path": "~3.0.0",
|
| 218 |
-
"readdirp": "~3.6.0"
|
| 219 |
-
},
|
| 220 |
-
"engines": {
|
| 221 |
-
"node": ">= 8.10.0"
|
| 222 |
-
},
|
| 223 |
-
"funding": {
|
| 224 |
-
"url": "https://paulmillr.com/funding/"
|
| 225 |
-
},
|
| 226 |
-
"optionalDependencies": {
|
| 227 |
-
"fsevents": "~2.3.2"
|
| 228 |
-
}
|
| 229 |
-
},
|
| 230 |
-
"node_modules/concat-map": {
|
| 231 |
-
"version": "0.0.1",
|
| 232 |
-
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
| 233 |
-
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
| 234 |
-
"dev": true,
|
| 235 |
-
"license": "MIT"
|
| 236 |
-
},
|
| 237 |
-
"node_modules/content-disposition": {
|
| 238 |
-
"version": "1.0.0",
|
| 239 |
-
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz",
|
| 240 |
-
"integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==",
|
| 241 |
-
"license": "MIT",
|
| 242 |
-
"dependencies": {
|
| 243 |
-
"safe-buffer": "5.2.1"
|
| 244 |
-
},
|
| 245 |
-
"engines": {
|
| 246 |
-
"node": ">= 0.6"
|
| 247 |
-
}
|
| 248 |
-
},
|
| 249 |
-
"node_modules/content-type": {
|
| 250 |
-
"version": "1.0.5",
|
| 251 |
-
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
| 252 |
-
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
| 253 |
-
"license": "MIT",
|
| 254 |
-
"engines": {
|
| 255 |
-
"node": ">= 0.6"
|
| 256 |
-
}
|
| 257 |
-
},
|
| 258 |
-
"node_modules/cookie": {
|
| 259 |
-
"version": "0.7.2",
|
| 260 |
-
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
|
| 261 |
-
"integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
|
| 262 |
-
"license": "MIT",
|
| 263 |
-
"engines": {
|
| 264 |
-
"node": ">= 0.6"
|
| 265 |
-
}
|
| 266 |
-
},
|
| 267 |
-
"node_modules/cookie-parser": {
|
| 268 |
-
"version": "1.4.7",
|
| 269 |
-
"resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz",
|
| 270 |
-
"integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==",
|
| 271 |
-
"license": "MIT",
|
| 272 |
-
"dependencies": {
|
| 273 |
-
"cookie": "0.7.2",
|
| 274 |
-
"cookie-signature": "1.0.6"
|
| 275 |
-
},
|
| 276 |
-
"engines": {
|
| 277 |
-
"node": ">= 0.8.0"
|
| 278 |
-
}
|
| 279 |
-
},
|
| 280 |
-
"node_modules/cookie-signature": {
|
| 281 |
-
"version": "1.0.6",
|
| 282 |
-
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
| 283 |
-
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
|
| 284 |
-
"license": "MIT"
|
| 285 |
-
},
|
| 286 |
-
"node_modules/cors": {
|
| 287 |
-
"version": "2.8.5",
|
| 288 |
-
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
|
| 289 |
-
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
|
| 290 |
-
"license": "MIT",
|
| 291 |
-
"dependencies": {
|
| 292 |
-
"object-assign": "^4",
|
| 293 |
-
"vary": "^1"
|
| 294 |
-
},
|
| 295 |
-
"engines": {
|
| 296 |
-
"node": ">= 0.10"
|
| 297 |
-
}
|
| 298 |
-
},
|
| 299 |
-
"node_modules/debug": {
|
| 300 |
-
"version": "4.4.3",
|
| 301 |
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
| 302 |
-
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
| 303 |
-
"license": "MIT",
|
| 304 |
-
"dependencies": {
|
| 305 |
-
"ms": "^2.1.3"
|
| 306 |
-
},
|
| 307 |
-
"engines": {
|
| 308 |
-
"node": ">=6.0"
|
| 309 |
-
},
|
| 310 |
-
"peerDependenciesMeta": {
|
| 311 |
-
"supports-color": {
|
| 312 |
-
"optional": true
|
| 313 |
-
}
|
| 314 |
-
}
|
| 315 |
-
},
|
| 316 |
-
"node_modules/denque": {
|
| 317 |
-
"version": "2.1.0",
|
| 318 |
-
"resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
|
| 319 |
-
"integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==",
|
| 320 |
-
"license": "Apache-2.0",
|
| 321 |
-
"engines": {
|
| 322 |
-
"node": ">=0.10"
|
| 323 |
-
}
|
| 324 |
-
},
|
| 325 |
-
"node_modules/depd": {
|
| 326 |
-
"version": "2.0.0",
|
| 327 |
-
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
| 328 |
-
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
| 329 |
-
"license": "MIT",
|
| 330 |
-
"engines": {
|
| 331 |
-
"node": ">= 0.8"
|
| 332 |
-
}
|
| 333 |
-
},
|
| 334 |
-
"node_modules/dunder-proto": {
|
| 335 |
-
"version": "1.0.1",
|
| 336 |
-
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
| 337 |
-
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
| 338 |
-
"license": "MIT",
|
| 339 |
-
"dependencies": {
|
| 340 |
-
"call-bind-apply-helpers": "^1.0.1",
|
| 341 |
-
"es-errors": "^1.3.0",
|
| 342 |
-
"gopd": "^1.2.0"
|
| 343 |
-
},
|
| 344 |
-
"engines": {
|
| 345 |
-
"node": ">= 0.4"
|
| 346 |
-
}
|
| 347 |
-
},
|
| 348 |
-
"node_modules/ecdsa-sig-formatter": {
|
| 349 |
-
"version": "1.0.11",
|
| 350 |
-
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
|
| 351 |
-
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
|
| 352 |
-
"license": "Apache-2.0",
|
| 353 |
-
"dependencies": {
|
| 354 |
-
"safe-buffer": "^5.0.1"
|
| 355 |
-
}
|
| 356 |
-
},
|
| 357 |
-
"node_modules/ee-first": {
|
| 358 |
-
"version": "1.1.1",
|
| 359 |
-
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
| 360 |
-
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 361 |
-
"license": "MIT"
|
| 362 |
-
},
|
| 363 |
-
"node_modules/encodeurl": {
|
| 364 |
-
"version": "2.0.0",
|
| 365 |
-
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
| 366 |
-
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
| 367 |
-
"license": "MIT",
|
| 368 |
-
"engines": {
|
| 369 |
-
"node": ">= 0.8"
|
| 370 |
-
}
|
| 371 |
-
},
|
| 372 |
-
"node_modules/es-define-property": {
|
| 373 |
-
"version": "1.0.1",
|
| 374 |
-
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
| 375 |
-
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
| 376 |
-
"license": "MIT",
|
| 377 |
-
"engines": {
|
| 378 |
-
"node": ">= 0.4"
|
| 379 |
-
}
|
| 380 |
-
},
|
| 381 |
-
"node_modules/es-errors": {
|
| 382 |
-
"version": "1.3.0",
|
| 383 |
-
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 384 |
-
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 385 |
-
"license": "MIT",
|
| 386 |
-
"engines": {
|
| 387 |
-
"node": ">= 0.4"
|
| 388 |
-
}
|
| 389 |
-
},
|
| 390 |
-
"node_modules/es-object-atoms": {
|
| 391 |
-
"version": "1.1.1",
|
| 392 |
-
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
| 393 |
-
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
| 394 |
-
"license": "MIT",
|
| 395 |
-
"dependencies": {
|
| 396 |
-
"es-errors": "^1.3.0"
|
| 397 |
-
},
|
| 398 |
-
"engines": {
|
| 399 |
-
"node": ">= 0.4"
|
| 400 |
-
}
|
| 401 |
-
},
|
| 402 |
-
"node_modules/escape-html": {
|
| 403 |
-
"version": "1.0.3",
|
| 404 |
-
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
| 405 |
-
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
| 406 |
-
"license": "MIT"
|
| 407 |
-
},
|
| 408 |
-
"node_modules/etag": {
|
| 409 |
-
"version": "1.8.1",
|
| 410 |
-
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
| 411 |
-
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
| 412 |
-
"license": "MIT",
|
| 413 |
-
"engines": {
|
| 414 |
-
"node": ">= 0.6"
|
| 415 |
-
}
|
| 416 |
-
},
|
| 417 |
-
"node_modules/express": {
|
| 418 |
-
"version": "5.1.0",
|
| 419 |
-
"resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz",
|
| 420 |
-
"integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
|
| 421 |
-
"license": "MIT",
|
| 422 |
-
"dependencies": {
|
| 423 |
-
"accepts": "^2.0.0",
|
| 424 |
-
"body-parser": "^2.2.0",
|
| 425 |
-
"content-disposition": "^1.0.0",
|
| 426 |
-
"content-type": "^1.0.5",
|
| 427 |
-
"cookie": "^0.7.1",
|
| 428 |
-
"cookie-signature": "^1.2.1",
|
| 429 |
-
"debug": "^4.4.0",
|
| 430 |
-
"encodeurl": "^2.0.0",
|
| 431 |
-
"escape-html": "^1.0.3",
|
| 432 |
-
"etag": "^1.8.1",
|
| 433 |
-
"finalhandler": "^2.1.0",
|
| 434 |
-
"fresh": "^2.0.0",
|
| 435 |
-
"http-errors": "^2.0.0",
|
| 436 |
-
"merge-descriptors": "^2.0.0",
|
| 437 |
-
"mime-types": "^3.0.0",
|
| 438 |
-
"on-finished": "^2.4.1",
|
| 439 |
-
"once": "^1.4.0",
|
| 440 |
-
"parseurl": "^1.3.3",
|
| 441 |
-
"proxy-addr": "^2.0.7",
|
| 442 |
-
"qs": "^6.14.0",
|
| 443 |
-
"range-parser": "^1.2.1",
|
| 444 |
-
"router": "^2.2.0",
|
| 445 |
-
"send": "^1.1.0",
|
| 446 |
-
"serve-static": "^2.2.0",
|
| 447 |
-
"statuses": "^2.0.1",
|
| 448 |
-
"type-is": "^2.0.1",
|
| 449 |
-
"vary": "^1.1.2"
|
| 450 |
-
},
|
| 451 |
-
"engines": {
|
| 452 |
-
"node": ">= 18"
|
| 453 |
-
},
|
| 454 |
-
"funding": {
|
| 455 |
-
"type": "opencollective",
|
| 456 |
-
"url": "https://opencollective.com/express"
|
| 457 |
-
}
|
| 458 |
-
},
|
| 459 |
-
"node_modules/express-rate-limit": {
|
| 460 |
-
"version": "8.1.0",
|
| 461 |
-
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.1.0.tgz",
|
| 462 |
-
"integrity": "sha512-4nLnATuKupnmwqiJc27b4dCFmB/T60ExgmtDD7waf4LdrbJ8CPZzZRHYErDYNhoz+ql8fUdYwM/opf90PoPAQA==",
|
| 463 |
-
"license": "MIT",
|
| 464 |
-
"dependencies": {
|
| 465 |
-
"ip-address": "10.0.1"
|
| 466 |
-
},
|
| 467 |
-
"engines": {
|
| 468 |
-
"node": ">= 16"
|
| 469 |
-
},
|
| 470 |
-
"funding": {
|
| 471 |
-
"url": "https://github.com/sponsors/express-rate-limit"
|
| 472 |
-
},
|
| 473 |
-
"peerDependencies": {
|
| 474 |
-
"express": ">= 4.11"
|
| 475 |
-
}
|
| 476 |
-
},
|
| 477 |
-
"node_modules/express/node_modules/cookie-signature": {
|
| 478 |
-
"version": "1.2.2",
|
| 479 |
-
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
|
| 480 |
-
"integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
|
| 481 |
-
"license": "MIT",
|
| 482 |
-
"engines": {
|
| 483 |
-
"node": ">=6.6.0"
|
| 484 |
-
}
|
| 485 |
-
},
|
| 486 |
-
"node_modules/fill-range": {
|
| 487 |
-
"version": "7.1.1",
|
| 488 |
-
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
| 489 |
-
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
| 490 |
-
"dev": true,
|
| 491 |
-
"license": "MIT",
|
| 492 |
-
"dependencies": {
|
| 493 |
-
"to-regex-range": "^5.0.1"
|
| 494 |
-
},
|
| 495 |
-
"engines": {
|
| 496 |
-
"node": ">=8"
|
| 497 |
-
}
|
| 498 |
-
},
|
| 499 |
-
"node_modules/finalhandler": {
|
| 500 |
-
"version": "2.1.0",
|
| 501 |
-
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz",
|
| 502 |
-
"integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==",
|
| 503 |
-
"license": "MIT",
|
| 504 |
-
"dependencies": {
|
| 505 |
-
"debug": "^4.4.0",
|
| 506 |
-
"encodeurl": "^2.0.0",
|
| 507 |
-
"escape-html": "^1.0.3",
|
| 508 |
-
"on-finished": "^2.4.1",
|
| 509 |
-
"parseurl": "^1.3.3",
|
| 510 |
-
"statuses": "^2.0.1"
|
| 511 |
-
},
|
| 512 |
-
"engines": {
|
| 513 |
-
"node": ">= 0.8"
|
| 514 |
-
}
|
| 515 |
-
},
|
| 516 |
-
"node_modules/forwarded": {
|
| 517 |
-
"version": "0.2.0",
|
| 518 |
-
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
| 519 |
-
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
| 520 |
-
"license": "MIT",
|
| 521 |
-
"engines": {
|
| 522 |
-
"node": ">= 0.6"
|
| 523 |
-
}
|
| 524 |
-
},
|
| 525 |
-
"node_modules/fresh": {
|
| 526 |
-
"version": "2.0.0",
|
| 527 |
-
"resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
|
| 528 |
-
"integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
|
| 529 |
-
"license": "MIT",
|
| 530 |
-
"engines": {
|
| 531 |
-
"node": ">= 0.8"
|
| 532 |
-
}
|
| 533 |
-
},
|
| 534 |
-
"node_modules/fsevents": {
|
| 535 |
-
"version": "2.3.3",
|
| 536 |
-
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 537 |
-
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 538 |
-
"dev": true,
|
| 539 |
-
"hasInstallScript": true,
|
| 540 |
-
"license": "MIT",
|
| 541 |
-
"optional": true,
|
| 542 |
-
"os": [
|
| 543 |
-
"darwin"
|
| 544 |
-
],
|
| 545 |
-
"engines": {
|
| 546 |
-
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 547 |
-
}
|
| 548 |
-
},
|
| 549 |
-
"node_modules/function-bind": {
|
| 550 |
-
"version": "1.1.2",
|
| 551 |
-
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 552 |
-
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 553 |
-
"license": "MIT",
|
| 554 |
-
"funding": {
|
| 555 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 556 |
-
}
|
| 557 |
-
},
|
| 558 |
-
"node_modules/generate-function": {
|
| 559 |
-
"version": "2.3.1",
|
| 560 |
-
"resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",
|
| 561 |
-
"integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==",
|
| 562 |
-
"license": "MIT",
|
| 563 |
-
"dependencies": {
|
| 564 |
-
"is-property": "^1.0.2"
|
| 565 |
-
}
|
| 566 |
-
},
|
| 567 |
-
"node_modules/get-intrinsic": {
|
| 568 |
-
"version": "1.3.0",
|
| 569 |
-
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
| 570 |
-
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
| 571 |
-
"license": "MIT",
|
| 572 |
-
"dependencies": {
|
| 573 |
-
"call-bind-apply-helpers": "^1.0.2",
|
| 574 |
-
"es-define-property": "^1.0.1",
|
| 575 |
-
"es-errors": "^1.3.0",
|
| 576 |
-
"es-object-atoms": "^1.1.1",
|
| 577 |
-
"function-bind": "^1.1.2",
|
| 578 |
-
"get-proto": "^1.0.1",
|
| 579 |
-
"gopd": "^1.2.0",
|
| 580 |
-
"has-symbols": "^1.1.0",
|
| 581 |
-
"hasown": "^2.0.2",
|
| 582 |
-
"math-intrinsics": "^1.1.0"
|
| 583 |
-
},
|
| 584 |
-
"engines": {
|
| 585 |
-
"node": ">= 0.4"
|
| 586 |
-
},
|
| 587 |
-
"funding": {
|
| 588 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 589 |
-
}
|
| 590 |
-
},
|
| 591 |
-
"node_modules/get-proto": {
|
| 592 |
-
"version": "1.0.1",
|
| 593 |
-
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
| 594 |
-
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
| 595 |
-
"license": "MIT",
|
| 596 |
-
"dependencies": {
|
| 597 |
-
"dunder-proto": "^1.0.1",
|
| 598 |
-
"es-object-atoms": "^1.0.0"
|
| 599 |
-
},
|
| 600 |
-
"engines": {
|
| 601 |
-
"node": ">= 0.4"
|
| 602 |
-
}
|
| 603 |
-
},
|
| 604 |
-
"node_modules/glob-parent": {
|
| 605 |
-
"version": "5.1.2",
|
| 606 |
-
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
| 607 |
-
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
| 608 |
-
"dev": true,
|
| 609 |
-
"license": "ISC",
|
| 610 |
-
"dependencies": {
|
| 611 |
-
"is-glob": "^4.0.1"
|
| 612 |
-
},
|
| 613 |
-
"engines": {
|
| 614 |
-
"node": ">= 6"
|
| 615 |
-
}
|
| 616 |
-
},
|
| 617 |
-
"node_modules/gopd": {
|
| 618 |
-
"version": "1.2.0",
|
| 619 |
-
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
| 620 |
-
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
| 621 |
-
"license": "MIT",
|
| 622 |
-
"engines": {
|
| 623 |
-
"node": ">= 0.4"
|
| 624 |
-
},
|
| 625 |
-
"funding": {
|
| 626 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 627 |
-
}
|
| 628 |
-
},
|
| 629 |
-
"node_modules/has-flag": {
|
| 630 |
-
"version": "3.0.0",
|
| 631 |
-
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
| 632 |
-
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
|
| 633 |
-
"dev": true,
|
| 634 |
-
"license": "MIT",
|
| 635 |
-
"engines": {
|
| 636 |
-
"node": ">=4"
|
| 637 |
-
}
|
| 638 |
-
},
|
| 639 |
-
"node_modules/has-symbols": {
|
| 640 |
-
"version": "1.1.0",
|
| 641 |
-
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
| 642 |
-
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
| 643 |
-
"license": "MIT",
|
| 644 |
-
"engines": {
|
| 645 |
-
"node": ">= 0.4"
|
| 646 |
-
},
|
| 647 |
-
"funding": {
|
| 648 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 649 |
-
}
|
| 650 |
-
},
|
| 651 |
-
"node_modules/hasown": {
|
| 652 |
-
"version": "2.0.2",
|
| 653 |
-
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 654 |
-
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
| 655 |
-
"license": "MIT",
|
| 656 |
-
"dependencies": {
|
| 657 |
-
"function-bind": "^1.1.2"
|
| 658 |
-
},
|
| 659 |
-
"engines": {
|
| 660 |
-
"node": ">= 0.4"
|
| 661 |
-
}
|
| 662 |
-
},
|
| 663 |
-
"node_modules/http-errors": {
|
| 664 |
-
"version": "2.0.0",
|
| 665 |
-
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
| 666 |
-
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
| 667 |
-
"license": "MIT",
|
| 668 |
-
"dependencies": {
|
| 669 |
-
"depd": "2.0.0",
|
| 670 |
-
"inherits": "2.0.4",
|
| 671 |
-
"setprototypeof": "1.2.0",
|
| 672 |
-
"statuses": "2.0.1",
|
| 673 |
-
"toidentifier": "1.0.1"
|
| 674 |
-
},
|
| 675 |
-
"engines": {
|
| 676 |
-
"node": ">= 0.8"
|
| 677 |
-
}
|
| 678 |
-
},
|
| 679 |
-
"node_modules/http-errors/node_modules/statuses": {
|
| 680 |
-
"version": "2.0.1",
|
| 681 |
-
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
| 682 |
-
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
| 683 |
-
"license": "MIT",
|
| 684 |
-
"engines": {
|
| 685 |
-
"node": ">= 0.8"
|
| 686 |
-
}
|
| 687 |
-
},
|
| 688 |
-
"node_modules/iconv-lite": {
|
| 689 |
-
"version": "0.6.3",
|
| 690 |
-
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
| 691 |
-
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
| 692 |
-
"license": "MIT",
|
| 693 |
-
"dependencies": {
|
| 694 |
-
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
| 695 |
-
},
|
| 696 |
-
"engines": {
|
| 697 |
-
"node": ">=0.10.0"
|
| 698 |
-
}
|
| 699 |
-
},
|
| 700 |
-
"node_modules/ignore-by-default": {
|
| 701 |
-
"version": "1.0.1",
|
| 702 |
-
"resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz",
|
| 703 |
-
"integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==",
|
| 704 |
-
"dev": true,
|
| 705 |
-
"license": "ISC"
|
| 706 |
-
},
|
| 707 |
-
"node_modules/inherits": {
|
| 708 |
-
"version": "2.0.4",
|
| 709 |
-
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 710 |
-
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 711 |
-
"license": "ISC"
|
| 712 |
-
},
|
| 713 |
-
"node_modules/ip-address": {
|
| 714 |
-
"version": "10.0.1",
|
| 715 |
-
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.0.1.tgz",
|
| 716 |
-
"integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==",
|
| 717 |
-
"license": "MIT",
|
| 718 |
-
"engines": {
|
| 719 |
-
"node": ">= 12"
|
| 720 |
-
}
|
| 721 |
-
},
|
| 722 |
-
"node_modules/ipaddr.js": {
|
| 723 |
-
"version": "1.9.1",
|
| 724 |
-
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
| 725 |
-
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
| 726 |
-
"license": "MIT",
|
| 727 |
-
"engines": {
|
| 728 |
-
"node": ">= 0.10"
|
| 729 |
-
}
|
| 730 |
-
},
|
| 731 |
-
"node_modules/is-binary-path": {
|
| 732 |
-
"version": "2.1.0",
|
| 733 |
-
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
| 734 |
-
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
| 735 |
-
"dev": true,
|
| 736 |
-
"license": "MIT",
|
| 737 |
-
"dependencies": {
|
| 738 |
-
"binary-extensions": "^2.0.0"
|
| 739 |
-
},
|
| 740 |
-
"engines": {
|
| 741 |
-
"node": ">=8"
|
| 742 |
-
}
|
| 743 |
-
},
|
| 744 |
-
"node_modules/is-extglob": {
|
| 745 |
-
"version": "2.1.1",
|
| 746 |
-
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
| 747 |
-
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
| 748 |
-
"dev": true,
|
| 749 |
-
"license": "MIT",
|
| 750 |
-
"engines": {
|
| 751 |
-
"node": ">=0.10.0"
|
| 752 |
-
}
|
| 753 |
-
},
|
| 754 |
-
"node_modules/is-glob": {
|
| 755 |
-
"version": "4.0.3",
|
| 756 |
-
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
| 757 |
-
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
| 758 |
-
"dev": true,
|
| 759 |
-
"license": "MIT",
|
| 760 |
-
"dependencies": {
|
| 761 |
-
"is-extglob": "^2.1.1"
|
| 762 |
-
},
|
| 763 |
-
"engines": {
|
| 764 |
-
"node": ">=0.10.0"
|
| 765 |
-
}
|
| 766 |
-
},
|
| 767 |
-
"node_modules/is-number": {
|
| 768 |
-
"version": "7.0.0",
|
| 769 |
-
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
| 770 |
-
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
| 771 |
-
"dev": true,
|
| 772 |
-
"license": "MIT",
|
| 773 |
-
"engines": {
|
| 774 |
-
"node": ">=0.12.0"
|
| 775 |
-
}
|
| 776 |
-
},
|
| 777 |
-
"node_modules/is-promise": {
|
| 778 |
-
"version": "4.0.0",
|
| 779 |
-
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
|
| 780 |
-
"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
|
| 781 |
-
"license": "MIT"
|
| 782 |
-
},
|
| 783 |
-
"node_modules/is-property": {
|
| 784 |
-
"version": "1.0.2",
|
| 785 |
-
"resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
|
| 786 |
-
"integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==",
|
| 787 |
-
"license": "MIT"
|
| 788 |
-
},
|
| 789 |
-
"node_modules/jsonwebtoken": {
|
| 790 |
-
"version": "9.0.2",
|
| 791 |
-
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz",
|
| 792 |
-
"integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==",
|
| 793 |
-
"license": "MIT",
|
| 794 |
-
"dependencies": {
|
| 795 |
-
"jws": "^3.2.2",
|
| 796 |
-
"lodash.includes": "^4.3.0",
|
| 797 |
-
"lodash.isboolean": "^3.0.3",
|
| 798 |
-
"lodash.isinteger": "^4.0.4",
|
| 799 |
-
"lodash.isnumber": "^3.0.3",
|
| 800 |
-
"lodash.isplainobject": "^4.0.6",
|
| 801 |
-
"lodash.isstring": "^4.0.1",
|
| 802 |
-
"lodash.once": "^4.0.0",
|
| 803 |
-
"ms": "^2.1.1",
|
| 804 |
-
"semver": "^7.5.4"
|
| 805 |
-
},
|
| 806 |
-
"engines": {
|
| 807 |
-
"node": ">=12",
|
| 808 |
-
"npm": ">=6"
|
| 809 |
-
}
|
| 810 |
-
},
|
| 811 |
-
"node_modules/jwa": {
|
| 812 |
-
"version": "1.4.2",
|
| 813 |
-
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz",
|
| 814 |
-
"integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==",
|
| 815 |
-
"license": "MIT",
|
| 816 |
-
"dependencies": {
|
| 817 |
-
"buffer-equal-constant-time": "^1.0.1",
|
| 818 |
-
"ecdsa-sig-formatter": "1.0.11",
|
| 819 |
-
"safe-buffer": "^5.0.1"
|
| 820 |
-
}
|
| 821 |
-
},
|
| 822 |
-
"node_modules/jws": {
|
| 823 |
-
"version": "3.2.2",
|
| 824 |
-
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
|
| 825 |
-
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
|
| 826 |
-
"license": "MIT",
|
| 827 |
-
"dependencies": {
|
| 828 |
-
"jwa": "^1.4.1",
|
| 829 |
-
"safe-buffer": "^5.0.1"
|
| 830 |
-
}
|
| 831 |
-
},
|
| 832 |
-
"node_modules/lodash.includes": {
|
| 833 |
-
"version": "4.3.0",
|
| 834 |
-
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
|
| 835 |
-
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",
|
| 836 |
-
"license": "MIT"
|
| 837 |
-
},
|
| 838 |
-
"node_modules/lodash.isboolean": {
|
| 839 |
-
"version": "3.0.3",
|
| 840 |
-
"resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
|
| 841 |
-
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",
|
| 842 |
-
"license": "MIT"
|
| 843 |
-
},
|
| 844 |
-
"node_modules/lodash.isinteger": {
|
| 845 |
-
"version": "4.0.4",
|
| 846 |
-
"resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
|
| 847 |
-
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",
|
| 848 |
-
"license": "MIT"
|
| 849 |
-
},
|
| 850 |
-
"node_modules/lodash.isnumber": {
|
| 851 |
-
"version": "3.0.3",
|
| 852 |
-
"resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
|
| 853 |
-
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",
|
| 854 |
-
"license": "MIT"
|
| 855 |
-
},
|
| 856 |
-
"node_modules/lodash.isplainobject": {
|
| 857 |
-
"version": "4.0.6",
|
| 858 |
-
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
|
| 859 |
-
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
|
| 860 |
-
"license": "MIT"
|
| 861 |
-
},
|
| 862 |
-
"node_modules/lodash.isstring": {
|
| 863 |
-
"version": "4.0.1",
|
| 864 |
-
"resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
|
| 865 |
-
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",
|
| 866 |
-
"license": "MIT"
|
| 867 |
-
},
|
| 868 |
-
"node_modules/lodash.once": {
|
| 869 |
-
"version": "4.1.1",
|
| 870 |
-
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
|
| 871 |
-
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",
|
| 872 |
-
"license": "MIT"
|
| 873 |
-
},
|
| 874 |
-
"node_modules/long": {
|
| 875 |
-
"version": "5.3.2",
|
| 876 |
-
"resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
|
| 877 |
-
"integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
|
| 878 |
-
"license": "Apache-2.0"
|
| 879 |
-
},
|
| 880 |
-
"node_modules/lru.min": {
|
| 881 |
-
"version": "1.1.3",
|
| 882 |
-
"resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.3.tgz",
|
| 883 |
-
"integrity": "sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q==",
|
| 884 |
-
"license": "MIT",
|
| 885 |
-
"engines": {
|
| 886 |
-
"bun": ">=1.0.0",
|
| 887 |
-
"deno": ">=1.30.0",
|
| 888 |
-
"node": ">=8.0.0"
|
| 889 |
-
},
|
| 890 |
-
"funding": {
|
| 891 |
-
"type": "github",
|
| 892 |
-
"url": "https://github.com/sponsors/wellwelwel"
|
| 893 |
-
}
|
| 894 |
-
},
|
| 895 |
-
"node_modules/math-intrinsics": {
|
| 896 |
-
"version": "1.1.0",
|
| 897 |
-
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
| 898 |
-
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
| 899 |
-
"license": "MIT",
|
| 900 |
-
"engines": {
|
| 901 |
-
"node": ">= 0.4"
|
| 902 |
-
}
|
| 903 |
-
},
|
| 904 |
-
"node_modules/media-typer": {
|
| 905 |
-
"version": "1.1.0",
|
| 906 |
-
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
|
| 907 |
-
"integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
|
| 908 |
-
"license": "MIT",
|
| 909 |
-
"engines": {
|
| 910 |
-
"node": ">= 0.8"
|
| 911 |
-
}
|
| 912 |
-
},
|
| 913 |
-
"node_modules/merge-descriptors": {
|
| 914 |
-
"version": "2.0.0",
|
| 915 |
-
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
|
| 916 |
-
"integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
|
| 917 |
-
"license": "MIT",
|
| 918 |
-
"engines": {
|
| 919 |
-
"node": ">=18"
|
| 920 |
-
},
|
| 921 |
-
"funding": {
|
| 922 |
-
"url": "https://github.com/sponsors/sindresorhus"
|
| 923 |
-
}
|
| 924 |
-
},
|
| 925 |
-
"node_modules/mime-db": {
|
| 926 |
-
"version": "1.54.0",
|
| 927 |
-
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
|
| 928 |
-
"integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
|
| 929 |
-
"license": "MIT",
|
| 930 |
-
"engines": {
|
| 931 |
-
"node": ">= 0.6"
|
| 932 |
-
}
|
| 933 |
-
},
|
| 934 |
-
"node_modules/mime-types": {
|
| 935 |
-
"version": "3.0.1",
|
| 936 |
-
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz",
|
| 937 |
-
"integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==",
|
| 938 |
-
"license": "MIT",
|
| 939 |
-
"dependencies": {
|
| 940 |
-
"mime-db": "^1.54.0"
|
| 941 |
-
},
|
| 942 |
-
"engines": {
|
| 943 |
-
"node": ">= 0.6"
|
| 944 |
-
}
|
| 945 |
-
},
|
| 946 |
-
"node_modules/minimatch": {
|
| 947 |
-
"version": "3.1.2",
|
| 948 |
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
| 949 |
-
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
| 950 |
-
"dev": true,
|
| 951 |
-
"license": "ISC",
|
| 952 |
-
"dependencies": {
|
| 953 |
-
"brace-expansion": "^1.1.7"
|
| 954 |
-
},
|
| 955 |
-
"engines": {
|
| 956 |
-
"node": "*"
|
| 957 |
-
}
|
| 958 |
-
},
|
| 959 |
-
"node_modules/ms": {
|
| 960 |
-
"version": "2.1.3",
|
| 961 |
-
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 962 |
-
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 963 |
-
"license": "MIT"
|
| 964 |
-
},
|
| 965 |
-
"node_modules/mysql2": {
|
| 966 |
-
"version": "3.15.3",
|
| 967 |
-
"resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.15.3.tgz",
|
| 968 |
-
"integrity": "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg==",
|
| 969 |
-
"license": "MIT",
|
| 970 |
-
"dependencies": {
|
| 971 |
-
"aws-ssl-profiles": "^1.1.1",
|
| 972 |
-
"denque": "^2.1.0",
|
| 973 |
-
"generate-function": "^2.3.1",
|
| 974 |
-
"iconv-lite": "^0.7.0",
|
| 975 |
-
"long": "^5.2.1",
|
| 976 |
-
"lru.min": "^1.0.0",
|
| 977 |
-
"named-placeholders": "^1.1.3",
|
| 978 |
-
"seq-queue": "^0.0.5",
|
| 979 |
-
"sqlstring": "^2.3.2"
|
| 980 |
-
},
|
| 981 |
-
"engines": {
|
| 982 |
-
"node": ">= 8.0"
|
| 983 |
-
}
|
| 984 |
-
},
|
| 985 |
-
"node_modules/mysql2/node_modules/iconv-lite": {
|
| 986 |
-
"version": "0.7.0",
|
| 987 |
-
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
|
| 988 |
-
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
|
| 989 |
-
"license": "MIT",
|
| 990 |
-
"dependencies": {
|
| 991 |
-
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
| 992 |
-
},
|
| 993 |
-
"engines": {
|
| 994 |
-
"node": ">=0.10.0"
|
| 995 |
-
},
|
| 996 |
-
"funding": {
|
| 997 |
-
"type": "opencollective",
|
| 998 |
-
"url": "https://opencollective.com/express"
|
| 999 |
-
}
|
| 1000 |
-
},
|
| 1001 |
-
"node_modules/named-placeholders": {
|
| 1002 |
-
"version": "1.1.4",
|
| 1003 |
-
"resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.4.tgz",
|
| 1004 |
-
"integrity": "sha512-/qfG0Kk/bLJIvej4FcPQ2KYUJP8iQdU1CTxysNb/U2wUNb+/4K485yeio8iNoiwfqJnsTInXoRPTza0dZWHVJQ==",
|
| 1005 |
-
"license": "MIT",
|
| 1006 |
-
"dependencies": {
|
| 1007 |
-
"lru.min": "^1.1.0"
|
| 1008 |
-
},
|
| 1009 |
-
"engines": {
|
| 1010 |
-
"node": ">=8.0.0"
|
| 1011 |
-
}
|
| 1012 |
-
},
|
| 1013 |
-
"node_modules/negotiator": {
|
| 1014 |
-
"version": "1.0.0",
|
| 1015 |
-
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
|
| 1016 |
-
"integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
|
| 1017 |
-
"license": "MIT",
|
| 1018 |
-
"engines": {
|
| 1019 |
-
"node": ">= 0.6"
|
| 1020 |
-
}
|
| 1021 |
-
},
|
| 1022 |
-
"node_modules/node-addon-api": {
|
| 1023 |
-
"version": "8.5.0",
|
| 1024 |
-
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.5.0.tgz",
|
| 1025 |
-
"integrity": "sha512-/bRZty2mXUIFY/xU5HLvveNHlswNJej+RnxBjOMkidWfwZzgTbPG1E3K5TOxRLOR+5hX7bSofy8yf1hZevMS8A==",
|
| 1026 |
-
"license": "MIT",
|
| 1027 |
-
"engines": {
|
| 1028 |
-
"node": "^18 || ^20 || >= 21"
|
| 1029 |
-
}
|
| 1030 |
-
},
|
| 1031 |
-
"node_modules/node-gyp-build": {
|
| 1032 |
-
"version": "4.8.4",
|
| 1033 |
-
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz",
|
| 1034 |
-
"integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==",
|
| 1035 |
-
"license": "MIT",
|
| 1036 |
-
"bin": {
|
| 1037 |
-
"node-gyp-build": "bin.js",
|
| 1038 |
-
"node-gyp-build-optional": "optional.js",
|
| 1039 |
-
"node-gyp-build-test": "build-test.js"
|
| 1040 |
-
}
|
| 1041 |
-
},
|
| 1042 |
-
"node_modules/nodemon": {
|
| 1043 |
-
"version": "3.1.10",
|
| 1044 |
-
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.10.tgz",
|
| 1045 |
-
"integrity": "sha512-WDjw3pJ0/0jMFmyNDp3gvY2YizjLmmOUQo6DEBY+JgdvW/yQ9mEeSw6H5ythl5Ny2ytb7f9C2nIbjSxMNzbJXw==",
|
| 1046 |
-
"dev": true,
|
| 1047 |
-
"license": "MIT",
|
| 1048 |
-
"dependencies": {
|
| 1049 |
-
"chokidar": "^3.5.2",
|
| 1050 |
-
"debug": "^4",
|
| 1051 |
-
"ignore-by-default": "^1.0.1",
|
| 1052 |
-
"minimatch": "^3.1.2",
|
| 1053 |
-
"pstree.remy": "^1.1.8",
|
| 1054 |
-
"semver": "^7.5.3",
|
| 1055 |
-
"simple-update-notifier": "^2.0.0",
|
| 1056 |
-
"supports-color": "^5.5.0",
|
| 1057 |
-
"touch": "^3.1.0",
|
| 1058 |
-
"undefsafe": "^2.0.5"
|
| 1059 |
-
},
|
| 1060 |
-
"bin": {
|
| 1061 |
-
"nodemon": "bin/nodemon.js"
|
| 1062 |
-
},
|
| 1063 |
-
"engines": {
|
| 1064 |
-
"node": ">=10"
|
| 1065 |
-
},
|
| 1066 |
-
"funding": {
|
| 1067 |
-
"type": "opencollective",
|
| 1068 |
-
"url": "https://opencollective.com/nodemon"
|
| 1069 |
-
}
|
| 1070 |
-
},
|
| 1071 |
-
"node_modules/normalize-path": {
|
| 1072 |
-
"version": "3.0.0",
|
| 1073 |
-
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
|
| 1074 |
-
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
|
| 1075 |
-
"dev": true,
|
| 1076 |
-
"license": "MIT",
|
| 1077 |
-
"engines": {
|
| 1078 |
-
"node": ">=0.10.0"
|
| 1079 |
-
}
|
| 1080 |
-
},
|
| 1081 |
-
"node_modules/object-assign": {
|
| 1082 |
-
"version": "4.1.1",
|
| 1083 |
-
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
| 1084 |
-
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
| 1085 |
-
"license": "MIT",
|
| 1086 |
-
"engines": {
|
| 1087 |
-
"node": ">=0.10.0"
|
| 1088 |
-
}
|
| 1089 |
-
},
|
| 1090 |
-
"node_modules/object-inspect": {
|
| 1091 |
-
"version": "1.13.4",
|
| 1092 |
-
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
| 1093 |
-
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
| 1094 |
-
"license": "MIT",
|
| 1095 |
-
"engines": {
|
| 1096 |
-
"node": ">= 0.4"
|
| 1097 |
-
},
|
| 1098 |
-
"funding": {
|
| 1099 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1100 |
-
}
|
| 1101 |
-
},
|
| 1102 |
-
"node_modules/on-finished": {
|
| 1103 |
-
"version": "2.4.1",
|
| 1104 |
-
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
| 1105 |
-
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
| 1106 |
-
"license": "MIT",
|
| 1107 |
-
"dependencies": {
|
| 1108 |
-
"ee-first": "1.1.1"
|
| 1109 |
-
},
|
| 1110 |
-
"engines": {
|
| 1111 |
-
"node": ">= 0.8"
|
| 1112 |
-
}
|
| 1113 |
-
},
|
| 1114 |
-
"node_modules/once": {
|
| 1115 |
-
"version": "1.4.0",
|
| 1116 |
-
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
| 1117 |
-
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
| 1118 |
-
"license": "ISC",
|
| 1119 |
-
"dependencies": {
|
| 1120 |
-
"wrappy": "1"
|
| 1121 |
-
}
|
| 1122 |
-
},
|
| 1123 |
-
"node_modules/parseurl": {
|
| 1124 |
-
"version": "1.3.3",
|
| 1125 |
-
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 1126 |
-
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 1127 |
-
"license": "MIT",
|
| 1128 |
-
"engines": {
|
| 1129 |
-
"node": ">= 0.8"
|
| 1130 |
-
}
|
| 1131 |
-
},
|
| 1132 |
-
"node_modules/path-to-regexp": {
|
| 1133 |
-
"version": "8.3.0",
|
| 1134 |
-
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
|
| 1135 |
-
"integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
|
| 1136 |
-
"license": "MIT",
|
| 1137 |
-
"funding": {
|
| 1138 |
-
"type": "opencollective",
|
| 1139 |
-
"url": "https://opencollective.com/express"
|
| 1140 |
-
}
|
| 1141 |
-
},
|
| 1142 |
-
"node_modules/pg": {
|
| 1143 |
-
"version": "8.16.3",
|
| 1144 |
-
"resolved": "https://registry.npmjs.org/pg/-/pg-8.16.3.tgz",
|
| 1145 |
-
"integrity": "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==",
|
| 1146 |
-
"license": "MIT",
|
| 1147 |
-
"dependencies": {
|
| 1148 |
-
"pg-connection-string": "^2.9.1",
|
| 1149 |
-
"pg-pool": "^3.10.1",
|
| 1150 |
-
"pg-protocol": "^1.10.3",
|
| 1151 |
-
"pg-types": "2.2.0",
|
| 1152 |
-
"pgpass": "1.0.5"
|
| 1153 |
-
},
|
| 1154 |
-
"engines": {
|
| 1155 |
-
"node": ">= 16.0.0"
|
| 1156 |
-
},
|
| 1157 |
-
"optionalDependencies": {
|
| 1158 |
-
"pg-cloudflare": "^1.2.7"
|
| 1159 |
-
},
|
| 1160 |
-
"peerDependencies": {
|
| 1161 |
-
"pg-native": ">=3.0.1"
|
| 1162 |
-
},
|
| 1163 |
-
"peerDependenciesMeta": {
|
| 1164 |
-
"pg-native": {
|
| 1165 |
-
"optional": true
|
| 1166 |
-
}
|
| 1167 |
-
}
|
| 1168 |
-
},
|
| 1169 |
-
"node_modules/pg-cloudflare": {
|
| 1170 |
-
"version": "1.2.7",
|
| 1171 |
-
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.7.tgz",
|
| 1172 |
-
"integrity": "sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==",
|
| 1173 |
-
"license": "MIT",
|
| 1174 |
-
"optional": true
|
| 1175 |
-
},
|
| 1176 |
-
"node_modules/pg-connection-string": {
|
| 1177 |
-
"version": "2.9.1",
|
| 1178 |
-
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.9.1.tgz",
|
| 1179 |
-
"integrity": "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w==",
|
| 1180 |
-
"license": "MIT"
|
| 1181 |
-
},
|
| 1182 |
-
"node_modules/pg-int8": {
|
| 1183 |
-
"version": "1.0.1",
|
| 1184 |
-
"resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",
|
| 1185 |
-
"integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==",
|
| 1186 |
-
"license": "ISC",
|
| 1187 |
-
"engines": {
|
| 1188 |
-
"node": ">=4.0.0"
|
| 1189 |
-
}
|
| 1190 |
-
},
|
| 1191 |
-
"node_modules/pg-pool": {
|
| 1192 |
-
"version": "3.10.1",
|
| 1193 |
-
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.10.1.tgz",
|
| 1194 |
-
"integrity": "sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==",
|
| 1195 |
-
"license": "MIT",
|
| 1196 |
-
"peerDependencies": {
|
| 1197 |
-
"pg": ">=8.0"
|
| 1198 |
-
}
|
| 1199 |
-
},
|
| 1200 |
-
"node_modules/pg-protocol": {
|
| 1201 |
-
"version": "1.10.3",
|
| 1202 |
-
"resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.10.3.tgz",
|
| 1203 |
-
"integrity": "sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==",
|
| 1204 |
-
"license": "MIT"
|
| 1205 |
-
},
|
| 1206 |
-
"node_modules/pg-types": {
|
| 1207 |
-
"version": "2.2.0",
|
| 1208 |
-
"resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz",
|
| 1209 |
-
"integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==",
|
| 1210 |
-
"license": "MIT",
|
| 1211 |
-
"dependencies": {
|
| 1212 |
-
"pg-int8": "1.0.1",
|
| 1213 |
-
"postgres-array": "~2.0.0",
|
| 1214 |
-
"postgres-bytea": "~1.0.0",
|
| 1215 |
-
"postgres-date": "~1.0.4",
|
| 1216 |
-
"postgres-interval": "^1.1.0"
|
| 1217 |
-
},
|
| 1218 |
-
"engines": {
|
| 1219 |
-
"node": ">=4"
|
| 1220 |
-
}
|
| 1221 |
-
},
|
| 1222 |
-
"node_modules/pgpass": {
|
| 1223 |
-
"version": "1.0.5",
|
| 1224 |
-
"resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",
|
| 1225 |
-
"integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==",
|
| 1226 |
-
"license": "MIT",
|
| 1227 |
-
"dependencies": {
|
| 1228 |
-
"split2": "^4.1.0"
|
| 1229 |
-
}
|
| 1230 |
-
},
|
| 1231 |
-
"node_modules/picomatch": {
|
| 1232 |
-
"version": "2.3.1",
|
| 1233 |
-
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
| 1234 |
-
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
| 1235 |
-
"dev": true,
|
| 1236 |
-
"license": "MIT",
|
| 1237 |
-
"engines": {
|
| 1238 |
-
"node": ">=8.6"
|
| 1239 |
-
},
|
| 1240 |
-
"funding": {
|
| 1241 |
-
"url": "https://github.com/sponsors/jonschlinkert"
|
| 1242 |
-
}
|
| 1243 |
-
},
|
| 1244 |
-
"node_modules/postgres-array": {
|
| 1245 |
-
"version": "2.0.0",
|
| 1246 |
-
"resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz",
|
| 1247 |
-
"integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==",
|
| 1248 |
-
"license": "MIT",
|
| 1249 |
-
"engines": {
|
| 1250 |
-
"node": ">=4"
|
| 1251 |
-
}
|
| 1252 |
-
},
|
| 1253 |
-
"node_modules/postgres-bytea": {
|
| 1254 |
-
"version": "1.0.0",
|
| 1255 |
-
"resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz",
|
| 1256 |
-
"integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==",
|
| 1257 |
-
"license": "MIT",
|
| 1258 |
-
"engines": {
|
| 1259 |
-
"node": ">=0.10.0"
|
| 1260 |
-
}
|
| 1261 |
-
},
|
| 1262 |
-
"node_modules/postgres-date": {
|
| 1263 |
-
"version": "1.0.7",
|
| 1264 |
-
"resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz",
|
| 1265 |
-
"integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==",
|
| 1266 |
-
"license": "MIT",
|
| 1267 |
-
"engines": {
|
| 1268 |
-
"node": ">=0.10.0"
|
| 1269 |
-
}
|
| 1270 |
-
},
|
| 1271 |
-
"node_modules/postgres-interval": {
|
| 1272 |
-
"version": "1.2.0",
|
| 1273 |
-
"resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz",
|
| 1274 |
-
"integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==",
|
| 1275 |
-
"license": "MIT",
|
| 1276 |
-
"dependencies": {
|
| 1277 |
-
"xtend": "^4.0.0"
|
| 1278 |
-
},
|
| 1279 |
-
"engines": {
|
| 1280 |
-
"node": ">=0.10.0"
|
| 1281 |
-
}
|
| 1282 |
-
},
|
| 1283 |
-
"node_modules/proxy-addr": {
|
| 1284 |
-
"version": "2.0.7",
|
| 1285 |
-
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
| 1286 |
-
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
| 1287 |
-
"license": "MIT",
|
| 1288 |
-
"dependencies": {
|
| 1289 |
-
"forwarded": "0.2.0",
|
| 1290 |
-
"ipaddr.js": "1.9.1"
|
| 1291 |
-
},
|
| 1292 |
-
"engines": {
|
| 1293 |
-
"node": ">= 0.10"
|
| 1294 |
-
}
|
| 1295 |
-
},
|
| 1296 |
-
"node_modules/pstree.remy": {
|
| 1297 |
-
"version": "1.1.8",
|
| 1298 |
-
"resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz",
|
| 1299 |
-
"integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==",
|
| 1300 |
-
"dev": true,
|
| 1301 |
-
"license": "MIT"
|
| 1302 |
-
},
|
| 1303 |
-
"node_modules/qs": {
|
| 1304 |
-
"version": "6.14.0",
|
| 1305 |
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
|
| 1306 |
-
"integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
|
| 1307 |
-
"license": "BSD-3-Clause",
|
| 1308 |
-
"dependencies": {
|
| 1309 |
-
"side-channel": "^1.1.0"
|
| 1310 |
-
},
|
| 1311 |
-
"engines": {
|
| 1312 |
-
"node": ">=0.6"
|
| 1313 |
-
},
|
| 1314 |
-
"funding": {
|
| 1315 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1316 |
-
}
|
| 1317 |
-
},
|
| 1318 |
-
"node_modules/range-parser": {
|
| 1319 |
-
"version": "1.2.1",
|
| 1320 |
-
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
| 1321 |
-
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
| 1322 |
-
"license": "MIT",
|
| 1323 |
-
"engines": {
|
| 1324 |
-
"node": ">= 0.6"
|
| 1325 |
-
}
|
| 1326 |
-
},
|
| 1327 |
-
"node_modules/raw-body": {
|
| 1328 |
-
"version": "3.0.1",
|
| 1329 |
-
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.1.tgz",
|
| 1330 |
-
"integrity": "sha512-9G8cA+tuMS75+6G/TzW8OtLzmBDMo8p1JRxN5AZ+LAp8uxGA8V8GZm4GQ4/N5QNQEnLmg6SS7wyuSmbKepiKqA==",
|
| 1331 |
-
"license": "MIT",
|
| 1332 |
-
"dependencies": {
|
| 1333 |
-
"bytes": "3.1.2",
|
| 1334 |
-
"http-errors": "2.0.0",
|
| 1335 |
-
"iconv-lite": "0.7.0",
|
| 1336 |
-
"unpipe": "1.0.0"
|
| 1337 |
-
},
|
| 1338 |
-
"engines": {
|
| 1339 |
-
"node": ">= 0.10"
|
| 1340 |
-
}
|
| 1341 |
-
},
|
| 1342 |
-
"node_modules/raw-body/node_modules/iconv-lite": {
|
| 1343 |
-
"version": "0.7.0",
|
| 1344 |
-
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
|
| 1345 |
-
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
|
| 1346 |
-
"license": "MIT",
|
| 1347 |
-
"dependencies": {
|
| 1348 |
-
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
| 1349 |
-
},
|
| 1350 |
-
"engines": {
|
| 1351 |
-
"node": ">=0.10.0"
|
| 1352 |
-
},
|
| 1353 |
-
"funding": {
|
| 1354 |
-
"type": "opencollective",
|
| 1355 |
-
"url": "https://opencollective.com/express"
|
| 1356 |
-
}
|
| 1357 |
-
},
|
| 1358 |
-
"node_modules/readdirp": {
|
| 1359 |
-
"version": "3.6.0",
|
| 1360 |
-
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
| 1361 |
-
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
|
| 1362 |
-
"dev": true,
|
| 1363 |
-
"license": "MIT",
|
| 1364 |
-
"dependencies": {
|
| 1365 |
-
"picomatch": "^2.2.1"
|
| 1366 |
-
},
|
| 1367 |
-
"engines": {
|
| 1368 |
-
"node": ">=8.10.0"
|
| 1369 |
-
}
|
| 1370 |
-
},
|
| 1371 |
-
"node_modules/router": {
|
| 1372 |
-
"version": "2.2.0",
|
| 1373 |
-
"resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
|
| 1374 |
-
"integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
|
| 1375 |
-
"license": "MIT",
|
| 1376 |
-
"dependencies": {
|
| 1377 |
-
"debug": "^4.4.0",
|
| 1378 |
-
"depd": "^2.0.0",
|
| 1379 |
-
"is-promise": "^4.0.0",
|
| 1380 |
-
"parseurl": "^1.3.3",
|
| 1381 |
-
"path-to-regexp": "^8.0.0"
|
| 1382 |
-
},
|
| 1383 |
-
"engines": {
|
| 1384 |
-
"node": ">= 18"
|
| 1385 |
-
}
|
| 1386 |
-
},
|
| 1387 |
-
"node_modules/safe-buffer": {
|
| 1388 |
-
"version": "5.2.1",
|
| 1389 |
-
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
| 1390 |
-
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
| 1391 |
-
"funding": [
|
| 1392 |
-
{
|
| 1393 |
-
"type": "github",
|
| 1394 |
-
"url": "https://github.com/sponsors/feross"
|
| 1395 |
-
},
|
| 1396 |
-
{
|
| 1397 |
-
"type": "patreon",
|
| 1398 |
-
"url": "https://www.patreon.com/feross"
|
| 1399 |
-
},
|
| 1400 |
-
{
|
| 1401 |
-
"type": "consulting",
|
| 1402 |
-
"url": "https://feross.org/support"
|
| 1403 |
-
}
|
| 1404 |
-
],
|
| 1405 |
-
"license": "MIT"
|
| 1406 |
-
},
|
| 1407 |
-
"node_modules/safer-buffer": {
|
| 1408 |
-
"version": "2.1.2",
|
| 1409 |
-
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
| 1410 |
-
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 1411 |
-
"license": "MIT"
|
| 1412 |
-
},
|
| 1413 |
-
"node_modules/semver": {
|
| 1414 |
-
"version": "7.7.2",
|
| 1415 |
-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
|
| 1416 |
-
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
|
| 1417 |
-
"license": "ISC",
|
| 1418 |
-
"bin": {
|
| 1419 |
-
"semver": "bin/semver.js"
|
| 1420 |
-
},
|
| 1421 |
-
"engines": {
|
| 1422 |
-
"node": ">=10"
|
| 1423 |
-
}
|
| 1424 |
-
},
|
| 1425 |
-
"node_modules/send": {
|
| 1426 |
-
"version": "1.2.0",
|
| 1427 |
-
"resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz",
|
| 1428 |
-
"integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==",
|
| 1429 |
-
"license": "MIT",
|
| 1430 |
-
"dependencies": {
|
| 1431 |
-
"debug": "^4.3.5",
|
| 1432 |
-
"encodeurl": "^2.0.0",
|
| 1433 |
-
"escape-html": "^1.0.3",
|
| 1434 |
-
"etag": "^1.8.1",
|
| 1435 |
-
"fresh": "^2.0.0",
|
| 1436 |
-
"http-errors": "^2.0.0",
|
| 1437 |
-
"mime-types": "^3.0.1",
|
| 1438 |
-
"ms": "^2.1.3",
|
| 1439 |
-
"on-finished": "^2.4.1",
|
| 1440 |
-
"range-parser": "^1.2.1",
|
| 1441 |
-
"statuses": "^2.0.1"
|
| 1442 |
-
},
|
| 1443 |
-
"engines": {
|
| 1444 |
-
"node": ">= 18"
|
| 1445 |
-
}
|
| 1446 |
-
},
|
| 1447 |
-
"node_modules/seq-queue": {
|
| 1448 |
-
"version": "0.0.5",
|
| 1449 |
-
"resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz",
|
| 1450 |
-
"integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="
|
| 1451 |
-
},
|
| 1452 |
-
"node_modules/serve-static": {
|
| 1453 |
-
"version": "2.2.0",
|
| 1454 |
-
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz",
|
| 1455 |
-
"integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==",
|
| 1456 |
-
"license": "MIT",
|
| 1457 |
-
"dependencies": {
|
| 1458 |
-
"encodeurl": "^2.0.0",
|
| 1459 |
-
"escape-html": "^1.0.3",
|
| 1460 |
-
"parseurl": "^1.3.3",
|
| 1461 |
-
"send": "^1.2.0"
|
| 1462 |
-
},
|
| 1463 |
-
"engines": {
|
| 1464 |
-
"node": ">= 18"
|
| 1465 |
-
}
|
| 1466 |
-
},
|
| 1467 |
-
"node_modules/setprototypeof": {
|
| 1468 |
-
"version": "1.2.0",
|
| 1469 |
-
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
| 1470 |
-
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
| 1471 |
-
"license": "ISC"
|
| 1472 |
-
},
|
| 1473 |
-
"node_modules/side-channel": {
|
| 1474 |
-
"version": "1.1.0",
|
| 1475 |
-
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
| 1476 |
-
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
| 1477 |
-
"license": "MIT",
|
| 1478 |
-
"dependencies": {
|
| 1479 |
-
"es-errors": "^1.3.0",
|
| 1480 |
-
"object-inspect": "^1.13.3",
|
| 1481 |
-
"side-channel-list": "^1.0.0",
|
| 1482 |
-
"side-channel-map": "^1.0.1",
|
| 1483 |
-
"side-channel-weakmap": "^1.0.2"
|
| 1484 |
-
},
|
| 1485 |
-
"engines": {
|
| 1486 |
-
"node": ">= 0.4"
|
| 1487 |
-
},
|
| 1488 |
-
"funding": {
|
| 1489 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1490 |
-
}
|
| 1491 |
-
},
|
| 1492 |
-
"node_modules/side-channel-list": {
|
| 1493 |
-
"version": "1.0.0",
|
| 1494 |
-
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
| 1495 |
-
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
| 1496 |
-
"license": "MIT",
|
| 1497 |
-
"dependencies": {
|
| 1498 |
-
"es-errors": "^1.3.0",
|
| 1499 |
-
"object-inspect": "^1.13.3"
|
| 1500 |
-
},
|
| 1501 |
-
"engines": {
|
| 1502 |
-
"node": ">= 0.4"
|
| 1503 |
-
},
|
| 1504 |
-
"funding": {
|
| 1505 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1506 |
-
}
|
| 1507 |
-
},
|
| 1508 |
-
"node_modules/side-channel-map": {
|
| 1509 |
-
"version": "1.0.1",
|
| 1510 |
-
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
| 1511 |
-
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
| 1512 |
-
"license": "MIT",
|
| 1513 |
-
"dependencies": {
|
| 1514 |
-
"call-bound": "^1.0.2",
|
| 1515 |
-
"es-errors": "^1.3.0",
|
| 1516 |
-
"get-intrinsic": "^1.2.5",
|
| 1517 |
-
"object-inspect": "^1.13.3"
|
| 1518 |
-
},
|
| 1519 |
-
"engines": {
|
| 1520 |
-
"node": ">= 0.4"
|
| 1521 |
-
},
|
| 1522 |
-
"funding": {
|
| 1523 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1524 |
-
}
|
| 1525 |
-
},
|
| 1526 |
-
"node_modules/side-channel-weakmap": {
|
| 1527 |
-
"version": "1.0.2",
|
| 1528 |
-
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
| 1529 |
-
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
| 1530 |
-
"license": "MIT",
|
| 1531 |
-
"dependencies": {
|
| 1532 |
-
"call-bound": "^1.0.2",
|
| 1533 |
-
"es-errors": "^1.3.0",
|
| 1534 |
-
"get-intrinsic": "^1.2.5",
|
| 1535 |
-
"object-inspect": "^1.13.3",
|
| 1536 |
-
"side-channel-map": "^1.0.1"
|
| 1537 |
-
},
|
| 1538 |
-
"engines": {
|
| 1539 |
-
"node": ">= 0.4"
|
| 1540 |
-
},
|
| 1541 |
-
"funding": {
|
| 1542 |
-
"url": "https://github.com/sponsors/ljharb"
|
| 1543 |
-
}
|
| 1544 |
-
},
|
| 1545 |
-
"node_modules/simple-update-notifier": {
|
| 1546 |
-
"version": "2.0.0",
|
| 1547 |
-
"resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",
|
| 1548 |
-
"integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",
|
| 1549 |
-
"dev": true,
|
| 1550 |
-
"license": "MIT",
|
| 1551 |
-
"dependencies": {
|
| 1552 |
-
"semver": "^7.5.3"
|
| 1553 |
-
},
|
| 1554 |
-
"engines": {
|
| 1555 |
-
"node": ">=10"
|
| 1556 |
-
}
|
| 1557 |
-
},
|
| 1558 |
-
"node_modules/split2": {
|
| 1559 |
-
"version": "4.2.0",
|
| 1560 |
-
"resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
|
| 1561 |
-
"integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
|
| 1562 |
-
"license": "ISC",
|
| 1563 |
-
"engines": {
|
| 1564 |
-
"node": ">= 10.x"
|
| 1565 |
-
}
|
| 1566 |
-
},
|
| 1567 |
-
"node_modules/sqlstring": {
|
| 1568 |
-
"version": "2.3.3",
|
| 1569 |
-
"resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz",
|
| 1570 |
-
"integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==",
|
| 1571 |
-
"license": "MIT",
|
| 1572 |
-
"engines": {
|
| 1573 |
-
"node": ">= 0.6"
|
| 1574 |
-
}
|
| 1575 |
-
},
|
| 1576 |
-
"node_modules/statuses": {
|
| 1577 |
-
"version": "2.0.2",
|
| 1578 |
-
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
|
| 1579 |
-
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
|
| 1580 |
-
"license": "MIT",
|
| 1581 |
-
"engines": {
|
| 1582 |
-
"node": ">= 0.8"
|
| 1583 |
-
}
|
| 1584 |
-
},
|
| 1585 |
-
"node_modules/supports-color": {
|
| 1586 |
-
"version": "5.5.0",
|
| 1587 |
-
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
| 1588 |
-
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
| 1589 |
-
"dev": true,
|
| 1590 |
-
"license": "MIT",
|
| 1591 |
-
"dependencies": {
|
| 1592 |
-
"has-flag": "^3.0.0"
|
| 1593 |
-
},
|
| 1594 |
-
"engines": {
|
| 1595 |
-
"node": ">=4"
|
| 1596 |
-
}
|
| 1597 |
-
},
|
| 1598 |
-
"node_modules/to-regex-range": {
|
| 1599 |
-
"version": "5.0.1",
|
| 1600 |
-
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
| 1601 |
-
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
| 1602 |
-
"dev": true,
|
| 1603 |
-
"license": "MIT",
|
| 1604 |
-
"dependencies": {
|
| 1605 |
-
"is-number": "^7.0.0"
|
| 1606 |
-
},
|
| 1607 |
-
"engines": {
|
| 1608 |
-
"node": ">=8.0"
|
| 1609 |
-
}
|
| 1610 |
-
},
|
| 1611 |
-
"node_modules/toidentifier": {
|
| 1612 |
-
"version": "1.0.1",
|
| 1613 |
-
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
| 1614 |
-
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
| 1615 |
-
"license": "MIT",
|
| 1616 |
-
"engines": {
|
| 1617 |
-
"node": ">=0.6"
|
| 1618 |
-
}
|
| 1619 |
-
},
|
| 1620 |
-
"node_modules/touch": {
|
| 1621 |
-
"version": "3.1.1",
|
| 1622 |
-
"resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz",
|
| 1623 |
-
"integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==",
|
| 1624 |
-
"dev": true,
|
| 1625 |
-
"license": "ISC",
|
| 1626 |
-
"bin": {
|
| 1627 |
-
"nodetouch": "bin/nodetouch.js"
|
| 1628 |
-
}
|
| 1629 |
-
},
|
| 1630 |
-
"node_modules/type-is": {
|
| 1631 |
-
"version": "2.0.1",
|
| 1632 |
-
"resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
|
| 1633 |
-
"integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
|
| 1634 |
-
"license": "MIT",
|
| 1635 |
-
"dependencies": {
|
| 1636 |
-
"content-type": "^1.0.5",
|
| 1637 |
-
"media-typer": "^1.1.0",
|
| 1638 |
-
"mime-types": "^3.0.0"
|
| 1639 |
-
},
|
| 1640 |
-
"engines": {
|
| 1641 |
-
"node": ">= 0.6"
|
| 1642 |
-
}
|
| 1643 |
-
},
|
| 1644 |
-
"node_modules/undefsafe": {
|
| 1645 |
-
"version": "2.0.5",
|
| 1646 |
-
"resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",
|
| 1647 |
-
"integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==",
|
| 1648 |
-
"dev": true,
|
| 1649 |
-
"license": "MIT"
|
| 1650 |
-
},
|
| 1651 |
-
"node_modules/unpipe": {
|
| 1652 |
-
"version": "1.0.0",
|
| 1653 |
-
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
| 1654 |
-
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
| 1655 |
-
"license": "MIT",
|
| 1656 |
-
"engines": {
|
| 1657 |
-
"node": ">= 0.8"
|
| 1658 |
-
}
|
| 1659 |
-
},
|
| 1660 |
-
"node_modules/uuid": {
|
| 1661 |
-
"version": "13.0.0",
|
| 1662 |
-
"resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz",
|
| 1663 |
-
"integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==",
|
| 1664 |
-
"funding": [
|
| 1665 |
-
"https://github.com/sponsors/broofa",
|
| 1666 |
-
"https://github.com/sponsors/ctavan"
|
| 1667 |
-
],
|
| 1668 |
-
"license": "MIT",
|
| 1669 |
-
"bin": {
|
| 1670 |
-
"uuid": "dist-node/bin/uuid"
|
| 1671 |
-
}
|
| 1672 |
-
},
|
| 1673 |
-
"node_modules/vary": {
|
| 1674 |
-
"version": "1.1.2",
|
| 1675 |
-
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
| 1676 |
-
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
| 1677 |
-
"license": "MIT",
|
| 1678 |
-
"engines": {
|
| 1679 |
-
"node": ">= 0.8"
|
| 1680 |
-
}
|
| 1681 |
-
},
|
| 1682 |
-
"node_modules/wrappy": {
|
| 1683 |
-
"version": "1.0.2",
|
| 1684 |
-
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 1685 |
-
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 1686 |
-
"license": "ISC"
|
| 1687 |
-
},
|
| 1688 |
-
"node_modules/xtend": {
|
| 1689 |
-
"version": "4.0.2",
|
| 1690 |
-
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
|
| 1691 |
-
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
|
| 1692 |
-
"license": "MIT",
|
| 1693 |
-
"engines": {
|
| 1694 |
-
"node": ">=0.4"
|
| 1695 |
-
}
|
| 1696 |
-
}
|
| 1697 |
-
}
|
| 1698 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/package.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "server",
|
| 3 |
-
"version": "1.0.0",
|
| 4 |
-
"main": "src/server.js",
|
| 5 |
-
"scripts": {
|
| 6 |
-
"dev": "nodemon src/server.js",
|
| 7 |
-
"start": "node src/server.js"
|
| 8 |
-
},
|
| 9 |
-
"keywords": [],
|
| 10 |
-
"author": "",
|
| 11 |
-
"license": "ISC",
|
| 12 |
-
"dependencies": {
|
| 13 |
-
"bcrypt": "^6.0.0",
|
| 14 |
-
"bcryptjs": "^3.0.2",
|
| 15 |
-
"better-sse": "^0.15.1",
|
| 16 |
-
"cookie-parser": "^1.4.7",
|
| 17 |
-
"cors": "^2.8.5",
|
| 18 |
-
"express": "^5.1.0",
|
| 19 |
-
"express-rate-limit": "^8.1.0",
|
| 20 |
-
"jsonwebtoken": "^9.0.2",
|
| 21 |
-
"mysql2": "^3.15.3",
|
| 22 |
-
"pg": "^8.16.3",
|
| 23 |
-
"uuid": "^13.0.0"
|
| 24 |
-
},
|
| 25 |
-
"devDependencies": {
|
| 26 |
-
"nodemon": "^3.1.10"
|
| 27 |
-
},
|
| 28 |
-
"description": "Python IDE backend"
|
| 29 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/ai.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
| 1 |
-
const { getPool } = require('./db');
|
| 2 |
-
const { authMiddleware } = require('./auth');
|
| 3 |
-
const { v4: uuidv4 } = require('uuid');
|
| 4 |
-
|
| 5 |
-
// Cloudflare AI Worker Config
|
| 6 |
-
const CF_AI_URL = 'https://rough-thunder-e62d.veltrix620.workers.dev/fast';
|
| 7 |
-
|
| 8 |
-
async function getCodebase(db, userId) {
|
| 9 |
-
const [rows] = await db.query('SELECT path, content, is_binary FROM files WHERE user_id=? ORDER BY path', [userId]);
|
| 10 |
-
return rows.map(r => ({ path: r.path, content: Buffer.from(r.content).toString(r.is_binary ? 'base64' : 'utf8'), isBinary: r.is_binary }));
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
function buildPrompt(codebase, errorOutput) {
|
| 14 |
-
const index = codebase.map(f => `- ${f.path}`).join('\n');
|
| 15 |
-
return `You are an expert Python developer. Analyze the following codebase and error output. Return a JSON object with keys:\n- reason: short plain-text root cause analysis (1-3 sentences)\n- changes: array where each item is {path, newContent, isBinary:false}. Only propose safe fixes.\n\nFILE INDEX (paths only):\n${index}\n\nERROR OUTPUT:\n${errorOutput}\n\nCODEBASE FILES (path then content):\n${codebase.map(f => `# ${f.path}\n${f.isBinary ? '(binary omitted)' : f.content}`).join('\n\n')}`;
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
async function callAI(prompt) {
|
| 19 |
-
try {
|
| 20 |
-
// Attempting POST to the worker assuming it can handle the body
|
| 21 |
-
const resp = await fetch(CF_AI_URL, {
|
| 22 |
-
method: 'POST',
|
| 23 |
-
headers: { 'Content-Type': 'application/json' },
|
| 24 |
-
body: JSON.stringify({ message: prompt }) // Mapping prompt to 'message' as per user hint
|
| 25 |
-
});
|
| 26 |
-
if (!resp.ok) throw new Error('AI request failed: ' + resp.status);
|
| 27 |
-
const data = await resp.json();
|
| 28 |
-
return data.response || '';
|
| 29 |
-
} catch (e) {
|
| 30 |
-
// Fallback just in case
|
| 31 |
-
console.error('AI Call failed, trying simple', e);
|
| 32 |
-
throw e;
|
| 33 |
-
}
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
function tryParseJsonFromText(text) {
|
| 37 |
-
if (!text) return null;
|
| 38 |
-
const fence = text.match(/```json\s*([\s\S]*?)```/i);
|
| 39 |
-
if (fence && fence[1]) {
|
| 40 |
-
try { return JSON.parse(fence[1]); } catch { }
|
| 41 |
-
}
|
| 42 |
-
const anyFence = text.match(/```\s*([\s\S]*?)```/);
|
| 43 |
-
if (anyFence && anyFence[1]) {
|
| 44 |
-
try { return JSON.parse(anyFence[1]); } catch { }
|
| 45 |
-
}
|
| 46 |
-
try { return JSON.parse(text); } catch { }
|
| 47 |
-
return null;
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
function register(app) {
|
| 51 |
-
const db = () => getPool(app.get('config'));
|
| 52 |
-
|
| 53 |
-
app.post('/api/ai/propose-fix', authMiddleware, async (req, res) => {
|
| 54 |
-
const { errorOutput } = req.body || {};
|
| 55 |
-
if (!errorOutput) return res.status(400).json({ error: 'errorOutput required' });
|
| 56 |
-
const codebase = await getCodebase(db(), req.user.id);
|
| 57 |
-
const prompt = buildPrompt(codebase, errorOutput);
|
| 58 |
-
let parsed = { changes: [], reason: '' };
|
| 59 |
-
try {
|
| 60 |
-
const text = await callAI(prompt);
|
| 61 |
-
const maybe = tryParseJsonFromText(text);
|
| 62 |
-
if (maybe && Array.isArray(maybe.changes)) parsed = { changes: maybe.changes, reason: String(maybe.reason || '') };
|
| 63 |
-
} catch (e) { console.error('AI error', e); }
|
| 64 |
-
const id = uuidv4();
|
| 65 |
-
await db().query('INSERT INTO ai_fixes (id, user_id, request_json, proposed_diff) VALUES (?, ?, ?, ?)', [id, req.user.id, JSON.stringify({ errorOutput }), JSON.stringify(parsed)]);
|
| 66 |
-
res.json({ id, proposed: parsed });
|
| 67 |
-
});
|
| 68 |
-
|
| 69 |
-
app.post('/api/ai/apply-fix', authMiddleware, async (req, res) => {
|
| 70 |
-
const { id } = req.body || {};
|
| 71 |
-
if (!id) return res.status(400).json({ error: 'id required' });
|
| 72 |
-
const [rows] = await db().query('SELECT proposed_diff FROM ai_fixes WHERE id=? AND user_id=?', [id, req.user.id]);
|
| 73 |
-
if (!rows[0]) return res.status(404).json({ error: 'Not found' });
|
| 74 |
-
const diff = rows[0].proposed_diff || { changes: [] };
|
| 75 |
-
const conn = await db().getConnection();
|
| 76 |
-
try {
|
| 77 |
-
await conn.beginTransaction();
|
| 78 |
-
for (const c of diff.changes || []) {
|
| 79 |
-
const contentBuf = Buffer.from(c.newContent || '', 'utf8');
|
| 80 |
-
const [r] = await conn.query('SELECT id FROM files WHERE user_id=? AND path=?', [req.user.id, c.path]);
|
| 81 |
-
if (r[0]) {
|
| 82 |
-
await conn.query('UPDATE files SET content=?, is_binary=false, updated_at=NOW() WHERE id=?', [contentBuf, r[0].id]);
|
| 83 |
-
} else {
|
| 84 |
-
const fileId = uuidv4();
|
| 85 |
-
await conn.query('INSERT INTO files (id, user_id, path, content, is_binary) VALUES (?, ?, ?, ?, false)', [fileId, req.user.id, c.path, contentBuf]);
|
| 86 |
-
}
|
| 87 |
-
}
|
| 88 |
-
await conn.query('UPDATE ai_fixes SET applied=true WHERE id=?', [id]);
|
| 89 |
-
await conn.commit();
|
| 90 |
-
res.json({ ok: true });
|
| 91 |
-
} catch (e) {
|
| 92 |
-
await conn.rollback();
|
| 93 |
-
console.error(e);
|
| 94 |
-
res.status(500).json({ error: 'Internal error' });
|
| 95 |
-
} finally {
|
| 96 |
-
conn.release();
|
| 97 |
-
}
|
| 98 |
-
});
|
| 99 |
-
|
| 100 |
-
app.post('/api/ai/generate-code', authMiddleware, async (req, res) => {
|
| 101 |
-
const { prompt, targetPath } = req.body || {};
|
| 102 |
-
if (!prompt) return res.status(400).json({ error: 'prompt required' });
|
| 103 |
-
const codebase = await getCodebase(db(), req.user.id);
|
| 104 |
-
const guide = `You are an expert coder. Based on the existing codebase, generate or edit files.\nReturn JSON strictly as {changes:[{path,newContent,isBinary:false}]}. Respond with multiple files if needed.\nPreserve style and do not include explanations.`;
|
| 105 |
-
const index = codebase.map(f => `- ${f.path}`).join('\n');
|
| 106 |
-
const context = codebase.map(f => `# ${f.path}\n${f.isBinary ? '(binary omitted)' : f.content}`).join('\n\n');
|
| 107 |
-
const text = await callAI(`${guide}\nTARGET: ${targetPath || '(may create multiple)'}\nPROMPT: ${prompt}\n\nFILE INDEX:\n${index}\n\nFILES (path then content):\n${context}`);
|
| 108 |
-
let parsed = tryParseJsonFromText(text);
|
| 109 |
-
if (!parsed || !Array.isArray(parsed.changes)) {
|
| 110 |
-
if (!targetPath) return res.status(400).json({ error: 'AI did not return valid changes; specify targetPath' });
|
| 111 |
-
parsed = { changes: [{ path: targetPath, newContent: text, isBinary: false }] };
|
| 112 |
-
}
|
| 113 |
-
const conn = await db().getConnection();
|
| 114 |
-
try {
|
| 115 |
-
await conn.beginTransaction();
|
| 116 |
-
for (const c of parsed.changes || []) {
|
| 117 |
-
const contentBuf = Buffer.from(c.newContent || '', 'utf8');
|
| 118 |
-
const [r] = await conn.query('SELECT id FROM files WHERE user_id=? AND path=?', [req.user.id, c.path]);
|
| 119 |
-
if (r[0]) {
|
| 120 |
-
await conn.query('UPDATE files SET content=?, is_binary=false, updated_at=NOW() WHERE id=?', [contentBuf, r[0].id]);
|
| 121 |
-
} else {
|
| 122 |
-
const fileId = uuidv4();
|
| 123 |
-
await conn.query('INSERT INTO files (id, user_id, path, content, is_binary) VALUES (?, ?, ?, ?, false)', [fileId, req.user.id, c.path, contentBuf]);
|
| 124 |
-
}
|
| 125 |
-
}
|
| 126 |
-
await conn.commit();
|
| 127 |
-
res.json({ ok: true, applied: parsed });
|
| 128 |
-
} catch (e) {
|
| 129 |
-
await conn.rollback();
|
| 130 |
-
console.error(e);
|
| 131 |
-
res.status(500).json({ error: 'Internal error' });
|
| 132 |
-
} finally {
|
| 133 |
-
conn.release();
|
| 134 |
-
}
|
| 135 |
-
});
|
| 136 |
-
|
| 137 |
-
app.post('/api/ai/edit-code', authMiddleware, async (req, res) => {
|
| 138 |
-
const { instruction, targetPath } = req.body || {};
|
| 139 |
-
if (!instruction) return res.status(400).json({ error: 'instruction required' });
|
| 140 |
-
try {
|
| 141 |
-
const codebase = await getCodebase(db(), req.user.id);
|
| 142 |
-
const guide = `You will propose safe edits to an existing codebase. Return JSON {changes:[{path,newContent,isBinary:false}]}. Only include files that change. Preserve formatting.`;
|
| 143 |
-
const index = codebase.map(f => `- ${f.path}`).join('\n');
|
| 144 |
-
const context = codebase.map(f => `# ${f.path}\n${f.isBinary ? '(binary omitted)' : f.content}`).join('\n\n');
|
| 145 |
-
const text = await callAI(`${guide}\nTARGET: ${targetPath || '(auto)'}\nINSTRUCTION: ${instruction}\n\nFILE INDEX:\n${index}\n\nFILES (path then content):\n${context}`);
|
| 146 |
-
const parsed = tryParseJsonFromText(text) || { changes: [] };
|
| 147 |
-
const conn = await db().getConnection();
|
| 148 |
-
try {
|
| 149 |
-
await conn.beginTransaction();
|
| 150 |
-
for (const c of parsed.changes || []) {
|
| 151 |
-
const contentBuf = Buffer.from(c.newContent || '', 'utf8');
|
| 152 |
-
const [r] = await conn.query('SELECT id FROM files WHERE user_id=? AND path=?', [req.user.id, c.path]);
|
| 153 |
-
if (r[0]) {
|
| 154 |
-
await conn.query('UPDATE files SET content=?, is_binary=false, updated_at=NOW() WHERE id=?', [contentBuf, r[0].id]);
|
| 155 |
-
} else {
|
| 156 |
-
const fileId = uuidv4();
|
| 157 |
-
await conn.query('INSERT INTO files (id, user_id, path, content, is_binary) VALUES (?, ?, ?, ?, false)', [fileId, req.user.id, c.path, contentBuf]);
|
| 158 |
-
}
|
| 159 |
-
}
|
| 160 |
-
await conn.commit();
|
| 161 |
-
res.json({ ok: true, applied: parsed });
|
| 162 |
-
} catch (e) {
|
| 163 |
-
await conn.rollback();
|
| 164 |
-
console.error(e);
|
| 165 |
-
res.status(500).json({ error: 'Internal error' });
|
| 166 |
-
} finally {
|
| 167 |
-
conn.release();
|
| 168 |
-
}
|
| 169 |
-
} catch (e) {
|
| 170 |
-
console.error('AI edit error', e);
|
| 171 |
-
res.status(500).json({ error: 'AI error' });
|
| 172 |
-
}
|
| 173 |
-
});
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
module.exports = { register };
|
| 177 |
-
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/auth.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
| 1 |
-
const bcrypt = require('bcryptjs');
|
| 2 |
-
const jwt = require('jsonwebtoken');
|
| 3 |
-
const { v4: uuidv4 } = require('uuid');
|
| 4 |
-
const { getPool } = require('./db');
|
| 5 |
-
|
| 6 |
-
function authMiddleware(req, res, next) {
|
| 7 |
-
const token = req.cookies['token'];
|
| 8 |
-
const { JWT_SECRET } = req.app.get('config');
|
| 9 |
-
if (!token) return res.status(401).json({ error: 'Unauthorized' });
|
| 10 |
-
try {
|
| 11 |
-
const payload = jwt.verify(token, JWT_SECRET);
|
| 12 |
-
req.user = { id: payload.id, email: payload.email };
|
| 13 |
-
next();
|
| 14 |
-
} catch {
|
| 15 |
-
res.status(401).json({ error: 'Unauthorized' });
|
| 16 |
-
}
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
function register(app) {
|
| 20 |
-
app.post('/api/auth/signup', async (req, res) => {
|
| 21 |
-
const { email, password, name, class: klass, section } = req.body || {};
|
| 22 |
-
if (!email || !password || !name || !klass || !section) return res.status(400).json({ error: 'name, class, section, email and password required' });
|
| 23 |
-
const db = getPool(app.get('config'));
|
| 24 |
-
const conn = await db.getConnection();
|
| 25 |
-
try {
|
| 26 |
-
// Determine users.id data type to insert appropriately
|
| 27 |
-
const [typeRows] = await conn.query("SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_schema=DATABASE() AND table_name='users' AND column_name='id'");
|
| 28 |
-
const idType = (typeRows[0]?.COLUMN_TYPE || '').toLowerCase();
|
| 29 |
-
let userId;
|
| 30 |
-
const wsId = uuidv4();
|
| 31 |
-
const passwordHash = await bcrypt.hash(password, 10);
|
| 32 |
-
await conn.beginTransaction();
|
| 33 |
-
|
| 34 |
-
if (idType.includes('char') || idType.includes('text') || idType.includes('uuid')) {
|
| 35 |
-
userId = uuidv4();
|
| 36 |
-
await conn.query('INSERT INTO users (id, email, password_hash, name, class, section) VALUES (?, ?, ?, ?, ?, ?)', [userId, email, passwordHash, name, klass, section]);
|
| 37 |
-
} else {
|
| 38 |
-
// Integer auto-increment
|
| 39 |
-
const [res] = await conn.query('INSERT INTO users (email, password_hash, name, class, section) VALUES (?, ?, ?, ?, ?)', [email, passwordHash, name, klass, section]);
|
| 40 |
-
userId = res.insertId;
|
| 41 |
-
}
|
| 42 |
-
|
| 43 |
-
// Workspaces with ON DUPLICATE KEY UPDATE or generic insert
|
| 44 |
-
await conn.query('INSERT INTO workspaces (id, user_id) VALUES (?, ?)', [wsId, userId]);
|
| 45 |
-
|
| 46 |
-
// Default main.py
|
| 47 |
-
const fileId = uuidv4();
|
| 48 |
-
const content = Buffer.from('print("HELLO FROM SHASHWAT")\n');
|
| 49 |
-
await conn.query('INSERT INTO files (id, user_id, path, content, is_binary) VALUES (?, ?, ?, ?, false)', [fileId, userId, 'main.py', content]);
|
| 50 |
-
|
| 51 |
-
await conn.commit();
|
| 52 |
-
const token = jwt.sign({ id: userId, email }, app.get('config').JWT_SECRET, { expiresIn: '7d' });
|
| 53 |
-
res.cookie('token', token, { httpOnly: true, sameSite: 'lax' });
|
| 54 |
-
res.json({ ok: true });
|
| 55 |
-
} catch (e) {
|
| 56 |
-
await conn.rollback();
|
| 57 |
-
if (e.code === 'ER_DUP_ENTRY') return res.status(409).json({ error: 'Email already in use' });
|
| 58 |
-
console.error(e);
|
| 59 |
-
res.status(500).json({ error: 'Internal error' });
|
| 60 |
-
} finally {
|
| 61 |
-
conn.release();
|
| 62 |
-
}
|
| 63 |
-
});
|
| 64 |
-
|
| 65 |
-
app.post('/api/auth/signin', async (req, res) => {
|
| 66 |
-
const { email, password } = req.body || {};
|
| 67 |
-
if (!email || !password) return res.status(400).json({ error: 'email and password required' });
|
| 68 |
-
const db = getPool(app.get('config'));
|
| 69 |
-
const [rows] = await db.query('SELECT id, password_hash, name, class, section FROM users WHERE email=?', [email]);
|
| 70 |
-
if (!rows[0]) return res.status(401).json({ error: 'Invalid credentials' });
|
| 71 |
-
const valid = await bcrypt.compare(password, rows[0].password_hash);
|
| 72 |
-
if (!valid) return res.status(401).json({ error: 'Invalid credentials' });
|
| 73 |
-
const token = jwt.sign({ id: rows[0].id, email, name: rows[0].name, class: rows[0].class, section: rows[0].section }, app.get('config').JWT_SECRET, { expiresIn: '7d' });
|
| 74 |
-
res.cookie('token', token, { httpOnly: true, sameSite: 'lax' });
|
| 75 |
-
res.json({ ok: true });
|
| 76 |
-
});
|
| 77 |
-
|
| 78 |
-
app.get('/api/auth/me', authMiddleware, async (req, res) => {
|
| 79 |
-
// Hydrate name/class/section from DB in case token is old
|
| 80 |
-
const db = getPool(app.get('config'));
|
| 81 |
-
const [rows] = await db.query('SELECT email, name, class, section FROM users WHERE id=?', [req.user.id]);
|
| 82 |
-
const u = rows[0] || {};
|
| 83 |
-
res.json({ user: { id: req.user.id, email: u.email || req.user.email, name: u.name, class: u.class, section: u.section } });
|
| 84 |
-
});
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
module.exports = { register, authMiddleware };
|
| 88 |
-
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/db.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
| 1 |
-
const mysql = require('mysql2/promise');
|
| 2 |
-
|
| 3 |
-
let pool;
|
| 4 |
-
|
| 5 |
-
function getPool(config) {
|
| 6 |
-
if (!pool) {
|
| 7 |
-
const dbUrl = config?.DATABASE_URL || process.env.DATABASE_URL;
|
| 8 |
-
// mysql2 handles the connection string parsing including ssl params if formatted correctly,
|
| 9 |
-
// or we might need to parse it if the driver is picky.
|
| 10 |
-
// Usually 'mysql://user:pass@host:port/db?ssl={"rejectUnauthorized":true}' works with mysql2.
|
| 11 |
-
pool = mysql.createPool({
|
| 12 |
-
uri: dbUrl,
|
| 13 |
-
waitForConnections: true,
|
| 14 |
-
connectionLimit: 10,
|
| 15 |
-
queueLimit: 0,
|
| 16 |
-
// handling potential SSL JSON parsing if the driver doesn't do it automatically from string
|
| 17 |
-
ssl: dbUrl.includes('ssl=') ? { rejectUnauthorized: true } : undefined
|
| 18 |
-
});
|
| 19 |
-
}
|
| 20 |
-
return pool;
|
| 21 |
-
}
|
| 22 |
-
|
| 23 |
-
async function ensureSchema(config) {
|
| 24 |
-
const db = getPool(config);
|
| 25 |
-
const conn = await db.getConnection();
|
| 26 |
-
try {
|
| 27 |
-
await conn.beginTransaction();
|
| 28 |
-
|
| 29 |
-
// Check if users table exists
|
| 30 |
-
const [rows] = await conn.query(
|
| 31 |
-
"SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_schema=DATABASE() AND table_name='users' AND column_name='id'"
|
| 32 |
-
);
|
| 33 |
-
|
| 34 |
-
let userIdSqlType = 'CHAR(36)'; // Default for new tables
|
| 35 |
-
|
| 36 |
-
if (rows.length === 0) {
|
| 37 |
-
// Create users table
|
| 38 |
-
await conn.query(`
|
| 39 |
-
CREATE TABLE IF NOT EXISTS users (
|
| 40 |
-
id CHAR(36) PRIMARY KEY,
|
| 41 |
-
email TEXT NOT NULL,
|
| 42 |
-
password_hash TEXT NOT NULL,
|
| 43 |
-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
| 44 |
-
UNIQUE(email(255))
|
| 45 |
-
);
|
| 46 |
-
`);
|
| 47 |
-
} else {
|
| 48 |
-
// Detect existing ID type
|
| 49 |
-
const t = (rows[0].COLUMN_TYPE || '').toLowerCase();
|
| 50 |
-
if (t.includes('int')) userIdSqlType = 'INT';
|
| 51 |
-
else if (t.includes('bigint')) userIdSqlType = 'BIGINT';
|
| 52 |
-
|
| 53 |
-
// Ensure columns exist
|
| 54 |
-
// MySQL doesn't support IF NOT EXISTS in ALTER TABLE easily, so we check first or use ignore pattern
|
| 55 |
-
// Simplified approach: Try adding columns and ignore "Duplicate column" error
|
| 56 |
-
const addCol = async (sql) => {
|
| 57 |
-
try { await conn.query(sql); } catch (e) {
|
| 58 |
-
if (e.code !== 'ER_DUP_FIELDNAME') throw e;
|
| 59 |
-
}
|
| 60 |
-
};
|
| 61 |
-
|
| 62 |
-
await addCol("ALTER TABLE users ADD COLUMN email TEXT");
|
| 63 |
-
await addCol("ALTER TABLE users ADD COLUMN password_hash TEXT");
|
| 64 |
-
await addCol("ALTER TABLE users ADD COLUMN name TEXT");
|
| 65 |
-
await addCol("ALTER TABLE users ADD COLUMN class TEXT");
|
| 66 |
-
await addCol("ALTER TABLE users ADD COLUMN section TEXT");
|
| 67 |
-
await addCol("ALTER TABLE users ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP");
|
| 68 |
-
|
| 69 |
-
// Ensure unique index on email
|
| 70 |
-
// In MySQL email TEXT can't be unique without length. We used `email(255)` in CREATE.
|
| 71 |
-
// Checking if index exists:
|
| 72 |
-
const [idx] = await conn.query("SHOW INDEX FROM users WHERE Key_name='users_email_key'");
|
| 73 |
-
if (idx.length === 0) {
|
| 74 |
-
// We need to cast text to length for index
|
| 75 |
-
try {
|
| 76 |
-
await conn.query("CREATE UNIQUE INDEX users_email_key ON users(email(255))");
|
| 77 |
-
} catch (e) {
|
| 78 |
-
// Ignore if email content is too long for unique constraint (unlikely for valid emails)
|
| 79 |
-
console.warn("Could not create unique index on email:", e.message);
|
| 80 |
-
}
|
| 81 |
-
}
|
| 82 |
-
|
| 83 |
-
// legacy username column nullable
|
| 84 |
-
try { await conn.query("ALTER TABLE users MODIFY COLUMN username TEXT NULL"); } catch { }
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
// Create dependent tables
|
| 88 |
-
await conn.query(`
|
| 89 |
-
CREATE TABLE IF NOT EXISTS workspaces (
|
| 90 |
-
id CHAR(36) PRIMARY KEY,
|
| 91 |
-
user_id ${userIdSqlType},
|
| 92 |
-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
| 93 |
-
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
|
| 94 |
-
);
|
| 95 |
-
`);
|
| 96 |
-
|
| 97 |
-
// Files table (content is LONGBLOB for binary safety)
|
| 98 |
-
await conn.query(`
|
| 99 |
-
CREATE TABLE IF NOT EXISTS files (
|
| 100 |
-
id CHAR(36) PRIMARY KEY,
|
| 101 |
-
user_id ${userIdSqlType},
|
| 102 |
-
path TEXT NOT NULL,
|
| 103 |
-
content LONGBLOB NOT NULL,
|
| 104 |
-
is_binary BOOLEAN DEFAULT FALSE,
|
| 105 |
-
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
| 106 |
-
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE,
|
| 107 |
-
UNIQUE KEY idx_files_user_path (user_id, path(255))
|
| 108 |
-
);
|
| 109 |
-
`);
|
| 110 |
-
|
| 111 |
-
await conn.query(`
|
| 112 |
-
CREATE TABLE IF NOT EXISTS file_versions (
|
| 113 |
-
id CHAR(36) PRIMARY KEY,
|
| 114 |
-
file_id CHAR(36),
|
| 115 |
-
content LONGBLOB NOT NULL,
|
| 116 |
-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
| 117 |
-
FOREIGN KEY (file_id) REFERENCES files(id) ON DELETE CASCADE
|
| 118 |
-
);
|
| 119 |
-
`);
|
| 120 |
-
|
| 121 |
-
await conn.query(`
|
| 122 |
-
CREATE TABLE IF NOT EXISTS ai_fixes (
|
| 123 |
-
id CHAR(36) PRIMARY KEY,
|
| 124 |
-
user_id ${userIdSqlType},
|
| 125 |
-
request_json JSON NOT NULL,
|
| 126 |
-
proposed_diff JSON,
|
| 127 |
-
applied BOOLEAN DEFAULT FALSE,
|
| 128 |
-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
| 129 |
-
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
|
| 130 |
-
);
|
| 131 |
-
`);
|
| 132 |
-
|
| 133 |
-
await conn.commit();
|
| 134 |
-
} catch (e) {
|
| 135 |
-
await conn.rollback();
|
| 136 |
-
throw e;
|
| 137 |
-
} finally {
|
| 138 |
-
conn.release();
|
| 139 |
-
}
|
| 140 |
-
}
|
| 141 |
-
|
| 142 |
-
module.exports = { pool: { get: getPool }, getPool, ensureSchema };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/files.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
| 1 |
-
const { v4: uuidv4 } = require('uuid');
|
| 2 |
-
const { getPool } = require('./db');
|
| 3 |
-
const { authMiddleware } = require('./auth');
|
| 4 |
-
|
| 5 |
-
function bufferFromMaybeString(content) {
|
| 6 |
-
if (content instanceof Buffer) return content;
|
| 7 |
-
if (typeof content === 'string') return Buffer.from(content, 'utf8');
|
| 8 |
-
return Buffer.from('');
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
function register(app) {
|
| 12 |
-
const db = () => getPool(app.get('config'));
|
| 13 |
-
|
| 14 |
-
app.get('/api/files/list', authMiddleware, async (req, res) => {
|
| 15 |
-
const [rows] = await db().query('SELECT path, octet_length(content) AS size FROM files WHERE user_id=? ORDER BY path', [req.user.id]);
|
| 16 |
-
res.json({ files: rows });
|
| 17 |
-
});
|
| 18 |
-
|
| 19 |
-
app.get('/api/files/read', authMiddleware, async (req, res) => {
|
| 20 |
-
const path = req.query.path;
|
| 21 |
-
if (!path) return res.status(400).json({ error: 'path required' });
|
| 22 |
-
const [rows] = await db().query('SELECT content, is_binary FROM files WHERE user_id=? AND path=?', [req.user.id, path]);
|
| 23 |
-
if (!rows[0]) return res.status(404).json({ error: 'Not found' });
|
| 24 |
-
const content = rows[0].content.toString(rows[0].is_binary ? 'binary' : 'utf8');
|
| 25 |
-
res.json({ path, content, isBinary: rows[0].is_binary });
|
| 26 |
-
});
|
| 27 |
-
|
| 28 |
-
app.post('/api/files/write', authMiddleware, async (req, res) => {
|
| 29 |
-
const { path, content, isBinary } = req.body || {};
|
| 30 |
-
if (!path) return res.status(400).json({ error: 'path required' });
|
| 31 |
-
const data = bufferFromMaybeString(content || '');
|
| 32 |
-
const conn = await db().getConnection();
|
| 33 |
-
try {
|
| 34 |
-
await conn.beginTransaction();
|
| 35 |
-
const [rows] = await conn.query('SELECT id FROM files WHERE user_id=? AND path=?', [req.user.id, path]);
|
| 36 |
-
if (rows[0]) {
|
| 37 |
-
const fileId = rows[0].id;
|
| 38 |
-
await conn.query('UPDATE files SET content=?, is_binary=?, updated_at=NOW() WHERE id=?', [data, !!isBinary, fileId]);
|
| 39 |
-
await conn.query('INSERT INTO file_versions (id, file_id, content) VALUES (?, ?, ?)', [uuidv4(), fileId, data]);
|
| 40 |
-
} else {
|
| 41 |
-
const fileId = uuidv4();
|
| 42 |
-
await conn.query('INSERT INTO files (id, user_id, path, content, is_binary) VALUES (?, ?, ?, ?, ?)', [fileId, req.user.id, path, data, !!isBinary]);
|
| 43 |
-
await conn.query('INSERT INTO file_versions (id, file_id, content) VALUES (?, ?, ?)', [uuidv4(), fileId, data]);
|
| 44 |
-
}
|
| 45 |
-
await conn.commit();
|
| 46 |
-
res.json({ ok: true });
|
| 47 |
-
} catch (e) {
|
| 48 |
-
await conn.rollback();
|
| 49 |
-
console.error(e);
|
| 50 |
-
res.status(500).json({ error: 'Internal error' });
|
| 51 |
-
} finally {
|
| 52 |
-
conn.release();
|
| 53 |
-
}
|
| 54 |
-
});
|
| 55 |
-
|
| 56 |
-
app.post('/api/files/delete', authMiddleware, async (req, res) => {
|
| 57 |
-
const { path } = req.body || {};
|
| 58 |
-
if (!path) return res.status(400).json({ error: 'path required' });
|
| 59 |
-
await db().query('DELETE FROM files WHERE user_id=? AND path=?', [req.user.id, path]);
|
| 60 |
-
res.json({ ok: true });
|
| 61 |
-
});
|
| 62 |
-
|
| 63 |
-
app.post('/api/files/rename', authMiddleware, async (req, res) => {
|
| 64 |
-
const { oldPath, newPath } = req.body || {};
|
| 65 |
-
if (!oldPath || !newPath) return res.status(400).json({ error: 'oldPath and newPath required' });
|
| 66 |
-
try {
|
| 67 |
-
const [resDb] = await db().query('UPDATE files SET path=?, updated_at=NOW() WHERE user_id=? AND path=?', [newPath, req.user.id, oldPath]);
|
| 68 |
-
if (resDb.affectedRows === 0) return res.status(404).json({ error: 'Not found' });
|
| 69 |
-
res.json({ ok: true });
|
| 70 |
-
} catch (e) {
|
| 71 |
-
if (e.code === 'ER_DUP_ENTRY') return res.status(409).json({ error: 'File with newPath already exists' });
|
| 72 |
-
console.error(e);
|
| 73 |
-
res.status(500).json({ error: 'Internal error' });
|
| 74 |
-
}
|
| 75 |
-
});
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
module.exports = { register };
|
| 79 |
-
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/reset.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
const { getPool, ensureSchema } = require('./db');
|
| 2 |
-
|
| 3 |
-
async function reset(config) {
|
| 4 |
-
const db = getPool(config);
|
| 5 |
-
const client = await db.connect();
|
| 6 |
-
try {
|
| 7 |
-
await client.query('BEGIN');
|
| 8 |
-
await client.query('DROP TABLE IF EXISTS file_versions CASCADE');
|
| 9 |
-
await client.query('DROP TABLE IF EXISTS files CASCADE');
|
| 10 |
-
await client.query('DROP TABLE IF EXISTS ai_fixes CASCADE');
|
| 11 |
-
await client.query('DROP TABLE IF EXISTS workspaces CASCADE');
|
| 12 |
-
await client.query('DROP TABLE IF EXISTS users CASCADE');
|
| 13 |
-
await client.query('COMMIT');
|
| 14 |
-
await ensureSchema(config);
|
| 15 |
-
console.log('Database reset complete.');
|
| 16 |
-
} catch (e) {
|
| 17 |
-
await client.query('ROLLBACK');
|
| 18 |
-
console.error('Reset failed', e);
|
| 19 |
-
process.exit(1);
|
| 20 |
-
} finally {
|
| 21 |
-
client.release();
|
| 22 |
-
}
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
// WARNING: Uses same CONFIG loading as server.js by requiring it there
|
| 26 |
-
(async () => {
|
| 27 |
-
// Reuse the server's hardcoded config
|
| 28 |
-
const app = require('./server');
|
| 29 |
-
const CONFIG = app.get('config');
|
| 30 |
-
await reset(CONFIG);
|
| 31 |
-
process.exit(0);
|
| 32 |
-
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/root.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
const express = require('express');
|
| 2 |
-
const path = require('path');
|
| 3 |
-
const fs = require('fs');
|
| 4 |
-
const os = require('os');
|
| 5 |
-
const { authMiddleware } = require('./auth');
|
| 6 |
-
|
| 7 |
-
function getUserRootDir(userId) {
|
| 8 |
-
const dir = path.join(os.tmpdir(), 'py-ide', String(userId));
|
| 9 |
-
fs.mkdirSync(dir, { recursive: true });
|
| 10 |
-
return dir;
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
function safeJoin(base, p) {
|
| 14 |
-
const resolved = path.join(base, p);
|
| 15 |
-
if (!resolved.startsWith(base)) throw new Error('Invalid path');
|
| 16 |
-
return resolved;
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
function register(app) {
|
| 20 |
-
const router = express.Router();
|
| 21 |
-
router.use(authMiddleware);
|
| 22 |
-
|
| 23 |
-
// List items at root (shallow)
|
| 24 |
-
router.get('/root', (req, res) => {
|
| 25 |
-
const base = getUserRootDir(req.user.id);
|
| 26 |
-
const items = fs.readdirSync(base).map(name => {
|
| 27 |
-
const full = path.join(base, name);
|
| 28 |
-
const st = fs.statSync(full);
|
| 29 |
-
return { name, isDir: st.isDirectory(), size: st.isFile() ? st.size : 0 };
|
| 30 |
-
});
|
| 31 |
-
res.json({ items });
|
| 32 |
-
});
|
| 33 |
-
|
| 34 |
-
// Get file from root by relative path using query param
|
| 35 |
-
router.get('/root/get', (req, res) => {
|
| 36 |
-
try {
|
| 37 |
-
const rel = String(req.query.path || '');
|
| 38 |
-
const base = getUserRootDir(req.user.id);
|
| 39 |
-
const abs = safeJoin(base, rel);
|
| 40 |
-
if (!fs.existsSync(abs) || !fs.statSync(abs).isFile()) return res.status(404).json({ error: 'Not found' });
|
| 41 |
-
res.sendFile(abs);
|
| 42 |
-
} catch (e) {
|
| 43 |
-
res.status(400).json({ error: 'Invalid path' });
|
| 44 |
-
}
|
| 45 |
-
});
|
| 46 |
-
|
| 47 |
-
app.use('/api', router);
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
module.exports = { register, getUserRootDir };
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/server.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
| 1 |
-
const express = require('express');
|
| 2 |
-
const cors = require('cors');
|
| 3 |
-
const cookieParser = require('cookie-parser');
|
| 4 |
-
const rateLimit = require('express-rate-limit');
|
| 5 |
-
|
| 6 |
-
const { pool, ensureSchema } = require('./db');
|
| 7 |
-
const path = require('path');
|
| 8 |
-
const auth = require('./auth');
|
| 9 |
-
const files = require('./files');
|
| 10 |
-
const terminal = require('./terminal');
|
| 11 |
-
const ai = require('./ai');
|
| 12 |
-
const temp = require('./temp');
|
| 13 |
-
const root = require('./root');
|
| 14 |
-
|
| 15 |
-
const app = express();
|
| 16 |
-
|
| 17 |
-
// WARNING: Hardcoding secrets is unsafe. Use environment variables in production.
|
| 18 |
-
const CONFIG = {
|
| 19 |
-
JWT_SECRET: 'itsecret',
|
| 20 |
-
GEMINI_API_KEY: 'AIzaSyCx5FWyytL-KTd92v8ZDcYPPFl2N0fZaIc',
|
| 21 |
-
DATABASE_URL: 'mysql://6bPC9jTdNcRiz6M.root:MiPm6uxTWh8AIje3@gateway01.ap-southeast-1.prod.aws.tidbcloud.com:4000/test?ssl={"rejectUnauthorized":true}',
|
| 22 |
-
};
|
| 23 |
-
|
| 24 |
-
app.use(cors({ origin: true, credentials: true }));
|
| 25 |
-
app.use(express.json({ limit: '2mb' }));
|
| 26 |
-
app.use(cookieParser());
|
| 27 |
-
|
| 28 |
-
const limiter = rateLimit({ windowMs: 60 * 1000, max: 100 });
|
| 29 |
-
app.use(limiter);
|
| 30 |
-
|
| 31 |
-
// Serve static frontend (client/public) at root
|
| 32 |
-
const staticDir = path.join(__dirname, '../../client/public');
|
| 33 |
-
app.use(express.static(staticDir));
|
| 34 |
-
|
| 35 |
-
app.get('/api/health', (req, res) => {
|
| 36 |
-
res.json({ ok: true });
|
| 37 |
-
});
|
| 38 |
-
|
| 39 |
-
app.get('/', (req, res) => {
|
| 40 |
-
res.sendFile(path.join(staticDir, 'index.html'));
|
| 41 |
-
});
|
| 42 |
-
|
| 43 |
-
// Attach config for modules
|
| 44 |
-
app.set('config', CONFIG);
|
| 45 |
-
auth.register(app);
|
| 46 |
-
files.register(app);
|
| 47 |
-
terminal.register(app);
|
| 48 |
-
ai.register(app);
|
| 49 |
-
temp.register(app);
|
| 50 |
-
root.register(app);
|
| 51 |
-
|
| 52 |
-
const PORT = process.env.PORT || 3001;
|
| 53 |
-
|
| 54 |
-
ensureSchema(CONFIG)
|
| 55 |
-
.then(() => {
|
| 56 |
-
app.listen(PORT, () => {
|
| 57 |
-
console.log(`Server listening on http://localhost:${PORT}`);
|
| 58 |
-
});
|
| 59 |
-
})
|
| 60 |
-
.catch((err) => {
|
| 61 |
-
console.error('Failed to ensure schema', err);
|
| 62 |
-
process.exit(1);
|
| 63 |
-
});
|
| 64 |
-
|
| 65 |
-
module.exports = app;
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/temp.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
| 1 |
-
const express = require('express');
|
| 2 |
-
const path = require('path');
|
| 3 |
-
const fs = require('fs');
|
| 4 |
-
const os = require('os');
|
| 5 |
-
const { authMiddleware } = require('./auth');
|
| 6 |
-
|
| 7 |
-
function getUserTempDir(userId) {
|
| 8 |
-
const dir = path.join(os.tmpdir(), 'py-ide', String(userId), 'tmp');
|
| 9 |
-
fs.mkdirSync(dir, { recursive: true });
|
| 10 |
-
return dir;
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
function safeJoin(base, p) {
|
| 14 |
-
const resolved = path.join(base, p);
|
| 15 |
-
if (!resolved.startsWith(base)) throw new Error('Invalid path');
|
| 16 |
-
return resolved;
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
function register(app) {
|
| 20 |
-
const router = express.Router();
|
| 21 |
-
router.use(authMiddleware);
|
| 22 |
-
|
| 23 |
-
// Serve a file from user's temp dir using query param ?path=relative/path
|
| 24 |
-
router.get('/temp/get', (req, res) => {
|
| 25 |
-
try {
|
| 26 |
-
const p = String(req.query.path || '');
|
| 27 |
-
const userDir = getUserTempDir(req.user.id);
|
| 28 |
-
const abs = safeJoin(userDir, p);
|
| 29 |
-
if (!fs.existsSync(abs) || !fs.statSync(abs).isFile()) return res.status(404).json({ error: 'Not found' });
|
| 30 |
-
res.sendFile(abs);
|
| 31 |
-
} catch (e) {
|
| 32 |
-
res.status(400).json({ error: 'Invalid path' });
|
| 33 |
-
}
|
| 34 |
-
});
|
| 35 |
-
|
| 36 |
-
// List files in temp dir (shallow)
|
| 37 |
-
router.get('/temp', (req, res) => {
|
| 38 |
-
const userDir = getUserTempDir(req.user.id);
|
| 39 |
-
const items = fs.readdirSync(userDir).map(name => ({ name, isDir: fs.statSync(path.join(userDir, name)).isDirectory() }));
|
| 40 |
-
res.json({ items });
|
| 41 |
-
});
|
| 42 |
-
|
| 43 |
-
app.use('/api', router);
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
module.exports = { register, getUserTempDir };
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/terminal.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
| 1 |
-
const { spawn } = require('child_process');
|
| 2 |
-
const fs = require('fs');
|
| 3 |
-
const path = require('path');
|
| 4 |
-
const os = require('os');
|
| 5 |
-
const { getPool } = require('./db');
|
| 6 |
-
const { getUserTempDir } = require('./temp');
|
| 7 |
-
const { getUserRootDir } = require('./root');
|
| 8 |
-
const { authMiddleware } = require('./auth');
|
| 9 |
-
|
| 10 |
-
function isCommandAllowed(cmd) {
|
| 11 |
-
// Allow only python/python3/pip/pip3 and basic commands
|
| 12 |
-
const allowed = ['python', 'python3', 'pip', 'pip3'];
|
| 13 |
-
const basic = ['ls', 'cat'];
|
| 14 |
-
const [bin] = cmd.trim().split(/\s+/);
|
| 15 |
-
return allowed.includes(bin) || basic.includes(bin);
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
async function materializeWorkspace(db, userId, targetDir) {
|
| 19 |
-
const [rows] = await db.query('SELECT path, content, is_binary FROM files WHERE user_id=?', [userId]);
|
| 20 |
-
for (const f of rows) {
|
| 21 |
-
const abs = path.join(targetDir, f.path);
|
| 22 |
-
const dir = path.dirname(abs);
|
| 23 |
-
fs.mkdirSync(dir, { recursive: true });
|
| 24 |
-
fs.writeFileSync(abs, Buffer.from(f.content), { mode: 0o600 });
|
| 25 |
-
}
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
function register(app) {
|
| 29 |
-
const db = () => getPool(app.get('config'));
|
| 30 |
-
|
| 31 |
-
app.post('/api/terminal/run', authMiddleware, async (req, res) => {
|
| 32 |
-
const { command, cwd } = req.body || {};
|
| 33 |
-
if (!command || typeof command !== 'string') return res.status(400).json({ error: 'command required' });
|
| 34 |
-
if (!isCommandAllowed(command)) return res.status(400).json({ error: 'Command not allowed' });
|
| 35 |
-
|
| 36 |
-
// Ensure user id is a string for filesystem paths
|
| 37 |
-
const userIdStr = String(req.user.id);
|
| 38 |
-
const baseDir = path.join(os.tmpdir(), 'py-ide', userIdStr);
|
| 39 |
-
fs.mkdirSync(baseDir, { recursive: true });
|
| 40 |
-
|
| 41 |
-
const venvDir = path.join(baseDir, 'venv');
|
| 42 |
-
const venvBin = path.join(venvDir, process.platform === 'win32' ? 'Scripts' : 'bin');
|
| 43 |
-
const venvPython = path.join(venvBin, process.platform === 'win32' ? 'python.exe' : 'python');
|
| 44 |
-
|
| 45 |
-
async function ensureVenv() {
|
| 46 |
-
try {
|
| 47 |
-
if (!fs.existsSync(venvPython)) {
|
| 48 |
-
await new Promise((resolve, reject) => {
|
| 49 |
-
const p = spawn('python3', ['-m', 'venv', venvDir], { shell: true });
|
| 50 |
-
let err = '';
|
| 51 |
-
p.stderr.on('data', d => { err += d.toString(); });
|
| 52 |
-
p.on('close', (code) => code === 0 ? resolve() : reject(new Error(err || 'failed to create venv')));
|
| 53 |
-
});
|
| 54 |
-
}
|
| 55 |
-
} catch (e) {
|
| 56 |
-
console.error('venv error', e);
|
| 57 |
-
throw new Error('Python3 not available to create venv');
|
| 58 |
-
}
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
try {
|
| 62 |
-
await ensureVenv();
|
| 63 |
-
await materializeWorkspace(db(), req.user.id, baseDir);
|
| 64 |
-
} catch (e) {
|
| 65 |
-
console.error('materialize error', e);
|
| 66 |
-
return res.status(500).json({ error: 'Failed to prepare workspace' });
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
const runCwd = cwd ? path.join(baseDir, cwd) : baseDir;
|
| 70 |
-
let cmdToRun = command;
|
| 71 |
-
if (cmdToRun.startsWith('python3 ')) cmdToRun = 'python ' + cmdToRun.slice('python3 '.length);
|
| 72 |
-
if (cmdToRun.startsWith('pip3 ')) cmdToRun = 'pip ' + cmdToRun.slice('pip3 '.length);
|
| 73 |
-
|
| 74 |
-
const child = spawn(cmdToRun, {
|
| 75 |
-
shell: true,
|
| 76 |
-
cwd: runCwd,
|
| 77 |
-
env: { ...process.env, VIRTUAL_ENV: venvDir, PATH: venvBin + path.delimiter + process.env.PATH, PIP_DISABLE_PIP_VERSION_CHECK: '1', PYTHONUNBUFFERED: '1', USER_TEMP_DIR: getUserTempDir(req.user.id), USER_ROOT_DIR: getUserRootDir(req.user.id) },
|
| 78 |
-
detached: false,
|
| 79 |
-
});
|
| 80 |
-
|
| 81 |
-
// SSE stream
|
| 82 |
-
res.setHeader('Content-Type', 'text/event-stream');
|
| 83 |
-
res.setHeader('Cache-Control', 'no-cache');
|
| 84 |
-
res.setHeader('Connection', 'keep-alive');
|
| 85 |
-
res.setHeader('X-Accel-Buffering', 'no'); // disable buffering on some proxies
|
| 86 |
-
if (typeof res.flushHeaders === 'function') res.flushHeaders();
|
| 87 |
-
// Send initial comment to open the stream immediately
|
| 88 |
-
res.write(': open\n\n');
|
| 89 |
-
|
| 90 |
-
const send = (type, data) => {
|
| 91 |
-
res.write(`event: ${type}\n`);
|
| 92 |
-
res.write(`data: ${JSON.stringify(data)}\n\n`);
|
| 93 |
-
};
|
| 94 |
-
|
| 95 |
-
let hadError = false;
|
| 96 |
-
const timeoutMs = 60 * 1000;
|
| 97 |
-
const killer = setTimeout(() => {
|
| 98 |
-
hadError = true;
|
| 99 |
-
try { child.kill('SIGKILL'); } catch { }
|
| 100 |
-
send('exit', { code: 124, signal: 'SIGKILL', timeout: true });
|
| 101 |
-
res.end();
|
| 102 |
-
}, timeoutMs);
|
| 103 |
-
|
| 104 |
-
child.stdout.on('data', (d) => send('stdout', { chunk: d.toString() }));
|
| 105 |
-
child.stderr.on('data', (d) => send('stderr', { chunk: d.toString() }));
|
| 106 |
-
child.on('error', (e) => {
|
| 107 |
-
hadError = true;
|
| 108 |
-
send('stderr', { chunk: String(e) });
|
| 109 |
-
});
|
| 110 |
-
child.on('close', (code, signal) => {
|
| 111 |
-
clearTimeout(killer);
|
| 112 |
-
send('exit', { code, signal });
|
| 113 |
-
res.end();
|
| 114 |
-
});
|
| 115 |
-
});
|
| 116 |
-
}
|
| 117 |
-
|
| 118 |
-
module.exports = { register };
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server/src/test_db.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
const { ensureSchema } = require('./db');
|
| 2 |
-
const path = require('path');
|
| 3 |
-
|
| 4 |
-
// Mock config with the actual URL from server.js (or we could require it, but strict dependency is better)
|
| 5 |
-
const CONFIG = {
|
| 6 |
-
DATABASE_URL: 'mysql://6bPC9jTdNcRiz6M.root:MiPm6uxTWh8AIje3@gateway01.ap-southeast-1.prod.aws.tidbcloud.com:4000/test?ssl={"rejectUnauthorized":true}',
|
| 7 |
-
};
|
| 8 |
-
|
| 9 |
-
async function test() {
|
| 10 |
-
console.log('Testing DB conection...');
|
| 11 |
-
try {
|
| 12 |
-
await ensureSchema(CONFIG);
|
| 13 |
-
console.log('Schema ensured successfully!');
|
| 14 |
-
process.exit(0);
|
| 15 |
-
} catch (err) {
|
| 16 |
-
console.error('DB Connection Failed:', err);
|
| 17 |
-
process.exit(1);
|
| 18 |
-
}
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
test();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|