@mark1russell7/guidebook-preparedness 0.7.49 → 0.7.51
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 +38 -0
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/data/averts.ts +12 -0
- package/src/data/persons.ts +21 -0
- package/src/data/sources.ts +2 -0
- package/src/data/steps.ts +6 -1
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;;qBC2FlB,qBAAqB;;;;;qBAoiBrB,oBAAoB;;qBAgSpB,gBAAgB;;qBC/5BhB,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,6 +534,31 @@ function hazardsOf(steps) {
|
|
|
534
534
|
};
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
|
+
// src/data/averts.ts
|
|
538
|
+
/** The averted shares of each step, by the `id` of the step. A test holds that each key is the id of a step. */
|
|
539
|
+
const STEP_AVERTS = { "power.grid.ready.co-alarms": [{
|
|
540
|
+
cause: "co-poisoning",
|
|
541
|
+
value: .5,
|
|
542
|
+
low: .375,
|
|
543
|
+
high: .574,
|
|
544
|
+
source: "yoon-co-detectors"
|
|
545
|
+
}] };
|
|
546
|
+
// src/data/persons.ts
|
|
547
|
+
/** The groups of persons that each step protects, by the `id` of the step. A test holds that each key is the id of a step. */
|
|
548
|
+
const STEP_PERSONS = {
|
|
549
|
+
"met.tropical.hurricane.warned.neighbors": ["older-adult"],
|
|
550
|
+
"met.tropical.hurricane.P3.mold": ["child"],
|
|
551
|
+
"met.heat.extreme.P1.check": ["older-adult"],
|
|
552
|
+
"fire.structure.ready.children": ["child"],
|
|
553
|
+
"fire.wildfire.P1.n95": ["infant", "child"],
|
|
554
|
+
"infra.supply-chain.food.ready.household": ["infant"],
|
|
555
|
+
"infra.supply-chain.food.P2.formula": ["infant"],
|
|
556
|
+
"cbrne.nuclear-detonation.P2.pregnant-care": ["pregnant"],
|
|
557
|
+
"security.armed-conflict.P3.children": ["child"],
|
|
558
|
+
"water.main.P1.unsafe": ["infant"],
|
|
559
|
+
"network.access.P5.teach-children": ["child"],
|
|
560
|
+
"food.retail.P3.share-by-need": ["child"]
|
|
561
|
+
};
|
|
537
562
|
// src/data/uses.ts
|
|
538
563
|
const WEATHER_RADIO = "communication.noaa-radio";
|
|
539
564
|
const AM_FM_RADIO = "communication.am-fm-radio";
|
|
@@ -587,6 +612,7 @@ const STEP_USES = {
|
|
|
587
612
|
/**
|
|
588
613
|
* 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
614
|
* The items that a step uses come from `STEP_USES`, by the id of the step.
|
|
615
|
+
* Its groups of persons come from `STEP_PERSONS`, and its averted shares come from `STEP_AVERTS`.
|
|
590
616
|
*/
|
|
591
617
|
function stepsOf(on, rows) {
|
|
592
618
|
const count = /* @__PURE__ */ new Map();
|
|
@@ -596,6 +622,8 @@ function stepsOf(on, rows) {
|
|
|
596
622
|
count.set(phase, order);
|
|
597
623
|
const id = `${on}.${phase}.${name}`;
|
|
598
624
|
const uses = STEP_USES[id];
|
|
625
|
+
const persons = STEP_PERSONS[id];
|
|
626
|
+
const averts = STEP_AVERTS[id];
|
|
599
627
|
return {
|
|
600
628
|
id,
|
|
601
629
|
on,
|
|
@@ -603,6 +631,8 @@ function stepsOf(on, rows) {
|
|
|
603
631
|
needs,
|
|
604
632
|
do: action,
|
|
605
633
|
...uses === void 0 ? {} : { uses },
|
|
634
|
+
...persons === void 0 ? {} : { persons },
|
|
635
|
+
...averts === void 0 ? {} : { averts },
|
|
606
636
|
order,
|
|
607
637
|
sources,
|
|
608
638
|
...reasoning === void 0 ? {} : { reasoning },
|
|
@@ -7306,6 +7336,14 @@ const SOURCES = [
|
|
|
7306
7336
|
license: "all-rights-reserved",
|
|
7307
7337
|
checked: "2026-11-24",
|
|
7308
7338
|
by: "Pacific Northwest National Laboratory"
|
|
7339
|
+
},
|
|
7340
|
+
{
|
|
7341
|
+
id: "yoon-co-detectors",
|
|
7342
|
+
title: "Deaths From Unintentional Carbon Monoxide Poisoning and Potential for Prevention With Carbon Monoxide Detectors (JAMA 1998, 279(9), 685-687)",
|
|
7343
|
+
url: "https://pubmed.ncbi.nlm.nih.gov/9496987/",
|
|
7344
|
+
license: "all-rights-reserved",
|
|
7345
|
+
checked: "2026-11-26",
|
|
7346
|
+
by: "Yoon, Macdonald and Parrish"
|
|
7309
7347
|
}
|
|
7310
7348
|
];
|
|
7311
7349
|
// src/data/gaps.ts
|