removed promise like then() method and added a error parser to response
updating package.json