named-patch vulnerabilities

Higher order function for patching named export functions.