fixing small mismatch on the detection type from es to es6 which is what this pkg consume