Skip to content

v2.0.0

Compare
Choose a tag to compare
@dmcquay dmcquay released this 22 Apr 05:01
· 30 commits to master since this release

Gets rid of annoying extra arrays in results.

More specifically, xml2js (which we use to convert XML response into a JS object) has an option called explicitArray which defaults to true and causes just about everything to get wrapped in an array, making it a bit annoying to navigate results. We are now overriding this default and setting it to false to get rid of those annoying arrays everywhere.

This is a BREAKING CHANGE! If you want to upgrade, but don't want to upgrade all your code, you can set the parsing options back to the old way like this:

var opHelper = new OperationHelper({
    awsId:     '[YOUR AWS ID HERE]',
    awsSecret: '[YOUR AWS SECRET HERE]',
    assocId:   '[YOUR ASSOCIATE TAG HERE]',
    xml2jsOptions: { explicitArray: true }
});