« get me outta code hell

data: syntax fixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/thing.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-20 18:30:48 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-20 18:30:48 -0300
commita2704c0992beb4ddfeb67813d4f8adac0ae6af7d (patch)
treed4ae4df11d2d1937c2eb368e03d66fe8bb179388 /src/data/things/thing.js
parentcc4bf401f4d1df63ce33191ae82af6327c7da568 (diff)
data: syntax fixes
Diffstat (limited to 'src/data/things/thing.js')
-rw-r--r--src/data/things/thing.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index a75ff3e1..265cfe18 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -209,6 +209,8 @@ export function contributionList() {
   return compositeFrom({
     annotation: `contributionList`,
 
+    compose: false,
+
     update: {validate: isContributionList},
 
     steps: [
@@ -598,12 +600,12 @@ export const withResolvedReference = templateCompositeFrom({
         input('notFoundMode'),
       ],
 
-      compute({
+      compute(continuation, {
         [input('ref')]: ref,
         [input('data')]: data,
         [input('find')]: findFunction,
         [input('notFoundMode')]: notFoundMode,
-      }, continuation) {
+      }) {
         const match = findFunction(ref, data, {mode: 'quiet'});
 
         if (match === null && notFoundMode === 'exit') {
@@ -659,11 +661,11 @@ export const withResolvedReferenceList = templateCompositeFrom({
 
     {
       dependencies: [input('list'), input('data'), input('find')],
-      compute: ({
+      compute: (continuation, {
         [input('list')]: list,
         [input('data')]: data,
         [input('find')]: findFunction,
-      }, continuation) =>
+      }) =>
         continuation({
           '#matches': list.map(ref => findFunction(ref, data, {mode: 'quiet'})),
         }),
@@ -671,7 +673,7 @@ export const withResolvedReferenceList = templateCompositeFrom({
 
     {
       dependencies: ['#matches'],
-      compute: ({'#matches': matches}, continuation) =>
+      compute: (continuation, {'#matches': matches}) =>
         (matches.every(match => match)
           ? continuation.raiseOutput({
               ['#resolvedReferenceList']: matches,
@@ -681,10 +683,10 @@ export const withResolvedReferenceList = templateCompositeFrom({
 
     {
       dependencies: ['#matches', input('notFoundMode')],
-      compute({
+      compute(continuation, {
         ['#matches']: matches,
         [input('notFoundMode')]: notFoundMode,
-      }, continuation) {
+      }) {
         switch (notFoundMode) {
           case 'exit':
             return continuation.exit([]);
@@ -732,11 +734,11 @@ export const withReverseReferenceList = templateCompositeFrom({
     {
       dependencies: [input.myself(), input('data'), input('list')],
 
-      compute: ({
+      compute: (continuation, {
         [input.myself()]: thisThing,
         [input('data')]: data,
         [input('list')]: refListProperty,
-      }, continuation) =>
+      }) =>
         continuation({
           ['#reverseReferenceList']:
             data.filter(thing => thing[refListProperty].includes(thisThing)),