From ac90bf1a24e1fa8ee92244d112009eb1a2875f11 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 17 May 2022 16:08:28 -0500 Subject: [PATCH] Add Route type to contents --- helpers/stork/toml.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helpers/stork/toml.js b/helpers/stork/toml.js index 3cc756e..fb014a2 100644 --- a/helpers/stork/toml.js +++ b/helpers/stork/toml.js @@ -9,6 +9,9 @@ import { isNonEmptyString, isNonEmptyArray } from '~/helpers/check-types.js' +import { + getRouteType +} from '~/helpers/app-derived.js' import { storkTomlPath, } from '~/helpers/stork/config.js' @@ -17,7 +20,7 @@ import { downloadStorkExecutable } from '~/helpers/stork/executable.js' -function makeDetailsFromListing ( listing ) { +function makeDetailsFromListing ({ listing, route }) { const propertiesToCheck = { text: isNonEmptyString, @@ -50,6 +53,7 @@ function makeDetailsFromListing ( listing ) { return [ listing.content || '∅', // Null Symbol has( listing, 'status' ) ? `status_${ listing.status }` : '', + `type_${ getRouteType( route ) }`, // Brownmatter matter.stringify( '', contents ), ].join('\r\n')