diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37e60d83..23e9828b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,5 +40,8 @@ jobs: - name: Install dependencies run: pnpm install + - name: Lint for TypeScript errors + run: pnpm lint + - name: Build for production run: pnpm build \ No newline at end of file diff --git a/package.json b/package.json index 25322a9d..4a29f25b 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "serve": "python scripts/serve.py", "dev": "python scripts/dev.py", "test": "vitest", + "lint": "vue-tsc --noEmit", "coverage": "vitest run --coverage", "build": "python scripts/build.py", "pluginBuild": "python scripts/plugin_build.py", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c87b9725..2456dbb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -246,22 +246,22 @@ packages: '@aws-crypto/util@5.2.0': resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} - '@aws-sdk/client-s3@3.686.0': - resolution: {integrity: sha512-FE/xDZ529Xr+pOyLk8Ilc6sabb2b/K+QgSqS7ZsKcRuuHcKm6/h9tU1/U/F908IFiLmi3pI9i7Jl9Uoj7XlPmw==} + '@aws-sdk/client-s3@3.687.0': + resolution: {integrity: sha512-2IoaVAd7HCIDhfeTTrk8CAosEVqnQig47Tra2uOBEyzpcCFQLmcY57/sbHCpJ3ntnU8see53q0bQ+fdew4MGLA==} engines: {node: '>=16.0.0'} - '@aws-sdk/client-sso-oidc@3.686.0': - resolution: {integrity: sha512-bV8yw1tpEj9WOVEnIJTcHPmTqikGccvh9RCg9ohc5DVKLajt/pUF4b+8dDyqNrEijUqlpDDwpSnh1GFhfe298A==} + '@aws-sdk/client-sso-oidc@3.687.0': + resolution: {integrity: sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==} engines: {node: '>=16.0.0'} peerDependencies: - '@aws-sdk/client-sts': ^3.686.0 + '@aws-sdk/client-sts': ^3.687.0 - '@aws-sdk/client-sso@3.686.0': - resolution: {integrity: sha512-D8huL2BSHNP9QdQrqPcx4DCJXcG/vrPimNbymgCBgnYyS1HNs11Hu27ZPrbWCZFC8n/bvfXGXOhm8WAHOi4Vtw==} + '@aws-sdk/client-sso@3.687.0': + resolution: {integrity: sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==} engines: {node: '>=16.0.0'} - '@aws-sdk/client-sts@3.686.0': - resolution: {integrity: sha512-WVyOYdK3w7RhK6UrA2MY8KPIbcZ88BGIoKmRhcOXdIUC8CLL1UIECgdRthFXOU+MBqDPFS+VeF+COk0CpRhE8Q==} + '@aws-sdk/client-sts@3.687.0': + resolution: {integrity: sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==} engines: {node: '>=16.0.0'} '@aws-sdk/core@3.686.0': @@ -276,22 +276,22 @@ packages: resolution: {integrity: sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==} engines: {node: '>=16.0.0'} - '@aws-sdk/credential-provider-ini@3.686.0': - resolution: {integrity: sha512-90yr47QsduNiuVizMaJ2GctXZfp/z6s9eSk8ryMxMEJ2zJtaQHmJXIxaNnXj5Kh7V+HhCK7rYu58eyhZvz2Seg==} + '@aws-sdk/credential-provider-ini@3.687.0': + resolution: {integrity: sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==} engines: {node: '>=16.0.0'} peerDependencies: - '@aws-sdk/client-sts': ^3.686.0 + '@aws-sdk/client-sts': ^3.687.0 - '@aws-sdk/credential-provider-node@3.686.0': - resolution: {integrity: sha512-d5etJJD5rE3ALxrZag80EuFYI+tmJrS4E4dvFNRCosVFKvIC89VVpVY0W+OaA0J+D4FD3OzBwxan31BQAW3IyA==} + '@aws-sdk/credential-provider-node@3.687.0': + resolution: {integrity: sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==} engines: {node: '>=16.0.0'} '@aws-sdk/credential-provider-process@3.686.0': resolution: {integrity: sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==} engines: {node: '>=16.0.0'} - '@aws-sdk/credential-provider-sso@3.686.0': - resolution: {integrity: sha512-bGDFRcqpGUe2YBL5gmRZTLcxGwbtFd916JsdqmNgJwhhlOXPF6nqjGil5ZYruS3AMPy0BMntnG0Mvn/ZbusT/A==} + '@aws-sdk/credential-provider-sso@3.687.0': + resolution: {integrity: sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==} engines: {node: '>=16.0.0'} '@aws-sdk/credential-provider-web-identity@3.686.0': @@ -308,8 +308,8 @@ packages: resolution: {integrity: sha512-5yYqIbyhLhH29vn4sHiTj7sU6GttvLMk3XwCmBXjo2k2j3zHqFUwh9RyFGF9VY6Z392Drf/E/cl+qOGypwULpg==} engines: {node: '>=16.0.0'} - '@aws-sdk/middleware-flexible-checksums@3.686.0': - resolution: {integrity: sha512-S3bRlsu6p1yRBNqfFTJ4qOM0ybkBAggG0ZCxF+thzFFlyDCjfb46sA6SczwHimKBpMVXJr/XMvbWdfpW0DXsqA==} + '@aws-sdk/middleware-flexible-checksums@3.687.0': + resolution: {integrity: sha512-hsEr3eiJs7gOzj9nDMCMfhLkoYv4Z8m7fbic63TkeyimXvsHycqqF6PX0TkPykwa1ueyxVpz0vtO5u1rlucN2w==} engines: {node: '>=16.0.0'} '@aws-sdk/middleware-host-header@3.686.0': @@ -328,28 +328,28 @@ packages: resolution: {integrity: sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==} engines: {node: '>=16.0.0'} - '@aws-sdk/middleware-sdk-s3@3.686.0': - resolution: {integrity: sha512-nQ38oBZD2UJLt+N2hPgeZju8Vz9WvfOYE0ao4cGCSWwcUI72Tx162GxC+VK04V7krYQkmwWtcdtzZD40rMWdgw==} + '@aws-sdk/middleware-sdk-s3@3.687.0': + resolution: {integrity: sha512-YGHYqiyRiNNucmvLrfx3QxIkjSDWR/+cc72bn0lPvqFUQBRHZgmYQLxVYrVZSmRzzkH2FQ1HsZcXhOafLbq4vQ==} engines: {node: '>=16.0.0'} '@aws-sdk/middleware-ssec@3.686.0': resolution: {integrity: sha512-zJXml/CpVHFUdlGQqja87vNQ3rPB5SlDbfdwxlj1KBbjnRRwpBtxxmOlWRShg8lnVV6aIMGv95QmpIFy4ayqnQ==} engines: {node: '>=16.0.0'} - '@aws-sdk/middleware-user-agent@3.686.0': - resolution: {integrity: sha512-/GRU68H5J66OD2a/RtX5s2ECtXTlMq6NneLlzcx0mIWnZ2VRMS2vFW2j2jrBEPJ5Y5us1/lK/fbun6gNo3qh7Q==} + '@aws-sdk/middleware-user-agent@3.687.0': + resolution: {integrity: sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==} engines: {node: '>=16.0.0'} '@aws-sdk/region-config-resolver@3.686.0': resolution: {integrity: sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==} engines: {node: '>=16.0.0'} - '@aws-sdk/s3-request-presigner@3.686.0': - resolution: {integrity: sha512-T/Xeu9BIP4pXLdO3GEElJbvMWGV7Bt3rjF0/Z0HYuIFcIX8/178GU9GS9eH8dZzFouUIf9a2yoh+E5mNk1lInw==} + '@aws-sdk/s3-request-presigner@3.687.0': + resolution: {integrity: sha512-/fX3F4nYjVEgdlVamsb2tDgnFA5dtzxkeN+hH91e+ZoBMJBow+FUb2EEtjloreGUynPx6E00UxdDXIKWmt99lA==} engines: {node: '>=16.0.0'} - '@aws-sdk/signature-v4-multi-region@3.686.0': - resolution: {integrity: sha512-/e6nLBVSBXd2QC9hXLK7ka4pw5V1TlVg0VhoRIRspWxVmWmyQykyymAq0Z1kvg+D3Y6K8UiB2nE0QAsNqowPOA==} + '@aws-sdk/signature-v4-multi-region@3.687.0': + resolution: {integrity: sha512-vdOQHCRHJPX9mT8BM6xOseazHD6NodvHl9cyF5UjNtLn+gERRJEItIA9hf0hlt62odGD8Fqp+rFRuqdmbNkcNw==} engines: {node: '>=16.0.0'} '@aws-sdk/token-providers@3.686.0': @@ -381,8 +381,8 @@ packages: '@aws-sdk/util-user-agent-browser@3.686.0': resolution: {integrity: sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==} - '@aws-sdk/util-user-agent-node@3.686.0': - resolution: {integrity: sha512-XXUhZPeacJt5BmWc0qNXA4/yyQGXPmFcTOFe5aqXuZbhtTCNVJ0fPQHFip37iGSHCg8eAFykiBn9W8hD4swolQ==} + '@aws-sdk/util-user-agent-node@3.687.0': + resolution: {integrity: sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==} engines: {node: '>=16.0.0'} peerDependencies: aws-crt: '>=1.0.0' @@ -2020,8 +2020,8 @@ packages: cross-fetch@3.1.8: resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} - cross-spawn@7.0.4: - resolution: {integrity: sha512-9KdyVPPtLHjPAD7tcuzSFs64UfHlLJt7U6qP4/bFVLyjLceyizj6s6jO6YBaV5d0G7g/9KnY/dOpLR4Rcg8YDg==} + cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} crypto-browserify@3.12.1: @@ -2660,7 +2660,6 @@ packages: eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espree@9.6.1: @@ -5182,31 +5181,31 @@ snapshots: '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 - '@aws-sdk/client-s3@3.686.0': + '@aws-sdk/client-s3@3.687.0': dependencies: '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.686.0(@aws-sdk/client-sts@3.686.0) - '@aws-sdk/client-sts': 3.686.0 + '@aws-sdk/client-sso-oidc': 3.687.0(@aws-sdk/client-sts@3.687.0) + '@aws-sdk/client-sts': 3.687.0 '@aws-sdk/core': 3.686.0 - '@aws-sdk/credential-provider-node': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/credential-provider-node': 3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))(@aws-sdk/client-sts@3.687.0) '@aws-sdk/middleware-bucket-endpoint': 3.686.0 '@aws-sdk/middleware-expect-continue': 3.686.0 - '@aws-sdk/middleware-flexible-checksums': 3.686.0 + '@aws-sdk/middleware-flexible-checksums': 3.687.0 '@aws-sdk/middleware-host-header': 3.686.0 '@aws-sdk/middleware-location-constraint': 3.686.0 '@aws-sdk/middleware-logger': 3.686.0 '@aws-sdk/middleware-recursion-detection': 3.686.0 - '@aws-sdk/middleware-sdk-s3': 3.686.0 + '@aws-sdk/middleware-sdk-s3': 3.687.0 '@aws-sdk/middleware-ssec': 3.686.0 - '@aws-sdk/middleware-user-agent': 3.686.0 + '@aws-sdk/middleware-user-agent': 3.687.0 '@aws-sdk/region-config-resolver': 3.686.0 - '@aws-sdk/signature-v4-multi-region': 3.686.0 + '@aws-sdk/signature-v4-multi-region': 3.687.0 '@aws-sdk/types': 3.686.0 '@aws-sdk/util-endpoints': 3.686.0 '@aws-sdk/util-user-agent-browser': 3.686.0 - '@aws-sdk/util-user-agent-node': 3.686.0 + '@aws-sdk/util-user-agent-node': 3.687.0 '@aws-sdk/xml-builder': 3.686.0 '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 @@ -5245,22 +5244,22 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0)': + '@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0)': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sts': 3.686.0 + '@aws-sdk/client-sts': 3.687.0 '@aws-sdk/core': 3.686.0 - '@aws-sdk/credential-provider-node': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/credential-provider-node': 3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))(@aws-sdk/client-sts@3.687.0) '@aws-sdk/middleware-host-header': 3.686.0 '@aws-sdk/middleware-logger': 3.686.0 '@aws-sdk/middleware-recursion-detection': 3.686.0 - '@aws-sdk/middleware-user-agent': 3.686.0 + '@aws-sdk/middleware-user-agent': 3.687.0 '@aws-sdk/region-config-resolver': 3.686.0 '@aws-sdk/types': 3.686.0 '@aws-sdk/util-endpoints': 3.686.0 '@aws-sdk/util-user-agent-browser': 3.686.0 - '@aws-sdk/util-user-agent-node': 3.686.0 + '@aws-sdk/util-user-agent-node': 3.687.0 '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 4.0.0 @@ -5290,7 +5289,7 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso@3.686.0': + '@aws-sdk/client-sso@3.687.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 @@ -5298,12 +5297,12 @@ snapshots: '@aws-sdk/middleware-host-header': 3.686.0 '@aws-sdk/middleware-logger': 3.686.0 '@aws-sdk/middleware-recursion-detection': 3.686.0 - '@aws-sdk/middleware-user-agent': 3.686.0 + '@aws-sdk/middleware-user-agent': 3.687.0 '@aws-sdk/region-config-resolver': 3.686.0 '@aws-sdk/types': 3.686.0 '@aws-sdk/util-endpoints': 3.686.0 '@aws-sdk/util-user-agent-browser': 3.686.0 - '@aws-sdk/util-user-agent-node': 3.686.0 + '@aws-sdk/util-user-agent-node': 3.687.0 '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 4.0.0 @@ -5333,22 +5332,22 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sts@3.686.0': + '@aws-sdk/client-sts@3.687.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.686.0(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/client-sso-oidc': 3.687.0(@aws-sdk/client-sts@3.687.0) '@aws-sdk/core': 3.686.0 - '@aws-sdk/credential-provider-node': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/credential-provider-node': 3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))(@aws-sdk/client-sts@3.687.0) '@aws-sdk/middleware-host-header': 3.686.0 '@aws-sdk/middleware-logger': 3.686.0 '@aws-sdk/middleware-recursion-detection': 3.686.0 - '@aws-sdk/middleware-user-agent': 3.686.0 + '@aws-sdk/middleware-user-agent': 3.687.0 '@aws-sdk/region-config-resolver': 3.686.0 '@aws-sdk/types': 3.686.0 '@aws-sdk/util-endpoints': 3.686.0 '@aws-sdk/util-user-agent-browser': 3.686.0 - '@aws-sdk/util-user-agent-node': 3.686.0 + '@aws-sdk/util-user-agent-node': 3.687.0 '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 4.0.0 @@ -5413,15 +5412,15 @@ snapshots: '@smithy/util-stream': 3.2.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))(@aws-sdk/client-sts@3.686.0)': + '@aws-sdk/credential-provider-ini@3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))(@aws-sdk/client-sts@3.687.0)': dependencies: - '@aws-sdk/client-sts': 3.686.0 + '@aws-sdk/client-sts': 3.687.0 '@aws-sdk/core': 3.686.0 '@aws-sdk/credential-provider-env': 3.686.0 '@aws-sdk/credential-provider-http': 3.686.0 '@aws-sdk/credential-provider-process': 3.686.0 - '@aws-sdk/credential-provider-sso': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0)) - '@aws-sdk/credential-provider-web-identity': 3.686.0(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/credential-provider-sso': 3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0)) + '@aws-sdk/credential-provider-web-identity': 3.686.0(@aws-sdk/client-sts@3.687.0) '@aws-sdk/types': 3.686.0 '@smithy/credential-provider-imds': 3.2.5 '@smithy/property-provider': 3.1.8 @@ -5432,14 +5431,14 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-node@3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))(@aws-sdk/client-sts@3.686.0)': + '@aws-sdk/credential-provider-node@3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))(@aws-sdk/client-sts@3.687.0)': dependencies: '@aws-sdk/credential-provider-env': 3.686.0 '@aws-sdk/credential-provider-http': 3.686.0 - '@aws-sdk/credential-provider-ini': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/credential-provider-ini': 3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))(@aws-sdk/client-sts@3.687.0) '@aws-sdk/credential-provider-process': 3.686.0 - '@aws-sdk/credential-provider-sso': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0)) - '@aws-sdk/credential-provider-web-identity': 3.686.0(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/credential-provider-sso': 3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0)) + '@aws-sdk/credential-provider-web-identity': 3.686.0(@aws-sdk/client-sts@3.687.0) '@aws-sdk/types': 3.686.0 '@smithy/credential-provider-imds': 3.2.5 '@smithy/property-provider': 3.1.8 @@ -5460,11 +5459,11 @@ snapshots: '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))': + '@aws-sdk/credential-provider-sso@3.687.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))': dependencies: - '@aws-sdk/client-sso': 3.686.0 + '@aws-sdk/client-sso': 3.687.0 '@aws-sdk/core': 3.686.0 - '@aws-sdk/token-providers': 3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0)) + '@aws-sdk/token-providers': 3.686.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0)) '@aws-sdk/types': 3.686.0 '@smithy/property-provider': 3.1.8 '@smithy/shared-ini-file-loader': 3.1.9 @@ -5474,9 +5473,9 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-web-identity@3.686.0(@aws-sdk/client-sts@3.686.0)': + '@aws-sdk/credential-provider-web-identity@3.686.0(@aws-sdk/client-sts@3.687.0)': dependencies: - '@aws-sdk/client-sts': 3.686.0 + '@aws-sdk/client-sts': 3.687.0 '@aws-sdk/core': 3.686.0 '@aws-sdk/types': 3.686.0 '@smithy/property-provider': 3.1.8 @@ -5500,7 +5499,7 @@ snapshots: '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/middleware-flexible-checksums@3.686.0': + '@aws-sdk/middleware-flexible-checksums@3.687.0': dependencies: '@aws-crypto/crc32': 5.2.0 '@aws-crypto/crc32c': 5.2.0 @@ -5511,6 +5510,7 @@ snapshots: '@smithy/protocol-http': 4.1.5 '@smithy/types': 3.6.0 '@smithy/util-middleware': 3.0.8 + '@smithy/util-stream': 3.2.1 '@smithy/util-utf8': 3.0.0 tslib: 2.8.1 @@ -5540,7 +5540,7 @@ snapshots: '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-s3@3.686.0': + '@aws-sdk/middleware-sdk-s3@3.687.0': dependencies: '@aws-sdk/core': 3.686.0 '@aws-sdk/types': 3.686.0 @@ -5563,7 +5563,7 @@ snapshots: '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/middleware-user-agent@3.686.0': + '@aws-sdk/middleware-user-agent@3.687.0': dependencies: '@aws-sdk/core': 3.686.0 '@aws-sdk/types': 3.686.0 @@ -5582,9 +5582,9 @@ snapshots: '@smithy/util-middleware': 3.0.8 tslib: 2.8.1 - '@aws-sdk/s3-request-presigner@3.686.0': + '@aws-sdk/s3-request-presigner@3.687.0': dependencies: - '@aws-sdk/signature-v4-multi-region': 3.686.0 + '@aws-sdk/signature-v4-multi-region': 3.687.0 '@aws-sdk/types': 3.686.0 '@aws-sdk/util-format-url': 3.686.0 '@smithy/middleware-endpoint': 3.2.1 @@ -5593,18 +5593,18 @@ snapshots: '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/signature-v4-multi-region@3.686.0': + '@aws-sdk/signature-v4-multi-region@3.687.0': dependencies: - '@aws-sdk/middleware-sdk-s3': 3.686.0 + '@aws-sdk/middleware-sdk-s3': 3.687.0 '@aws-sdk/types': 3.686.0 '@smithy/protocol-http': 4.1.5 '@smithy/signature-v4': 4.2.1 '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/token-providers@3.686.0(@aws-sdk/client-sso-oidc@3.686.0(@aws-sdk/client-sts@3.686.0))': + '@aws-sdk/token-providers@3.686.0(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))': dependencies: - '@aws-sdk/client-sso-oidc': 3.686.0(@aws-sdk/client-sts@3.686.0) + '@aws-sdk/client-sso-oidc': 3.687.0(@aws-sdk/client-sts@3.687.0) '@aws-sdk/types': 3.686.0 '@smithy/property-provider': 3.1.8 '@smithy/shared-ini-file-loader': 3.1.9 @@ -5645,9 +5645,9 @@ snapshots: bowser: 2.11.0 tslib: 2.8.1 - '@aws-sdk/util-user-agent-node@3.686.0': + '@aws-sdk/util-user-agent-node@3.687.0': dependencies: - '@aws-sdk/middleware-user-agent': 3.686.0 + '@aws-sdk/middleware-user-agent': 3.687.0 '@aws-sdk/types': 3.686.0 '@smithy/node-config-provider': 3.1.9 '@smithy/types': 3.6.0 @@ -5922,7 +5922,7 @@ snapshots: detect-libc: 2.0.3 https-proxy-agent: 5.0.1 make-dir: 3.1.0 - node-fetch: 2.7.0 + node-fetch: 2.6.9 nopt: 5.0.0 npmlog: 5.0.1 rimraf: 3.0.2 @@ -7666,7 +7666,7 @@ snapshots: transitivePeerDependencies: - encoding - cross-spawn@7.0.4: + cross-spawn@7.0.5: dependencies: path-key: 3.1.1 shebang-command: 2.0.0 @@ -7737,7 +7737,7 @@ snapshots: debug@4.1.1: dependencies: - ms: 2.1.3 + ms: 2.1.1 debug@4.3.7: dependencies: @@ -8277,7 +8277,7 @@ snapshots: '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.4 + cross-spawn: 7.0.5 debug: 4.3.7 doctrine: 3.0.0 escape-string-regexp: 4.0.0 @@ -8351,7 +8351,7 @@ snapshots: execa@3.2.0: dependencies: - cross-spawn: 7.0.4 + cross-spawn: 7.0.5 get-stream: 5.2.0 human-signals: 1.1.1 is-stream: 2.0.1 @@ -8364,7 +8364,7 @@ snapshots: execa@8.0.1: dependencies: - cross-spawn: 7.0.4 + cross-spawn: 7.0.5 get-stream: 8.0.1 human-signals: 5.0.0 is-stream: 3.0.0 @@ -8456,7 +8456,7 @@ snapshots: foreground-child@3.3.0: dependencies: - cross-spawn: 7.0.4 + cross-spawn: 7.0.5 signal-exit: 4.1.0 form-data@4.0.1: @@ -10449,8 +10449,8 @@ snapshots: universal-picgo@1.11.0: dependencies: - '@aws-sdk/client-s3': 3.686.0 - '@aws-sdk/s3-request-presigner': 3.686.0 + '@aws-sdk/client-s3': 3.687.0 + '@aws-sdk/s3-request-presigner': 3.687.0 '@picgo/i18n': 1.0.0 '@smithy/fetch-http-handler': 3.2.9 '@smithy/protocol-http': 4.1.5 diff --git a/siyuan/index.ts b/siyuan/index.ts index ffb00a0f..3041ff80 100644 --- a/siyuan/index.ts +++ b/siyuan/index.ts @@ -23,7 +23,7 @@ * questions. */ -import { App, confirm, getFrontend, IMenuItemOption, IModel, IObject, Menu, Plugin, showMessage } from "siyuan" +import { App, confirm, getFrontend, Model, IObject, Plugin } from "siyuan" import { SiyuanConfig, SiyuanKernelApi } from "zhi-siyuan-api" import { createSiyuanAppLogger } from "./appLogger" import { WidgetInvoke } from "./invoke/widgetInvoke" @@ -52,7 +52,7 @@ export default class PublisherPlugin extends Plugin { private widgetInvoke: WidgetInvoke private pluginInvoke: PluginInvoke - customTabObject: () => IModel + customTabObject: () => Model public tabInstance: any private publishSetting: any diff --git a/siyuan/topbar.ts b/siyuan/topbar.ts index b9938aae..f3b49677 100644 --- a/siyuan/topbar.ts +++ b/siyuan/topbar.ts @@ -25,7 +25,7 @@ import PublisherPlugin from "./index" import { icons } from "./utils/svg" -import { IMenuItemOption, Menu, showMessage } from "siyuan" +import { Menu, showMessage } from "siyuan" import { createSiyuanAppLogger } from "./appLogger" import { WidgetInvoke } from "./invoke/widgetInvoke" import { PluginInvoke } from "./invoke/pluginInvoke" @@ -80,8 +80,8 @@ export class Topbar { private async addMenu( rect: DOMRect, - quickMenus: IMenuItemOption[], - extendMenus: IMenuItemOption[], + quickMenus: any[], + extendMenus: any[], prefSetting: any ) { const menu = new Menu("publisherMenu") diff --git a/siyuan/utils/menuUtils.ts b/siyuan/utils/menuUtils.ts index 522e9b6e..2a6f6b51 100644 --- a/siyuan/utils/menuUtils.ts +++ b/siyuan/utils/menuUtils.ts @@ -23,7 +23,6 @@ * questions. */ -import { IMenuItemOption } from "siyuan" import { ObjectUtil } from "zhi-common" import { DYNAMIC_CONFIG_KEY } from "../Constants.ts" import PageUtils from "~/common/pageUtils.ts" @@ -48,7 +47,7 @@ class MenuUtils { } } - const submenus = [] + const submenus = [] // 读取配置 if (ObjectUtil.isEmptyObject(setting)) { // 配置错误,直接返回空 @@ -96,7 +95,7 @@ class MenuUtils { const isBlogInstalled = await pluginInvoke.preCheckBlogPlugin() - const extmenus = [] + const extmenus = [] if (isBlogInstalled) { // 发布预览 const extPreviewMenu = { diff --git a/src/adaptors/web/csdn/csdnUtils.ts b/src/adaptors/web/csdn/csdnUtils.ts index 21d5395b..fcf2fbcf 100644 --- a/src/adaptors/web/csdn/csdnUtils.ts +++ b/src/adaptors/web/csdn/csdnUtils.ts @@ -89,7 +89,12 @@ class CsdnUtils { public static processCsdnMath(html: string): string { // 使用Cheerio加载HTML - const $ = cheerio.load(html, { xmlMode: true, decodeEntities: false }) + const $ = cheerio.load(html, { + xml: { + xmlMode: true, + decodeEntities: false, + }, + }) // 处理两个$符号包裹的公式 const doubleDollarRegex = /\$\$([^$]+)\$\$/g @@ -120,7 +125,7 @@ class CsdnUtils { /** * 处理代码高亮 * https://spencersnyder.io/blog/prism-js-with-next-js - * + * * @param adaptorInstance * @param html */ diff --git a/src/adaptors/web/zhihu/zhihuUtils.ts b/src/adaptors/web/zhihu/zhihuUtils.ts index 428b1120..2d6c81b6 100644 --- a/src/adaptors/web/zhihu/zhihuUtils.ts +++ b/src/adaptors/web/zhihu/zhihuUtils.ts @@ -62,7 +62,12 @@ class ZhihuUtils { public static processZHMath(html: string): string { // 使用Cheerio加载HTML - const $ = cheerio.load(html, { xmlMode: true, decodeEntities: false }) + const $ = cheerio.load(html, { + xml: { + xmlMode: true, + decodeEntities: false, + }, + }) // 处理两个$符号和一个$符号包裹的公式 const mathRegex = /\$\$([^\$]+)\$\$|\$([^\$]+)\$/g diff --git a/tsconfig.node.json b/tsconfig.node.json index cfa1ab5b..2b6c8c4e 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -6,5 +6,5 @@ "moduleResolution": "node", "allowSyntheticDefaultImports": true }, - "include": ["vite.config.ts"] + "include": [] }