metar-taf-parser 6.1.3 → 6.1.4

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.
@@ -2307,15 +2307,17 @@ class MetarParser extends AbstractParser {
2307
2307
  }
2308
2308
  else if (metarTab[index] === this.TEMPO ||
2309
2309
  metarTab[index] === this.BECMG) {
2310
+ const startIndex = index;
2310
2311
  const trend = {
2311
2312
  type: WeatherChangeType[metarTab[index]],
2312
2313
  weatherConditions: [],
2313
2314
  clouds: [],
2314
2315
  times: [],
2315
2316
  remarks: [],
2316
- raw: input,
2317
+ raw: "",
2317
2318
  };
2318
2319
  index = this.parseTrend(index, trend, metarTab);
2320
+ trend.raw = metarTab.slice(startIndex, index + 1).join(" ");
2319
2321
  metar.trends.push(trend);
2320
2322
  }
2321
2323
  else if (metarTab[index] === this.RMK) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metar-taf-parser",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "description": "Parse METAR and TAF reports",
5
5
  "homepage": "https://aeharding.github.io/metar-taf-parser",
6
6
  "keywords": [