(query)
| 150 | } |
| 151 | |
| 152 | static JSONFromQuery(query) { |
| 153 | const json = {}; |
| 154 | for (const [key, value] of _.entries(query)) { |
| 155 | try { |
| 156 | json[key] = JSON.parse(value); |
| 157 | } catch { |
| 158 | json[key] = value; |
| 159 | } |
| 160 | } |
| 161 | return json; |
| 162 | } |
| 163 | |
| 164 | static optionsFromBody(body, defaultLimit) { |
| 165 | const allowConstraints = [ |
no outgoing calls
no test coverage detected