This commit is contained in:
xion 2025-03-29 18:00:27 +08:00
parent a20c082b91
commit 12aa9022c4
4 changed files with 218 additions and 146 deletions

View File

@ -41,7 +41,7 @@
"@kevisual/local-app-manager": "0.1.10",
"@kevisual/router": "0.0.9",
"@kevisual/use-config": "^1.0.10",
"@types/semver": "^7.5.8",
"@types/semver": "^7.7.0",
"archiver": "^7.0.1",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
@ -59,7 +59,7 @@
"pm2": "^6.0.5",
"rollup-plugin-esbuild": "^6.2.1",
"semver": "^7.7.1",
"sequelize": "^6.37.6",
"sequelize": "^6.37.7",
"socket.io": "^4.8.1",
"strip-ansi": "^7.1.0",
"tar": "^7.4.3",
@ -82,14 +82,14 @@
"@types/formidable": "^3.4.5",
"@types/jsonwebtoken": "^9.0.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.13.13",
"@types/node": "^22.13.14",
"@types/react": "^19.0.12",
"@types/uuid": "^10.0.0",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
"nodemon": "^3.1.9",
"rimraf": "^6.0.1",
"rollup": "^4.37.0",
"rollup": "^4.38.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.2.1",
"tape": "^5.9.0",
@ -103,5 +103,5 @@
"picomatch": "^4.0.2"
},
"pnpm": {},
"packageManager": "pnpm@10.6.5"
"packageManager": "pnpm@10.7.0"
}

339
pnpm-lock.yaml generated
View File

@ -23,8 +23,8 @@ importers:
specifier: ^1.0.10
version: 1.0.10(dotenv@16.4.7)
'@types/semver':
specifier: ^7.5.8
version: 7.5.8
specifier: ^7.7.0
version: 7.7.0
archiver:
specifier: ^7.0.1
version: 7.0.1
@ -72,13 +72,13 @@ importers:
version: 6.0.5
rollup-plugin-esbuild:
specifier: ^6.2.1
version: 6.2.1(esbuild@0.25.0)(rollup@4.37.0)
version: 6.2.1(esbuild@0.25.0)(rollup@4.38.0)
semver:
specifier: ^7.7.1
version: 7.7.1
sequelize:
specifier: ^6.37.6
version: 6.37.6(pg@8.14.1)
specifier: ^6.37.7
version: 6.37.7(pg@8.14.1)
socket.io:
specifier: ^4.8.1
version: 4.8.1
@ -109,22 +109,22 @@ importers:
version: 0.0.6
'@rollup/plugin-alias':
specifier: ^5.1.1
version: 5.1.1(rollup@4.37.0)
version: 5.1.1(rollup@4.38.0)
'@rollup/plugin-commonjs':
specifier: ^28.0.3
version: 28.0.3(rollup@4.37.0)
version: 28.0.3(rollup@4.38.0)
'@rollup/plugin-json':
specifier: ^6.1.0
version: 6.1.0(rollup@4.37.0)
version: 6.1.0(rollup@4.38.0)
'@rollup/plugin-node-resolve':
specifier: ^16.0.1
version: 16.0.1(rollup@4.37.0)
version: 16.0.1(rollup@4.38.0)
'@rollup/plugin-replace':
specifier: ^6.0.2
version: 6.0.2(rollup@4.37.0)
version: 6.0.2(rollup@4.38.0)
'@rollup/plugin-typescript':
specifier: ^12.1.2
version: 12.1.2(rollup@4.37.0)(tslib@2.8.1)(typescript@5.8.2)
version: 12.1.2(rollup@4.38.0)(tslib@2.8.1)(typescript@5.8.2)
'@types/archiver':
specifier: ^6.0.3
version: 6.0.3
@ -141,8 +141,8 @@ importers:
specifier: ^4.17.12
version: 4.17.12
'@types/node':
specifier: ^22.13.13
version: 22.13.13
specifier: ^22.13.14
version: 22.13.14
'@types/react':
specifier: ^19.0.12
version: 19.0.12
@ -162,14 +162,14 @@ importers:
specifier: latest
version: 6.0.1
rollup:
specifier: ^4.37.0
version: 4.37.0
specifier: ^4.38.0
version: 4.38.0
rollup-plugin-copy:
specifier: ^3.5.0
version: 3.5.0
rollup-plugin-dts:
specifier: ^6.2.1
version: 6.2.1(rollup@4.37.0)(typescript@5.8.2)
version: 6.2.1(rollup@4.38.0)(typescript@5.8.2)
tape:
specifier: ^5.9.0
version: 5.9.0
@ -640,8 +640,8 @@ packages:
cpu: [arm]
os: [android]
'@rollup/rollup-android-arm-eabi@4.37.0':
resolution: {integrity: sha512-l7StVw6WAa8l3vA1ov80jyetOAEo1FtHvZDbzXDO/02Sq/QVvqlHkYoFwDJPIMj0GKiistsBudfx5tGFnwYWDQ==}
'@rollup/rollup-android-arm-eabi@4.38.0':
resolution: {integrity: sha512-ldomqc4/jDZu/xpYU+aRxo3V4mGCV9HeTgUBANI3oIQMOL+SsxB+S2lxMpkFp5UamSS3XuTMQVbsS24R4J4Qjg==}
cpu: [arm]
os: [android]
@ -650,8 +650,8 @@ packages:
cpu: [arm64]
os: [android]
'@rollup/rollup-android-arm64@4.37.0':
resolution: {integrity: sha512-6U3SlVyMxezt8Y+/iEBcbp945uZjJwjZimu76xoG7tO1av9VO691z8PkhzQ85ith2I8R2RddEPeSfcbyPfD4hA==}
'@rollup/rollup-android-arm64@4.38.0':
resolution: {integrity: sha512-VUsgcy4GhhT7rokwzYQP+aV9XnSLkkhlEJ0St8pbasuWO/vwphhZQxYEKUP3ayeCYLhk6gEtacRpYP/cj3GjyQ==}
cpu: [arm64]
os: [android]
@ -660,8 +660,8 @@ packages:
cpu: [arm64]
os: [darwin]
'@rollup/rollup-darwin-arm64@4.37.0':
resolution: {integrity: sha512-+iTQ5YHuGmPt10NTzEyMPbayiNTcOZDWsbxZYR1ZnmLnZxG17ivrPSWFO9j6GalY0+gV3Jtwrrs12DBscxnlYA==}
'@rollup/rollup-darwin-arm64@4.38.0':
resolution: {integrity: sha512-buA17AYXlW9Rn091sWMq1xGUvWQFOH4N1rqUxGJtEQzhChxWjldGCCup7r/wUnaI6Au8sKXpoh0xg58a7cgcpg==}
cpu: [arm64]
os: [darwin]
@ -670,8 +670,8 @@ packages:
cpu: [x64]
os: [darwin]
'@rollup/rollup-darwin-x64@4.37.0':
resolution: {integrity: sha512-m8W2UbxLDcmRKVjgl5J/k4B8d7qX2EcJve3Sut7YGrQoPtCIQGPH5AMzuFvYRWZi0FVS0zEY4c8uttPfX6bwYQ==}
'@rollup/rollup-darwin-x64@4.38.0':
resolution: {integrity: sha512-Mgcmc78AjunP1SKXl624vVBOF2bzwNWFPMP4fpOu05vS0amnLcX8gHIge7q/lDAHy3T2HeR0TqrriZDQS2Woeg==}
cpu: [x64]
os: [darwin]
@ -680,8 +680,8 @@ packages:
cpu: [arm64]
os: [freebsd]
'@rollup/rollup-freebsd-arm64@4.37.0':
resolution: {integrity: sha512-FOMXGmH15OmtQWEt174v9P1JqqhlgYge/bUjIbiVD1nI1NeJ30HYT9SJlZMqdo1uQFyt9cz748F1BHghWaDnVA==}
'@rollup/rollup-freebsd-arm64@4.38.0':
resolution: {integrity: sha512-zzJACgjLbQTsscxWqvrEQAEh28hqhebpRz5q/uUd1T7VTwUNZ4VIXQt5hE7ncs0GrF+s7d3S4on4TiXUY8KoQA==}
cpu: [arm64]
os: [freebsd]
@ -690,8 +690,8 @@ packages:
cpu: [x64]
os: [freebsd]
'@rollup/rollup-freebsd-x64@4.37.0':
resolution: {integrity: sha512-SZMxNttjPKvV14Hjck5t70xS3l63sbVwl98g3FlVVx2YIDmfUIy29jQrsw06ewEYQ8lQSuY9mpAPlmgRD2iSsA==}
'@rollup/rollup-freebsd-x64@4.38.0':
resolution: {integrity: sha512-hCY/KAeYMCyDpEE4pTETam0XZS4/5GXzlLgpi5f0IaPExw9kuB+PDTOTLuPtM10TlRG0U9OSmXJ+Wq9J39LvAg==}
cpu: [x64]
os: [freebsd]
@ -700,8 +700,8 @@ packages:
cpu: [arm]
os: [linux]
'@rollup/rollup-linux-arm-gnueabihf@4.37.0':
resolution: {integrity: sha512-hhAALKJPidCwZcj+g+iN+38SIOkhK2a9bqtJR+EtyxrKKSt1ynCBeqrQy31z0oWU6thRZzdx53hVgEbRkuI19w==}
'@rollup/rollup-linux-arm-gnueabihf@4.38.0':
resolution: {integrity: sha512-mimPH43mHl4JdOTD7bUMFhBdrg6f9HzMTOEnzRmXbOZqjijCw8LA5z8uL6LCjxSa67H2xiLFvvO67PT05PRKGg==}
cpu: [arm]
os: [linux]
@ -710,8 +710,8 @@ packages:
cpu: [arm]
os: [linux]
'@rollup/rollup-linux-arm-musleabihf@4.37.0':
resolution: {integrity: sha512-jUb/kmn/Gd8epbHKEqkRAxq5c2EwRt0DqhSGWjPFxLeFvldFdHQs/n8lQ9x85oAeVb6bHcS8irhTJX2FCOd8Ag==}
'@rollup/rollup-linux-arm-musleabihf@4.38.0':
resolution: {integrity: sha512-tPiJtiOoNuIH8XGG8sWoMMkAMm98PUwlriOFCCbZGc9WCax+GLeVRhmaxjJtz6WxrPKACgrwoZ5ia/uapq3ZVg==}
cpu: [arm]
os: [linux]
@ -720,8 +720,8 @@ packages:
cpu: [arm64]
os: [linux]
'@rollup/rollup-linux-arm64-gnu@4.37.0':
resolution: {integrity: sha512-oNrJxcQT9IcbcmKlkF+Yz2tmOxZgG9D9GRq+1OE6XCQwCVwxixYAa38Z8qqPzQvzt1FCfmrHX03E0pWoXm1DqA==}
'@rollup/rollup-linux-arm64-gnu@4.38.0':
resolution: {integrity: sha512-wZco59rIVuB0tjQS0CSHTTUcEde+pXQWugZVxWaQFdQQ1VYub/sTrNdY76D1MKdN2NB48JDuGABP6o6fqos8mA==}
cpu: [arm64]
os: [linux]
@ -730,8 +730,8 @@ packages:
cpu: [arm64]
os: [linux]
'@rollup/rollup-linux-arm64-musl@4.37.0':
resolution: {integrity: sha512-pfxLBMls+28Ey2enpX3JvjEjaJMBX5XlPCZNGxj4kdJyHduPBXtxYeb8alo0a7bqOoWZW2uKynhHxF/MWoHaGQ==}
'@rollup/rollup-linux-arm64-musl@4.38.0':
resolution: {integrity: sha512-fQgqwKmW0REM4LomQ+87PP8w8xvU9LZfeLBKybeli+0yHT7VKILINzFEuggvnV9M3x1Ed4gUBmGUzCo/ikmFbQ==}
cpu: [arm64]
os: [linux]
@ -740,8 +740,8 @@ packages:
cpu: [loong64]
os: [linux]
'@rollup/rollup-linux-loongarch64-gnu@4.37.0':
resolution: {integrity: sha512-yCE0NnutTC/7IGUq/PUHmoeZbIwq3KRh02e9SfFh7Vmc1Z7atuJRYWhRME5fKgT8aS20mwi1RyChA23qSyRGpA==}
'@rollup/rollup-linux-loongarch64-gnu@4.38.0':
resolution: {integrity: sha512-hz5oqQLXTB3SbXpfkKHKXLdIp02/w3M+ajp8p4yWOWwQRtHWiEOCKtc9U+YXahrwdk+3qHdFMDWR5k+4dIlddg==}
cpu: [loong64]
os: [linux]
@ -750,8 +750,8 @@ packages:
cpu: [ppc64]
os: [linux]
'@rollup/rollup-linux-powerpc64le-gnu@4.37.0':
resolution: {integrity: sha512-NxcICptHk06E2Lh3a4Pu+2PEdZ6ahNHuK7o6Np9zcWkrBMuv21j10SQDJW3C9Yf/A/P7cutWoC/DptNLVsZ0VQ==}
'@rollup/rollup-linux-powerpc64le-gnu@4.38.0':
resolution: {integrity: sha512-NXqygK/dTSibQ+0pzxsL3r4Xl8oPqVoWbZV9niqOnIHV/J92fe65pOir0xjkUZDRSPyFRvu+4YOpJF9BZHQImw==}
cpu: [ppc64]
os: [linux]
@ -760,13 +760,13 @@ packages:
cpu: [riscv64]
os: [linux]
'@rollup/rollup-linux-riscv64-gnu@4.37.0':
resolution: {integrity: sha512-PpWwHMPCVpFZLTfLq7EWJWvrmEuLdGn1GMYcm5MV7PaRgwCEYJAwiN94uBuZev0/J/hFIIJCsYw4nLmXA9J7Pw==}
'@rollup/rollup-linux-riscv64-gnu@4.38.0':
resolution: {integrity: sha512-GEAIabR1uFyvf/jW/5jfu8gjM06/4kZ1W+j1nWTSSB3w6moZEBm7iBtzwQ3a1Pxos2F7Gz+58aVEnZHU295QTg==}
cpu: [riscv64]
os: [linux]
'@rollup/rollup-linux-riscv64-musl@4.37.0':
resolution: {integrity: sha512-DTNwl6a3CfhGTAOYZ4KtYbdS8b+275LSLqJVJIrPa5/JuIufWWZ/QFvkxp52gpmguN95eujrM68ZG+zVxa8zHA==}
'@rollup/rollup-linux-riscv64-musl@4.38.0':
resolution: {integrity: sha512-9EYTX+Gus2EGPbfs+fh7l95wVADtSQyYw4DfSBcYdUEAmP2lqSZY0Y17yX/3m5VKGGJ4UmIH5LHLkMJft3bYoA==}
cpu: [riscv64]
os: [linux]
@ -775,8 +775,8 @@ packages:
cpu: [s390x]
os: [linux]
'@rollup/rollup-linux-s390x-gnu@4.37.0':
resolution: {integrity: sha512-hZDDU5fgWvDdHFuExN1gBOhCuzo/8TMpidfOR+1cPZJflcEzXdCy1LjnklQdW8/Et9sryOPJAKAQRw8Jq7Tg+A==}
'@rollup/rollup-linux-s390x-gnu@4.38.0':
resolution: {integrity: sha512-Mpp6+Z5VhB9VDk7RwZXoG2qMdERm3Jw07RNlXHE0bOnEeX+l7Fy4bg+NxfyN15ruuY3/7Vrbpm75J9QHFqj5+Q==}
cpu: [s390x]
os: [linux]
@ -785,8 +785,8 @@ packages:
cpu: [x64]
os: [linux]
'@rollup/rollup-linux-x64-gnu@4.37.0':
resolution: {integrity: sha512-pKivGpgJM5g8dwj0ywBwe/HeVAUSuVVJhUTa/URXjxvoyTT/AxsLTAbkHkDHG7qQxLoW2s3apEIl26uUe08LVQ==}
'@rollup/rollup-linux-x64-gnu@4.38.0':
resolution: {integrity: sha512-vPvNgFlZRAgO7rwncMeE0+8c4Hmc+qixnp00/Uv3ht2x7KYrJ6ERVd3/R0nUtlE6/hu7/HiiNHJ/rP6knRFt1w==}
cpu: [x64]
os: [linux]
@ -795,8 +795,8 @@ packages:
cpu: [x64]
os: [linux]
'@rollup/rollup-linux-x64-musl@4.37.0':
resolution: {integrity: sha512-E2lPrLKE8sQbY/2bEkVTGDEk4/49UYRVWgj90MY8yPjpnGBQ+Xi1Qnr7b7UIWw1NOggdFQFOLZ8+5CzCiz143w==}
'@rollup/rollup-linux-x64-musl@4.38.0':
resolution: {integrity: sha512-q5Zv+goWvQUGCaL7fU8NuTw8aydIL/C9abAVGCzRReuj5h30TPx4LumBtAidrVOtXnlB+RZkBtExMsfqkMfb8g==}
cpu: [x64]
os: [linux]
@ -805,8 +805,8 @@ packages:
cpu: [arm64]
os: [win32]
'@rollup/rollup-win32-arm64-msvc@4.37.0':
resolution: {integrity: sha512-Jm7biMazjNzTU4PrQtr7VS8ibeys9Pn29/1bm4ph7CP2kf21950LgN+BaE2mJ1QujnvOc6p54eWWiVvn05SOBg==}
'@rollup/rollup-win32-arm64-msvc@4.38.0':
resolution: {integrity: sha512-u/Jbm1BU89Vftqyqbmxdq14nBaQjQX1HhmsdBWqSdGClNaKwhjsg5TpW+5Ibs1mb8Es9wJiMdl86BcmtUVXNZg==}
cpu: [arm64]
os: [win32]
@ -815,8 +815,8 @@ packages:
cpu: [ia32]
os: [win32]
'@rollup/rollup-win32-ia32-msvc@4.37.0':
resolution: {integrity: sha512-e3/1SFm1OjefWICB2Ucstg2dxYDkDTZGDYgwufcbsxTHyqQps1UQf33dFEChBNmeSsTOyrjw2JJq0zbG5GF6RA==}
'@rollup/rollup-win32-ia32-msvc@4.38.0':
resolution: {integrity: sha512-mqu4PzTrlpNHHbu5qleGvXJoGgHpChBlrBx/mEhTPpnAL1ZAYFlvHD7rLK839LLKQzqEQMFJfGrrOHItN4ZQqA==}
cpu: [ia32]
os: [win32]
@ -825,8 +825,8 @@ packages:
cpu: [x64]
os: [win32]
'@rollup/rollup-win32-x64-msvc@4.37.0':
resolution: {integrity: sha512-LWbXUBwn/bcLx2sSsqy7pK5o+Nr+VCoRoAohfJ5C/aBio9nfJmGQqHAhU6pwxV/RmyTk5AqdySma7uwWGlmeuA==}
'@rollup/rollup-win32-x64-msvc@4.38.0':
resolution: {integrity: sha512-jjqy3uWlecfB98Psxb5cD6Fny9Fupv9LrDSPTQZUROqjvZmcCqNu4UMl7qqhlUUGpwiAkotj6GYu4SZdcr/nLw==}
cpu: [x64]
os: [win32]
@ -854,6 +854,9 @@ packages:
'@types/estree@1.0.6':
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
'@types/estree@1.0.7':
resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==}
'@types/formidable@3.4.5':
resolution: {integrity: sha512-s7YPsNVfnsng5L8sKnG/Gbb2tiwwJTY1conOkJzTMRvJAlLFW1nEua+ADsJQu8N1c0oTHx9+d5nqg10WuT9gHQ==}
@ -884,8 +887,8 @@ packages:
'@types/node@22.13.11':
resolution: {integrity: sha512-iEUCUJoU0i3VnrCmgoWCXttklWcvoCIx4jzcP22fioIVSdTmjgoEvmAO/QPw6TcS9k5FrNgn4w7q5lGOd1CT5g==}
'@types/node@22.13.13':
resolution: {integrity: sha512-ClsL5nMwKaBRwPcCvH8E7+nU4GxHVx1axNvMZTFHMEfNI7oahimt26P5zjVCRrjiIWj6YFXfE1v3dEp94wLcGQ==}
'@types/node@22.13.14':
resolution: {integrity: sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==}
'@types/react@19.0.12':
resolution: {integrity: sha512-V6Ar115dBDrjbtXSrS+/Oruobc+qVbbUxDFC1RSbRqLt5SYvxxyIDrSC85RWml54g+jfNeEMZhEj7wW07ONQhA==}
@ -896,8 +899,8 @@ packages:
'@types/resolve@1.20.2':
resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}
'@types/semver@7.5.8':
resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==}
'@types/semver@7.7.0':
resolution: {integrity: sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==}
'@types/uuid@10.0.0':
resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==}
@ -2329,8 +2332,8 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
rollup@4.37.0:
resolution: {integrity: sha512-iAtQy/L4QFU+rTJ1YUjXqJOJzuwEghqWzCEYD2FEghT7Gsy1VdABntrO4CLopA5IkflTyqNiLNwPcOJ3S7UKLg==}
rollup@4.38.0:
resolution: {integrity: sha512-5SsIRtJy9bf1ErAOiFMFzl64Ex9X5V7bnJ+WlFMb+zmP459OSWCEG7b0ERZ+PEU7xPt4OG3RHbrp1LJlXxYTrw==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
@ -2414,6 +2417,39 @@ packages:
tedious:
optional: true
sequelize@6.37.7:
resolution: {integrity: sha512-mCnh83zuz7kQxxJirtFD7q6Huy6liPanI67BSlbzSYgVNl5eXVdE2CN1FuAeZwG1SNpGsNRCV+bJAVVnykZAFA==}
engines: {node: '>=10.0.0'}
peerDependencies:
ibm_db: '*'
mariadb: '*'
mysql2: '*'
oracledb: '*'
pg: '*'
pg-hstore: '*'
snowflake-sdk: '*'
sqlite3: '*'
tedious: '*'
peerDependenciesMeta:
ibm_db:
optional: true
mariadb:
optional: true
mysql2:
optional: true
oracledb:
optional: true
pg:
optional: true
pg-hstore:
optional: true
snowflake-sdk:
optional: true
sqlite3:
optional: true
tedious:
optional: true
set-function-length@1.2.2:
resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
engines: {node: '>= 0.4'}
@ -3120,9 +3156,9 @@ snapshots:
optionalDependencies:
rollup: 4.36.0
'@rollup/plugin-alias@5.1.1(rollup@4.37.0)':
'@rollup/plugin-alias@5.1.1(rollup@4.38.0)':
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
'@rollup/plugin-commonjs@28.0.3(rollup@4.36.0)':
dependencies:
@ -3136,9 +3172,9 @@ snapshots:
optionalDependencies:
rollup: 4.36.0
'@rollup/plugin-commonjs@28.0.3(rollup@4.37.0)':
'@rollup/plugin-commonjs@28.0.3(rollup@4.38.0)':
dependencies:
'@rollup/pluginutils': 5.1.2(rollup@4.37.0)
'@rollup/pluginutils': 5.1.2(rollup@4.38.0)
commondir: 1.0.1
estree-walker: 2.0.2
fdir: 6.3.0(picomatch@4.0.2)
@ -3146,7 +3182,7 @@ snapshots:
magic-string: 0.30.11
picomatch: 4.0.2
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
'@rollup/plugin-json@6.1.0(rollup@4.36.0)':
dependencies:
@ -3154,11 +3190,11 @@ snapshots:
optionalDependencies:
rollup: 4.36.0
'@rollup/plugin-json@6.1.0(rollup@4.37.0)':
'@rollup/plugin-json@6.1.0(rollup@4.38.0)':
dependencies:
'@rollup/pluginutils': 5.1.2(rollup@4.37.0)
'@rollup/pluginutils': 5.1.2(rollup@4.38.0)
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
'@rollup/plugin-node-resolve@16.0.1(rollup@4.36.0)':
dependencies:
@ -3170,15 +3206,15 @@ snapshots:
optionalDependencies:
rollup: 4.36.0
'@rollup/plugin-node-resolve@16.0.1(rollup@4.37.0)':
'@rollup/plugin-node-resolve@16.0.1(rollup@4.38.0)':
dependencies:
'@rollup/pluginutils': 5.1.2(rollup@4.37.0)
'@rollup/pluginutils': 5.1.2(rollup@4.38.0)
'@types/resolve': 1.20.2
deepmerge: 4.3.1
is-module: 1.0.0
resolve: 1.22.8
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
'@rollup/plugin-replace@6.0.2(rollup@4.36.0)':
dependencies:
@ -3187,12 +3223,12 @@ snapshots:
optionalDependencies:
rollup: 4.36.0
'@rollup/plugin-replace@6.0.2(rollup@4.37.0)':
'@rollup/plugin-replace@6.0.2(rollup@4.38.0)':
dependencies:
'@rollup/pluginutils': 5.1.2(rollup@4.37.0)
'@rollup/pluginutils': 5.1.2(rollup@4.38.0)
magic-string: 0.30.11
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
'@rollup/plugin-typescript@12.1.2(rollup@4.36.0)(tslib@2.8.1)(typescript@5.8.2)':
dependencies:
@ -3203,13 +3239,13 @@ snapshots:
rollup: 4.36.0
tslib: 2.8.1
'@rollup/plugin-typescript@12.1.2(rollup@4.37.0)(tslib@2.8.1)(typescript@5.8.2)':
'@rollup/plugin-typescript@12.1.2(rollup@4.38.0)(tslib@2.8.1)(typescript@5.8.2)':
dependencies:
'@rollup/pluginutils': 5.1.2(rollup@4.37.0)
'@rollup/pluginutils': 5.1.2(rollup@4.38.0)
resolve: 1.22.8
typescript: 5.8.2
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
tslib: 2.8.1
'@rollup/pluginutils@5.1.2(rollup@4.36.0)':
@ -3220,129 +3256,129 @@ snapshots:
optionalDependencies:
rollup: 4.36.0
'@rollup/pluginutils@5.1.2(rollup@4.37.0)':
'@rollup/pluginutils@5.1.2(rollup@4.38.0)':
dependencies:
'@types/estree': 1.0.6
estree-walker: 2.0.2
picomatch: 4.0.2
optionalDependencies:
rollup: 4.37.0
rollup: 4.38.0
'@rollup/rollup-android-arm-eabi@4.36.0':
optional: true
'@rollup/rollup-android-arm-eabi@4.37.0':
'@rollup/rollup-android-arm-eabi@4.38.0':
optional: true
'@rollup/rollup-android-arm64@4.36.0':
optional: true
'@rollup/rollup-android-arm64@4.37.0':
'@rollup/rollup-android-arm64@4.38.0':
optional: true
'@rollup/rollup-darwin-arm64@4.36.0':
optional: true
'@rollup/rollup-darwin-arm64@4.37.0':
'@rollup/rollup-darwin-arm64@4.38.0':
optional: true
'@rollup/rollup-darwin-x64@4.36.0':
optional: true
'@rollup/rollup-darwin-x64@4.37.0':
'@rollup/rollup-darwin-x64@4.38.0':
optional: true
'@rollup/rollup-freebsd-arm64@4.36.0':
optional: true
'@rollup/rollup-freebsd-arm64@4.37.0':
'@rollup/rollup-freebsd-arm64@4.38.0':
optional: true
'@rollup/rollup-freebsd-x64@4.36.0':
optional: true
'@rollup/rollup-freebsd-x64@4.37.0':
'@rollup/rollup-freebsd-x64@4.38.0':
optional: true
'@rollup/rollup-linux-arm-gnueabihf@4.36.0':
optional: true
'@rollup/rollup-linux-arm-gnueabihf@4.37.0':
'@rollup/rollup-linux-arm-gnueabihf@4.38.0':
optional: true
'@rollup/rollup-linux-arm-musleabihf@4.36.0':
optional: true
'@rollup/rollup-linux-arm-musleabihf@4.37.0':
'@rollup/rollup-linux-arm-musleabihf@4.38.0':
optional: true
'@rollup/rollup-linux-arm64-gnu@4.36.0':
optional: true
'@rollup/rollup-linux-arm64-gnu@4.37.0':
'@rollup/rollup-linux-arm64-gnu@4.38.0':
optional: true
'@rollup/rollup-linux-arm64-musl@4.36.0':
optional: true
'@rollup/rollup-linux-arm64-musl@4.37.0':
'@rollup/rollup-linux-arm64-musl@4.38.0':
optional: true
'@rollup/rollup-linux-loongarch64-gnu@4.36.0':
optional: true
'@rollup/rollup-linux-loongarch64-gnu@4.37.0':
'@rollup/rollup-linux-loongarch64-gnu@4.38.0':
optional: true
'@rollup/rollup-linux-powerpc64le-gnu@4.36.0':
optional: true
'@rollup/rollup-linux-powerpc64le-gnu@4.37.0':
'@rollup/rollup-linux-powerpc64le-gnu@4.38.0':
optional: true
'@rollup/rollup-linux-riscv64-gnu@4.36.0':
optional: true
'@rollup/rollup-linux-riscv64-gnu@4.37.0':
'@rollup/rollup-linux-riscv64-gnu@4.38.0':
optional: true
'@rollup/rollup-linux-riscv64-musl@4.37.0':
'@rollup/rollup-linux-riscv64-musl@4.38.0':
optional: true
'@rollup/rollup-linux-s390x-gnu@4.36.0':
optional: true
'@rollup/rollup-linux-s390x-gnu@4.37.0':
'@rollup/rollup-linux-s390x-gnu@4.38.0':
optional: true
'@rollup/rollup-linux-x64-gnu@4.36.0':
optional: true
'@rollup/rollup-linux-x64-gnu@4.37.0':
'@rollup/rollup-linux-x64-gnu@4.38.0':
optional: true
'@rollup/rollup-linux-x64-musl@4.36.0':
optional: true
'@rollup/rollup-linux-x64-musl@4.37.0':
'@rollup/rollup-linux-x64-musl@4.38.0':
optional: true
'@rollup/rollup-win32-arm64-msvc@4.36.0':
optional: true
'@rollup/rollup-win32-arm64-msvc@4.37.0':
'@rollup/rollup-win32-arm64-msvc@4.38.0':
optional: true
'@rollup/rollup-win32-ia32-msvc@4.36.0':
optional: true
'@rollup/rollup-win32-ia32-msvc@4.37.0':
'@rollup/rollup-win32-ia32-msvc@4.38.0':
optional: true
'@rollup/rollup-win32-x64-msvc@4.36.0':
optional: true
'@rollup/rollup-win32-x64-msvc@4.37.0':
'@rollup/rollup-win32-x64-msvc@4.38.0':
optional: true
'@socket.io/component-emitter@3.1.2': {}
@ -3357,7 +3393,7 @@ snapshots:
'@types/cors@2.8.17':
dependencies:
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/crypto-js@4.2.2': {}
@ -3367,23 +3403,25 @@ snapshots:
'@types/estree@1.0.6': {}
'@types/estree@1.0.7': {}
'@types/formidable@3.4.5':
dependencies:
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/fs-extra@8.1.5':
dependencies:
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/glob@7.2.0':
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/jsonwebtoken@9.0.9':
dependencies:
'@types/ms': 0.7.34
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/lodash-es@4.17.12':
dependencies:
@ -3397,13 +3435,13 @@ snapshots:
'@types/node-forge@1.3.11':
dependencies:
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/node@22.13.11':
dependencies:
undici-types: 6.20.0
'@types/node@22.13.13':
'@types/node@22.13.14':
dependencies:
undici-types: 6.20.0
@ -3413,11 +3451,11 @@ snapshots:
'@types/readdir-glob@1.1.5':
dependencies:
'@types/node': 22.13.13
'@types/node': 22.13.14
'@types/resolve@1.20.2': {}
'@types/semver@7.5.8': {}
'@types/semver@7.7.0': {}
'@types/uuid@10.0.0': {}
@ -3826,7 +3864,7 @@ snapshots:
dependencies:
'@types/cookie': 0.4.1
'@types/cors': 2.8.17
'@types/node': 22.13.13
'@types/node': 22.13.14
accepts: 1.3.8
base64id: 2.0.0
cookie: 0.4.2
@ -4976,10 +5014,10 @@ snapshots:
optionalDependencies:
'@babel/code-frame': 7.26.2
rollup-plugin-dts@6.2.1(rollup@4.37.0)(typescript@5.8.2):
rollup-plugin-dts@6.2.1(rollup@4.38.0)(typescript@5.8.2):
dependencies:
magic-string: 0.30.17
rollup: 4.37.0
rollup: 4.38.0
typescript: 5.8.2
optionalDependencies:
'@babel/code-frame': 7.26.2
@ -4995,13 +5033,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
rollup-plugin-esbuild@6.2.1(esbuild@0.25.0)(rollup@4.37.0):
rollup-plugin-esbuild@6.2.1(esbuild@0.25.0)(rollup@4.38.0):
dependencies:
debug: 4.4.0
es-module-lexer: 1.6.0
esbuild: 0.25.0
get-tsconfig: 4.10.0
rollup: 4.37.0
rollup: 4.38.0
unplugin-utils: 0.2.4
transitivePeerDependencies:
- supports-color
@ -5031,30 +5069,30 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.36.0
fsevents: 2.3.3
rollup@4.37.0:
rollup@4.38.0:
dependencies:
'@types/estree': 1.0.6
'@types/estree': 1.0.7
optionalDependencies:
'@rollup/rollup-android-arm-eabi': 4.37.0
'@rollup/rollup-android-arm64': 4.37.0
'@rollup/rollup-darwin-arm64': 4.37.0
'@rollup/rollup-darwin-x64': 4.37.0
'@rollup/rollup-freebsd-arm64': 4.37.0
'@rollup/rollup-freebsd-x64': 4.37.0
'@rollup/rollup-linux-arm-gnueabihf': 4.37.0
'@rollup/rollup-linux-arm-musleabihf': 4.37.0
'@rollup/rollup-linux-arm64-gnu': 4.37.0
'@rollup/rollup-linux-arm64-musl': 4.37.0
'@rollup/rollup-linux-loongarch64-gnu': 4.37.0
'@rollup/rollup-linux-powerpc64le-gnu': 4.37.0
'@rollup/rollup-linux-riscv64-gnu': 4.37.0
'@rollup/rollup-linux-riscv64-musl': 4.37.0
'@rollup/rollup-linux-s390x-gnu': 4.37.0
'@rollup/rollup-linux-x64-gnu': 4.37.0
'@rollup/rollup-linux-x64-musl': 4.37.0
'@rollup/rollup-win32-arm64-msvc': 4.37.0
'@rollup/rollup-win32-ia32-msvc': 4.37.0
'@rollup/rollup-win32-x64-msvc': 4.37.0
'@rollup/rollup-android-arm-eabi': 4.38.0
'@rollup/rollup-android-arm64': 4.38.0
'@rollup/rollup-darwin-arm64': 4.38.0
'@rollup/rollup-darwin-x64': 4.38.0
'@rollup/rollup-freebsd-arm64': 4.38.0
'@rollup/rollup-freebsd-x64': 4.38.0
'@rollup/rollup-linux-arm-gnueabihf': 4.38.0
'@rollup/rollup-linux-arm-musleabihf': 4.38.0
'@rollup/rollup-linux-arm64-gnu': 4.38.0
'@rollup/rollup-linux-arm64-musl': 4.38.0
'@rollup/rollup-linux-loongarch64-gnu': 4.38.0
'@rollup/rollup-linux-powerpc64le-gnu': 4.38.0
'@rollup/rollup-linux-riscv64-gnu': 4.38.0
'@rollup/rollup-linux-riscv64-musl': 4.38.0
'@rollup/rollup-linux-s390x-gnu': 4.38.0
'@rollup/rollup-linux-x64-gnu': 4.38.0
'@rollup/rollup-linux-x64-musl': 4.38.0
'@rollup/rollup-win32-arm64-msvc': 4.38.0
'@rollup/rollup-win32-ia32-msvc': 4.38.0
'@rollup/rollup-win32-x64-msvc': 4.38.0
fsevents: 2.3.3
run-parallel@1.2.0:
@ -5124,6 +5162,29 @@ snapshots:
transitivePeerDependencies:
- supports-color
sequelize@6.37.7(pg@8.14.1):
dependencies:
'@types/debug': 4.1.12
'@types/validator': 13.12.2
debug: 4.4.0
dottie: 2.0.6
inflection: 1.13.4
lodash: 4.17.21
moment: 2.30.1
moment-timezone: 0.5.45
pg-connection-string: 2.7.0
retry-as-promised: 7.0.4
semver: 7.7.1
sequelize-pool: 7.1.0
toposort-class: 1.0.1
uuid: 8.3.2
validator: 13.12.0
wkx: 0.5.0
optionalDependencies:
pg: 8.14.1
transitivePeerDependencies:
- supports-color
set-function-length@1.2.2:
dependencies:
define-data-property: 1.1.4
@ -5424,7 +5485,7 @@ snapshots:
picocolors: 1.1.1
postcss-load-config: 6.0.1(tsx@4.19.3)
resolve-from: 5.0.0
rollup: 4.37.0
rollup: 4.38.0
source-map: 0.8.0-beta.0
sucrase: 3.35.0
tinyexec: 0.3.2
@ -5603,7 +5664,7 @@ snapshots:
wkx@0.5.0:
dependencies:
'@types/node': 22.13.13
'@types/node': 22.13.14
wrap-ansi@7.0.0:
dependencies:

View File

@ -116,10 +116,11 @@ app
path: 'mark',
key: 'update',
middleware: ['auth'],
isDebug: true,
})
.define(async (ctx) => {
const tokenUser = ctx.state.tokenUser;
const { id, ...data } = ctx.query.data || {};
const { id, createdAt, updatedAt, uid: _, puid: _2, uname: _3, ...data } = ctx.query.data || {};
let markModel: MarkModel;
if (id) {
markModel = await MarkModel.findByPk(id);
@ -130,7 +131,15 @@ app
ctx.throw(403, 'no permission');
}
const version = Number(markModel.version) + 1;
await markModel.update({ ...markModel.data, ...data, version });
await markModel.update({
...markModel.data,
...data,
data: {
...markModel.data,
...data,
},
version,
});
} else {
markModel = await MarkModel.create({
...data,

View File

@ -317,3 +317,5 @@ export const syncMarkModel = async (sync?: Opts) => {
const sequelize = await useContextKey('sequelize');
await MarkMInit({ sequelize, tableName: 'micro_mark' }, sync);
};
syncMarkModel({ sync: true, alter: true, logging: true });