Keep all previously approved widget capabilities when requesting new capabilities (#7340)

This commit is contained in:
Dominik Henneke
2021-12-13 11:34:04 +01:00
committed by GitHub
parent 3b3776222b
commit 908e938996
3 changed files with 19 additions and 4 deletions

View File

@@ -14,7 +14,11 @@
* limitations under the License.
*/
import { arrayDiff, arrayUnion } from "./arrays";
import { arrayDiff, arrayMerge, arrayUnion } from "./arrays";
export function iterableMerge<T>(a: Iterable<T>, b: Iterable<T>): Iterable<T> {
return arrayMerge(Array.from(a), Array.from(b));
}
export function iterableUnion<T>(a: Iterable<T>, b: Iterable<T>): Iterable<T> {
return arrayUnion(Array.from(a), Array.from(b));