metar-taf-parser 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/model/model.d.ts +2 -2
- package/dist/parser/parser.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ✈️ [metar-taf-parser](https://aeharding.github.io/metar-taf-parser)
|
|
2
2
|
|
|
3
|
-
This is a port of [python-metar-taf-parser](https://github.com/mivek/python-metar-taf-parser) to Typescript. It's dependency-free, fully typed, tested, has i18n support, and can run on Node or the browser.
|
|
3
|
+
Parser for METeorological Aerodrome Reports (METARs) and Terminal Aerodrome Forecasts (TAFs). This is a port of [python-metar-taf-parser](https://github.com/mivek/python-metar-taf-parser) to Typescript. It's dependency-free, fully typed, tested, has i18n support, and can run on Node or in the browser.
|
|
4
4
|
|
|
5
5
|
[Check out the demo here](https://aeharding.github.io/metar-taf-parser)
|
|
6
6
|
|
package/dist/model/model.d.ts
CHANGED
|
@@ -87,8 +87,8 @@ export interface IMetar extends IAbstractWeatherCode {
|
|
|
87
87
|
temperature?: number;
|
|
88
88
|
dewPoint?: number;
|
|
89
89
|
altimeter?: number;
|
|
90
|
-
nosig
|
|
91
|
-
auto
|
|
90
|
+
nosig?: boolean;
|
|
91
|
+
auto?: boolean;
|
|
92
92
|
runwaysInfo: IRunwayInfo[];
|
|
93
93
|
trends: IMetarTrend[];
|
|
94
94
|
}
|
package/dist/parser/parser.js
CHANGED
|
@@ -241,7 +241,7 @@ class MetarParser extends AbstractParser {
|
|
|
241
241
|
*/
|
|
242
242
|
parse(input) {
|
|
243
243
|
const metarTab = this.tokenize(input);
|
|
244
|
-
const metar = Object.assign(Object.assign({}, parseDeliveryTime(metarTab[1])), { station: metarTab[0], message: input,
|
|
244
|
+
const metar = Object.assign(Object.assign({}, parseDeliveryTime(metarTab[1])), { station: metarTab[0], message: input, remark: "", remarks: [], clouds: [], weatherConditions: [], trends: [], runwaysInfo: [] });
|
|
245
245
|
let index = 2;
|
|
246
246
|
while (index < metarTab.length) {
|
|
247
247
|
if (!super.generalParse(metar, metarTab[index])) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metar-taf-parser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Parse METAR and TAF reports",
|
|
5
5
|
"homepage": "https://aeharding.github.io/metar-taf-parser",
|
|
6
6
|
"keywords": [
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"metar",
|
|
10
10
|
"taf",
|
|
11
11
|
"report",
|
|
12
|
-
"deserialize"
|
|
12
|
+
"deserialize",
|
|
13
|
+
"decoder"
|
|
13
14
|
],
|
|
14
15
|
"main": "./dist/index.js",
|
|
15
16
|
"types": "./dist/index.d.ts",
|