@mark1russell7/guidebook-preparedness 0.5.1 → 0.6.0
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/README.md +2 -1
- package/build/index.d.ts +15 -5
- package/build/index.d.ts.map +1 -1
- package/build/index.js +20 -10
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/data/media.ts +19 -6
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/guidebook-preparedness",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description": "The preparedness content of the guidebook: cited sources, the steps and marked gaps of 12 cases and 6 cuts, 40 topics in 12 areas, and the catalog of offline bundles.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"guidebook",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@mark1russell7/guidebook": "0.1.1",
|
|
59
|
-
"@mark1russell7/guidebook-library": "0.
|
|
59
|
+
"@mark1russell7/guidebook-library": "0.2.0",
|
|
60
60
|
"@mark1russell7/guidebook-plans": "0.1.6",
|
|
61
61
|
"@mark1russell7/guidebook-topics": "0.1.1"
|
|
62
62
|
},
|
package/src/data/media.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// The rates come from drives that run all the time in a data center. A drive that sits with no power can be different.
|
|
3
3
|
|
|
4
4
|
import type { CitedUnit } from "@mark1russell7/guidebook";
|
|
5
|
-
import type { MediumKind } from "@mark1russell7/guidebook-library";
|
|
5
|
+
import type { MediumKind, MediumLife } from "@mark1russell7/guidebook-library";
|
|
6
6
|
|
|
7
7
|
/** The fact units of the rates. */
|
|
8
8
|
export const MEDIA_UNITS: readonly CitedUnit[] = [
|
|
@@ -57,9 +57,22 @@ export const MEDIUM_LOSSES: Readonly<Partial<Record<MediumKind, { readonly yearl
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* The
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* -
|
|
60
|
+
* The cited life of each type of medium with a life at a quantile, and the unit of the life.
|
|
61
|
+
* A disc fails more frequently when it is old, so the plan uses the life, not a yearly rate. Give it to `MediumOffer.life` and `Copy.life`.
|
|
62
|
+
* - `cd-r`: each of the 7 CD-R products of the study had a time to 5% failure of more than 30 years.
|
|
63
|
+
* - A recordable DVD has no life here. 2 of the 15 DVD products had less than 15 years, so the study gives no bound for an unknown product.
|
|
64
|
+
* The life holds only at 25 °C and 50% RH, away from light (the unit `media.optical.limits`).
|
|
64
65
|
*/
|
|
65
|
-
export const
|
|
66
|
+
export const MEDIUM_LIVES: Readonly<Record<string, { readonly kind: MediumKind; readonly life: MediumLife; readonly unit: string }>> = {
|
|
67
|
+
"cd-r": {
|
|
68
|
+
kind: "optical",
|
|
69
|
+
life: { years: 30, quantile: 0.05, source: "NIST and the Library of Congress: a CD-R at 25 °C and 50% RH, with 95% confidence." },
|
|
70
|
+
unit: "media.optical.cdr",
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The kinds with no cited rate and no cited life. A plan of copies cannot use them until a source gives one.
|
|
76
|
+
* `flash` and `paper`: no open source with a rate was found on 2026-11-22.
|
|
77
|
+
*/
|
|
78
|
+
export const MEDIUM_GAPS: readonly MediumKind[] = ["flash", "paper"];
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { RULES } from "./data/rules.ts";
|
|
|
14
14
|
export { CATALOG_TAB, MASTER, START_TAB } from "./data/chart.ts";
|
|
15
15
|
export { AREAS, TOPICS } from "./data/topics.ts";
|
|
16
16
|
export { BUNDLES, BUNDLES_CHECKED, BUNDLE_LEVELS } from "./data/bundles.ts";
|
|
17
|
-
export { MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LOSSES } from "./data/media.ts";
|
|
17
|
+
export { MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LIVES, MEDIUM_LOSSES } from "./data/media.ts";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* The 12 cases of v1. A case is a kind of event. The codes come from the event taxonomy of the alerts project.
|