atmosx-nwws-parser 1.0.1913 → 1.0.1915

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.
@@ -319,7 +319,7 @@ var mEvents = /** @class */ (function () {
319
319
  if (vtec.wmo) {
320
320
  defaultWMO = vtec.wmo;
321
321
  }
322
- getTornado = text_parser_1.default.getString(message, "TONRADO...") || text_parser_1.default.getString(message, "WATERSPOUT...") || "N/A";
322
+ getTornado = text_parser_1.default.getString(message, "TORNADO...") || text_parser_1.default.getString(message, "WATERSPOUT...") || "N/A";
323
323
  getHailSize = text_parser_1.default.getString(message, "MAX HAIL SIZE...", ["IN"]) || text_parser_1.default.getString(message, "HAIL...", ["IN"]) || "N/A";
324
324
  getWindGusts = text_parser_1.default.getString(message, "MAX WIND GUST...") || text_parser_1.default.getString(message, "WIND...") || "N/A";
325
325
  getDamageThreat = text_parser_1.default.getString(message, "DAMAGE THREAT...") || "N/A";
@@ -361,13 +361,13 @@ var mEvents = /** @class */ (function () {
361
361
  maxWindGust: getWindGusts,
362
362
  thunderstormDamageThreat: [getDamageThreat],
363
363
  },
364
- geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
365
- }
364
+ },
365
+ geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
366
366
  };
367
367
  if (loader.settings.alertSettings.ugcPolygons) {
368
368
  ugcCoordinates = ugc_1.default.getCoordinates(mUgc.zones);
369
369
  if (ugcCoordinates.length > 0) {
370
- alert_2.properties.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] };
370
+ alert_2.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] };
371
371
  }
372
372
  ;
373
373
  }
@@ -416,7 +416,7 @@ var mEvents = /** @class */ (function () {
416
416
  case 2:
417
417
  mUgc = _a.sent();
418
418
  if (mUgc != null) {
419
- getTornado = text_parser_1.default.getString(message, "TONRADO...") || text_parser_1.default.getString(message, "WATERSPOUT...") || "N/A";
419
+ getTornado = text_parser_1.default.getString(message, "TORNADO...") || text_parser_1.default.getString(message, "WATERSPOUT...") || "N/A";
420
420
  getHailSize = text_parser_1.default.getString(message, "MAX HAIL SIZE...", ["IN"]) || text_parser_1.default.getString(message, "HAIL...", ["IN"]) || "N/A";
421
421
  getWindGusts = text_parser_1.default.getString(message, "MAX WIND GUST...") || text_parser_1.default.getString(message, "WIND...") || "N/A";
422
422
  getDamageThreat = text_parser_1.default.getString(message, "DAMAGE THREAT...") || "N/A";
@@ -458,13 +458,13 @@ var mEvents = /** @class */ (function () {
458
458
  maxWindGust: getWindGusts,
459
459
  thunderstormDamageThreat: [getDamageThreat],
460
460
  },
461
- geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
462
- }
461
+ },
462
+ geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
463
463
  };
464
464
  if (loader.settings.alertSettings.ugcPolygons) {
465
465
  ugcCoordinates = ugc_1.default.getCoordinates(mUgc.zones);
466
466
  if (ugcCoordinates.length > 0) {
467
- alert_3.properties.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] };
467
+ alert_3.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] };
468
468
  }
469
469
  ;
470
470
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atmosx-nwws-parser",
3
- "version": "1.0.1913",
3
+ "version": "1.0.1915",
4
4
  "description": "NOAA Weather Wire Parser - Built for standalone and Project AtmosphericX Integration.",
5
5
  "main": "dist/src/helper.js",
6
6
  "types": "src/helper.d.ts",
package/src/events.ts CHANGED
@@ -194,7 +194,7 @@ export class mEvents {
194
194
  for (let v = 0; v < mVtec.length; v++) {
195
195
  let vtec = mVtec[v];
196
196
  if (vtec.wmo) { defaultWMO = vtec.wmo; }
197
- const getTornado = mTextParser.getString(message, `TONRADO...`) || mTextParser.getString(message, `WATERSPOUT...`) || `N/A`;
197
+ const getTornado = mTextParser.getString(message, `TORNADO...`) || mTextParser.getString(message, `WATERSPOUT...`) || `N/A`;
198
198
  const getHailSize = mTextParser.getString(message, `MAX HAIL SIZE...`, [`IN`]) || mTextParser.getString(message, `HAIL...`, [`IN`]) || `N/A`;
199
199
  const getWindGusts = mTextParser.getString(message, `MAX WIND GUST...`) || mTextParser.getString(message, `WIND...`) || `N/A`;
200
200
  const getDamageThreat = mTextParser.getString(message, `DAMAGE THREAT...`) || `N/A`;
@@ -230,12 +230,12 @@ export class mEvents {
230
230
  maxWindGust: getWindGusts,
231
231
  thunderstormDamageThreat: [getDamageThreat],
232
232
  },
233
- geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
234
- }
233
+ },
234
+ geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
235
235
  };
236
236
  if (loader.settings.alertSettings.ugcPolygons) {
237
237
  const ugcCoordinates = mUgcParser.getCoordinates(mUgc.zones);
238
- if (ugcCoordinates.length > 0) { alert.properties.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] }; };
238
+ if (ugcCoordinates.length > 0) { alert.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] }; };
239
239
  }
240
240
  alerts.push(alert);
241
241
  }
@@ -266,7 +266,7 @@ export class mEvents {
266
266
  const message = messages[i];
267
267
  const mUgc = await mUgcParser.getUGC(message);
268
268
  if (mUgc != null) {
269
- const getTornado = mTextParser.getString(message, `TONRADO...`) || mTextParser.getString(message, `WATERSPOUT...`) || `N/A`;
269
+ const getTornado = mTextParser.getString(message, `TORNADO...`) || mTextParser.getString(message, `WATERSPOUT...`) || `N/A`;
270
270
  const getHailSize = mTextParser.getString(message, `MAX HAIL SIZE...`, [`IN`]) || mTextParser.getString(message, `HAIL...`, [`IN`]) || `N/A`;
271
271
  const getWindGusts = mTextParser.getString(message, `MAX WIND GUST...`) || mTextParser.getString(message, `WIND...`) || `N/A`;
272
272
  const getDamageThreat = mTextParser.getString(message, `DAMAGE THREAT...`) || `N/A`;
@@ -302,12 +302,12 @@ export class mEvents {
302
302
  maxWindGust: getWindGusts,
303
303
  thunderstormDamageThreat: [getDamageThreat],
304
304
  },
305
- geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
306
- }
305
+ },
306
+ geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
307
307
  };
308
308
  if (loader.settings.alertSettings.ugcPolygons) {
309
309
  const ugcCoordinates = mUgcParser.getCoordinates(mUgc.zones);
310
- if (ugcCoordinates.length > 0) { alert.properties.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] }; };
310
+ if (ugcCoordinates.length > 0) { alert.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] }; };
311
311
  }
312
312
  alerts.push(alert);
313
313
  }