Skip to content

Commit 7e5aa4c

Browse files
committed
chore: update dependencies and refine type definitions in various components
1 parent c5db0c7 commit 7e5aa4c

6 files changed

Lines changed: 18 additions & 12 deletions

File tree

bun.lock

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"flatted": "^3.4.2",
4242
"ignore": "^6.0.2",
4343
"nanoid": "^5.1.7",
44-
"nanotar": "^0.1.1",
44+
"nanotar": "^0.3.0",
4545
"pretty-bytes": "^6.1.1",
4646
"remarkable": "^2.0.1",
4747
"svelte-confetti": "^1.4.0",
@@ -91,8 +91,11 @@
9191
"overrides": {
9292
"vite": "npm:rolldown-vite@latest",
9393
"minimatch": "10.2.3",
94+
"brace-expansion": ">=5.0.5",
9495
"immutable": "^5.1.5",
9596
"flatted": "^3.4.2",
96-
"picomatch": "^2.3.2"
97+
"yaml": "^1.10.3",
98+
"picomatch": "^2.3.2",
99+
"cookie": "^0.7.0"
97100
}
98101
}

src/lib/components/git/repositories.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
139139
$repositories.repositories =
140140
product === 'functions'
141-
? (result as unknown as Models.ProviderRepositoryRuntimeList)
141+
? (result as unknown as { runtimeProviderRepositories: (Models.ProviderRepository & { runtime: string })[] })
142142
.runtimeProviderRepositories
143143
: (result as unknown as Models.ProviderRepositoryFrameworkList)
144144
.frameworkProviderRepositories; //TODO: remove forced cast after backend fixes

src/lib/components/git/selectRootModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { iconPath } from '$lib/stores/app';
66
import { sdk } from '$lib/stores/sdk';
77
import { installation, repository } from '$lib/stores/vcs';
8-
import { VCSDetectionType, type Models } from '@appwrite.io/console';
8+
import { VCSDetectionType } from '@appwrite.io/console';
99
import DirectoryPicker from '$lib/components/git/DirectoryPicker.svelte';
1010
import { writable } from 'svelte/store';
1111
@@ -113,7 +113,7 @@
113113
const iconName =
114114
product === 'sites'
115115
? detection.framework
116-
: (detection as unknown as Models.DetectionRuntime).runtime;
116+
: (detection as unknown as { runtime: string }).runtime;
117117
const resolved = resolveIconUrl(iconName);
118118
iconCache.set(path, resolved);
119119
return resolved;

src/routes/(console)/project-[region]-[project]/functions/create-function/repository-[repository]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
installationId: data.installation.$id,
8585
providerRepositoryId: page.params.repository,
8686
type: VCSDetectionType.Runtime
87-
})) as unknown as Models.DetectionRuntime; /* SDK return type is wrong atm */
87+
})) as unknown as { entrypoint: string; commands: string; runtime: string; variables: { name: string; value: string }[] }; /* SDK return type is wrong atm */
8888
8989
entrypoint = detections.entrypoint;
9090
buildCommand = detections.commands;

src/routes/(console)/project-[region]-[project]/functions/function-[function]/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const repositories: Writable<{
2121
repositories:
2222
| Models.ProviderRepository[]
2323
| Models.ProviderRepositoryFramework[]
24-
| Models.ProviderRepositoryRuntime[];
24+
| (Models.ProviderRepository & { runtime: string })[];
2525
}> = writable({
2626
search: '',
2727
installationId: '',

0 commit comments

Comments
 (0)