diff --git a/esbuild/plugins.ts b/esbuild/plugins.ts index 2f078787..c39a625f 100644 --- a/esbuild/plugins.ts +++ b/esbuild/plugins.ts @@ -146,7 +146,8 @@ function processManifestPlugin({ scripts: [json.background.service_worker] } json.content_scripts?.forEach((contentScript) => { - // @ts-expect-error firefox doesn't support execution context yet + // TODO: Remove this when Firefox supports `world` - at least last 10 + // versions contentScript.world = undefined }) delete json.minimum_chrome_version diff --git a/package.json b/package.json index 79d97e15..ee01f326 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@types/react-router-dom": "^5.3.3", - "@types/webextension-polyfill": "^0.10.7", + "@types/webextension-polyfill": "^0.12.0", "@typescript-eslint/eslint-plugin": "^7.16.0", "@typescript-eslint/parser": "^7.16.0", "archiver": "^7.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b913b99d..c42b5331 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,8 +104,8 @@ importers: specifier: ^5.3.3 version: 5.3.3 '@types/webextension-polyfill': - specifier: ^0.10.7 - version: 0.10.7 + specifier: ^0.12.0 + version: 0.12.0 '@typescript-eslint/eslint-plugin': specifier: ^7.16.0 version: 7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) @@ -1099,8 +1099,8 @@ packages: '@types/tough-cookie@4.0.5': resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==} - '@types/webextension-polyfill@0.10.7': - resolution: {integrity: sha512-10ql7A0qzBmFB+F+qAke/nP1PIonS0TXZAOMVOxEUsm+lGSW6uwVcISFNa0I4Oyj0884TZVWGGMIWeXOVSNFHw==} + '@types/webextension-polyfill@0.12.0': + resolution: {integrity: sha512-0d1V0jw5wswj11ijrPoUUP+kV2pHCNKDDgQSzNdD1PK5i3vQ0eHiA1xzT5mFwaqdwatrXdgkxgC4BzCQ6C9eUw==} '@types/yargs-parser@21.0.3': resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} @@ -4870,7 +4870,7 @@ snapshots: '@types/tough-cookie@4.0.5': {} - '@types/webextension-polyfill@0.10.7': {} + '@types/webextension-polyfill@0.12.0': {} '@types/yargs-parser@21.0.3': {} diff --git a/src/background/services/openPayments.ts b/src/background/services/openPayments.ts index 1c7ef61d..108f6fae 100644 --- a/src/background/services/openPayments.ts +++ b/src/background/services/openPayments.ts @@ -170,7 +170,7 @@ export class OpenPaymentsService { const data = await this.browser.storage.local.get(['privateKey', 'keyId']) if (data.privateKey && data.keyId) { - return data as KeyInformation + return data as unknown as KeyInformation } throw new Error( diff --git a/src/background/services/storage.ts b/src/background/services/storage.ts index 85a876cf..7d9ace01 100644 --- a/src/background/services/storage.ts +++ b/src/background/services/storage.ts @@ -109,7 +109,7 @@ export class StorageService { await storage.set(data) await storage.remove(deleteKeys) } - return data as Storage + return data as unknown as Storage } async getWMState(): Promise {