fix: update svelte -> 5.43.8

This commit is contained in:
Xylight committed 2025-11-16 19:51:54 -08:00
1 parent 4e39370627
commit c9ca98eb30
5 files changed
+11 -19

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@
"openapi-fetch": "^0.14.0",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"svelte": "^5.39.2",
"svelte": "^5.43.8",
"svelte-adapter-bun-next": "^1.0.3",
"svelte-check": "^4.3.1",
"svelte-floating-ui": "^1.6.2",
@@ -681,7 +681,7 @@
"supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
"svelte": ["svelte@5.39.4", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "acorn": "^8.12.1", "aria-query": "^5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "esm-env": "^1.2.1", "esrap": "^2.1.0", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-VU729KzEau1l6d6d25EnRQhdkwwYdTQxQrF8gdUfjZ3dCjrG7VmRMylMxx92ayO9/z5PKWpDrShJdzc4PGW1uA=="],
"svelte": ["svelte@5.43.8", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "acorn": "^8.12.1", "aria-query": "^5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "esm-env": "^1.2.1", "esrap": "^2.1.0", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-d53/xClCjHsuFXuHsn7+F/0NKkkwgRv8kLg2his5YBYqVtfIrBqkvWd+5ZjYN6ryk/jv/rJF00vexXHkK8ofXA=="],
"svelte-adapter-bun-next": ["svelte-adapter-bun-next@1.0.3", "", { "dependencies": { "@t3-oss/env-core": "latest", "tiny-glob": "^0.2.9", "zod": "^3.24.2" } }, "sha512-OPKFTYMPDeshBaBqabx08e9G4q6GUfIGF9pZbKcZxlO2j2A6Tj0gFtvgAviz3K/nAJckLIxqgG5y5JZu+vg2SQ=="],
+1 -1
View File
@@ -29,7 +29,7 @@
"openapi-fetch": "^0.14.0",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"svelte": "^5.39.2",
"svelte": "^5.43.8",
"svelte-adapter-bun-next": "^1.0.3",
"svelte-check": "^4.3.1",
"svelte-floating-ui": "^1.6.2",
+1 -1
View File
@@ -5888,7 +5888,7 @@ export interface components {
}
PollVoteRequest: {
post_id: number
choice_id: number
choice_id: number | number[]
}
PollVoteResponse: {
banned_from_community: boolean
+1 -1
View File
@@ -2463,7 +2463,7 @@ export interface PostEvent {
export interface PollVote {
post_id: number
choice_id: number
choice_id: number | number[]
}
export interface SetNote {
+6 -14
View File
@@ -53,18 +53,10 @@
canVote = false
if (typeof id !== 'number') {
await Promise.all([
id.map((i) =>
api
.voteOnPoll({
post_id: post.id,
choice_id: i,
})
.catch((err) => {
throw err
}),
),
])
await api.voteOnPoll({
post_id: post.id,
choice_id: id,
})
} else {
await api.voteOnPoll({
post_id: post.id,
@@ -89,7 +81,7 @@
{#each options.toSorted((a, b) => a.sort_order - b.sort_order) as choice}
{@const active =
selected == choice.id ||
(typeof selected !== 'number' && selected?.includes(choice.id))}
(typeof selected !== 'number' && selected?.includes?.(choice.id))}
{@const percentage = Math.floor(
(choice.num_votes / totalVotes || 0) * 100,
)}
@@ -114,7 +106,7 @@
></div>
{/if}
<label
class="px-4 py-2 w-full text-left flex flex-row gap-2 items-center"
class="px-4 py-2 w-full text-left flex flex-row gap-2 items-center relative"
>
{#if !multi}
<input