~kylep/pipes

94271dd53e6368a20cef9ad75f212cef97091d4c — Kyle Perik a month ago e565522
Fix key application order with rest, fix
1 files changed, 4 insertions(+), 1 deletions(-)

M src/runtime.js
M src/runtime.js => src/runtime.js +4 -1
@@ 134,8 134,8 @@ function buildResult (result, refs, defs) {
            }
          }
          return  {
            ...existingResult,
            [v.key]: keyResult,
            ...existingResult
          }
        })
      })


@@ 175,6 175,9 @@ function buildResult (result, refs, defs) {

function handlePipe (data, pipe, definitions) {
  if (pipe.type === REF) {
    if (typeof pipe.value !== 'string') {
      throw new Error(`Bad definition reference: ${JSON.stringify(pipe.value)}`)
    }
    const definition = definitions[pipe.value]
    if (!definition) {
      throw new Error(`Definition not found: ${pipe.value}`)