contentful-management
Advanced tools
Comparing version 0.8.2 to 0.8.3
26
index.js
@@ -125,3 +125,3 @@ 'use strict'; | ||
uri: uri, | ||
body: options.body | ||
body: options.data | ||
}; | ||
@@ -137,3 +137,3 @@ throw error; | ||
uri: uri, | ||
body: options.body, | ||
body: options.data, | ||
headers: options.headers | ||
@@ -145,3 +145,3 @@ }); | ||
uri: uri, | ||
body: options.body, | ||
body: options.data, | ||
headers: options.headers | ||
@@ -160,3 +160,3 @@ }); | ||
method: 'POST', | ||
body: JSON.stringify(space), | ||
data: JSON.stringify(space), | ||
headers: headers | ||
@@ -183,3 +183,3 @@ }).then(_.partial(Space.parse, this)); | ||
}, | ||
body: JSON.stringify(getData(space)) | ||
data: JSON.stringify(getData(space)) | ||
}).then(_.partial(Space.parse, this.client)); | ||
@@ -215,3 +215,3 @@ }, | ||
method: creationMethodForResource(contentType), | ||
body: JSON.stringify(contentType) | ||
data: JSON.stringify(contentType) | ||
}).then(_.partial(ContentType.parse, this.client)); | ||
@@ -246,3 +246,3 @@ }, | ||
}, | ||
body: JSON.stringify(getData(contentType)) | ||
data: JSON.stringify(getData(contentType)) | ||
}).then(_.partial(ContentType.parse, this.client)); | ||
@@ -298,3 +298,3 @@ }, | ||
}, | ||
body: JSON.stringify(getData(entry)) | ||
data: JSON.stringify(getData(entry)) | ||
}).then(_.partial(Entry.parse, this.client)); | ||
@@ -312,3 +312,3 @@ }, | ||
}, | ||
body: JSON.stringify(getData(entry)) | ||
data: JSON.stringify(getData(entry)) | ||
}).then(_.partial(Entry.parse, this.client)); | ||
@@ -387,3 +387,3 @@ }, | ||
method: creationMethodForResource(asset), | ||
body: JSON.stringify(asset) | ||
data: JSON.stringify(asset) | ||
}).then(_.partial(Asset.parse, this.client)); | ||
@@ -419,3 +419,3 @@ }, | ||
}, | ||
body: JSON.stringify(getData(asset)) | ||
data: JSON.stringify(getData(asset)) | ||
}).then(_.partial(Asset.parse, this.client)); | ||
@@ -490,3 +490,3 @@ }, | ||
method: 'POST', | ||
body: JSON.stringify(locale) | ||
data: JSON.stringify(locale) | ||
}).then(_.partial(Locale.parse, this.client)); | ||
@@ -503,3 +503,3 @@ }, | ||
}, | ||
body: JSON.stringify(locale) | ||
data: JSON.stringify(locale) | ||
}).then(_.partial(Locale.parse, this.client)); | ||
@@ -506,0 +506,0 @@ }, |
{ | ||
"name": "contentful-management", | ||
"description": "Client for Contentful's Content Management API", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/", | ||
@@ -6,0 +6,0 @@ "main": "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