-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(get): ensure
get
returns flat array for deeply nested object of…
… arrays of object arrays (#13) * fix(js/utils.ts): make getField() output flat array of items * test(js/getobjectfield.spec): test if it returns property values from nested array as flat array * refactor(js/interpreters.js): remove now unnecessary check for projected field use testValueOrArray with within(), reorder array check conditions * test(js/interpreters.spec): check that within, all and elemMatch works with deeply nested array * refactor(js/index): remove projected-field export as it's not used anymore * test(js/interpreters.spec): add test that catch a bug introduce by reducing values * fix($size): ensure `$size` operator properly works for nested fields and array of arrays Co-authored-by: Jérémy <jeremy.huard@doeo.fr> Co-authored-by: Sergii <sergiy.stotskiy@gmail.com>
- Loading branch information
1 parent
75487dd
commit 2efeb91
Showing
6 changed files
with
88 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export * from './interpreters'; | ||
export * from './interpreter'; | ||
export * from './defaults'; | ||
export { PROJECTED_FIELD } from './utils'; | ||
export type { JsInterpretationOptions, JsInterpreter } from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters