diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ad75a42..25e7581 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -29,20 +29,16 @@ jobs: - uses: oven-sh/setup-bun@v2 - run: pnpm install - run: pnpm build - - run: | + - run: bunx kksh@latest verify --publish + - name: Check if version is already published + run: | + PACKAGE_VERSION=$(node -p "require('./package.json').version") PACKAGE_NAME=$(jq -r '.name' package.json) - PACKAGE_VERSION=$(jq -r '.version' package.json) - - # Get the version from npm registry - REGISTRY_VERSION=$(npm show "$PACKAGE_NAME" version) - - # Compare versions - if [ "$PACKAGE_VERSION" == "$REGISTRY_VERSION" ]; then - echo "Version $PACKAGE_VERSION already exists in the npm registry." - exit 0 - else - echo "Version $PACKAGE_VERSION does not exist in the npm registry. Proceeding..." - npm publish --provenance --access public - fi + npm view $PACKAGE_NAME@$PACKAGE_VERSION + continue-on-error: true + id: check_version + - name: Publish + if: steps.check_version.outcome != 'success' + run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 4eef45a..0f3e494 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "kunkun-ext-sqlite-browser", "license": "MIT", "repository": "https://github.com/kunkunsh/kunkun-ext-sqlite-browser", - "version": "0.0.5", + "version": "0.0.6", "kunkun": { "name": "SQLite Browser", "shortDescription": "SQLite Browser", @@ -66,7 +66,7 @@ "format": "prettier --write ." }, "dependencies": { - "@kksh/api": "^0.0.52", + "@kksh/api": "^0.1.1", "@kksh/svelte5": "0.1.10", "@tanstack/table-core": "^8.20.5", "clsx": "^2.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a48a281..0397c7d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@kksh/api': - specifier: ^0.0.52 - version: 0.0.52(axios@1.7.9)(svelte@5.2.9)(typescript@5.7.2) + specifier: ^0.1.1 + version: 0.1.1(axios@1.7.9)(svelte@5.2.9)(typescript@5.7.2) '@kksh/svelte5': specifier: 0.1.10 version: 0.1.10(lucide-svelte@0.460.1(svelte@5.2.9))(svelte-sonner@0.3.28(svelte@5.2.9))(svelte@5.2.9)(sveltekit-superforms@2.20.1(@sveltejs/kit@2.8.5(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.9)(vite@5.4.11(@types/node@22.10.7)))(svelte@5.2.9)(vite@5.4.11(@types/node@22.10.7)))(@types/json-schema@7.0.15)(svelte@5.2.9)(typescript@5.7.2)) @@ -601,8 +601,8 @@ packages: '@jsdevtools/ono@7.1.3': resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} - '@kksh/api@0.0.52': - resolution: {integrity: sha512-ss1cGJaO58iGkUcuBCcKCaepX4iquf+78VT8wh0l409proGgN68cTPpSPECuK9r3BrqnIocTOtn9nDtfHdxj+A==} + '@kksh/api@0.1.1': + resolution: {integrity: sha512-/9JLyOSAK4/dZ74LKzbqJ8LRT0otwtecS+I/k1Bs25m+DfYX8ONaWUwuwc5yufus6vqNbfAF/PHOCEs0aAE39A==} '@kksh/svelte5@0.1.10': resolution: {integrity: sha512-A+1EaLZ3G1L3D4iYvanEp4zBBthGzJPRSAPgh5CT6JsbbQjCRX2SWY/JE7U3YpiPNne7wTQornp8gZVKorW31Q==} @@ -626,6 +626,58 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} + '@octokit/auth-token@5.1.2': + resolution: {integrity: sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==} + engines: {node: '>= 18'} + + '@octokit/core@6.1.3': + resolution: {integrity: sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==} + engines: {node: '>= 18'} + + '@octokit/endpoint@10.1.2': + resolution: {integrity: sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==} + engines: {node: '>= 18'} + + '@octokit/graphql@8.2.0': + resolution: {integrity: sha512-gejfDywEml/45SqbWTWrhfwvLBrcGYhOn50sPOjIeVvH6i7D16/9xcFA8dAJNp2HMcd+g4vru41g4E2RBiZvfQ==} + engines: {node: '>= 18'} + + '@octokit/openapi-types@23.0.1': + resolution: {integrity: sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==} + + '@octokit/plugin-paginate-rest@11.4.0': + resolution: {integrity: sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-request-log@5.3.1': + resolution: {integrity: sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-rest-endpoint-methods@13.3.0': + resolution: {integrity: sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/request-error@6.1.6': + resolution: {integrity: sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==} + engines: {node: '>= 18'} + + '@octokit/request@9.2.0': + resolution: {integrity: sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==} + engines: {node: '>= 18'} + + '@octokit/rest@21.1.0': + resolution: {integrity: sha512-93iLxcKDJboUpmnUyeJ6cRIi7z7cqTZT1K7kRK4LobGxwTwpsa+2tQQbRQNGy7IFDEAmrtkf4F4wBj3D5rVlJQ==} + engines: {node: '>= 18'} + + '@octokit/types@13.8.0': + resolution: {integrity: sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==} + '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -1097,6 +1149,9 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + before-after-hook@3.0.2: + resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==} + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -1387,6 +1442,9 @@ packages: resolution: {integrity: sha512-u/MudsoQEgBUZgR5N1v87vEgybeVYus9VnDVaIkxkkGP2jt54naghQ3PCQHJiogS8U/GavZCUPFfx3Xkp+NaHw==} engines: {node: '>=8.0.0'} + fast-content-type-parse@2.0.1: + resolution: {integrity: sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1664,15 +1722,10 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - kkrpc@0.0.12: - resolution: {integrity: sha512-PBk4AhGfkesIdAwmIoj7dHHIp7qN97XT4yr5Rl7h2WL79gxWQVgZRJYLt7Gb17GoLDh991rnL85mhCoPG5VC/Q==} + kkrpc@0.1.1: + resolution: {integrity: sha512-zS75NGmDbMEQNJ7Y1XVNVrLmfuCY94jMCrIcNFHoT+5qLaTzpK1lokXUD9VYrRVMQMwAx8U9BgKjdiS0eDKZHA==} peerDependencies: - typescript: ^5.6.3 - - kkrpc@0.0.13: - resolution: {integrity: sha512-66ohRjbw2fLO45L1PMkGTP6KHk/Wa7nKJL6r4U/VCBsY+HoIncEdscSQcUgIdv2Da66/UyIC6UMWMvwIqXCZCg==} - peerDependencies: - typescript: ^5.6.3 + typescript: ^5.0.0 kleur@4.1.5: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} @@ -2319,8 +2372,8 @@ packages: tanu@0.1.13: resolution: {integrity: sha512-UbRmX7ccZ4wMVOY/Uw+7ji4VOkEYSYJG1+I4qzbnn4qh/jtvVbrm6BFnF12NQQ4+jGv21wKmjb1iFyUSVnBWcQ==} - tauri-api-adapter@0.3.16: - resolution: {integrity: sha512-AoKWtRyhTPFaclM/XOtCSQg4OPmr/ssJqY209W+ELd4C11IpWyTVZ/Yfd7cCL03kB4OfvVTDWldA7Bzc7E72dg==} + tauri-api-adapter@0.3.20: + resolution: {integrity: sha512-tRK25c1d34ZRd5CJAXfrBeTr4eGh0UPshLac1DBm4TBF+EZ1TFCwLpvUj9DQ3VS2gHKA9fNc4J5pNpHh3OD4Og==} peerDependencies: typescript: ^5.0.0 @@ -2432,6 +2485,9 @@ packages: undici-types@6.20.0: resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} + universal-user-agent@7.0.2: + resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==} + universalify@2.0.1: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} @@ -2594,9 +2650,6 @@ packages: peerDependencies: zod: ^3.23.3 - zod@3.23.8: - resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} - zod@3.24.1: resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==} @@ -3021,9 +3074,10 @@ snapshots: '@jsdevtools/ono@7.1.3': {} - '@kksh/api@0.0.52(axios@1.7.9)(svelte@5.2.9)(typescript@5.7.2)': + '@kksh/api@0.1.1(axios@1.7.9)(svelte@5.2.9)(typescript@5.7.2)': dependencies: '@huakunshen/jsr-client': 0.1.5(axios@1.7.9)(typescript@5.7.2) + '@octokit/rest': 21.1.0 '@tauri-apps/api': 2.2.0 '@tauri-apps/cli': 2.2.4 '@tauri-apps/plugin-deep-link': 2.2.0 @@ -3039,13 +3093,13 @@ snapshots: '@tauri-apps/plugin-store': 2.2.0 '@tauri-apps/plugin-updater': 2.3.1 '@tauri-apps/plugin-upload': 2.2.1 - kkrpc: 0.0.13(typescript@5.7.2) + kkrpc: 0.1.1(typescript@5.7.2) lodash: 4.17.21 minimatch: 10.0.1 node-fetch: 3.3.2 semver: 7.6.3 svelte-sonner: 0.3.28(svelte@5.2.9) - tauri-api-adapter: 0.3.16(typescript@5.7.2) + tauri-api-adapter: 0.3.20(typescript@5.7.2) tauri-plugin-network-api: 2.0.5(typescript@5.7.2) tauri-plugin-shellx-api: 2.0.14 tauri-plugin-system-info-api: 2.0.8(typescript@5.7.2) @@ -3095,6 +3149,68 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 + '@octokit/auth-token@5.1.2': {} + + '@octokit/core@6.1.3': + dependencies: + '@octokit/auth-token': 5.1.2 + '@octokit/graphql': 8.2.0 + '@octokit/request': 9.2.0 + '@octokit/request-error': 6.1.6 + '@octokit/types': 13.8.0 + before-after-hook: 3.0.2 + universal-user-agent: 7.0.2 + + '@octokit/endpoint@10.1.2': + dependencies: + '@octokit/types': 13.8.0 + universal-user-agent: 7.0.2 + + '@octokit/graphql@8.2.0': + dependencies: + '@octokit/request': 9.2.0 + '@octokit/types': 13.8.0 + universal-user-agent: 7.0.2 + + '@octokit/openapi-types@23.0.1': {} + + '@octokit/plugin-paginate-rest@11.4.0(@octokit/core@6.1.3)': + dependencies: + '@octokit/core': 6.1.3 + '@octokit/types': 13.8.0 + + '@octokit/plugin-request-log@5.3.1(@octokit/core@6.1.3)': + dependencies: + '@octokit/core': 6.1.3 + + '@octokit/plugin-rest-endpoint-methods@13.3.0(@octokit/core@6.1.3)': + dependencies: + '@octokit/core': 6.1.3 + '@octokit/types': 13.8.0 + + '@octokit/request-error@6.1.6': + dependencies: + '@octokit/types': 13.8.0 + + '@octokit/request@9.2.0': + dependencies: + '@octokit/endpoint': 10.1.2 + '@octokit/request-error': 6.1.6 + '@octokit/types': 13.8.0 + fast-content-type-parse: 2.0.1 + universal-user-agent: 7.0.2 + + '@octokit/rest@21.1.0': + dependencies: + '@octokit/core': 6.1.3 + '@octokit/plugin-paginate-rest': 11.4.0(@octokit/core@6.1.3) + '@octokit/plugin-request-log': 5.3.1(@octokit/core@6.1.3) + '@octokit/plugin-rest-endpoint-methods': 13.3.0(@octokit/core@6.1.3) + + '@octokit/types@13.8.0': + dependencies: + '@octokit/openapi-types': 23.0.1 + '@pkgjs/parseargs@0.11.0': optional: true @@ -3554,6 +3670,8 @@ snapshots: balanced-match@1.0.2: {} + before-after-hook@3.0.2: {} + binary-extensions@2.3.0: {} bits-ui@1.0.0-next.60(svelte@5.2.9): @@ -3906,6 +4024,8 @@ snapshots: pure-rand: 6.1.0 optional: true + fast-content-type-parse@2.0.1: {} + fast-deep-equal@3.1.3: {} fast-glob@3.3.2: @@ -4169,15 +4289,7 @@ snapshots: dependencies: json-buffer: 3.0.1 - kkrpc@0.0.12(typescript@5.7.2): - dependencies: - typescript: 5.7.2 - ws: 8.18.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - kkrpc@0.0.13(typescript@5.7.2): + kkrpc@0.1.1(typescript@5.7.2): dependencies: typescript: 5.7.2 ws: 8.18.0 @@ -4741,8 +4853,8 @@ snapshots: superstruct: 2.0.2 valibot: 1.0.0-beta.8(typescript@5.7.2) yup: 1.4.0 - zod: 3.23.8 - zod-to-json-schema: 3.23.5(zod@3.23.8) + zod: 3.24.1 + zod-to-json-schema: 3.23.5(zod@3.24.1) transitivePeerDependencies: - '@types/json-schema' - typescript @@ -4786,7 +4898,7 @@ snapshots: tslib: 2.8.1 typescript: 4.9.5 - tauri-api-adapter@0.3.16(typescript@5.7.2): + tauri-api-adapter@0.3.20(typescript@5.7.2): dependencies: '@tauri-apps/api': 2.2.0 '@tauri-apps/plugin-dialog': 2.2.0 @@ -4797,7 +4909,7 @@ snapshots: '@tauri-apps/plugin-os': 2.2.0 '@tauri-apps/plugin-shell': 2.2.0 '@tauri-apps/plugin-upload': 2.2.1 - kkrpc: 0.0.12(typescript@5.7.2) + kkrpc: 0.1.1(typescript@5.7.2) rimraf: 6.0.1 shx: 0.3.4 tauri-plugin-clipboard-api: 2.1.11(typescript@5.7.2) @@ -4919,6 +5031,8 @@ snapshots: undici-types@6.20.0: {} + universal-user-agent@7.0.2: {} + universalify@2.0.1: {} update-browserslist-db@1.1.1(browserslist@4.24.2): @@ -5019,12 +5133,9 @@ snapshots: zimmerframe@1.1.2: {} - zod-to-json-schema@3.23.5(zod@3.23.8): + zod-to-json-schema@3.23.5(zod@3.24.1): dependencies: - zod: 3.23.8 - optional: true - - zod@3.23.8: + zod: 3.24.1 optional: true zod@3.24.1: {} diff --git a/src/lib/components/ThemeCustomizer.svelte b/src/lib/components/ThemeCustomizer.svelte index d7b86b2..f36ebbf 100644 --- a/src/lib/components/ThemeCustomizer.svelte +++ b/src/lib/components/ThemeCustomizer.svelte @@ -1,6 +1,6 @@