elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.74k stars 207 forks source link

[Sucrose] warning: unexpected isContextPassToFunction error #754

Closed Ivan-Baranov closed 1 month ago

Ivan-Baranov commented 1 month ago

What version of Elysia.JS is running?

1.1.4

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

[Sucrose] warning: unexpected isContextPassToFunction error, you may continue development as usual but please report the following to the developer:
--- body ---
{{set,session,log})=>{const delay=Date.now()-session.request.time;log.warn(delay)}
--- context ---
)-session.request.time;log.warn(delay
    .onAfterResponse({ as: 'global' }, async ({ set, session, log }) => {
        const delay = Date.now() - session.request.time
        log.warn(delay)
    })

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

SaltyAom commented 1 month ago

Does this happens on 1.1.5, as well? thanks

Ivan-Baranov commented 1 month ago

1.1.5 - ok