Interesting, scary. My partner has peanut anaphylaxis, epipen, never once reacted to aquafaba which I used in hummous to loosen the mixture if there is enough lemon-juice sourness and it's too thick. We eat a LOT of chickpea. She's never had anything approaching throat constriction or mouth swelling.
From the little bit of reading I just did, it sounds like only some people with peanut allergies will also experience reactions to other legumes - my brother being one of the unlucky few. I do not believe it was contamination as it was behind a bar vs a kitchen, but no one knows for sure.
Are you sure there wasn't a contamination issue?