atmosx-nwws-parser 1.0.1851 → 1.0.1852

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/events.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atmosx-nwws-parser",
3
- "version": "1.0.1851",
3
+ "version": "1.0.1852",
4
4
  "description": "NOAA Weather Wire Parser",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/events.js CHANGED
@@ -165,6 +165,7 @@ class NoaaWeatherWireServiceEvents {
165
165
  let getThreat = loader.packages.mText.getString(msg, `DAMAGE THREAT...`);
166
166
  let timeIssued = loader.packages.mText.getString(msg, `ISSUED TIME...`);
167
167
  if (timeIssued == null) { timeIssued = stanza.attributes.issue; }
168
+ if (timeIssued == null) { new Date().toISOString(); }
168
169
  let senderOffice = loader.packages.mText.getOffice(msg) || vtec.tracking.split(`-`)[0];
169
170
  let getCoordinates = loader.packages.mText.getPolygonCoordinates(msg);
170
171
  let getDescription = loader.packages.mText.getCleanDescription(msg, vtec);
@@ -233,6 +234,7 @@ class NoaaWeatherWireServiceEvents {
233
234
  let getDescription = loader.packages.mText.getCleanDescription(msg, null);
234
235
  let timeIssued = loader.packages.mText.getString(msg, `ISSUED TIME...`);
235
236
  if (timeIssued == null) { timeIssued = stanza.attributes.issue; }
237
+ if (timeIssued == null) { new Date().toISOString(); }
236
238
  let alert = {
237
239
  hitch: `${new Date().getTime() - startTime}ms`,
238
240
  id: `Wire-${defaultWMO ? defaultWMO[0] : `N/A`}-${mUgc.zones.join(`-`)}`,