(diff: ApiDiff)
| 103 | } |
| 104 | |
| 105 | const removedModules = (diff: ApiDiff): ReadonlyArray<string> => |
| 106 | [ |
| 107 | ...new Set(diff.changes.flatMap((change) => { |
| 108 | if (change.classification !== "module-removed") { |
| 109 | return [] |
| 110 | } |
| 111 | const from = (change.delta as { readonly from?: unknown } | undefined)?.from |
| 112 | return typeof from === "string" ? [from] : [] |
| 113 | })) |
| 114 | ].sort(compareStrings) |
| 115 | |
| 116 | const sameStrings = (left: ReadonlyArray<string>, right: ReadonlyArray<string>): boolean => |
| 117 | left.length === right.length && left.every((value, index) => value === right[index]) |
no outgoing calls
no test coverage detected