@reddoorla/maintenance 0.44.0 → 0.45.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/dist/cli/bin.js +21 -5
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3280,7 +3280,9 @@ var ALL_CHECKLIST_FIELDS = [...MAINTENANCE_CHECKLIST, ...TESTING_CHECKLIST].map(
|
|
|
3280
3280
|
(i) => i.field
|
|
3281
3281
|
);
|
|
3282
3282
|
function checklistFor(type) {
|
|
3283
|
-
|
|
3283
|
+
if (type === "Maintenance") return MAINTENANCE_CHECKLIST;
|
|
3284
|
+
if (type === "Testing") return [...MAINTENANCE_CHECKLIST, ...TESTING_CHECKLIST];
|
|
3285
|
+
return [];
|
|
3284
3286
|
}
|
|
3285
3287
|
function isChecklistComplete(report) {
|
|
3286
3288
|
return checklistFor(report.reportType).every((i) => report.checklist[i.field] === true);
|