Skip to content

Commit

Permalink
chore(deps): update dependency @types/webextension-polyfill to ^0.12.0 (
Browse files Browse the repository at this point in the history
#514)

* chore(deps): update dependency @types/webextension-polyfill to ^0.12.0

* Fix type errors

* Add todo

* Update esbuild/plugins.ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Radu-Cristian Popa <[email protected]>
Co-authored-by: Sid Vishnoi <[email protected]>
  • Loading branch information
3 people authored Aug 20, 2024
1 parent 701a062 commit 3fa28fb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion esbuild/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/background/services/openPayments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/background/services/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> {
Expand Down

0 comments on commit 3fa28fb

Please sign in to comment.