Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delegate default serialization with many args #165

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

masoud-msk
Copy link
Contributor

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.

package-lock.json Outdated Show resolved Hide resolved
src/delegate/delegatify.ts Show resolved Hide resolved
@masoud-msk masoud-msk requested a review from vlio20 August 10, 2024 12:19
@vlio20 vlio20 merged commit 995d450 into vlio20:master Aug 11, 2024
1 check passed
@vlio20
Copy link
Owner

vlio20 commented Aug 11, 2024

released in 2.0.9. Thanks @masoud-msk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants