@atmosx/event-product-parser 2.0.12 → 2.0.14
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.
- package/.vscode/settings.json +4 -0
- package/dist/cjs/index.cjs +11 -10
- package/dist/esm/index.mjs +11 -10
- package/package.json +1 -1
- package/src/@parsers/events.ts +1 -1
- package/src/bootstrap.ts +9 -8
package/dist/cjs/index.cjs
CHANGED
|
@@ -4865,7 +4865,7 @@ var definitions = {
|
|
|
4865
4865
|
"Radar Indicated Tornado Warning": { condition: (tornadoThreatTag) => tornadoThreatTag !== "OBSERVED" }
|
|
4866
4866
|
} },
|
|
4867
4867
|
{ "Special Marine Warning": {
|
|
4868
|
-
"Tornadic Special Marine Warning": { condition: (tornadoThreatTag) => tornadoThreatTag
|
|
4868
|
+
"Tornadic Special Marine Warning": { condition: (tornadoThreatTag) => tornadoThreatTag === "POSSIBLE" }
|
|
4869
4869
|
} },
|
|
4870
4870
|
{ "Tornado Watch": {
|
|
4871
4871
|
"PDS Tornado Watch": { description: "particularly dangerous situation" }
|
|
@@ -4881,14 +4881,15 @@ var definitions = {
|
|
|
4881
4881
|
} }
|
|
4882
4882
|
],
|
|
4883
4883
|
shapefiles_directory: [
|
|
4884
|
-
{ name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/
|
|
4885
|
-
{ name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/
|
|
4886
|
-
{ name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4887
|
-
{ name: "costal_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4888
|
-
{ name: "offshore_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4889
|
-
{ name: "public_forecast_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4890
|
-
{ name: "county_warning_areas", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4891
|
-
{ name: "river_forecast_boundaries", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/Misc/rf05mr24.zip" }
|
|
4884
|
+
{ name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/c_16ap26.zip" },
|
|
4885
|
+
{ name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/s_16ap26.zip" },
|
|
4886
|
+
{ name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/fz16ap26.zip" },
|
|
4887
|
+
{ name: "costal_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/mz16ap26.zip" },
|
|
4888
|
+
{ name: "offshore_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/oz16ap26.zip" },
|
|
4889
|
+
{ name: "public_forecast_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/z_16ap26.zip" },
|
|
4890
|
+
{ name: "county_warning_areas", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/w_16ap26.zip" },
|
|
4891
|
+
{ name: "river_forecast_boundaries", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/Misc/rf05mr24.zip" },
|
|
4892
|
+
{ name: "high_seas_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/hz17fe26.zip" }
|
|
4892
4893
|
],
|
|
4893
4894
|
regular_expressions: {
|
|
4894
4895
|
pvtec: new RegExp(`[OTEX].(NEW|CON|EXT|EXA|EXB|UPG|CAN|EXP|COR|ROU).[A-Z]{4}.[A-Z]{2}.[WAYSFON].[0-9]{4}.[0-9]{6}T[0-9]{4}Z-[0-9]{6}T[0-9]{4}Z`, "g"),
|
|
@@ -6012,7 +6013,7 @@ var EventParser = class {
|
|
|
6012
6013
|
if (!conditionMet) continue;
|
|
6013
6014
|
}
|
|
6014
6015
|
if (!conditionMet && condition.condition) {
|
|
6015
|
-
const tagToCheck = baseEvent.includes("Tornado") ? tornadoThreatTag : damageThreatTag;
|
|
6016
|
+
const tagToCheck = baseEvent.includes("Tornado") || baseEvent.includes("Special Marine Warning") ? tornadoThreatTag : damageThreatTag;
|
|
6016
6017
|
conditionMet = condition.condition(tagToCheck);
|
|
6017
6018
|
}
|
|
6018
6019
|
if (conditionMet) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4853,7 +4853,7 @@ var definitions = {
|
|
|
4853
4853
|
"Radar Indicated Tornado Warning": { condition: (tornadoThreatTag) => tornadoThreatTag !== "OBSERVED" }
|
|
4854
4854
|
} },
|
|
4855
4855
|
{ "Special Marine Warning": {
|
|
4856
|
-
"Tornadic Special Marine Warning": { condition: (tornadoThreatTag) => tornadoThreatTag
|
|
4856
|
+
"Tornadic Special Marine Warning": { condition: (tornadoThreatTag) => tornadoThreatTag === "POSSIBLE" }
|
|
4857
4857
|
} },
|
|
4858
4858
|
{ "Tornado Watch": {
|
|
4859
4859
|
"PDS Tornado Watch": { description: "particularly dangerous situation" }
|
|
@@ -4869,14 +4869,15 @@ var definitions = {
|
|
|
4869
4869
|
} }
|
|
4870
4870
|
],
|
|
4871
4871
|
shapefiles_directory: [
|
|
4872
|
-
{ name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/
|
|
4873
|
-
{ name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/
|
|
4874
|
-
{ name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4875
|
-
{ name: "costal_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4876
|
-
{ name: "offshore_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4877
|
-
{ name: "public_forecast_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4878
|
-
{ name: "county_warning_areas", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
4879
|
-
{ name: "river_forecast_boundaries", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/Misc/rf05mr24.zip" }
|
|
4872
|
+
{ name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/c_16ap26.zip" },
|
|
4873
|
+
{ name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/s_16ap26.zip" },
|
|
4874
|
+
{ name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/fz16ap26.zip" },
|
|
4875
|
+
{ name: "costal_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/mz16ap26.zip" },
|
|
4876
|
+
{ name: "offshore_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/oz16ap26.zip" },
|
|
4877
|
+
{ name: "public_forecast_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/z_16ap26.zip" },
|
|
4878
|
+
{ name: "county_warning_areas", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/w_16ap26.zip" },
|
|
4879
|
+
{ name: "river_forecast_boundaries", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/Misc/rf05mr24.zip" },
|
|
4880
|
+
{ name: "high_seas_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/hz17fe26.zip" }
|
|
4880
4881
|
],
|
|
4881
4882
|
regular_expressions: {
|
|
4882
4883
|
pvtec: new RegExp(`[OTEX].(NEW|CON|EXT|EXA|EXB|UPG|CAN|EXP|COR|ROU).[A-Z]{4}.[A-Z]{2}.[WAYSFON].[0-9]{4}.[0-9]{6}T[0-9]{4}Z-[0-9]{6}T[0-9]{4}Z`, "g"),
|
|
@@ -6000,7 +6001,7 @@ var EventParser = class {
|
|
|
6000
6001
|
if (!conditionMet) continue;
|
|
6001
6002
|
}
|
|
6002
6003
|
if (!conditionMet && condition.condition) {
|
|
6003
|
-
const tagToCheck = baseEvent.includes("Tornado") ? tornadoThreatTag : damageThreatTag;
|
|
6004
|
+
const tagToCheck = baseEvent.includes("Tornado") || baseEvent.includes("Special Marine Warning") ? tornadoThreatTag : damageThreatTag;
|
|
6004
6005
|
conditionMet = condition.condition(tagToCheck);
|
|
6005
6006
|
}
|
|
6006
6007
|
if (conditionMet) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atmosx/event-product-parser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.014",
|
|
4
4
|
"description": "NOAA Weather Wire & NWS API Parser - Built for standalone and Project AtmosphericX Integration.",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
package/src/@parsers/events.ts
CHANGED
|
@@ -142,7 +142,7 @@ export class EventParser {
|
|
|
142
142
|
if (!conditionMet) continue;
|
|
143
143
|
}
|
|
144
144
|
if (!conditionMet && condition.condition) {
|
|
145
|
-
const tagToCheck = baseEvent.includes('Tornado') ? tornadoThreatTag : damageThreatTag;
|
|
145
|
+
const tagToCheck = baseEvent.includes('Tornado') || baseEvent.includes('Special Marine Warning') ? tornadoThreatTag : damageThreatTag;
|
|
146
146
|
conditionMet = condition.condition(tagToCheck);
|
|
147
147
|
}
|
|
148
148
|
if (conditionMet) {
|
package/src/bootstrap.ts
CHANGED
|
@@ -135,7 +135,7 @@ export const definitions = {
|
|
|
135
135
|
"Radar Indicated Tornado Warning": {condition: (tornadoThreatTag: string) => tornadoThreatTag !== 'OBSERVED'},
|
|
136
136
|
}},
|
|
137
137
|
{"Special Marine Warning": {
|
|
138
|
-
"Tornadic Special Marine Warning": {condition: (tornadoThreatTag: string) => tornadoThreatTag
|
|
138
|
+
"Tornadic Special Marine Warning": {condition: (tornadoThreatTag: string) => tornadoThreatTag === 'POSSIBLE'},
|
|
139
139
|
}},
|
|
140
140
|
{"Tornado Watch": {
|
|
141
141
|
"PDS Tornado Watch": { description: "particularly dangerous situation"}
|
|
@@ -151,14 +151,15 @@ export const definitions = {
|
|
|
151
151
|
}},
|
|
152
152
|
],
|
|
153
153
|
shapefiles_directory: [
|
|
154
|
-
{name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/
|
|
155
|
-
{name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/
|
|
156
|
-
{name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
157
|
-
{name: "costal_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
158
|
-
{name: "offshore_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
159
|
-
{name: "public_forecast_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
160
|
-
{name: "county_warning_areas", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/
|
|
154
|
+
{name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/c_16ap26.zip"},
|
|
155
|
+
{name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/s_16ap26.zip"},
|
|
156
|
+
{name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/fz16ap26.zip"},
|
|
157
|
+
{name: "costal_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/mz16ap26.zip"},
|
|
158
|
+
{name: "offshore_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/oz16ap26.zip"},
|
|
159
|
+
{name: "public_forecast_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/z_16ap26.zip"},
|
|
160
|
+
{name: "county_warning_areas", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/w_16ap26.zip"},
|
|
161
161
|
{name: "river_forecast_boundaries", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/Misc/rf05mr24.zip"},
|
|
162
|
+
{name: "high_seas_marine_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/hz17fe26.zip"}
|
|
162
163
|
],
|
|
163
164
|
regular_expressions: {
|
|
164
165
|
pvtec: new RegExp(`[OTEX].(NEW|CON|EXT|EXA|EXB|UPG|CAN|EXP|COR|ROU).[A-Z]{4}.[A-Z]{2}.[WAYSFON].[0-9]{4}.[0-9]{6}T[0-9]{4}Z-[0-9]{6}T[0-9]{4}Z`, "g"),
|