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

Accessing a zero value using root evaluates to null #30

Closed
edkim-finch opened this issue Oct 23, 2024 · 3 comments
Closed

Accessing a zero value using root evaluates to null #30

edkim-finch opened this issue Oct 23, 2024 · 3 comments

Comments

@edkim-finch
Copy link

search({ index: 0 }, '$.index') returns null instead of 0
search({ index: 1 }, '$.index') correctly returns 1
search({ index: 0 }, 'index') correctly returns 0

@springcomp
Copy link
Contributor

This is somehow fixed when compiling the code from the main branch.
I’m not sure what could be the difference… 🤔

Will update the package soon anyway to patch vulnerabitilies and include a fix for a separate issue.

@springcomp
Copy link
Contributor

FYI, the package is available on npm.

@edkim-finch
Copy link
Author

edkim-finch commented Oct 27, 2024 via email

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

No branches or pull requests

2 participants