atmosx-nwws-parser 1.0.185 → 1.0.1851

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 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atmosx-nwws-parser",
3
- "version": "1.0.185",
3
+ "version": "1.0.1851",
4
4
  "description": "NOAA Weather Wire Parser",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/events.js CHANGED
@@ -173,7 +173,7 @@ class NoaaWeatherWireServiceEvents {
173
173
  id: `Wire-${vtec.tracking}`,
174
174
  tracking: vtec.tracking,
175
175
  action: vtec.status,
176
- history: [{description: getDescription, action: vtec.status, issued: timeIssued}],
176
+ history: [{description: getDescription, action: vtec.status, issued: new Date(timeIssued) == `Invalid Date` ? new Date(timeIssued) : timeIssued}],
177
177
  properties: {
178
178
  areaDesc: mUgc.locations.join(`; `) || `N/A`,
179
179
  expires: new Date(vtec.expires) == `Invalid Date` ? new Date(9999, 0, 1) : new Date(vtec.expires),
@@ -238,7 +238,7 @@ class NoaaWeatherWireServiceEvents {
238
238
  id: `Wire-${defaultWMO ? defaultWMO[0] : `N/A`}-${mUgc.zones.join(`-`)}`,
239
239
  tracking: `${defaultWMO ? defaultWMO[0] : `N/A`}-${mUgc.zones.join(`-`)}`,
240
240
  action: `Issued`,
241
- history: [{description: getDescription, action: `Issued`, issued: timeIssued}],
241
+ history: [{description: getDescription, action: `Issued`, issued: new Date(timeIssued) == `Invalid Date` ? new Date(timeIssued) : timeIssued}],
242
242
  properties: {
243
243
  areaDesc: mUgc.locations.join(`; `) || `N/A`,
244
244
  expires: new Date(new Date(timeIssued).getTime() + 1 * 60 * 60 * 1000),