Closed FdezRomero closed 8 years ago
Sounds good! But let's bump at least a minor version since it is a breaking change.
Sure :+1: I knew there were some other PRs waiting so I didn't want to touch the version, in case you wanted to publish them all together :wink:
The
response
callback parameter (e.g.client.itemSearch(query, function(err, result, response) {})
currently assumes that there is only oneItems
/BrowseNodes
object in the response and returnsrespObj.Items[0]
orrespObj.BrowseNodes[0]
.This is true for normal requests but the Amazon PA API also supports Batch Requests where you can have a second
Items
/BrowseNodes
object inrespObj.Items[1]
orrespObj.BrowseNodes[1]
, which is never returned.This PR simply returns the parent
Items
/BrowseNodes
array in theresponse
parameter. It shouldn't break compatibility for most users as this parameter is currently not documented.