diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-16 12:37:10 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 13:39:59 -0400 |
commit | 98446f3f30dbc0bc8fe55bae1e4729cd023dbf71 (patch) | |
tree | 4f1be795a4eeee36397d850f1b049f00db2dcb17 /src/data/composite/wiki-data/withResolvedContribs.js | |
parent | aa800e588c498c2a454fa8d996bb679b5cfe5bb7 (diff) |
data: factor out inputNotFoundMode
Diffstat (limited to 'src/data/composite/wiki-data/withResolvedContribs.js')
-rw-r--r-- | src/data/composite/wiki-data/withResolvedContribs.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/data/composite/wiki-data/withResolvedContribs.js b/src/data/composite/wiki-data/withResolvedContribs.js index b5d7255b..764d7770 100644 --- a/src/data/composite/wiki-data/withResolvedContribs.js +++ b/src/data/composite/wiki-data/withResolvedContribs.js @@ -8,11 +8,13 @@ import {input, templateCompositeFrom} from '#composite'; import find from '#find'; import {filterMultipleArrays, stitchArrays} from '#sugar'; import thingConstructors from '#things'; -import {is, isContributionList, isDate, isStringNonEmpty} from '#validators'; +import {isContributionList, isDate, isStringNonEmpty} from '#validators'; import {raiseOutputWithoutDependency} from '#composite/control-flow'; import {withPropertiesFromList} from '#composite/data'; +import inputNotFoundMode from './inputNotFoundMode.js'; + export default templateCompositeFrom({ annotation: `withResolvedContribs`, @@ -27,10 +29,7 @@ export default templateCompositeFrom({ acceptsNull: true, }), - notFoundMode: input({ - validate: is('exit', 'filter', 'null'), - defaultValue: 'null', - }), + notFoundMode: inputNotFoundMode(), thingProperty: input({ validate: isStringNonEmpty, |