vlio20 / utils-decorators

Decorators for web and node applications
https://vlio20.github.io/utils-decorators/
MIT License
216 stars 13 forks source link

Fix `delegate` default serialization with many args #165

Closed masoud-msk closed 1 month ago

masoud-msk commented 1 month ago

Looks like a typo in default serialization which is (...args) => JSON.stringify(...args) instead of (...args) => JSON.stringify(args) as it doesn't work for example in case of the decorated method having more than 3 arguments or more than 2 arguments with the first one not being an object.

vlio20 commented 1 month ago

released in 2.0.9. Thanks @masoud-msk