diff --git a/apps/console-fb/package.json b/apps/console-fb/package.json index 60328ee1..ee462f98 100644 --- a/apps/console-fb/package.json +++ b/apps/console-fb/package.json @@ -50,7 +50,7 @@ "@testing-library/svelte": "5.1.0", "@types/gtag.js": "0.0.20", "@types/js-cookie": "3.0.6", - "@types/node": "20.14.8", + "@types/node": "20.14.9", "@vercel/analytics": "1.3.1", "@vercel/speed-insights": "1.0.12", "@vite-pwa/assets-generator": "0.2.4", @@ -64,7 +64,7 @@ "d3-scale": "4.0.2", "date-fns": "3.6.0", "flowbite": "2.3.0", - "flowbite-svelte": "0.46.4", + "flowbite-svelte": "0.46.6", "flowbite-svelte-blocks": "1.1.3", "flowbite-svelte-icons": "1.6.1", "flowbite-typography": "1.0.3", @@ -75,26 +75,26 @@ "jose": "5.4.1", "js-cookie": "3.0.5", "jsdom": "24.1.0", - "layercake": "8.3.1", + "layercake": "8.3.3", "msw": "2.3.1", "postcss": "8.4.38", "postcss-preset-env": "9.5.14", "svelte": "4.2.18", "svelte-adapter-bun": "0.5.2", - "svelte-check": "3.8.1", + "svelte-check": "3.8.2", "svelte-headless-table": "0.18.2", "svelte-meta-tags": "3.1.2", "svelte-select": "5.8.3", "svelte-time-distance": "0.0.3", "sveltekit-flash-message": "2.4.4", "sveltekit-rate-limiter": "0.5.1", - "sveltekit-superforms": "2.15.1", + "sveltekit-superforms": "2.15.2", "sveltekit-view-transition": "0.5.3", "tailwind-merge": "2.3.0", "tailwind-variants": "0.2.1", "tailwindcss": "3.4.4", "tailwindcss-animate": "1.0.7", - "throttle-debounce": "5.0.0", + "throttle-debounce": "5.0.2", "tslib": "2.6.3", "typescript": "5.5.2", "vite": "5.3.1", @@ -103,7 +103,7 @@ "zod": "3.23.8" }, "optionalDependencies": { - "@playwright/test": "1.44.1", + "@playwright/test": "1.45.0", "@vitest/ui": "1.6.0" } } diff --git a/apps/console-sc/package.json b/apps/console-sc/package.json index fbfc4df9..9f029396 100644 --- a/apps/console-sc/package.json +++ b/apps/console-sc/package.json @@ -36,7 +36,7 @@ "@tailwindcss/container-queries": "0.1.1", "@tailwindcss/forms": "0.5.7", "@tailwindcss/typography": "0.5.13", - "@types/node": "20.14.8", + "@types/node": "20.14.9", "@vercel/analytics": "1.3.1", "@vincjo/datatables": "1.14.10", "@vitest/coverage-v8": "1.6.0", @@ -52,10 +52,10 @@ "postcss-load-config": "6.0.1", "postcss-nested": "6.0.1", "svelte": "4.2.18", - "svelte-check": "3.8.1", + "svelte-check": "3.8.2", "svelte-radix": "1.1.0", "sveltekit-rate-limiter": "0.5.1", - "sveltekit-superforms": "2.15.1", + "sveltekit-superforms": "2.15.2", "sveltekit-view-transition": "0.5.3", "tailwind-merge": "2.3.0", "tailwind-variants": "0.2.1", @@ -68,7 +68,7 @@ "zod": "3.23.8" }, "optionalDependencies": { - "@playwright/test": "1.44.1", + "@playwright/test": "1.45.0", "@vitest/ui": "1.6.0" } } diff --git a/apps/console/package.json b/apps/console/package.json index 6334f25c..b3ef7f99 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -31,10 +31,10 @@ }, "devDependencies": { "@ai-sdk/openai": "0.0.33", - "@floating-ui/dom": "1.6.5", + "@floating-ui/dom": "1.6.6", "@fontsource-variable/inter": "5.0.18", "@inlang/cli": "2.18.1", - "@inlang/paraglide-js": "1.10.1", + "@inlang/paraglide-js": "1.11.0", "@inlang/paraglide-js-adapter-sveltekit": "0.6.7", "@nhost/nhost-js": "3.1.5", "@skeletonlabs/skeleton": "2.10.1", @@ -54,12 +54,12 @@ "@tailwindcss/typography": "0.5.13", "@types/d3-scale": "4.0.8", "@types/js-cookie": "3.0.6", - "@types/node": "20.14.8", + "@types/node": "20.14.9", "@vercel/analytics": "1.3.1", "@vincjo/datatables": "1.14.10", "@vitest/coverage-v8": "1.6.0", "@xyflow/svelte": "0.1.7", - "ai": "3.2.5", + "ai": "3.2.10", "autoprefixer": "10.4.19", "d3-array": "3.2.4", "d3-scale": "4.0.2", @@ -78,13 +78,13 @@ "postcss": "8.4.38", "svelte": "4.2.18", "svelte-adapter-bun": "0.5.2", - "svelte-check": "3.8.1", + "svelte-check": "3.8.2", "svelte-meta-tags": "3.1.2", "svelte-persisted-store": "0.11.0", - "svelte-ux": "0.70.1", + "svelte-ux": "0.71.0", "sveltekit-flash-message": "2.4.4", "sveltekit-rate-limiter": "0.5.1", - "sveltekit-superforms": "2.15.1", + "sveltekit-superforms": "2.15.2", "sveltekit-view-transition": "0.5.3", "tailwind-merge": "2.3.0", "tailwind-variants": "0.2.1", @@ -98,7 +98,7 @@ "zod": "3.23.8" }, "optionalDependencies": { - "@playwright/test": "1.44.1", + "@playwright/test": "1.45.0", "@vitest/ui": "1.6.0" } } diff --git a/apps/console/src/lib/nhost.ts b/apps/console/src/lib/nhost.ts index bd532055..fbe17555 100644 --- a/apps/console/src/lib/nhost.ts +++ b/apps/console/src/lib/nhost.ts @@ -1,7 +1,7 @@ import { goto } from '$app/navigation'; +import { SearchSecurityKeysStore } from '$houdini'; import { nhost, user } from '$lib/stores/user'; import { Logger } from '@spectacular/utils'; -import { SearchSecurityKeysStore } from '$houdini'; /** * NOTE: These methods are still not in use. @@ -55,10 +55,9 @@ export async function isAuthenticated(): Promise { const skQuery = new SearchSecurityKeysStore().artifact.raw; export async function hasSecurityKey(userId: string) { const { data, error } = await nhost.graphql.request(skQuery, { userId }); - if(error) { - log.error({error}) - return false + if (error) { + log.error({ error }); + return false; } - return data?.authUserSecurityKeys.length > 0 + return data?.authUserSecurityKeys.length > 0; } - diff --git a/apps/console/src/routes/(app)/profile/+page.svelte b/apps/console/src/routes/(app)/profile/+page.svelte index e9d8a041..45e5596a 100644 --- a/apps/console/src/routes/(app)/profile/+page.svelte +++ b/apps/console/src/routes/(app)/profile/+page.svelte @@ -25,9 +25,8 @@ let error: AuthErrorPayload | null; // Functions async function addSecurityKey() { - console.log({ nickname }); - error = await elevate() - if (error) { + error = await elevate(); + if (error) { console.log(error); return; } @@ -43,10 +42,10 @@ async function addSecurityKey() { } async function handleElevate() { - error = await elevate() + error = await elevate(); if (!error) { - // TODO notify - console.log('elevated successfully'); + // TODO notify + console.log('elevated successfully'); } } diff --git a/apps/console/src/routes/(auth)/signin/+page.svelte b/apps/console/src/routes/(auth)/signin/+page.svelte index a42843fc..ef3539fd 100644 --- a/apps/console/src/routes/(auth)/signin/+page.svelte +++ b/apps/console/src/routes/(auth)/signin/+page.svelte @@ -1,9 +1,11 @@