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 object spread on body #102

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

bradjones1
Copy link
Contributor

Fixes #94 by enforcing a type check on the provided body; if it is an object, it's safe to do a spread with the default. Otherwise, it passes through as-is. Addresses the need to send strings, for instance.

Keep in mind I'm not normally a JavaScript developer and haven't been able to run automated tests locally, though I have tested this locally in so far as it fixes the problem described in the ticket.

@niftylettuce niftylettuce merged commit e4278f2 into ladjs:master Nov 27, 2019
@niftylettuce
Copy link
Collaborator

I am working on this now

@niftylettuce
Copy link
Collaborator

Released on npm as [email protected] 🎉

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