Comparing version 0.1.0 to 0.1.1
@@ -60,5 +60,13 @@ var request = require('request'); | ||
responseParser: function(response) { | ||
return response.ItemLookupResponse.Items[0].Item[0]; | ||
var base = response.ItemLookupResponse.Items[0]; | ||
// Common single item case. | ||
if (typeof base.Item[1] === 'undefined') { | ||
return base.Item[0]; | ||
} | ||
// Multiple items. | ||
return base.Item; | ||
} | ||
}; | ||
{ | ||
"name": "amzn-papi", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "README.md", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9429
307