nothingisdead/npm-kraken-api — pull request #2 by petermrg (2013-11-30 13:43:30+00:00)
Title: Fixes json parsing and do not throws exception when an error is detected in rawResponse

Fixes json parsing and do not throws exception when an error is detected in rawResponse, instead of this, it passes the error info to the callback (this is the node convention).

Simple test:

'''javascript
kraken.api('Assets', null, function(err, data) {
if (err) {
throw err;
}
console.log(data);
});
'''