contentful
Advanced tools
Comparing version 0.0.3 to 0.0.4
12
index.js
@@ -32,3 +32,4 @@ 'use strict'; | ||
headers: { | ||
Authorization: 'Bearer ' + this.options.accessToken | ||
Authorization: 'Bearer ' + this.options.accessToken, | ||
'Content-Type': 'application/vnd.contentful.v1+json' | ||
} | ||
@@ -155,3 +156,3 @@ }; | ||
parse: function(object) { | ||
return _.extend(new Query(), object); | ||
return _.extend(new Query(), stringifyArrayValues(object)); | ||
}, | ||
@@ -222,1 +223,8 @@ } | ||
} | ||
function stringifyArrayValues(object) { | ||
return _.reduce(object, function(object, value, key) { | ||
object[key] = _.isArray(value) ? value.join(',') : value; | ||
return object; | ||
}, {}); | ||
} |
{ | ||
"name": "contentful", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Client for Contentful's Content Delivery API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
11085
283