- Mindor documentation updates
- Update dependencies
This is only a major version bump because we are not longer returning promises when using the callback interface.
- Allow overriding the http request scheme (see dmcquay#75)
- When providing a callback, a promise will no longer be returned. You must pick one or the other. The purpose of this is to avoid unhandle rejection warnings.
- Upgrade
xml2js
from0.4.16
to0.4.17
- Document locales
- Fix throttle mechanism
NOTE: In v2.0.0, we changed the default for xml2js to set explicitArray to false. Before v.2.0.0, you would get a response like this instead (note the extra arrays you have to drill into):
{
ItemSearchResponse: {
OperationRequest: [ [Object] ],
Items: [ [Object] ]
}
}
You can change back to the old behavior by setting explitArray to true like this:
var opHelper = new OperationHelper({
awsId: '[YOUR AWS ID HERE]',
awsSecret: '[YOUR AWS SECRET HERE]',
assocId: '[YOUR ASSOCIATE TAG HERE]',
xml2jsOptions: { explicitArray: true }
});
- Errors are now returned as the first parameter of the callback function, instead of being processed by a seperate OnError function.
- Changes were not documented, refer to GitHub commits.
- Added parsing of XML results using xml2js. Thanks pierrel.
- Initial release