Add Route type to contents

This commit is contained in:
Sam Carlton 2022-05-17 16:08:28 -05:00
parent 9f5902e07e
commit ac90bf1a24

View file

@ -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')