From a97bb5f7324edc796ff1c9dde3401b9f490d74ab Mon Sep 17 00:00:00 2001 From: xion Date: Fri, 3 Jan 2025 21:33:01 +0800 Subject: [PATCH] fix: fix error --- package.json | 28 +- pnpm-lock.yaml | 460 +++++++++++++++++++++++----- src/route.ts | 2 + src/routes-simple/code/upload.ts | 4 +- src/routes/micro-app/index.ts | 3 +- src/routes/micro-app/list.ts | 6 +- src/routes/micro-app/models.ts | 12 +- src/routes/micro-app/upload-list.ts | 57 ++++ 8 files changed, 468 insertions(+), 104 deletions(-) create mode 100644 src/routes/micro-app/upload-list.ts diff --git a/package.json b/package.json index 36fdd42..3841d77 100644 --- a/package.json +++ b/package.json @@ -35,19 +35,19 @@ "@kevisual/ai-graph": "workspace:^", "@kevisual/ai-lang": "workspace:^", "@kevisual/auth": "1.0.5", - "@kevisual/local-app-manager": "0.1.6-alpha.3", - "@kevisual/router": "^0.0.6-alpha-3", + "@kevisual/local-app-manager": "0.1.6-alpha.5", + "@kevisual/router": "^0.0.6-alpha-5", "@types/semver": "^7.5.8", "archiver": "^7.0.1", - "bullmq": "^5.34.0", + "bullmq": "^5.34.6", "dayjs": "^1.11.13", "dts-bundle-generator": "^9.5.1", "formidable": "^3.5.2", - "ioredis": "^5.4.1", + "ioredis": "^5.4.2", "json5": "^2.2.3", "jsonwebtoken": "^9.0.2", "lodash-es": "^4.17.21", - "minio": "^8.0.2", + "minio": "^8.0.3", "nanoid": "^5.0.9", "neo4j-driver": "^5.27.0", "neode": "^0.4.9", @@ -68,26 +68,26 @@ "devDependencies": { "@kevisual/use-config": "^1.0.7", "@rollup/plugin-alias": "^5.1.1", - "@rollup/plugin-commonjs": "^28.0.1", + "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-json": "^6.1.0", - "@rollup/plugin-node-resolve": "^15.3.0", - "@rollup/plugin-replace": "^6.0.1", - "@rollup/plugin-typescript": "^12.1.1", + "@rollup/plugin-node-resolve": "^16.0.0", + "@rollup/plugin-replace": "^6.0.2", + "@rollup/plugin-typescript": "^12.1.2", "@types/archiver": "^6.0.3", "@types/crypto-js": "^4.2.2", "@types/formidable": "^3.4.5", "@types/jsonwebtoken": "^9.0.7", "@types/lodash-es": "^4.17.12", - "@types/node": "^22.10.2", - "@types/react": "^19.0.1", + "@types/node": "^22.10.5", + "@types/react": "^19.0.2", "@types/uuid": "^10.0.0", - "concurrently": "^9.1.0", + "concurrently": "^9.1.2", "cross-env": "^7.0.3", - "nodemon": "^3.1.7", + "nodemon": "^3.1.9", "pm2": "^5.4.3", "pm2-dev": "^5.4.1", "rimraf": "^6.0.1", - "rollup": "^4.28.1", + "rollup": "^4.29.1", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-dts": "^6.1.1", "tape": "^5.9.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 706668e..a81afb2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,11 +32,11 @@ importers: specifier: 1.0.5 version: 1.0.5 '@kevisual/local-app-manager': - specifier: 0.1.6-alpha.3 - version: 0.1.6-alpha.3(@kevisual/router@0.0.6-alpha-3)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7) + specifier: 0.1.6-alpha.5 + version: 0.1.6-alpha.5(@kevisual/router@0.0.6-alpha-5)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7) '@kevisual/router': - specifier: ^0.0.6-alpha-3 - version: 0.0.6-alpha-3 + specifier: ^0.0.6-alpha-5 + version: 0.0.6-alpha-5 '@types/semver': specifier: ^7.5.8 version: 7.5.8 @@ -44,8 +44,8 @@ importers: specifier: ^7.0.1 version: 7.0.1 bullmq: - specifier: ^5.34.0 - version: 5.34.0 + specifier: ^5.34.6 + version: 5.34.6 dayjs: specifier: ^1.11.13 version: 1.11.13 @@ -56,8 +56,8 @@ importers: specifier: ^3.5.2 version: 3.5.2 ioredis: - specifier: ^5.4.1 - version: 5.4.1 + specifier: ^5.4.2 + version: 5.4.2 json5: specifier: ^2.2.3 version: 2.2.3 @@ -68,8 +68,8 @@ importers: specifier: ^4.17.21 version: 4.17.21 minio: - specifier: ^8.0.2 - version: 8.0.2 + specifier: ^8.0.3 + version: 8.0.3 nanoid: specifier: ^5.0.9 version: 5.0.9 @@ -93,7 +93,7 @@ importers: version: 8.13.1 rollup-plugin-esbuild: specifier: ^6.1.1 - version: 6.1.1(esbuild@0.23.1)(rollup@4.28.1) + version: 6.1.1(esbuild@0.23.1)(rollup@4.29.1) semver: specifier: ^7.6.3 version: 7.6.3 @@ -124,22 +124,22 @@ importers: version: 1.0.7 '@rollup/plugin-alias': specifier: ^5.1.1 - version: 5.1.1(rollup@4.28.1) + version: 5.1.1(rollup@4.29.1) '@rollup/plugin-commonjs': - specifier: ^28.0.1 - version: 28.0.1(rollup@4.28.1) + specifier: ^28.0.2 + version: 28.0.2(rollup@4.29.1) '@rollup/plugin-json': specifier: ^6.1.0 - version: 6.1.0(rollup@4.28.1) + version: 6.1.0(rollup@4.29.1) '@rollup/plugin-node-resolve': - specifier: ^15.3.0 - version: 15.3.0(rollup@4.28.1) + specifier: ^16.0.0 + version: 16.0.0(rollup@4.29.1) '@rollup/plugin-replace': - specifier: ^6.0.1 - version: 6.0.1(rollup@4.28.1) + specifier: ^6.0.2 + version: 6.0.2(rollup@4.29.1) '@rollup/plugin-typescript': - specifier: ^12.1.1 - version: 12.1.1(rollup@4.28.1)(tslib@2.8.1)(typescript@5.7.2) + specifier: ^12.1.2 + version: 12.1.2(rollup@4.29.1)(tslib@2.8.1)(typescript@5.7.2) '@types/archiver': specifier: ^6.0.3 version: 6.0.3 @@ -156,23 +156,23 @@ importers: specifier: ^4.17.12 version: 4.17.12 '@types/node': - specifier: ^22.10.2 - version: 22.10.2 + specifier: ^22.10.5 + version: 22.10.5 '@types/react': - specifier: ^19.0.1 - version: 19.0.1 + specifier: ^19.0.2 + version: 19.0.2 '@types/uuid': specifier: ^10.0.0 version: 10.0.0 concurrently: - specifier: ^9.1.0 - version: 9.1.0 + specifier: ^9.1.2 + version: 9.1.2 cross-env: specifier: ^7.0.3 version: 7.0.3 nodemon: - specifier: ^3.1.7 - version: 3.1.7 + specifier: ^3.1.9 + version: 3.1.9 pm2: specifier: ^5.4.3 version: 5.4.3 @@ -183,14 +183,14 @@ importers: specifier: latest version: 6.0.1 rollup: - specifier: ^4.28.1 - version: 4.28.1 + specifier: ^4.29.1 + version: 4.29.1 rollup-plugin-copy: specifier: ^3.5.0 version: 3.5.0 rollup-plugin-dts: specifier: ^6.1.1 - version: 6.1.1(rollup@4.28.1)(typescript@5.7.2) + version: 6.1.1(rollup@4.29.1)(typescript@5.7.2) tape: specifier: ^5.9.0 version: 5.9.0 @@ -1042,8 +1042,8 @@ packages: '@kevisual/auth@1.0.5': resolution: {integrity: sha512-GwsLj7unKXi7lmMiIIgdig4LwwLiDJnOy15HHZR5gMbyK6s5/uJiMY5RXPB2+onGzTNDqFo/hXjsD2wkerHPVg==} - '@kevisual/local-app-manager@0.1.6-alpha.3': - resolution: {integrity: sha512-05mUTDZvZnK2ZWLuewTNRzELsY3YQXMMzeRd2muq3ppVEp8F9jWwTiIUnWak27qLwDXpMa53tBo7SVaxMXsmdA==} + '@kevisual/local-app-manager@0.1.6-alpha.5': + resolution: {integrity: sha512-I6+EhARUDYWhyjknfVfUOHn3pIufW/qrChERXAlDTzNFmcGGd+S4CCPJg54yyTsNa9RyDe8bFEsZSPe46FfGSw==} peerDependencies: '@kevisual/router': ^0.0.6-alpha-2 '@kevisual/types': ^0.0.1 @@ -1052,8 +1052,8 @@ packages: '@kevisual/router@0.0.6-alpha-2': resolution: {integrity: sha512-P9rarSQG0tp8L3GSgivYZQ//SugEt6/YCzNE8087KsRIdF1g0v8rXGfi1G3b8cXRz/ip79Lb+caU7LsoAQhmOQ==} - '@kevisual/router@0.0.6-alpha-3': - resolution: {integrity: sha512-LvRo2QSlXeKL1qFuDHhKVxlT5d+RFfwJai8gWHmaaB6o+kEm+tzy91DJUHYveqcxbHaggGmXi2MZYs4161DfwA==} + '@kevisual/router@0.0.6-alpha-5': + resolution: {integrity: sha512-YT9cxzzFKjWyE05MYlvhuAp16ymgmwThSMHrr2PNbmnZiYgUqm3O4j8cny40lOhZB4Jy/4nQb9Ql2laL+mZ4zg==} '@kevisual/types@0.0.1': resolution: {integrity: sha512-3Wn6WjpfbOGTqIVS7YQ/0CIQEEbZEp+uCTbIWqTZyuytiA/Xoglr5kG3AbTuLFQ81AvfxjEjp5dAnFub+2IhhQ==} @@ -1193,6 +1193,15 @@ packages: rollup: optional: true + '@rollup/plugin-commonjs@28.0.2': + resolution: {integrity: sha512-BEFI2EDqzl+vA1rl97IDRZ61AIwGH093d9nz8+dThxJNH8oSoB7MjWvPCX3dkaK1/RCJ/1v/R1XB15FuSs0fQw==} + engines: {node: '>=16.0.0 || 14 >= 14.17'} + peerDependencies: + rollup: ^2.68.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + '@rollup/plugin-json@6.1.0': resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} @@ -1211,8 +1220,17 @@ packages: rollup: optional: true - '@rollup/plugin-replace@6.0.1': - resolution: {integrity: sha512-2sPh9b73dj5IxuMmDAsQWVFT7mR+yoHweBaXG2W/R8vQ+IWZlnaI7BR7J6EguVQUp1hd8Z7XuozpDjEKQAAC2Q==} + '@rollup/plugin-node-resolve@16.0.0': + resolution: {integrity: sha512-0FPvAeVUT/zdWoO0jnb/V5BlBsUSNfkIOtFHzMO4H9MOklrmQFY6FduVHKucNb/aTFxvnGhj4MNj/T1oNdDfNg==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.78.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/plugin-replace@6.0.2': + resolution: {integrity: sha512-7QaYCf8bqF04dOy7w/eHmJeNExxTYwvKAmlSAH/EaWWUzbT0h5sbF6bktFoX/0F/0qwng5/dWFMyf3gzaM8DsQ==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 @@ -1233,6 +1251,19 @@ packages: tslib: optional: true + '@rollup/plugin-typescript@12.1.2': + resolution: {integrity: sha512-cdtSp154H5sv637uMr1a8OTWB0L1SWDSm1rDGiyfcGcvQ6cuTs4MDk2BVEBGysUWago4OJN4EQZqOTl/QY3Jgg==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.14.0||^3.0.0||^4.0.0 + tslib: '*' + typescript: '>=3.7.0' + peerDependenciesMeta: + rollup: + optional: true + tslib: + optional: true + '@rollup/pluginutils@5.1.2': resolution: {integrity: sha512-/FIdS3PyZ39bjZlwqFnWqCOVnW7o963LtKMwQOD0NhQqw22gSr2YY1afu3FxRip4ZCZNsD5jq6Aaz6QV3D/Njw==} engines: {node: '>=14.0.0'} @@ -1252,6 +1283,11 @@ packages: cpu: [arm] os: [android] + '@rollup/rollup-android-arm-eabi@4.29.1': + resolution: {integrity: sha512-ssKhA8RNltTZLpG6/QNkCSge+7mBQGUqJRisZ2MDQcEGaK93QESEgWK2iOpIDZ7k9zPVkG5AS3ksvD5ZWxmItw==} + cpu: [arm] + os: [android] + '@rollup/rollup-android-arm64@4.27.2': resolution: {integrity: sha512-xsPeJgh2ThBpUqlLgRfiVYBEf/P1nWlWvReG+aBWfNv3XEBpa6ZCmxSVnxJgLgkNz4IbxpLy64h2gCmAAQLneQ==} cpu: [arm64] @@ -1262,6 +1298,11 @@ packages: cpu: [arm64] os: [android] + '@rollup/rollup-android-arm64@4.29.1': + resolution: {integrity: sha512-CaRfrV0cd+NIIcVVN/jx+hVLN+VRqnuzLRmfmlzpOzB87ajixsN/+9L5xNmkaUUvEbI5BmIKS+XTwXsHEb65Ew==} + cpu: [arm64] + os: [android] + '@rollup/rollup-darwin-arm64@4.27.2': resolution: {integrity: sha512-KnXU4m9MywuZFedL35Z3PuwiTSn/yqRIhrEA9j+7OSkji39NzVkgxuxTYg5F8ryGysq4iFADaU5osSizMXhU2A==} cpu: [arm64] @@ -1272,6 +1313,11 @@ packages: cpu: [arm64] os: [darwin] + '@rollup/rollup-darwin-arm64@4.29.1': + resolution: {integrity: sha512-2ORr7T31Y0Mnk6qNuwtyNmy14MunTAMx06VAPI6/Ju52W10zk1i7i5U3vlDRWjhOI5quBcrvhkCHyF76bI7kEw==} + cpu: [arm64] + os: [darwin] + '@rollup/rollup-darwin-x64@4.27.2': resolution: {integrity: sha512-Hj77A3yTvUeCIx/Vi+4d4IbYhyTwtHj07lVzUgpUq9YpJSEiGJj4vXMKwzJ3w5zp5v3PFvpJNgc/J31smZey6g==} cpu: [x64] @@ -1282,6 +1328,11 @@ packages: cpu: [x64] os: [darwin] + '@rollup/rollup-darwin-x64@4.29.1': + resolution: {integrity: sha512-j/Ej1oanzPjmN0tirRd5K2/nncAhS9W6ICzgxV+9Y5ZsP0hiGhHJXZ2JQ53iSSjj8m6cRY6oB1GMzNn2EUt6Ng==} + cpu: [x64] + os: [darwin] + '@rollup/rollup-freebsd-arm64@4.27.2': resolution: {integrity: sha512-RjgKf5C3xbn8gxvCm5VgKZ4nn0pRAIe90J0/fdHUsgztd3+Zesb2lm2+r6uX4prV2eUByuxJNdt647/1KPRq5g==} cpu: [arm64] @@ -1292,6 +1343,11 @@ packages: cpu: [arm64] os: [freebsd] + '@rollup/rollup-freebsd-arm64@4.29.1': + resolution: {integrity: sha512-91C//G6Dm/cv724tpt7nTyP+JdN12iqeXGFM1SqnljCmi5yTXriH7B1r8AD9dAZByHpKAumqP1Qy2vVNIdLZqw==} + cpu: [arm64] + os: [freebsd] + '@rollup/rollup-freebsd-x64@4.27.2': resolution: {integrity: sha512-duq21FoXwQtuws+V9H6UZ+eCBc7fxSpMK1GQINKn3fAyd9DFYKPJNcUhdIKOrMFjLEJgQskoMoiuizMt+dl20g==} cpu: [x64] @@ -1302,6 +1358,11 @@ packages: cpu: [x64] os: [freebsd] + '@rollup/rollup-freebsd-x64@4.29.1': + resolution: {integrity: sha512-hEioiEQ9Dec2nIRoeHUP6hr1PSkXzQaCUyqBDQ9I9ik4gCXQZjJMIVzoNLBRGet+hIUb3CISMh9KXuCcWVW/8w==} + cpu: [x64] + os: [freebsd] + '@rollup/rollup-linux-arm-gnueabihf@4.27.2': resolution: {integrity: sha512-6npqOKEPRZkLrMcvyC/32OzJ2srdPzCylJjiTJT2c0bwwSGm7nz2F9mNQ1WrAqCBZROcQn91Fno+khFhVijmFA==} cpu: [arm] @@ -1314,6 +1375,12 @@ packages: os: [linux] libc: [glibc] + '@rollup/rollup-linux-arm-gnueabihf@4.29.1': + resolution: {integrity: sha512-Py5vFd5HWYN9zxBv3WMrLAXY3yYJ6Q/aVERoeUFwiDGiMOWsMs7FokXihSOaT/PMWUty/Pj60XDQndK3eAfE6A==} + cpu: [arm] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-arm-musleabihf@4.27.2': resolution: {integrity: sha512-V9Xg6eXtgBtHq2jnuQwM/jr2mwe2EycnopO8cbOvpzFuySCGtKlPCI3Hj9xup/pJK5Q0388qfZZy2DqV2J8ftw==} cpu: [arm] @@ -1326,6 +1393,12 @@ packages: os: [linux] libc: [musl] + '@rollup/rollup-linux-arm-musleabihf@4.29.1': + resolution: {integrity: sha512-RiWpGgbayf7LUcuSNIbahr0ys2YnEERD4gYdISA06wa0i8RALrnzflh9Wxii7zQJEB2/Eh74dX4y/sHKLWp5uQ==} + cpu: [arm] + os: [linux] + libc: [musl] + '@rollup/rollup-linux-arm64-gnu@4.27.2': resolution: {integrity: sha512-uCFX9gtZJoQl2xDTpRdseYuNqyKkuMDtH6zSrBTA28yTfKyjN9hQ2B04N5ynR8ILCoSDOrG/Eg+J2TtJ1e/CSA==} cpu: [arm64] @@ -1338,6 +1411,12 @@ packages: os: [linux] libc: [glibc] + '@rollup/rollup-linux-arm64-gnu@4.29.1': + resolution: {integrity: sha512-Z80O+taYxTQITWMjm/YqNoe9d10OX6kDh8X5/rFCMuPqsKsSyDilvfg+vd3iXIqtfmp+cnfL1UrYirkaF8SBZA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-arm64-musl@4.27.2': resolution: {integrity: sha512-/PU9P+7Rkz8JFYDHIi+xzHabOu9qEWR07L5nWLIUsvserrxegZExKCi2jhMZRd0ATdboKylu/K5yAXbp7fYFvA==} cpu: [arm64] @@ -1350,12 +1429,24 @@ packages: os: [linux] libc: [musl] + '@rollup/rollup-linux-arm64-musl@4.29.1': + resolution: {integrity: sha512-fOHRtF9gahwJk3QVp01a/GqS4hBEZCV1oKglVVq13kcK3NeVlS4BwIFzOHDbmKzt3i0OuHG4zfRP0YoG5OF/rA==} + cpu: [arm64] + os: [linux] + libc: [musl] + '@rollup/rollup-linux-loongarch64-gnu@4.28.1': resolution: {integrity: sha512-vPul4uodvWvLhRco2w0GcyZcdyBfpfDRgNKU+p35AWEbJ/HPs1tOUrkSueVbBS0RQHAf/A+nNtDpvw95PeVKOA==} cpu: [loong64] os: [linux] libc: [glibc] + '@rollup/rollup-linux-loongarch64-gnu@4.29.1': + resolution: {integrity: sha512-5a7q3tnlbcg0OodyxcAdrrCxFi0DgXJSoOuidFUzHZ2GixZXQs6Tc3CHmlvqKAmOs5eRde+JJxeIf9DonkmYkw==} + cpu: [loong64] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-powerpc64le-gnu@4.27.2': resolution: {integrity: sha512-eCHmol/dT5odMYi/N0R0HC8V8QE40rEpkyje/ZAXJYNNoSfrObOvG/Mn+s1F/FJyB7co7UQZZf6FuWnN6a7f4g==} cpu: [ppc64] @@ -1368,6 +1459,12 @@ packages: os: [linux] libc: [glibc] + '@rollup/rollup-linux-powerpc64le-gnu@4.29.1': + resolution: {integrity: sha512-9b4Mg5Yfz6mRnlSPIdROcfw1BU22FQxmfjlp/CShWwO3LilKQuMISMTtAu/bxmmrE6A902W2cZJuzx8+gJ8e9w==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-riscv64-gnu@4.27.2': resolution: {integrity: sha512-DEP3Njr9/ADDln3kNi76PXonLMSSMiCir0VHXxmGSHxCxDfQ70oWjHcJGfiBugzaqmYdTC7Y+8Int6qbnxPBIQ==} cpu: [riscv64] @@ -1380,6 +1477,12 @@ packages: os: [linux] libc: [glibc] + '@rollup/rollup-linux-riscv64-gnu@4.29.1': + resolution: {integrity: sha512-G5pn0NChlbRM8OJWpJFMX4/i8OEU538uiSv0P6roZcbpe/WfhEO+AT8SHVKfp8qhDQzaz7Q+1/ixMy7hBRidnQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-s390x-gnu@4.27.2': resolution: {integrity: sha512-NHGo5i6IE/PtEPh5m0yw5OmPMpesFnzMIS/lzvN5vknnC1sXM5Z/id5VgcNPgpD+wHmIcuYYgW+Q53v+9s96lQ==} cpu: [s390x] @@ -1392,6 +1495,12 @@ packages: os: [linux] libc: [glibc] + '@rollup/rollup-linux-s390x-gnu@4.29.1': + resolution: {integrity: sha512-WM9lIkNdkhVwiArmLxFXpWndFGuOka4oJOZh8EP3Vb8q5lzdSCBuhjavJsw68Q9AKDGeOOIHYzYm4ZFvmWez5g==} + cpu: [s390x] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-x64-gnu@4.27.2': resolution: {integrity: sha512-PaW2DY5Tan+IFvNJGHDmUrORadbe/Ceh8tQxi8cmdQVCCYsLoQo2cuaSj+AU+YRX8M4ivS2vJ9UGaxfuNN7gmg==} cpu: [x64] @@ -1404,6 +1513,12 @@ packages: os: [linux] libc: [glibc] + '@rollup/rollup-linux-x64-gnu@4.29.1': + resolution: {integrity: sha512-87xYCwb0cPGZFoGiErT1eDcssByaLX4fc0z2nRM6eMtV9njAfEE6OW3UniAoDhX4Iq5xQVpE6qO9aJbCFumKYQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + '@rollup/rollup-linux-x64-musl@4.27.2': resolution: {integrity: sha512-dOlWEMg2gI91Qx5I/HYqOD6iqlJspxLcS4Zlg3vjk1srE67z5T2Uz91yg/qA8sY0XcwQrFzWWiZhMNERylLrpQ==} cpu: [x64] @@ -1416,6 +1531,12 @@ packages: os: [linux] libc: [musl] + '@rollup/rollup-linux-x64-musl@4.29.1': + resolution: {integrity: sha512-xufkSNppNOdVRCEC4WKvlR1FBDyqCSCpQeMMgv9ZyXqqtKBfkw1yfGMTUTs9Qsl6WQbJnsGboWCp7pJGkeMhKA==} + cpu: [x64] + os: [linux] + libc: [musl] + '@rollup/rollup-win32-arm64-msvc@4.27.2': resolution: {integrity: sha512-euMIv/4x5Y2/ImlbGl88mwKNXDsvzbWUlT7DFky76z2keajCtcbAsN9LUdmk31hAoVmJJYSThgdA0EsPeTr1+w==} cpu: [arm64] @@ -1426,6 +1547,11 @@ packages: cpu: [arm64] os: [win32] + '@rollup/rollup-win32-arm64-msvc@4.29.1': + resolution: {integrity: sha512-F2OiJ42m77lSkizZQLuC+jiZ2cgueWQL5YC9tjo3AgaEw+KJmVxHGSyQfDUoYR9cci0lAywv2Clmckzulcq6ig==} + cpu: [arm64] + os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.27.2': resolution: {integrity: sha512-RsnE6LQkUHlkC10RKngtHNLxb7scFykEbEwOFDjr3CeCMG+Rr+cKqlkKc2/wJ1u4u990urRHCbjz31x84PBrSQ==} cpu: [ia32] @@ -1436,6 +1562,11 @@ packages: cpu: [ia32] os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.29.1': + resolution: {integrity: sha512-rYRe5S0FcjlOBZQHgbTKNrqxCBUmgDJem/VQTCcTnA2KCabYSWQDrytOzX7avb79cAAweNmMUb/Zw18RNd4mng==} + cpu: [ia32] + os: [win32] + '@rollup/rollup-win32-x64-msvc@4.27.2': resolution: {integrity: sha512-foJM5vv+z2KQmn7emYdDLyTbkoO5bkHZE1oth2tWbQNGW7mX32d46Hz6T0MqXdWS2vBZhaEtHqdy9WYwGfiliA==} cpu: [x64] @@ -1446,6 +1577,11 @@ packages: cpu: [x64] os: [win32] + '@rollup/rollup-win32-x64-msvc@4.29.1': + resolution: {integrity: sha512-+10CMg9vt1MoHj6x1pxyjPSMjHTIlqs8/tBztXvPAx24SKs9jwVnKqHJumlH/IzhaPUaj3T6T6wfZr8okdXaIg==} + cpu: [x64] + os: [win32] + '@socket.io/component-emitter@3.1.2': resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==} @@ -1513,14 +1649,14 @@ packages: '@types/node@22.10.1': resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==} - '@types/node@22.10.2': - resolution: {integrity: sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==} + '@types/node@22.10.5': + resolution: {integrity: sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==} '@types/node@22.9.0': resolution: {integrity: sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==} - '@types/react@19.0.1': - resolution: {integrity: sha512-YW6614BDhqbpR5KtUYzTA+zlA7nayzJRA9ljz9CQoxthR0sDisYZLuvSMsil36t4EH/uAt8T52Xb4sVw17G+SQ==} + '@types/react@19.0.2': + resolution: {integrity: sha512-USU8ZI/xyKJwFTpjSVIrSeHBVAGagkHQKPNbxeWwql/vDmnTIBgx+TJnhFnj1NXgz8XfprU0egV2dROLGpsBEg==} '@types/readdir-glob@1.1.5': resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==} @@ -1759,8 +1895,8 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - bullmq@5.34.0: - resolution: {integrity: sha512-TyzeYDkIGkooYUn/P1CeiJW3Am1TboC3unwhlg1cJIwKksoyuRp97TkHyCZcwLchXbYCUtsGBZFUYf/lTAhdSg==} + bullmq@5.34.6: + resolution: {integrity: sha512-pRCYyO9RlkQWxdmKlrNnUthyFwurYXRYLVXD1YIx+nCCdhAOiHatD8FDHbsT/w2I31c0NWoMcfZiIGuipiF7Lg==} cacache@15.3.0: resolution: {integrity: sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==} @@ -1854,8 +1990,8 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - concurrently@9.1.0: - resolution: {integrity: sha512-VxkzwMAn4LP7WyMnJNbHN5mKV9L2IbyDjpzemKr99sXNR3GqRNMMHdm7prV1ws9wg7ETj6WUkNOigZVsptwbgg==} + concurrently@9.1.2: + resolution: {integrity: sha512-H9MWcoPsYddwbOGM6difjVwVZHl63nwMEwDJG/L7VGtuaJhb12h2caPG2tVPWs7emuYix252iGfqOyrz1GczTQ==} engines: {node: '>=18'} hasBin: true @@ -2472,6 +2608,10 @@ packages: resolution: {integrity: sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==} engines: {node: '>=12.22.0'} + ioredis@5.4.2: + resolution: {integrity: sha512-0SZXGNGZ+WzISQ67QDyZ2x0+wVxjjUndtD8oSeik/4ajifeiRufed8fCb8QW8VMyi4MXcS+UO1k/0NGhvq1PAg==} + engines: {node: '>=12.22.0'} + ip-address@9.0.5: resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} engines: {node: '>= 12'} @@ -2782,8 +2922,8 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minio@8.0.2: - resolution: {integrity: sha512-7ipWbtgzzboctf+McK+2cXwCrNOhuboTA/O1g9iWa0gH8R4GkeyFWwk12aVDEHdzjPiG8wxnjwfHS7pgraKuHw==} + minio@8.0.3: + resolution: {integrity: sha512-+FIYQ+HZ5GrBjEmIYienRgEikqaTWAflXIV5lJOtUzfYxn3NvjQx7BsJSORXExlqgzWxKTWsqkyk2wiyFjs9/w==} engines: {node: ^16 || ^18 || >=20} minipass-collect@1.0.2: @@ -2994,6 +3134,11 @@ packages: engines: {node: '>=10'} hasBin: true + nodemon@3.1.9: + resolution: {integrity: sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg==} + engines: {node: '>=10'} + hasBin: true + nopt@5.0.0: resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} engines: {node: '>=6'} @@ -3398,6 +3543,11 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rollup@4.29.1: + resolution: {integrity: sha512-RaJ45M/kmJUzSWDs1Nnd5DdV4eerC98idtUOVr6FfKcgxqvjwHmxc5upLF9qZU9EpsVzzhleFahrT3shLuJzIw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -4841,9 +4991,9 @@ snapshots: '@kevisual/auth@1.0.5': {} - '@kevisual/local-app-manager@0.1.6-alpha.3(@kevisual/router@0.0.6-alpha-3)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7)': + '@kevisual/local-app-manager@0.1.6-alpha.5(@kevisual/router@0.0.6-alpha-5)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7)': dependencies: - '@kevisual/router': 0.0.6-alpha-3 + '@kevisual/router': 0.0.6-alpha-5 '@kevisual/types': 0.0.1 '@kevisual/use-config': 1.0.7 @@ -4856,7 +5006,7 @@ snapshots: - bufferutil - utf-8-validate - '@kevisual/router@0.0.6-alpha-3': + '@kevisual/router@0.0.6-alpha-5': dependencies: path-to-regexp: 8.2.0 selfsigned: 2.4.1 @@ -5037,9 +5187,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@rollup/plugin-alias@5.1.1(rollup@4.28.1)': + '@rollup/plugin-alias@5.1.1(rollup@4.29.1)': optionalDependencies: - rollup: 4.28.1 + rollup: 4.29.1 '@rollup/plugin-commonjs@28.0.1(rollup@4.27.2)': dependencies: @@ -5065,12 +5215,30 @@ snapshots: optionalDependencies: rollup: 4.28.1 + '@rollup/plugin-commonjs@28.0.2(rollup@4.29.1)': + dependencies: + '@rollup/pluginutils': 5.1.2(rollup@4.29.1) + commondir: 1.0.1 + estree-walker: 2.0.2 + fdir: 6.3.0(picomatch@4.0.2) + is-reference: 1.2.1 + magic-string: 0.30.11 + picomatch: 4.0.2 + optionalDependencies: + rollup: 4.29.1 + '@rollup/plugin-json@6.1.0(rollup@4.28.1)': dependencies: '@rollup/pluginutils': 5.1.2(rollup@4.28.1) optionalDependencies: rollup: 4.28.1 + '@rollup/plugin-json@6.1.0(rollup@4.29.1)': + dependencies: + '@rollup/pluginutils': 5.1.2(rollup@4.29.1) + optionalDependencies: + rollup: 4.29.1 + '@rollup/plugin-node-resolve@15.3.0(rollup@4.27.2)': dependencies: '@rollup/pluginutils': 5.1.2(rollup@4.27.2) @@ -5091,12 +5259,22 @@ snapshots: optionalDependencies: rollup: 4.28.1 - '@rollup/plugin-replace@6.0.1(rollup@4.28.1)': + '@rollup/plugin-node-resolve@16.0.0(rollup@4.29.1)': dependencies: - '@rollup/pluginutils': 5.1.2(rollup@4.28.1) + '@rollup/pluginutils': 5.1.2(rollup@4.29.1) + '@types/resolve': 1.20.2 + deepmerge: 4.3.1 + is-module: 1.0.0 + resolve: 1.22.8 + optionalDependencies: + rollup: 4.29.1 + + '@rollup/plugin-replace@6.0.2(rollup@4.29.1)': + dependencies: + '@rollup/pluginutils': 5.1.2(rollup@4.29.1) magic-string: 0.30.11 optionalDependencies: - rollup: 4.28.1 + rollup: 4.29.1 '@rollup/plugin-typescript@12.1.1(rollup@4.27.2)(tslib@2.8.1)(typescript@5.7.2)': dependencies: @@ -5116,6 +5294,15 @@ snapshots: rollup: 4.28.1 tslib: 2.8.1 + '@rollup/plugin-typescript@12.1.2(rollup@4.29.1)(tslib@2.8.1)(typescript@5.7.2)': + dependencies: + '@rollup/pluginutils': 5.1.2(rollup@4.29.1) + resolve: 1.22.8 + typescript: 5.7.2 + optionalDependencies: + rollup: 4.29.1 + tslib: 2.8.1 + '@rollup/pluginutils@5.1.2(rollup@4.27.2)': dependencies: '@types/estree': 1.0.6 @@ -5132,117 +5319,182 @@ snapshots: optionalDependencies: rollup: 4.28.1 + '@rollup/pluginutils@5.1.2(rollup@4.29.1)': + dependencies: + '@types/estree': 1.0.6 + estree-walker: 2.0.2 + picomatch: 4.0.2 + optionalDependencies: + rollup: 4.29.1 + '@rollup/rollup-android-arm-eabi@4.27.2': optional: true '@rollup/rollup-android-arm-eabi@4.28.1': optional: true + '@rollup/rollup-android-arm-eabi@4.29.1': + optional: true + '@rollup/rollup-android-arm64@4.27.2': optional: true '@rollup/rollup-android-arm64@4.28.1': optional: true + '@rollup/rollup-android-arm64@4.29.1': + optional: true + '@rollup/rollup-darwin-arm64@4.27.2': optional: true '@rollup/rollup-darwin-arm64@4.28.1': optional: true + '@rollup/rollup-darwin-arm64@4.29.1': + optional: true + '@rollup/rollup-darwin-x64@4.27.2': optional: true '@rollup/rollup-darwin-x64@4.28.1': optional: true + '@rollup/rollup-darwin-x64@4.29.1': + optional: true + '@rollup/rollup-freebsd-arm64@4.27.2': optional: true '@rollup/rollup-freebsd-arm64@4.28.1': optional: true + '@rollup/rollup-freebsd-arm64@4.29.1': + optional: true + '@rollup/rollup-freebsd-x64@4.27.2': optional: true '@rollup/rollup-freebsd-x64@4.28.1': optional: true + '@rollup/rollup-freebsd-x64@4.29.1': + optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.27.2': optional: true '@rollup/rollup-linux-arm-gnueabihf@4.28.1': optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.29.1': + optional: true + '@rollup/rollup-linux-arm-musleabihf@4.27.2': optional: true '@rollup/rollup-linux-arm-musleabihf@4.28.1': optional: true + '@rollup/rollup-linux-arm-musleabihf@4.29.1': + optional: true + '@rollup/rollup-linux-arm64-gnu@4.27.2': optional: true '@rollup/rollup-linux-arm64-gnu@4.28.1': optional: true + '@rollup/rollup-linux-arm64-gnu@4.29.1': + optional: true + '@rollup/rollup-linux-arm64-musl@4.27.2': optional: true '@rollup/rollup-linux-arm64-musl@4.28.1': optional: true + '@rollup/rollup-linux-arm64-musl@4.29.1': + optional: true + '@rollup/rollup-linux-loongarch64-gnu@4.28.1': optional: true + '@rollup/rollup-linux-loongarch64-gnu@4.29.1': + optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.27.2': optional: true '@rollup/rollup-linux-powerpc64le-gnu@4.28.1': optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.29.1': + optional: true + '@rollup/rollup-linux-riscv64-gnu@4.27.2': optional: true '@rollup/rollup-linux-riscv64-gnu@4.28.1': optional: true + '@rollup/rollup-linux-riscv64-gnu@4.29.1': + optional: true + '@rollup/rollup-linux-s390x-gnu@4.27.2': optional: true '@rollup/rollup-linux-s390x-gnu@4.28.1': optional: true + '@rollup/rollup-linux-s390x-gnu@4.29.1': + optional: true + '@rollup/rollup-linux-x64-gnu@4.27.2': optional: true '@rollup/rollup-linux-x64-gnu@4.28.1': optional: true + '@rollup/rollup-linux-x64-gnu@4.29.1': + optional: true + '@rollup/rollup-linux-x64-musl@4.27.2': optional: true '@rollup/rollup-linux-x64-musl@4.28.1': optional: true + '@rollup/rollup-linux-x64-musl@4.29.1': + optional: true + '@rollup/rollup-win32-arm64-msvc@4.27.2': optional: true '@rollup/rollup-win32-arm64-msvc@4.28.1': optional: true + '@rollup/rollup-win32-arm64-msvc@4.29.1': + optional: true + '@rollup/rollup-win32-ia32-msvc@4.27.2': optional: true '@rollup/rollup-win32-ia32-msvc@4.28.1': optional: true + '@rollup/rollup-win32-ia32-msvc@4.29.1': + optional: true + '@rollup/rollup-win32-x64-msvc@4.27.2': optional: true '@rollup/rollup-win32-x64-msvc@4.28.1': optional: true + '@rollup/rollup-win32-x64-msvc@4.29.1': + optional: true + '@socket.io/component-emitter@3.1.2': {} '@tootallnate/once@1.1.2': @@ -5258,7 +5510,7 @@ snapshots: '@types/cors@2.8.17': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/crypto-js@4.2.2': {} @@ -5270,24 +5522,24 @@ snapshots: '@types/formidable@3.4.5': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/fs-extra@8.1.5': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/glob@7.2.0': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/http-proxy@1.17.15': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/jsonwebtoken@9.0.7': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/lodash-es@4.17.12': dependencies: @@ -5301,12 +5553,12 @@ snapshots: '@types/node-fetch@2.6.11': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 form-data: 4.0.0 '@types/node-forge@1.3.11': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/node@18.19.53': dependencies: @@ -5316,7 +5568,7 @@ snapshots: dependencies: undici-types: 6.20.0 - '@types/node@22.10.2': + '@types/node@22.10.5': dependencies: undici-types: 6.20.0 @@ -5324,13 +5576,13 @@ snapshots: dependencies: undici-types: 6.19.8 - '@types/react@19.0.1': + '@types/react@19.0.2': dependencies: csstype: 3.1.3 '@types/readdir-glob@1.1.5': dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 '@types/resolve@1.20.2': {} @@ -5583,10 +5835,10 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bullmq@5.34.0: + bullmq@5.34.6: dependencies: cron-parser: 4.9.0 - ioredis: 5.4.1 + ioredis: 5.4.2 msgpackr: 1.11.2 node-abort-controller: 3.1.1 semver: 7.6.3 @@ -5707,7 +5959,7 @@ snapshots: concat-map@0.0.1: {} - concurrently@9.1.0: + concurrently@9.1.2: dependencies: chalk: 4.1.2 lodash: 4.17.21 @@ -5911,7 +6163,7 @@ snapshots: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 22.10.2 + '@types/node': 22.10.5 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -6430,6 +6682,20 @@ snapshots: transitivePeerDependencies: - supports-color + ioredis@5.4.2: + dependencies: + '@ioredis/commands': 1.2.0 + cluster-key-slot: 1.1.2 + debug: 4.3.7(supports-color@5.5.0) + denque: 2.1.0 + lodash.defaults: 4.2.0 + lodash.isarguments: 3.1.0 + redis-errors: 1.2.0 + redis-parser: 3.0.0 + standard-as-callback: 2.1.0 + transitivePeerDependencies: + - supports-color + ip-address@9.0.5: dependencies: jsbn: 1.1.0 @@ -6738,7 +7004,7 @@ snapshots: minimist@1.2.8: {} - minio@8.0.2: + minio@8.0.3: dependencies: async: 3.2.6 block-stream2: 2.1.0 @@ -6976,6 +7242,19 @@ snapshots: touch: 3.1.1 undefsafe: 2.0.5 + nodemon@3.1.9: + dependencies: + chokidar: 3.6.0 + debug: 4.3.7(supports-color@5.5.0) + ignore-by-default: 1.0.1 + minimatch: 3.1.2 + pstree.remy: 1.1.8 + semver: 7.6.3 + simple-update-notifier: 2.0.0 + supports-color: 5.5.0 + touch: 3.1.1 + undefsafe: 2.0.5 + nopt@5.0.0: dependencies: abbrev: 1.1.1 @@ -7441,22 +7720,22 @@ snapshots: globby: 10.0.1 is-plain-object: 3.0.1 - rollup-plugin-dts@6.1.1(rollup@4.28.1)(typescript@5.7.2): + rollup-plugin-dts@6.1.1(rollup@4.29.1)(typescript@5.7.2): dependencies: magic-string: 0.30.11 - rollup: 4.28.1 + rollup: 4.29.1 typescript: 5.7.2 optionalDependencies: '@babel/code-frame': 7.26.2 - rollup-plugin-esbuild@6.1.1(esbuild@0.23.1)(rollup@4.28.1): + rollup-plugin-esbuild@6.1.1(esbuild@0.23.1)(rollup@4.29.1): dependencies: - '@rollup/pluginutils': 5.1.2(rollup@4.28.1) + '@rollup/pluginutils': 5.1.2(rollup@4.29.1) debug: 4.3.7(supports-color@5.5.0) es-module-lexer: 1.5.4 esbuild: 0.23.1 get-tsconfig: 4.8.1 - rollup: 4.28.1 + rollup: 4.29.1 transitivePeerDependencies: - supports-color @@ -7509,6 +7788,31 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.28.1 fsevents: 2.3.3 + rollup@4.29.1: + dependencies: + '@types/estree': 1.0.6 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.29.1 + '@rollup/rollup-android-arm64': 4.29.1 + '@rollup/rollup-darwin-arm64': 4.29.1 + '@rollup/rollup-darwin-x64': 4.29.1 + '@rollup/rollup-freebsd-arm64': 4.29.1 + '@rollup/rollup-freebsd-x64': 4.29.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.29.1 + '@rollup/rollup-linux-arm-musleabihf': 4.29.1 + '@rollup/rollup-linux-arm64-gnu': 4.29.1 + '@rollup/rollup-linux-arm64-musl': 4.29.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.29.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.29.1 + '@rollup/rollup-linux-riscv64-gnu': 4.29.1 + '@rollup/rollup-linux-s390x-gnu': 4.29.1 + '@rollup/rollup-linux-x64-gnu': 4.29.1 + '@rollup/rollup-linux-x64-musl': 4.29.1 + '@rollup/rollup-win32-arm64-msvc': 4.29.1 + '@rollup/rollup-win32-ia32-msvc': 4.29.1 + '@rollup/rollup-win32-x64-msvc': 4.29.1 + fsevents: 2.3.3 + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -8102,7 +8406,7 @@ snapshots: wkx@0.5.0: dependencies: - '@types/node': 22.10.2 + '@types/node': 22.10.5 wrap-ansi@7.0.0: dependencies: diff --git a/src/route.ts b/src/route.ts index 0508630..ae499f2 100644 --- a/src/route.ts +++ b/src/route.ts @@ -26,6 +26,8 @@ app path: item.path, key: item.key, description: item.description, + validator: item.validator, + // schema: item.schema, }; }); }) diff --git a/src/routes-simple/code/upload.ts b/src/routes-simple/code/upload.ts index 070e800..d0c1b02 100644 --- a/src/routes-simple/code/upload.ts +++ b/src/routes-simple/code/upload.ts @@ -9,7 +9,7 @@ import { app, minioClient } from '@/app.ts'; import { bucketName } from '@/modules/minio.ts'; import { getContentType } from '@/utils/get-content-type.ts'; import { hash } from 'crypto'; -import { MicroAppModel } from '@/routes/micro-app/models.ts'; +import { MicroAppUploadModel } from '@/routes/micro-app/models.ts'; const cacheFilePath = useFileStore('cache-file', { needExists: true }); router.post('/api/micro-app/upload', async (req, res) => { @@ -137,7 +137,7 @@ router.get('/api/micro-app/download/:id', async (req, res) => { tokenUser = auth.tokenUser; if (!tokenUser) return; } - const file = await MicroAppModel.findByPk(id); + const file = await MicroAppUploadModel.findByPk(id); if (!DEV_SERVER) { file.uid !== tokenUser.id && res.end(error('No permission', 403)); return; diff --git a/src/routes/micro-app/index.ts b/src/routes/micro-app/index.ts index 366cb31..f11c6c7 100644 --- a/src/routes/micro-app/index.ts +++ b/src/routes/micro-app/index.ts @@ -1 +1,2 @@ -import './list.ts'; \ No newline at end of file +import './list.ts'; +import './upload-list.ts' \ No newline at end of file diff --git a/src/routes/micro-app/list.ts b/src/routes/micro-app/list.ts index 4fa30b2..83e733c 100644 --- a/src/routes/micro-app/list.ts +++ b/src/routes/micro-app/list.ts @@ -1,5 +1,5 @@ import { app } from '@/app.ts'; -import { MicroAppModel } from './models.ts'; +import { MicroAppUploadModel } from './models.ts'; import { appPathCheck, installApp } from './module/install-app.ts'; import { manager } from './manager-app.ts'; @@ -21,7 +21,7 @@ app if (collection?.tags) { tags.push(...collection.tags); } - const microApp = await MicroAppModel.create({ + const microApp = await MicroAppUploadModel.create({ title: name, description: collection?.readme || '', type: 'micro-app', @@ -63,7 +63,7 @@ app if (!id) { ctx.throw(400, 'Invalid id'); } - const microApp = await MicroAppModel.findByPk(id); + const microApp = await MicroAppUploadModel.findByPk(id); const { file } = microApp.data || {}; const path = file?.path; if (!path) { diff --git a/src/routes/micro-app/models.ts b/src/routes/micro-app/models.ts index 7ba09f5..bb21788 100644 --- a/src/routes/micro-app/models.ts +++ b/src/routes/micro-app/models.ts @@ -1,7 +1,7 @@ import { sequelize } from '@/modules/sequelize.ts'; import { DataTypes, Model } from 'sequelize'; -export type MicroApp = Partial>; +export type MicroApp = Partial>; type MicroAppData = { file?: { @@ -14,7 +14,7 @@ type MicroAppData = { data?: any; collection?: any; // 上传的信息汇总 }; -export class MicroAppModel extends Model { +export class MicroAppUploadModel extends Model { declare id: string; declare title: string; declare description: string; @@ -29,7 +29,7 @@ export class MicroAppModel extends Model { declare uname: string; } -MicroAppModel.init( +MicroAppUploadModel.init( { id: { type: DataTypes.UUID, @@ -76,11 +76,11 @@ MicroAppModel.init( }, { sequelize, - tableName: 'micro_apps', + tableName: 'micro_apps_upload', // paranoid: true, }, ); -MicroAppModel.sync({ alter: true, logging: false }).catch((e) => { - console.error('MicroAppModel sync', e); +MicroAppUploadModel.sync({ alter: true, logging: false }).catch((e) => { + console.error('MicroAppUploadModel sync', e); }); diff --git a/src/routes/micro-app/upload-list.ts b/src/routes/micro-app/upload-list.ts new file mode 100644 index 0000000..3cbe81e --- /dev/null +++ b/src/routes/micro-app/upload-list.ts @@ -0,0 +1,57 @@ +import { app } from '@/app.ts'; +import { MicroAppUploadModel } from './models.ts'; + +// 获取MicroAppUpload的uploadList的接口 +app + .route({ + path: 'micro-app-upload', + key: 'list', + middleware: ['auth'], + description: 'Get micro app upload list', + }) + .define(async (ctx) => { + const { uid } = ctx.state.tokenUser; + const uploadList = await MicroAppUploadModel.findAll({ + where: { uid }, + }); + ctx.body = uploadList; + }) + .addTo(app); + +// 获取单个MicroAppUpload的接口 +app + .route({ + path: 'micro-app-upload', + key: 'get', + middleware: ['auth'], + description: 'Get a single micro app upload', + }) + .define(async (ctx) => { + const { id } = ctx.query; + const upload = await MicroAppUploadModel.findOne({ + where: { id }, + }); + if (upload) { + ctx.body = upload; + } else { + ctx.throw(404, 'Not found'); + } + }) + .addTo(app); + +// 删除MicroAppUpload的接口 +app + .route({ + path: 'micro-app-upload', + key: 'delete', + middleware: ['auth'], + description: 'Delete a micro app upload', + }) + .define(async (ctx) => { + const { id } = ctx.query; + const deleted = await MicroAppUploadModel.destroy({ + where: { id }, + }); + ctx.body = { deleted }; + }) + .addTo(app);