Function normalizeAllowlist

  • Maps a request's names onto catalogue names, drops duplicates and returns them in catalogue order. Names outside the catalogue are returned in unknown, in the order given, never dropped.

    Parameters

    • names: readonly string[]

    Returns {
        capabilities: CapabilityName[];
        unknown: string[];
    }