(changes)
| 185 | * @return {Array<string>} |
| 186 | */ |
| 187 | export function cleanMessagesFromChanges(changes) { |
| 188 | return changes.map(function (change) { |
| 189 | // replace single quotes around graphql names with backticks, |
| 190 | // to match previous behavior from graphql-schema-comparator |
| 191 | return change.message.replace(/'([a-zA-Z. :!]+)'/g, '`$1`') |
| 192 | }) |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Split `changesToReport` into two parts, |
no outgoing calls
no test coverage detected