@mark1russell7/guidebook-preparedness 0.7.47 → 0.7.49
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/build/index.d.ts.map +1 -1
- package/build/index.js +77 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data/sources.ts +2 -2
- package/src/data/steps.ts +10 -2
- package/src/data/uses.ts +52 -0
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/rules.ts","../src/data/chart.ts","../src/data/topics.ts","../src/data/units.ts","../src/data/tab-units.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"mappings":";;;;;qBAOa;;qBAKA,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/rules.ts","../src/data/chart.ts","../src/data/topics.ts","../src/data/units.ts","../src/data/tab-units.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"mappings":";;;;;qBAOa;;qBAKA,kBAAkB;;qBCsFlB,qBAAqB;;;;;qBAoiBrB,oBAAoB;;qBAgSpB,gBAAgB;;qBC15BhB,eAAe;;;;;qBCLf;;qBCEA,gBAAgB;;qBCwBhB;;qBAGA;;;;;qBAQA,iBAAiB;;qBCrCjB;;qBAyDA,iBAAiB;;qBCshFjB,sBAAsB;;qBCg+DtB,oBAAoB;;qBC7iJpB;;;;;;qBAOA;;qBAKA,kBAAkB;;;;;;qBAyBlB,gBAAgB;;qBCvChB,sBAAsB;;qBA8CtB,eAAe,SAAS,QAAQ,OAAO;WAAuB;WAA6B;;;;;;;;;qBAY3F,cAAc,SAAS;WAA0B,MAAM;WAAqB,MAAM;WAAqB;;;;;;qBAYvG,sBAAsB;;;;;qBCrDtB;;;;;qBAmBA;;qBAGA;;qBAGA;;;qBAIA;qBAEA,eAAe;;qBAGf,kBAAkB;;qBAGlB,OAAO"}
|
package/build/index.js
CHANGED
|
@@ -534,20 +534,75 @@ function hazardsOf(steps) {
|
|
|
534
534
|
};
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
|
+
// src/data/uses.ts
|
|
538
|
+
const WEATHER_RADIO = "communication.noaa-radio";
|
|
539
|
+
const AM_FM_RADIO = "communication.am-fm-radio";
|
|
540
|
+
const TWO_WAY_RADIOS = "communication.frs-radio-pair";
|
|
541
|
+
const FLASHLIGHT = "light.flashlight";
|
|
542
|
+
const CELLS = "power.aa-alkaline";
|
|
543
|
+
const FIRST_AID_KIT = "first-aid.kit";
|
|
544
|
+
const SLEEPING_BAG = "heat.sleeping-bag";
|
|
545
|
+
/** The items that each step uses, by the `id` of the step. A test holds that each key is the id of a step. */
|
|
546
|
+
const STEP_USES = {
|
|
547
|
+
"met.winter.storm.ready.supplies": [
|
|
548
|
+
WEATHER_RADIO,
|
|
549
|
+
FLASHLIGHT,
|
|
550
|
+
CELLS
|
|
551
|
+
],
|
|
552
|
+
"met.winter.storm.ready.car-kit": [FLASHLIGHT],
|
|
553
|
+
"met.flood.ready.alerts": [WEATHER_RADIO],
|
|
554
|
+
"met.tornado.ready.alerts": [WEATHER_RADIO],
|
|
555
|
+
"met.tornado.P1.listen": [WEATHER_RADIO],
|
|
556
|
+
"cbrne.hazardous-materials.warned.listen": [WEATHER_RADIO],
|
|
557
|
+
"cbrne.radiological.ready.radio": [WEATHER_RADIO, CELLS],
|
|
558
|
+
"cbrne.radiological.warned.inside": [WEATHER_RADIO],
|
|
559
|
+
"health.medical-emergency.ready.first-aid-kit": [FIRST_AID_KIT],
|
|
560
|
+
"civic.ai-collapse.ready.radio": [WEATHER_RADIO, CELLS],
|
|
561
|
+
"civic.ai-collapse.P0.shelter": [WEATHER_RADIO],
|
|
562
|
+
"civic.ai-collapse.P1.radio-info": [AM_FM_RADIO],
|
|
563
|
+
"infra.power.grid-collapse.ready.radio": [AM_FM_RADIO, CELLS],
|
|
564
|
+
"cyber.infrastructure-attack.ready.radio": [AM_FM_RADIO, CELLS],
|
|
565
|
+
"security.civil-unrest.P0.go-in": [AM_FM_RADIO],
|
|
566
|
+
"security.armed-conflict.warned.alarm-radio": [AM_FM_RADIO],
|
|
567
|
+
"infra.power.grid-collapse.ready.warm": [SLEEPING_BAG],
|
|
568
|
+
"cbrne.nuclear-detonation.ready.alerts-and-radio": [WEATHER_RADIO, CELLS],
|
|
569
|
+
"security.nuclear-war.ready.radio": [WEATHER_RADIO, CELLS],
|
|
570
|
+
"security.nuclear-war.warned.public-warning": [WEATHER_RADIO],
|
|
571
|
+
"cbrne.emp.ready.spare-batteries": [CELLS],
|
|
572
|
+
"cbrne.emp.ready.battery-radio": [AM_FM_RADIO, CELLS],
|
|
573
|
+
"cbrne.emp.P1.listen-radio": [AM_FM_RADIO],
|
|
574
|
+
"security.armed-conflict.ready.radio": [WEATHER_RADIO, CELLS],
|
|
575
|
+
"power.grid.ready.flashlights": [FLASHLIGHT],
|
|
576
|
+
"phone.network.ready.radio": [WEATHER_RADIO, CELLS],
|
|
577
|
+
"phone.network.ready.radios": [TWO_WAY_RADIOS],
|
|
578
|
+
"phone.network.P4.two-way-radio": [TWO_WAY_RADIOS],
|
|
579
|
+
"phone.network.P2.news": [AM_FM_RADIO],
|
|
580
|
+
"network.access.ready.radio": [WEATHER_RADIO, CELLS],
|
|
581
|
+
"network.access.P1.news": [AM_FM_RADIO],
|
|
582
|
+
"care.local.P3.medic": [FIRST_AID_KIT],
|
|
583
|
+
"fuel.retail.ready.warm-layers": [SLEEPING_BAG],
|
|
584
|
+
"home.dwelling.P1.radio": [WEATHER_RADIO, CELLS]
|
|
585
|
+
};
|
|
537
586
|
// src/data/steps.ts
|
|
538
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* This function makes the steps of a key from its rows. The order of a step is its position among the rows of its phase.
|
|
589
|
+
* The items that a step uses come from `STEP_USES`, by the id of the step.
|
|
590
|
+
*/
|
|
539
591
|
function stepsOf(on, rows) {
|
|
540
592
|
const count = /* @__PURE__ */ new Map();
|
|
541
593
|
return rows.map(([phase, name, action, sources, more = []]) => {
|
|
542
594
|
const { needs = [], reasoning, society, when } = Array.isArray(more) ? { needs: more } : more;
|
|
543
595
|
const order = (count.get(phase) ?? 0) + 1;
|
|
544
596
|
count.set(phase, order);
|
|
597
|
+
const id = `${on}.${phase}.${name}`;
|
|
598
|
+
const uses = STEP_USES[id];
|
|
545
599
|
return {
|
|
546
|
-
id
|
|
600
|
+
id,
|
|
547
601
|
on,
|
|
548
602
|
phase,
|
|
549
603
|
needs,
|
|
550
604
|
do: action,
|
|
605
|
+
...uses === void 0 ? {} : { uses },
|
|
551
606
|
order,
|
|
552
607
|
sources,
|
|
553
608
|
...reasoning === void 0 ? {} : { reasoning },
|
|
@@ -964,6 +1019,12 @@ const CASE_STEPS = [
|
|
|
964
1019
|
"Move valuable items to higher levels, and clear the drains and gutters.",
|
|
965
1020
|
["ready-floods"]
|
|
966
1021
|
],
|
|
1022
|
+
[
|
|
1023
|
+
"ready",
|
|
1024
|
+
"alerts",
|
|
1025
|
+
"Sign up for the warning system of your community. The Emergency Alert System and a NOAA Weather Radio also give flood alerts.",
|
|
1026
|
+
["ready-floods"]
|
|
1027
|
+
],
|
|
967
1028
|
[
|
|
968
1029
|
"warned",
|
|
969
1030
|
"shelter",
|
|
@@ -1178,6 +1239,12 @@ const CASE_STEPS = [
|
|
|
1178
1239
|
"Learn the sounds of the sirens in your area.",
|
|
1179
1240
|
["ready-tornadoes"]
|
|
1180
1241
|
],
|
|
1242
|
+
[
|
|
1243
|
+
"ready",
|
|
1244
|
+
"alerts",
|
|
1245
|
+
"Sign up for the warning system of your community. The Emergency Alert System and a NOAA Weather Radio also give tornado alerts.",
|
|
1246
|
+
["ready-tornadoes"]
|
|
1247
|
+
],
|
|
1181
1248
|
[
|
|
1182
1249
|
"warned",
|
|
1183
1250
|
"shelter",
|
|
@@ -5848,13 +5915,19 @@ const federal = (id, by, title, url) => ({
|
|
|
5848
5915
|
const SOURCES = [
|
|
5849
5916
|
federal("ready-winter", "Ready.gov", "Winter Weather", "https://www.ready.gov/winter-weather"),
|
|
5850
5917
|
federal("ready-hurricanes", "Ready.gov", "Hurricanes", "https://www.ready.gov/hurricanes"),
|
|
5851
|
-
|
|
5918
|
+
{
|
|
5919
|
+
...federal("ready-floods", "Ready.gov", "Floods", "https://www.ready.gov/floods"),
|
|
5920
|
+
checked: "2026-11-26"
|
|
5921
|
+
},
|
|
5852
5922
|
federal("ready-heat", "Ready.gov", "Extreme Heat", "https://www.ready.gov/heat"),
|
|
5853
5923
|
{
|
|
5854
5924
|
...federal("nws-heat-ww", "National Weather Service", "Understanding Heat Alerts", "https://www.weather.gov/safety/heat-ww"),
|
|
5855
5925
|
checked: "2026-11-24"
|
|
5856
5926
|
},
|
|
5857
|
-
|
|
5927
|
+
{
|
|
5928
|
+
...federal("ready-tornadoes", "Ready.gov", "Tornadoes", "https://www.ready.gov/tornadoes"),
|
|
5929
|
+
checked: "2026-11-26"
|
|
5930
|
+
},
|
|
5858
5931
|
federal("ready-earthquakes", "Ready.gov", "Earthquakes", "https://www.ready.gov/earthquakes"),
|
|
5859
5932
|
federal("ready-fire", "Ready.gov", "Home Fires", "https://www.ready.gov/home-fires"),
|
|
5860
5933
|
{
|