Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-codaio committed Oct 7, 2024
1 parent c848dca commit 279c7c9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 36 deletions.
4 changes: 2 additions & 2 deletions dist/handler_templates.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions dist/testing/execution.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 9 additions & 21 deletions dist/testing/execution.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions testing/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ async function findAndExecutePackFunction<T extends FormulaSpecification>(
const schema = executionContext?.sync?.schema ?? formula.schema;
let normalizedResult = transformBody(resultToNormalize, schema);

if (shouldValidateResult) {
validateResult(formula, normalizedResult);
}

if (!useDeprecatedResultNormalization) {
normalizedResult = untransformBody(normalizedResult, schema);
}
Expand All @@ -152,13 +156,6 @@ async function findAndExecutePackFunction<T extends FormulaSpecification>(
}
}

if (shouldValidateResult && formula) {
const resultToValidate =
formulaSpec.type === FormulaType.Sync ? (result as GenericSyncFormulaResult).result : result;

validateResult(formula, resultToValidate);
}

return result;
}

Expand Down

0 comments on commit 279c7c9

Please sign in to comment.