@atmosx/event-product-parser 2.0.12 → 2.0.13

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.
@@ -0,0 +1,4 @@
1
+ {
2
+ "js/ts.tsdk.path": "project\\node_modules\\typescript\\lib",
3
+ "js/ts.tsdk.promptToUseWorkspaceVersion": true
4
+ }
@@ -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 !== "POSSIBLE" }
4868
+ "Tornadic Special Marine Warning": { condition: (tornadoThreatTag) => tornadoThreatTag === "POSSIBLE" }
4869
4869
  } },
4870
4870
  { "Tornado Watch": {
4871
4871
  "PDS Tornado Watch": { description: "particularly dangerous situation" }
@@ -6012,7 +6012,7 @@ var EventParser = class {
6012
6012
  if (!conditionMet) continue;
6013
6013
  }
6014
6014
  if (!conditionMet && condition.condition) {
6015
- const tagToCheck = baseEvent.includes("Tornado") ? tornadoThreatTag : damageThreatTag;
6015
+ const tagToCheck = baseEvent.includes("Tornado") || baseEvent.includes("Special Marine Warning") ? tornadoThreatTag : damageThreatTag;
6016
6016
  conditionMet = condition.condition(tagToCheck);
6017
6017
  }
6018
6018
  if (conditionMet) {
@@ -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 !== "POSSIBLE" }
4856
+ "Tornadic Special Marine Warning": { condition: (tornadoThreatTag) => tornadoThreatTag === "POSSIBLE" }
4857
4857
  } },
4858
4858
  { "Tornado Watch": {
4859
4859
  "PDS Tornado Watch": { description: "particularly dangerous situation" }
@@ -6000,7 +6000,7 @@ var EventParser = class {
6000
6000
  if (!conditionMet) continue;
6001
6001
  }
6002
6002
  if (!conditionMet && condition.condition) {
6003
- const tagToCheck = baseEvent.includes("Tornado") ? tornadoThreatTag : damageThreatTag;
6003
+ const tagToCheck = baseEvent.includes("Tornado") || baseEvent.includes("Special Marine Warning") ? tornadoThreatTag : damageThreatTag;
6004
6004
  conditionMet = condition.condition(tagToCheck);
6005
6005
  }
6006
6006
  if (conditionMet) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atmosx/event-product-parser",
3
- "version": "2.0.012",
3
+ "version": "2.0.013",
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",
@@ -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 !== 'POSSIBLE'},
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"}