Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contentful

Package Overview
Dependencies
Maintainers
1
Versions
452
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful - npm Package Compare versions

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;
}, {});
}

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc