dmcquay / node-apac

node-apac - Node.js client for the Amazon Product Advertising API, including support of Request Signatures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xml2jsOptions is not honored

juanalvarezg opened this issue · comments

Doesn't matter what options you pass, always get same results.

Looking into the code, options are never passed to the xml2js object.

Regards

I've looked through the code a dozen times and tested passing options to xml2js successfully and I couldn't figure out what your problem was. I just realized I haven't published the new version that contains the xml2options feature to NPM, would that be the cause of your problem?

I do like documentation says:

opHelper = new OperationHelper({
awsId: 'XXXX',
awsSecret: 'xxxxx',
assocId: 'xxxxx'
xml2jsOptions: {
option1: 'xxxx',
}
});

But no changes in the output

Like I mentioned above, please make sure you have re-downloaded the module (v 0.0.14) from NPM, because I simply forgot to update the module in NPM when I merged the xml2options commit. Let me know if you have the newest module and it is still not working.

Since you haven't reported back, I'll assume that updating node-apac solved the problem.