diff --git a/package.json b/package.json index fa5775c..7569dd9 100644 --- a/package.json +++ b/package.json @@ -35,28 +35,28 @@ "license": "ISC", "devDependencies": { "@kevisual/logger": "^0.0.4", - "@kevisual/oss": "^0.0.11", + "@kevisual/oss": "^0.0.12", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.2", "@types/busboy": "^1.5.4", "@types/http-proxy": "^1.17.16", - "@types/node": "^22.15.21", + "@types/node": "^22.15.27", "@types/send": "^0.17.4", "@types/ws": "^8.18.1", "concurrently": "^9.1.2", "cross-env": "^7.0.3", "nodemon": "^3.1.10", - "rollup": "^4.41.0", + "rollup": "^4.41.1", "tslib": "^2.8.1", "typescript": "^5.8.3", "ws": "npm:@kevisual/ws" }, "dependencies": { - "@kevisual/code-center-module": "0.0.18", + "@kevisual/code-center-module": "0.0.20", "@kevisual/permission": "^0.0.3", - "@kevisual/query": "^0.0.18", + "@kevisual/query": "^0.0.20", "@kevisual/query-config": "^0.0.2", "@kevisual/router": "0.0.21", "@kevisual/use-config": "^1.0.17", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6578980..3ce9c32 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,17 +12,17 @@ importers: .: dependencies: '@kevisual/code-center-module': - specifier: 0.0.18 - version: 0.0.18(@kevisual/auth@1.0.5)(@kevisual/router@0.0.21)(@kevisual/use-config@1.0.17(dotenv@16.4.7))(ioredis@5.6.1)(pg@8.13.3)(sequelize@6.37.7(pg@8.13.3)) + specifier: 0.0.20 + version: 0.0.20(dotenv@16.4.7) '@kevisual/permission': specifier: ^0.0.3 version: 0.0.3 '@kevisual/query': - specifier: ^0.0.18 - version: 0.0.18(@kevisual/ws@8.0.0)(zod@3.24.2) + specifier: ^0.0.20 + version: 0.0.20(@kevisual/ws@8.0.0)(zod@3.25.42) '@kevisual/query-config': specifier: ^0.0.2 - version: 0.0.2(@kevisual/query@0.0.18(@kevisual/ws@8.0.0)(zod@3.24.2)) + version: 0.0.2(@kevisual/query@0.0.20(@kevisual/ws@8.0.0)(zod@3.25.42)) '@kevisual/router': specifier: 0.0.21 version: 0.0.21 @@ -58,26 +58,26 @@ importers: version: 1.2.0 sequelize: specifier: ^6.37.7 - version: 6.37.7(pg@8.13.3) + version: 6.37.7(pg@8.16.0) devDependencies: '@kevisual/logger': specifier: ^0.0.4 version: 0.0.4 '@kevisual/oss': - specifier: ^0.0.11 - version: 0.0.11 + specifier: ^0.0.12 + version: 0.0.12 '@rollup/plugin-commonjs': specifier: ^28.0.3 - version: 28.0.3(rollup@4.41.0) + version: 28.0.3(rollup@4.41.1) '@rollup/plugin-json': specifier: ^6.1.0 - version: 6.1.0(rollup@4.41.0) + version: 6.1.0(rollup@4.41.1) '@rollup/plugin-node-resolve': specifier: ^16.0.1 - version: 16.0.1(rollup@4.41.0) + version: 16.0.1(rollup@4.41.1) '@rollup/plugin-typescript': specifier: ^12.1.2 - version: 12.1.2(rollup@4.41.0)(tslib@2.8.1)(typescript@5.8.3) + version: 12.1.2(rollup@4.41.1)(tslib@2.8.1)(typescript@5.8.3) '@types/busboy': specifier: ^1.5.4 version: 1.5.4 @@ -85,8 +85,8 @@ importers: specifier: ^1.17.16 version: 1.17.16 '@types/node': - specifier: ^22.15.21 - version: 22.15.21 + specifier: ^22.15.27 + version: 22.15.27 '@types/send': specifier: ^0.17.4 version: 0.17.4 @@ -103,8 +103,8 @@ importers: specifier: ^3.1.10 version: 3.1.10 rollup: - specifier: ^4.41.0 - version: 4.41.0 + specifier: ^4.41.1 + version: 4.41.1 tslib: specifier: ^2.8.1 version: 2.8.1 @@ -130,15 +130,8 @@ packages: '@kevisual/auth@1.0.5': resolution: {integrity: sha512-GwsLj7unKXi7lmMiIIgdig4LwwLiDJnOy15HHZR5gMbyK6s5/uJiMY5RXPB2+onGzTNDqFo/hXjsD2wkerHPVg==} - '@kevisual/code-center-module@0.0.18': - resolution: {integrity: sha512-BfANmxLEO1AwVmqpa6VDgxk//YN8asf1r5jIPpyKDQm12kyyrYgHND9AgGCDRH8lvq6rYVe0svCZXD5b06UPWQ==} - peerDependencies: - '@kevisual/auth': ^1.0.5 - '@kevisual/router': ^0.0.7 - '@kevisual/use-config': ^1.0.8 - ioredis: ^5.5.0 - pg: ^8.13.3 - sequelize: ^6.37.5 + '@kevisual/code-center-module@0.0.20': + resolution: {integrity: sha512-WFSB5iLnvc/RQ2NcO5xXTgkE1rDc39F9ezt0853ePq9kL9qOiOmzLWNBSN/0mN5rvPbwrTBajmEyuXv5MYfcWQ==} '@kevisual/load@0.0.6': resolution: {integrity: sha512-+3YTFehRcZ1haGel5DKYMUwmi5i6f2psyaPZlfkKU/cOXgkpwoG9/BEqPCnPjicKqqnksEpixVRkyHJ+5bjLVA==} @@ -146,8 +139,8 @@ packages: '@kevisual/logger@0.0.4': resolution: {integrity: sha512-+fpr92eokSxoGOW1SIRl/27lPuO+zyY+feR5o2Q4YCNlAdt2x64NwC/w8r/3NEC5QenLgd4K0azyKTI2mHbARw==} - '@kevisual/oss@0.0.11': - resolution: {integrity: sha512-oxC6KVTNeDUaoAAVHyNVhSg9JPj1FzwbP5PkYvTj2VHC3PvFtvG//m6Zii7yKpFv7itKzMuS7/9xDMdI5lPhaA==} + '@kevisual/oss@0.0.12': + resolution: {integrity: sha512-tYr242IwwRFaxTXk3P+7Absuy+7BlNXhPwUtFco7D3q8h7cNVGOFPh8UVQEFI3i0tRMSKB2i8X/jx/y8tP5eVQ==} '@kevisual/permission@0.0.3': resolution: {integrity: sha512-8JsA/5O5Ax/z+M+MYpFYdlioHE6jNmWMuFSokBWYs9CCAHNiSKMR01YLkoVDoPvncfH/Y8F5K/IEXRCbptuMNA==} @@ -157,8 +150,8 @@ packages: peerDependencies: '@kevisual/query': ^0.0.13 - '@kevisual/query@0.0.18': - resolution: {integrity: sha512-I2vHTu0I6AyD9PJyr+vxyp9jIJ6rd2EZqLVHTv/+zrVKVc2SS76Tg7aGNkmAFqqLSCB8kLLsmMGtSJU1Qb8VVg==} + '@kevisual/query@0.0.20': + resolution: {integrity: sha512-IpkQd1Pz50namxDNytLJpyR2CRLJWKTkmk68Fiw6CEkTXQDkdyBh2kIOIf7+Geu8quai/J9io3KjWzt17AeYdg==} '@kevisual/router@0.0.21': resolution: {integrity: sha512-XKTxbNO924cT18UOAGplWErZ+hMze8Y53F2jYCk18v4jsdsvjRho5uXXjJb6HSVsuITMtQR4R3rG0IcM3jkDKQ==} @@ -225,103 +218,103 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.41.0': - resolution: {integrity: sha512-KxN+zCjOYHGwCl4UCtSfZ6jrq/qi88JDUtiEFk8LELEHq2Egfc/FgW+jItZiOLRuQfb/3xJSgFuNPC9jzggX+A==} + '@rollup/rollup-android-arm-eabi@4.41.1': + resolution: {integrity: sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.41.0': - resolution: {integrity: sha512-yDvqx3lWlcugozax3DItKJI5j05B0d4Kvnjx+5mwiUpWramVvmAByYigMplaoAQ3pvdprGCTCE03eduqE/8mPQ==} + '@rollup/rollup-android-arm64@4.41.1': + resolution: {integrity: sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.41.0': - resolution: {integrity: sha512-2KOU574vD3gzcPSjxO0eyR5iWlnxxtmW1F5CkNOHmMlueKNCQkxR6+ekgWyVnz6zaZihpUNkGxjsYrkTJKhkaw==} + '@rollup/rollup-darwin-arm64@4.41.1': + resolution: {integrity: sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.41.0': - resolution: {integrity: sha512-gE5ACNSxHcEZyP2BA9TuTakfZvULEW4YAOtxl/A/YDbIir/wPKukde0BNPlnBiP88ecaN4BJI2TtAd+HKuZPQQ==} + '@rollup/rollup-darwin-x64@4.41.1': + resolution: {integrity: sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.41.0': - resolution: {integrity: sha512-GSxU6r5HnWij7FoSo7cZg3l5GPg4HFLkzsFFh0N/b16q5buW1NAWuCJ+HMtIdUEi6XF0qH+hN0TEd78laRp7Dg==} + '@rollup/rollup-freebsd-arm64@4.41.1': + resolution: {integrity: sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.41.0': - resolution: {integrity: sha512-KGiGKGDg8qLRyOWmk6IeiHJzsN/OYxO6nSbT0Vj4MwjS2XQy/5emsmtoqLAabqrohbgLWJ5GV3s/ljdrIr8Qjg==} + '@rollup/rollup-freebsd-x64@4.41.1': + resolution: {integrity: sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.41.0': - resolution: {integrity: sha512-46OzWeqEVQyX3N2/QdiU/CMXYDH/lSHpgfBkuhl3igpZiaB3ZIfSjKuOnybFVBQzjsLwkus2mjaESy8H41SzvA==} + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + resolution: {integrity: sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.41.0': - resolution: {integrity: sha512-lfgW3KtQP4YauqdPpcUZHPcqQXmTmH4nYU0cplNeW583CMkAGjtImw4PKli09NFi2iQgChk4e9erkwlfYem6Lg==} + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + resolution: {integrity: sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.41.0': - resolution: {integrity: sha512-nn8mEyzMbdEJzT7cwxgObuwviMx6kPRxzYiOl6o/o+ChQq23gfdlZcUNnt89lPhhz3BYsZ72rp0rxNqBSfqlqw==} + '@rollup/rollup-linux-arm64-gnu@4.41.1': + resolution: {integrity: sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.41.0': - resolution: {integrity: sha512-l+QK99je2zUKGd31Gh+45c4pGDAqZSuWQiuRFCdHYC2CSiO47qUWsCcenrI6p22hvHZrDje9QjwSMAFL3iwXwQ==} + '@rollup/rollup-linux-arm64-musl@4.41.1': + resolution: {integrity: sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-loongarch64-gnu@4.41.0': - resolution: {integrity: sha512-WbnJaxPv1gPIm6S8O/Wg+wfE/OzGSXlBMbOe4ie+zMyykMOeqmgD1BhPxZQuDqwUN+0T/xOFtL2RUWBspnZj3w==} + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + resolution: {integrity: sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==} cpu: [loong64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.41.0': - resolution: {integrity: sha512-eRDWR5t67/b2g8Q/S8XPi0YdbKcCs4WQ8vklNnUYLaSWF+Cbv2axZsp4jni6/j7eKvMLYCYdcsv8dcU+a6QNFg==} + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + resolution: {integrity: sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.41.0': - resolution: {integrity: sha512-TWrZb6GF5jsEKG7T1IHwlLMDRy2f3DPqYldmIhnA2DVqvvhY2Ai184vZGgahRrg8k9UBWoSlHv+suRfTN7Ua4A==} + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + resolution: {integrity: sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-musl@4.41.0': - resolution: {integrity: sha512-ieQljaZKuJpmWvd8gW87ZmSFwid6AxMDk5bhONJ57U8zT77zpZ/TPKkU9HpnnFrM4zsgr4kiGuzbIbZTGi7u9A==} + '@rollup/rollup-linux-riscv64-musl@4.41.1': + resolution: {integrity: sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.41.0': - resolution: {integrity: sha512-/L3pW48SxrWAlVsKCN0dGLB2bi8Nv8pr5S5ocSM+S0XCn5RCVCXqi8GVtHFsOBBCSeR+u9brV2zno5+mg3S4Aw==} + '@rollup/rollup-linux-s390x-gnu@4.41.1': + resolution: {integrity: sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.41.0': - resolution: {integrity: sha512-XMLeKjyH8NsEDCRptf6LO8lJk23o9wvB+dJwcXMaH6ZQbbkHu2dbGIUindbMtRN6ux1xKi16iXWu6q9mu7gDhQ==} + '@rollup/rollup-linux-x64-gnu@4.41.1': + resolution: {integrity: sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.41.0': - resolution: {integrity: sha512-m/P7LycHZTvSQeXhFmgmdqEiTqSV80zn6xHaQ1JSqwCtD1YGtwEK515Qmy9DcB2HK4dOUVypQxvhVSy06cJPEg==} + '@rollup/rollup-linux-x64-musl@4.41.1': + resolution: {integrity: sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.41.0': - resolution: {integrity: sha512-4yodtcOrFHpbomJGVEqZ8fzD4kfBeCbpsUy5Pqk4RluXOdsWdjLnjhiKy2w3qzcASWd04fp52Xz7JKarVJ5BTg==} + '@rollup/rollup-win32-arm64-msvc@4.41.1': + resolution: {integrity: sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.41.0': - resolution: {integrity: sha512-tmazCrAsKzdkXssEc65zIE1oC6xPHwfy9d5Ta25SRCDOZS+I6RypVVShWALNuU9bxIfGA0aqrmzlzoM5wO5SPQ==} + '@rollup/rollup-win32-ia32-msvc@4.41.1': + resolution: {integrity: sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.41.0': - resolution: {integrity: sha512-h1J+Yzjo/X+0EAvR2kIXJDuTuyT7drc+t2ALY0nIcGPbTatNOf0VWdhEA2Z4AAjv6X1NJV7SYo5oCTYRJhSlVA==} + '@rollup/rollup-win32-x64-msvc@4.41.1': + resolution: {integrity: sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==} cpu: [x64] os: [win32] @@ -367,8 +360,8 @@ packages: '@types/node@18.19.86': resolution: {integrity: sha512-fifKayi175wLyKyc5qUfyENhQ1dCNI1UNjp653d8kuYcPQN5JhX3dGuP/XmvPTg/xRBn1VTLpbmi+H/Mr7tLfQ==} - '@types/node@22.15.21': - resolution: {integrity: sha512-EV/37Td6c+MgKAbkcLG6vqZ2zEYHD7bvSrzqqs2RIhbA6w3x+Dqz8MZM3sP6kGTeLrdoOgKZe+Xja7tUB2DNkQ==} + '@types/node@22.15.27': + resolution: {integrity: sha512-5fF+eu5mwihV2BeVtX5vijhdaZOfkQTATrePEaXTcKqI16LhJ7gi2/Vhd9OZM0UojcdmiOCVg5rrax+i1MdoQQ==} '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -1020,30 +1013,33 @@ packages: resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==} engines: {node: '>=16'} - pg-cloudflare@1.1.1: - resolution: {integrity: sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==} + pg-cloudflare@1.2.5: + resolution: {integrity: sha512-OOX22Vt0vOSRrdoUPKJ8Wi2OpE/o/h9T8X1s4qSkCedbNah9ei2W2765be8iMVxQUsvgT7zIAT2eIa9fs5+vtg==} pg-connection-string@2.7.0: resolution: {integrity: sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==} + pg-connection-string@2.9.0: + resolution: {integrity: sha512-P2DEBKuvh5RClafLngkAuGe9OUlFV7ebu8w1kmaaOgPcpJd1RIFh7otETfI6hAR8YupOLFTY7nuvvIn7PLciUQ==} + pg-int8@1.0.1: resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} engines: {node: '>=4.0.0'} - pg-pool@3.7.1: - resolution: {integrity: sha512-xIOsFoh7Vdhojas6q3596mXFsR8nwBQBXX5JiV7p9buEVAGqYL4yFzclON5P9vFrpu1u7Zwl2oriyDa89n0wbw==} + pg-pool@3.10.0: + resolution: {integrity: sha512-DzZ26On4sQ0KmqnO34muPcmKbhrjmyiO4lCCR0VwEd7MjmiKf5NTg/6+apUEu0NF7ESa37CGzFxH513CoUmWnA==} peerDependencies: pg: '>=8.0' - pg-protocol@1.7.1: - resolution: {integrity: sha512-gjTHWGYWsEgy9MsY0Gp6ZJxV24IjDqdpTW7Eh0x+WfJLFsm/TJx1MzL6T0D88mBvkpxotCQ6TwW6N+Kko7lhgQ==} + pg-protocol@1.10.0: + resolution: {integrity: sha512-IpdytjudNuLv8nhlHs/UrVBhU0e78J0oIS/0AVdTbWxSOkFUVdsHC/NrorO6nXsQNDTT1kzDSOMJubBQviX18Q==} pg-types@2.2.0: resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} engines: {node: '>=4'} - pg@8.13.3: - resolution: {integrity: sha512-P6tPt9jXbL9HVu/SSRERNYaYG++MjnscnegFh9pPHihfoBSujsrka0hyuymMzeJKFWrcG8wvCKy8rCe8e5nDUQ==} + pg@8.16.0: + resolution: {integrity: sha512-7SKfdvP8CTNXjMUzfcVTaI+TDzBEeaUnVwiVGZQD1Hh33Kpev7liQba9uLd4CfN8r9mCVsD0JIpq03+Unpz+kg==} engines: {node: '>= 8.0.0'} peerDependencies: pg-native: '>=3.0.1' @@ -1133,8 +1129,8 @@ packages: retry-as-promised@7.1.1: resolution: {integrity: sha512-hMD7odLOt3LkTjcif8aRZqi/hybjpLNgSk5oF5FCowfCjok6LukpN2bDX7R5wDmbgBQFn7YoBxSagmtXHaJYJw==} - rollup@4.41.0: - resolution: {integrity: sha512-HqMFpUbWlf/tvcxBFNKnJyzc7Lk+XO3FGc3pbNBLqEbOz0gPLRgcrlS3UF4MfUrVlstOaP/q0kM6GVvi+LrLRg==} + rollup@4.41.1: + resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -1454,8 +1450,8 @@ packages: resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} engines: {node: '>= 14'} - zod@3.24.2: - resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==} + zod@3.25.42: + resolution: {integrity: sha512-PcALTLskaucbeHc41tU/xfjfhcz8z0GdhhDcSgrCTmSazUuqnYqiXO63M0QUBVwpBlsLsNVn5qHSC5Dw3KZvaQ==} snapshots: @@ -1474,20 +1470,30 @@ snapshots: '@kevisual/auth@1.0.5': {} - '@kevisual/code-center-module@0.0.18(@kevisual/auth@1.0.5)(@kevisual/router@0.0.21)(@kevisual/use-config@1.0.17(dotenv@16.4.7))(ioredis@5.6.1)(pg@8.13.3)(sequelize@6.37.7(pg@8.13.3))': + '@kevisual/code-center-module@0.0.20(dotenv@16.4.7)': dependencies: '@kevisual/auth': 1.0.5 '@kevisual/router': 0.0.21 '@kevisual/use-config': 1.0.17(dotenv@16.4.7) ioredis: 5.6.1 nanoid: 5.1.5 - pg: 8.13.3 - sequelize: 6.37.7(pg@8.13.3) + pg: 8.16.0 + sequelize: 6.37.7(pg@8.16.0) socket.io: 4.8.1 - zod: 3.24.2 + zod: 3.25.42 transitivePeerDependencies: - bufferutil + - dotenv + - ibm_db + - mariadb + - mysql2 + - oracledb + - pg-hstore + - pg-native + - snowflake-sdk + - sqlite3 - supports-color + - tedious - utf-8-validate '@kevisual/load@0.0.6': @@ -1496,17 +1502,17 @@ snapshots: '@kevisual/logger@0.0.4': {} - '@kevisual/oss@0.0.11': {} + '@kevisual/oss@0.0.12': {} '@kevisual/permission@0.0.3': {} - '@kevisual/query-config@0.0.2(@kevisual/query@0.0.18(@kevisual/ws@8.0.0)(zod@3.24.2))': + '@kevisual/query-config@0.0.2(@kevisual/query@0.0.20(@kevisual/ws@8.0.0)(zod@3.25.42))': dependencies: - '@kevisual/query': 0.0.18(@kevisual/ws@8.0.0)(zod@3.24.2) + '@kevisual/query': 0.0.20(@kevisual/ws@8.0.0)(zod@3.25.42) - '@kevisual/query@0.0.18(@kevisual/ws@8.0.0)(zod@3.24.2)': + '@kevisual/query@0.0.20(@kevisual/ws@8.0.0)(zod@3.25.42)': dependencies: - openai: 4.102.0(@kevisual/ws@8.0.0)(zod@3.24.2) + openai: 4.102.0(@kevisual/ws@8.0.0)(zod@3.25.42) transitivePeerDependencies: - encoding - ws @@ -1527,9 +1533,9 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@rollup/plugin-commonjs@28.0.3(rollup@4.41.0)': + '@rollup/plugin-commonjs@28.0.3(rollup@4.41.1)': dependencies: - '@rollup/pluginutils': 5.1.2(rollup@4.41.0) + '@rollup/pluginutils': 5.1.2(rollup@4.41.1) commondir: 1.0.1 estree-walker: 2.0.2 fdir: 6.4.0(picomatch@4.0.2) @@ -1537,110 +1543,110 @@ snapshots: magic-string: 0.30.11 picomatch: 4.0.2 optionalDependencies: - rollup: 4.41.0 + rollup: 4.41.1 - '@rollup/plugin-json@6.1.0(rollup@4.41.0)': + '@rollup/plugin-json@6.1.0(rollup@4.41.1)': dependencies: - '@rollup/pluginutils': 5.1.2(rollup@4.41.0) + '@rollup/pluginutils': 5.1.2(rollup@4.41.1) optionalDependencies: - rollup: 4.41.0 + rollup: 4.41.1 - '@rollup/plugin-node-resolve@16.0.1(rollup@4.41.0)': + '@rollup/plugin-node-resolve@16.0.1(rollup@4.41.1)': dependencies: - '@rollup/pluginutils': 5.1.2(rollup@4.41.0) + '@rollup/pluginutils': 5.1.2(rollup@4.41.1) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-module: 1.0.0 resolve: 1.22.8 optionalDependencies: - rollup: 4.41.0 + rollup: 4.41.1 - '@rollup/plugin-typescript@12.1.2(rollup@4.41.0)(tslib@2.8.1)(typescript@5.8.3)': + '@rollup/plugin-typescript@12.1.2(rollup@4.41.1)(tslib@2.8.1)(typescript@5.8.3)': dependencies: - '@rollup/pluginutils': 5.1.2(rollup@4.41.0) + '@rollup/pluginutils': 5.1.2(rollup@4.41.1) resolve: 1.22.8 typescript: 5.8.3 optionalDependencies: - rollup: 4.41.0 + rollup: 4.41.1 tslib: 2.8.1 - '@rollup/pluginutils@5.1.2(rollup@4.41.0)': + '@rollup/pluginutils@5.1.2(rollup@4.41.1)': dependencies: '@types/estree': 1.0.6 estree-walker: 2.0.2 picomatch: 4.0.2 optionalDependencies: - rollup: 4.41.0 + rollup: 4.41.1 - '@rollup/rollup-android-arm-eabi@4.41.0': + '@rollup/rollup-android-arm-eabi@4.41.1': optional: true - '@rollup/rollup-android-arm64@4.41.0': + '@rollup/rollup-android-arm64@4.41.1': optional: true - '@rollup/rollup-darwin-arm64@4.41.0': + '@rollup/rollup-darwin-arm64@4.41.1': optional: true - '@rollup/rollup-darwin-x64@4.41.0': + '@rollup/rollup-darwin-x64@4.41.1': optional: true - '@rollup/rollup-freebsd-arm64@4.41.0': + '@rollup/rollup-freebsd-arm64@4.41.1': optional: true - '@rollup/rollup-freebsd-x64@4.41.0': + '@rollup/rollup-freebsd-x64@4.41.1': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.41.0': + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.41.0': + '@rollup/rollup-linux-arm-musleabihf@4.41.1': optional: true - '@rollup/rollup-linux-arm64-gnu@4.41.0': + '@rollup/rollup-linux-arm64-gnu@4.41.1': optional: true - '@rollup/rollup-linux-arm64-musl@4.41.0': + '@rollup/rollup-linux-arm64-musl@4.41.1': optional: true - '@rollup/rollup-linux-loongarch64-gnu@4.41.0': + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.41.0': + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.41.0': + '@rollup/rollup-linux-riscv64-gnu@4.41.1': optional: true - '@rollup/rollup-linux-riscv64-musl@4.41.0': + '@rollup/rollup-linux-riscv64-musl@4.41.1': optional: true - '@rollup/rollup-linux-s390x-gnu@4.41.0': + '@rollup/rollup-linux-s390x-gnu@4.41.1': optional: true - '@rollup/rollup-linux-x64-gnu@4.41.0': + '@rollup/rollup-linux-x64-gnu@4.41.1': optional: true - '@rollup/rollup-linux-x64-musl@4.41.0': + '@rollup/rollup-linux-x64-musl@4.41.1': optional: true - '@rollup/rollup-win32-arm64-msvc@4.41.0': + '@rollup/rollup-win32-arm64-msvc@4.41.1': optional: true - '@rollup/rollup-win32-ia32-msvc@4.41.0': + '@rollup/rollup-win32-ia32-msvc@4.41.1': optional: true - '@rollup/rollup-win32-x64-msvc@4.41.0': + '@rollup/rollup-win32-x64-msvc@4.41.1': optional: true '@socket.io/component-emitter@3.1.2': {} '@types/busboy@1.5.4': dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 '@types/cors@2.8.17': dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 '@types/debug@4.1.12': dependencies: @@ -1652,7 +1658,7 @@ snapshots: '@types/http-proxy@1.17.16': dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 '@types/lodash-es@4.17.12': dependencies: @@ -1666,18 +1672,18 @@ snapshots: '@types/node-fetch@2.6.12': dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 form-data: 4.0.2 '@types/node-forge@1.3.11': dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 '@types/node@18.19.86': dependencies: undici-types: 5.26.5 - '@types/node@22.15.21': + '@types/node@22.15.27': dependencies: undici-types: 6.21.0 @@ -1686,13 +1692,13 @@ snapshots: '@types/send@0.17.4': dependencies: '@types/mime': 1.3.5 - '@types/node': 22.15.21 + '@types/node': 22.15.27 '@types/validator@13.12.2': {} '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 '@zxing/text-encoding@0.9.0': optional: true @@ -1951,7 +1957,7 @@ snapshots: engine.io@6.6.4: dependencies: '@types/cors': 2.8.17 - '@types/node': 22.15.21 + '@types/node': 22.15.27 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -2295,7 +2301,7 @@ snapshots: dependencies: ee-first: 1.1.1 - openai@4.102.0(@kevisual/ws@8.0.0)(zod@3.24.2): + openai@4.102.0(@kevisual/ws@8.0.0)(zod@3.25.42): dependencies: '@types/node': 18.19.86 '@types/node-fetch': 2.6.12 @@ -2306,7 +2312,7 @@ snapshots: node-fetch: 2.7.0 optionalDependencies: ws: '@kevisual/ws@8.0.0' - zod: 3.24.2 + zod: 3.25.42 transitivePeerDependencies: - encoding @@ -2323,18 +2329,20 @@ snapshots: path-to-regexp@8.2.0: {} - pg-cloudflare@1.1.1: + pg-cloudflare@1.2.5: optional: true pg-connection-string@2.7.0: {} + pg-connection-string@2.9.0: {} + pg-int8@1.0.1: {} - pg-pool@3.7.1(pg@8.13.3): + pg-pool@3.10.0(pg@8.16.0): dependencies: - pg: 8.13.3 + pg: 8.16.0 - pg-protocol@1.7.1: {} + pg-protocol@1.10.0: {} pg-types@2.2.0: dependencies: @@ -2344,15 +2352,15 @@ snapshots: postgres-date: 1.0.7 postgres-interval: 1.2.0 - pg@8.13.3: + pg@8.16.0: dependencies: - pg-connection-string: 2.7.0 - pg-pool: 3.7.1(pg@8.13.3) - pg-protocol: 1.7.1 + pg-connection-string: 2.9.0 + pg-pool: 3.10.0(pg@8.16.0) + pg-protocol: 1.10.0 pg-types: 2.2.0 pgpass: 1.0.5 optionalDependencies: - pg-cloudflare: 1.1.1 + pg-cloudflare: 1.2.5 pgpass@1.0.5: dependencies: @@ -2435,30 +2443,30 @@ snapshots: retry-as-promised@7.1.1: {} - rollup@4.41.0: + rollup@4.41.1: dependencies: '@types/estree': 1.0.7 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.41.0 - '@rollup/rollup-android-arm64': 4.41.0 - '@rollup/rollup-darwin-arm64': 4.41.0 - '@rollup/rollup-darwin-x64': 4.41.0 - '@rollup/rollup-freebsd-arm64': 4.41.0 - '@rollup/rollup-freebsd-x64': 4.41.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.41.0 - '@rollup/rollup-linux-arm-musleabihf': 4.41.0 - '@rollup/rollup-linux-arm64-gnu': 4.41.0 - '@rollup/rollup-linux-arm64-musl': 4.41.0 - '@rollup/rollup-linux-loongarch64-gnu': 4.41.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.41.0 - '@rollup/rollup-linux-riscv64-gnu': 4.41.0 - '@rollup/rollup-linux-riscv64-musl': 4.41.0 - '@rollup/rollup-linux-s390x-gnu': 4.41.0 - '@rollup/rollup-linux-x64-gnu': 4.41.0 - '@rollup/rollup-linux-x64-musl': 4.41.0 - '@rollup/rollup-win32-arm64-msvc': 4.41.0 - '@rollup/rollup-win32-ia32-msvc': 4.41.0 - '@rollup/rollup-win32-x64-msvc': 4.41.0 + '@rollup/rollup-android-arm-eabi': 4.41.1 + '@rollup/rollup-android-arm64': 4.41.1 + '@rollup/rollup-darwin-arm64': 4.41.1 + '@rollup/rollup-darwin-x64': 4.41.1 + '@rollup/rollup-freebsd-arm64': 4.41.1 + '@rollup/rollup-freebsd-x64': 4.41.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.41.1 + '@rollup/rollup-linux-arm-musleabihf': 4.41.1 + '@rollup/rollup-linux-arm64-gnu': 4.41.1 + '@rollup/rollup-linux-arm64-musl': 4.41.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.41.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-musl': 4.41.1 + '@rollup/rollup-linux-s390x-gnu': 4.41.1 + '@rollup/rollup-linux-x64-gnu': 4.41.1 + '@rollup/rollup-linux-x64-musl': 4.41.1 + '@rollup/rollup-win32-arm64-msvc': 4.41.1 + '@rollup/rollup-win32-ia32-msvc': 4.41.1 + '@rollup/rollup-win32-x64-msvc': 4.41.1 fsevents: 2.3.3 rxjs@7.8.2: @@ -2502,7 +2510,7 @@ snapshots: sequelize-pool@7.1.0: {} - sequelize@6.37.7(pg@8.13.3): + sequelize@6.37.7(pg@8.16.0): dependencies: '@types/debug': 4.1.12 '@types/validator': 13.12.2 @@ -2521,7 +2529,7 @@ snapshots: validator: 13.12.0 wkx: 0.5.0 optionalDependencies: - pg: 8.13.3 + pg: 8.16.0 transitivePeerDependencies: - supports-color @@ -2733,7 +2741,7 @@ snapshots: wkx@0.5.0: dependencies: - '@types/node': 22.15.21 + '@types/node': 22.15.27 wrap-ansi@7.0.0: dependencies: @@ -2778,4 +2786,4 @@ snapshots: compress-commons: 6.0.2 readable-stream: 4.7.0 - zod@3.24.2: {} + zod@3.25.42: {} diff --git a/src/module/index.ts b/src/module/index.ts index 35a086b..fa3650b 100644 --- a/src/module/index.ts +++ b/src/module/index.ts @@ -1,5 +1,6 @@ import { getDNS, isIpv4OrIpv6, isLocalhost } from '@/utils/dns.ts'; import http from 'http'; +import https from 'https'; import { UserApp } from './get-user-app.ts'; import { config, fileStore } from '../module/config.ts'; import path from 'path'; @@ -83,8 +84,8 @@ export const handleRequest = async (req: http.IncomingMessage, res: http.ServerR // 提取req的headers中的非HOST的header const headers = Object.keys(req.headers).filter((item) => item && item.toLowerCase() !== 'host'); const host = req.headers['host']; - console.log('host', host); - console.log('headers', headers); + logger.info('proxy host', host); + logger.info('headers', headers); headers.forEach((item) => { header[item] = req.headers[item]; @@ -101,8 +102,16 @@ export const handleRequest = async (req: http.IncomingMessage, res: http.ServerR // @ts-ignore options.port = _u.port; } + logger.info('proxy options', options); + const isHttps = _u.protocol === 'https:'; + const protocol = isHttps ? https : http; + if (isHttps) { + // 不验证https + // @ts-ignore + options.rejectUnauthorized = false; + } // 创建代理请求 - const proxyReq = http.request(options, (proxyRes) => { + const proxyReq = protocol.request(options, (proxyRes) => { // 将代理服务器的响应头和状态码返回给客户端 res.writeHead(proxyRes.statusCode, proxyRes.headers); // 将代理响应流写入客户端响应 @@ -110,7 +119,7 @@ export const handleRequest = async (req: http.IncomingMessage, res: http.ServerR }); // 处理代理请求的错误事件 proxyReq.on('error', (err) => { - console.error(`Proxy request error: ${err.message}`); + logger.error(`Proxy request error: ${err.message}`); res.writeHead(500, { 'Content-Type': 'text/plain' }); res.write(`Proxy request error: ${err.message}`); }); diff --git a/src/module/proxy/ai-proxy.ts b/src/module/proxy/ai-proxy.ts index 17e2d28..4801194 100644 --- a/src/module/proxy/ai-proxy.ts +++ b/src/module/proxy/ai-proxy.ts @@ -88,6 +88,7 @@ const getAiProxy = async (req: IncomingMessage, res: ServerResponse, opts: Proxy const stat = await oss.statObject(objectName); if (!stat) { createNotFoundPage('Invalid proxy url'); + logger.debug('no stat', objectName, owner, req.url); return true; } const permissionInstance = new UserPermission({ permission: stat.metaData as Permission, owner: owner });