From a5b08759ba8444749cffd5b16f15bd06b9ca579b Mon Sep 17 00:00:00 2001 From: oceanroleplay Date: Wed, 15 Sep 2021 21:51:28 +0530 Subject: [PATCH] fix taf --- package-lock.json | 4 ++-- package.json | 2 +- src/types/responses/AW/ITAF.ts | 2 +- tests/test.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6ccd606..23a3198 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aviationweather", - "version": "1.2.9", + "version": "1.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "aviationweather", - "version": "1.2.9", + "version": "1.3.0", "license": "MIT", "dependencies": { "axios": "^0.21.1", diff --git a/package.json b/package.json index 309629b..315b6e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aviationweather", - "version": "1.2.9", + "version": "1.3.0", "description": "Node.js wrapper for aviation weather, written in TypeScript", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/types/responses/AW/ITAF.ts b/src/types/responses/AW/ITAF.ts index 37e74bc..52ea628 100644 --- a/src/types/responses/AW/ITAF.ts +++ b/src/types/responses/AW/ITAF.ts @@ -124,7 +124,7 @@ export interface Forecast { /** * Sky condition */ - sky_condition: { + sky_condition?: { /** * Sky coverage */ diff --git a/tests/test.ts b/tests/test.ts index 76d77c7..78059b9 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -5,7 +5,7 @@ const myc = new Client({ debug: true }); myc .AW({ datasource: "TAFS", - stationString: "WSSS", + stationString: "egll", hoursBeforeNow: 1, }) .then((res) => {