diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-11-27 21:09:29 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-11-27 21:09:29 -0400 |
| commit | f2161a3fe8ff9b574f53156d08ca7853427be8e4 (patch) | |
| tree | d79e117ddf638729c20c4e4deb847ae5a50d92ca /src/data/composite/wiki-data/exitWithoutArtwork.js | |
| parent | 861810685da73fa9fd6d4a1cb965155c61c99d11 (diff) | |
data: Track, Album: concise-retouch toplevel property descriptors
notably chopped exitWithoutArtwork and contribsPresent, replaced with new hasArtwork and more exitWithoutDependency
Diffstat (limited to 'src/data/composite/wiki-data/exitWithoutArtwork.js')
| -rw-r--r-- | src/data/composite/wiki-data/exitWithoutArtwork.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/data/composite/wiki-data/exitWithoutArtwork.js b/src/data/composite/wiki-data/exitWithoutArtwork.js deleted file mode 100644 index 8e799fda..00000000 --- a/src/data/composite/wiki-data/exitWithoutArtwork.js +++ /dev/null @@ -1,45 +0,0 @@ -import {input, templateCompositeFrom} from '#composite'; -import {isContributionList, isThing, strictArrayOf} from '#validators'; - -import {exitWithoutDependency} from '#composite/control-flow'; - -import withHasArtwork from './withHasArtwork.js'; - -export default templateCompositeFrom({ - annotation: `exitWithoutArtwork`, - - inputs: { - contribs: input({ - validate: isContributionList, - defaultValue: null, - }), - - artwork: input({ - validate: isThing, - defaultValue: null, - }), - - artworks: input({ - validate: strictArrayOf(isThing), - defaultValue: null, - }), - - value: input({ - defaultValue: null, - }), - }, - - steps: () => [ - withHasArtwork({ - contribs: input('contribs'), - artwork: input('artwork'), - artworks: input('artworks'), - }), - - exitWithoutDependency({ - dependency: '#hasArtwork', - mode: input.value('falsy'), - value: input('value'), - }), - ], -}); |