Add support for latest npm middleware packageswq