atmosx-nwws-parser 1.0.1913 → 1.0.1914

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.
@@ -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
  }
@@ -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.1914",
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
@@ -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
  }
@@ -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
  }