jmespath-community / typescript-jmespath

TypeScript implementation of JMESPath
Mozilla Public License 2.0
4 stars 2 forks source link

Accessing a zero value using root evaluates to null #30

Closed edkim-finch closed 3 weeks ago

edkim-finch commented 3 weeks ago

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

springcomp commented 3 weeks ago

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 commented 2 weeks ago

FYI, the package is available on npm.

edkim-finch commented 2 weeks ago

Thank you!!On Oct 27, 2024, at 12:40 AM, Maxime Labelle @.***> wrote: FYI, the package is available on npm.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>