(left, right)
| 88 | }; |
| 89 | |
| 90 | export function diffSchemasOrTables(left, right) { |
| 91 | left = JSON.parse(JSON.stringify(left)); |
| 92 | right = JSON.parse(JSON.stringify(right)); |
| 93 | |
| 94 | const result = Object.entries(diff(left, right) ?? {}); |
| 95 | |
| 96 | const added = result |
| 97 | .filter((it) => it[0].endsWith('__added')) |
| 98 | .map((it) => it[1]); |
| 99 | const deleted = result |
| 100 | .filter((it) => it[0].endsWith('__deleted')) |
| 101 | .map((it) => it[1]); |
| 102 | |
| 103 | return { added, deleted }; |
| 104 | } |
| 105 | |
| 106 | export function diffIndPolicies(left, right) { |
| 107 | left = JSON.parse(JSON.stringify(left)); |
no outgoing calls
no test coverage detected