mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Remove web-ext-types
The definitely typed package is fine now
This commit is contained in:
parent
5092be9e36
commit
eb979892ff
4 changed files with 7 additions and 8 deletions
|
@ -63,7 +63,6 @@
|
|||
"typedoc": "^0.19.2",
|
||||
"typescript": "^3.9.9",
|
||||
"web-ext": "^6.0.0",
|
||||
"web-ext-types": "^3.2.1",
|
||||
"webpack": "^5.36.1",
|
||||
"webpack-cli": "^4.6.0"
|
||||
},
|
||||
|
|
|
@ -10,7 +10,12 @@ export function inContentScript() {
|
|||
|
||||
export function getTriVersion() {
|
||||
const manifest = browser.runtime.getManifest()
|
||||
return manifest.version_name
|
||||
|
||||
// version_name only really exists in Chrome
|
||||
// but we're using it anyway for our own purposes
|
||||
return (manifest as browser._manifest.WebExtensionManifest & {
|
||||
version_name: string
|
||||
}).version_name
|
||||
}
|
||||
|
||||
export function getPrettyTriVersion() {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "src/",
|
||||
"types": ["@types/ramda", "@types/firefox-webext-browser", "web-ext-types"],
|
||||
"types": ["@types/ramda", "@types/firefox-webext-browser"],
|
||||
"paths": {
|
||||
"@src/*": ["*"]
|
||||
}
|
||||
|
|
|
@ -7515,11 +7515,6 @@ wcwidth@^1.0.0:
|
|||
dependencies:
|
||||
defaults "^1.0.3"
|
||||
|
||||
web-ext-types@^3.2.1:
|
||||
version "3.2.1"
|
||||
resolved "https://registry.yarnpkg.com/web-ext-types/-/web-ext-types-3.2.1.tgz#3edc0e3c2e8fe121d7d7e4ca0b7ee0c883cea832"
|
||||
integrity sha512-oQZYDU3W8X867h8Jmt3129kRVKklz70db40Y6OzoTTuzOJpF/dB2KULJUf0txVPyUUXuyzV8GmT3nVvRHoG+Ew==
|
||||
|
||||
web-ext@^6.0.0:
|
||||
version "6.0.0"
|
||||
resolved "https://registry.yarnpkg.com/web-ext/-/web-ext-6.0.0.tgz#0da07ab1b88aa450374fea43c793114c42348d41"
|
||||
|
|
Loading…
Add table
Reference in a new issue