Skip to content

Commit 8fb7e8e

Browse files
fix: remove weather scope
1 parent a95cf27 commit 8fb7e8e

File tree

4 files changed

+7
-36
lines changed

4 files changed

+7
-36
lines changed

packages/app/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ export enum Scope {
33
"FMSDATA" = "fmsdata",
44
"TILES" = "tiles",
55
"AMDB" = "amdb",
6-
"WEATHER" = "weather",
76
}

packages/weather/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"postpack": "clean-package restore"
3434
},
3535
"dependencies": {
36-
"@navigraph/app": "1.3.5",
37-
"@navigraph/auth": "2.5.1",
36+
"@navigraph/app": "1.3.6",
37+
"@navigraph/auth": "2.5.2",
3838
"geojson": "^0.5.0",
3939
"metar-taf-parser": "^9.0.1"
4040
},

packages/weather/src/lib/getWeatherApi.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getApp, Logger, NotInitializedError, Scope } from "@navigraph/app"
1+
import { getApp, NotInitializedError } from "@navigraph/app"
22
import getAvwxReports from "../api/avwx/getAvwxReports"
33
import getReportsAlongRoute from "../api/getReportsAlongRoute"
44
import getMetarAtAirport from "../api/metar/getMetarAtAirport"
@@ -14,11 +14,8 @@ export const getWeatherApi = () => {
1414

1515
if (!app) {
1616
throw new NotInitializedError("Auth")
17-
} else if (!app.scopes.includes(Scope.WEATHER)) {
18-
Logger.warning(
19-
"Your Navigraph Application does not have the WEATHER scope. Attempts to access the Weather API will fail.",
20-
)
2117
}
18+
// Weather API does not require any scopes as of now
2219

2320
return {
2421
getMetarAtAirport,

yarn.lock

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5960,16 +5960,7 @@ string-length@^4.0.1:
59605960
char-regex "^1.0.2"
59615961
strip-ansi "^6.0.0"
59625962

5963-
"string-width-cjs@npm:string-width@^4.2.0":
5964-
version "4.2.3"
5965-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
5966-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
5967-
dependencies:
5968-
emoji-regex "^8.0.0"
5969-
is-fullwidth-code-point "^3.0.0"
5970-
strip-ansi "^6.0.1"
5971-
5972-
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
5963+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
59735964
version "4.2.3"
59745965
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
59755966
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -6014,14 +6005,7 @@ string.prototype.trimstart@^1.0.7:
60146005
define-properties "^1.2.0"
60156006
es-abstract "^1.22.1"
60166007

6017-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
6018-
version "6.0.1"
6019-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
6020-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
6021-
dependencies:
6022-
ansi-regex "^5.0.1"
6023-
6024-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
6008+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
60256009
version "6.0.1"
60266010
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
60276011
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -6697,7 +6681,7 @@ which@^2.0.1:
66976681
dependencies:
66986682
isexe "^2.0.0"
66996683

6700-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
6684+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
67016685
version "7.0.0"
67026686
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
67036687
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -6715,15 +6699,6 @@ wrap-ansi@^6.2.0:
67156699
string-width "^4.1.0"
67166700
strip-ansi "^6.0.0"
67176701

6718-
wrap-ansi@^7.0.0:
6719-
version "7.0.0"
6720-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
6721-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
6722-
dependencies:
6723-
ansi-styles "^4.0.0"
6724-
string-width "^4.1.0"
6725-
strip-ansi "^6.0.0"
6726-
67276702
wrap-ansi@^8.1.0:
67286703
version "8.1.0"
67296704
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)