arifulhb / amazon-pa-api50

Amazon Product Advertising API v5.0 for JavaScript and NodeJs
https://www.npmjs.com/package/amazon-pa-api50
MIT License
29 stars 9 forks source link

Added several missing returns #8

Closed Nexum closed 4 years ago

Nexum commented 4 years ago

This is necessary because the reject wouldnt interrupt execution, so in case of an undefined response later in the code JSON.parse(JSON.stringify will be called with undefined causing an uncaught exception.