Skip to content

Commit

Permalink
CTX typed
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiMonads committed Mar 16, 2024
1 parent 43e0381 commit 2dbba04
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 281 deletions.
4 changes: 2 additions & 2 deletions components/http/src/framework/optimizer/aComposer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default (o?: specialOptions) =>
(
(table) =>
(
(functions) =>
(functions) =>
functions.reduce(
(s, k) => s(k),
new Function(
Expand All @@ -36,7 +36,7 @@ export default (o?: specialOptions) =>
)(),
)
)(
((or) => nativeComponets(or)(f)(table))(
((or) => nativeComponets(or)(f)(table))(
"mutable" in f ? { ...o, mutable: true } as FunRouterOptions : o,
),
)
Expand Down
2 changes: 1 addition & 1 deletion components/http/src/framework/optimizer/nativeComponets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default (o?: FunRouterOptions) =>
},
{
condition: (x: NativeMaps) => x.name === "headers",
action: () => stringToFunction(parse()(o?.cors ?? {})),
action: () => stringToFunction(parse()(o?.cors ?? {})),
},
{
condition: (x: NativeMaps) => x.name === "resolve",
Expand Down
Loading

0 comments on commit 2dbba04

Please sign in to comment.