feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.03k stars 748 forks source link

Hooks Context toJSON() function fails in 5.0.0-pre.38 #3066

Closed awanuch closed 1 year ago

awanuch commented 1 year ago

Steps to reproduce

REPRO PROJECT (All default generate options, call GET on test-service to get the TypeError): https://github.com/awanuch/feathers-dove-hook-context-repro.git

Expected behavior

The hook context.toJSON() should return the full hook context properties.

Actual behavior

TypeError (Cannot read properties of undefined (reading 'toJSON'))

System configuration

Module versions: All feathers modules at 5.0.0-pre.38

NodeJS version: Node 16.3.1

Operating System: Windows 10 Pro