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: typeof null is object which would throw an error, replaced with … #76

Closed
wants to merge 1 commit into from
Closed

Conversation

stefanvanherwijnen
Copy link
Contributor

Null values would throw errors on convertCase because of "typeof data === 'object'". I replaced all type checkings for objects with isPlainObject().

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8792441 on stefanvanherwijnen:object into 19c810b on danivek:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8792441 on stefanvanherwijnen:object into 19c810b on danivek:master.

@stefanvanherwijnen
Copy link
Contributor Author

Actually, rData in serializeRelationship() might not be a plain object. I'm not sure if the data is already checked for null otherwise it might just be a problem in convertCase.

@stefanvanherwijnen
Copy link
Contributor Author

Actually, this 'solution' causes more problems than it fixes so I'll open an issue instead.

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