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: 🐛 handle the array use case first in the stableJson util #175

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

SSHari
Copy link
Contributor

@SSHari SSHari commented Oct 14, 2023

PR to fix #174

I moved the array handling to the start of the stableJson utility. The way it was previously written could result in an array falling into the if (typeof json === "object" && json !== null && keyOrder.length > 0) block because an array is still technically an object.

@matt-aitken matt-aitken merged commit 57361c6 into triggerdotdev:main Oct 17, 2023
@SSHari SSHari deleted the patch-174 branch October 17, 2023 13:02
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.

array in array considered as an object ?
2 participants