diff --git a/package.json b/package.json index 11e4cfc..e2bcc14 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,8 @@ "typescript": "^4.6.4" }, "dependencies": { - "@decky/api": "^1.0.3", - "@decky/ui": "^4.0.1", + "@decky/api": "^1.0.6", + "@decky/ui": "^4.4.0", "clsx": "^2.1.1", "color": "^4.2.3", "lodash": "^4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2a4b743..d656b7f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,11 +9,11 @@ importers: .: dependencies: '@decky/api': - specifier: ^1.0.3 - version: 1.0.3 + specifier: ^1.0.6 + version: 1.0.6 '@decky/ui': - specifier: ^4.0.1 - version: 4.0.1 + specifier: ^4.4.0 + version: 4.4.0 clsx: specifier: ^2.1.1 version: 2.1.1 @@ -106,11 +106,11 @@ packages: resolution: {integrity: sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==} engines: {node: '>=6.9.0'} - '@decky/api@1.0.3': - resolution: {integrity: sha512-7hMKEHWcyz/bttx7DcKXqsOXcrtmC4CB6UwxRVrtlb/aolQtv1NVKHIEkIM6ND5hqTUU/VJ2HPUmCOwKm3Of0Q==} + '@decky/api@1.0.6': + resolution: {integrity: sha512-pacO2qvAin7ZoB9AnCgQbevQS+6Wiy0t1C6QVEJPCWeQQdEgJaUm3KSeRjh2KNqsjKHsbV0j72Pv4X5Q44Lr7Q==} - '@decky/ui@4.0.1': - resolution: {integrity: sha512-BCT10sirZtG6eK2FSwffySM9fAUzwKMi1nsXJP7x+BTQ/UqEudy4IqxSe0AV7qaG5PzmiHuQZWoRwaaqIbUdeg==} + '@decky/ui@4.4.0': + resolution: {integrity: sha512-w6hSoEdWQyXdvSk8cv4cGDJQ6/xoRx9LYrdNjTGPPj8hRmBcoRlThgZ+9vchmNsAJuOymwQ5hQXqHN6Y86eoOQ==} '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -1525,9 +1525,9 @@ snapshots: dependencies: regenerator-runtime: 0.14.1 - '@decky/api@1.0.3': {} + '@decky/api@1.0.6': {} - '@decky/ui@4.0.1': {} + '@decky/ui@4.4.0': {} '@isaacs/cliui@8.0.2': dependencies: diff --git a/src/backend-impl/decky-backend-repository-impl.ts b/src/backend-impl/decky-backend-repository-impl.ts index 4bb5b79..b8db8da 100644 --- a/src/backend-impl/decky-backend-repository-impl.ts +++ b/src/backend-impl/decky-backend-repository-impl.ts @@ -1,4 +1,4 @@ -import { callable, toaster } from "@decky/api"; +import { callable, toaster, fetchNoCors } from "@decky/api"; import { CallError, FetchError, type IBackendRepository } from "@cssloader/backend"; class DeckyBackendRepository implements IBackendRepository { @@ -16,7 +16,7 @@ class DeckyBackendRepository implements IBackendRepository { } async fetch(url: string, request: RequestInit) { try { - const res = await fetch(url, request); + const res = await fetchNoCors(url, request); if (!res.ok) { throw new Error(`Res Not Okay - Code ${res.status}`); }