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