(variables = {})
| 53 | } |
| 54 | |
| 55 | function normalizeVariables(variables = {}) { |
| 56 | return Object.entries(variables || {}).reduce((acc, [key, value]) => { |
| 57 | if (value === undefined || value === null || value === "") return acc; |
| 58 | acc[key] = normalizeValue(value); |
| 59 | return acc; |
| 60 | }, {}); |
| 61 | } |
| 62 | |
| 63 | function normalizeFilter(filter = {}) { |
| 64 | if (!filter) return null; |
no test coverage detected