contentful-management
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -55,13 +55,4 @@ 'use strict'; | ||
update: function update() { | ||
// delete some properties which are returned by the server but shouldn't | ||
// be sent back. | ||
var locale = this; | ||
// for the default locale, we can't send the fallback code back or we get an error | ||
if (locale.default) { | ||
delete locale.fallback_code; | ||
} else { | ||
// temporary fix due to property naming weirdness | ||
locale.fallbackCode = locale.fallback_code; | ||
delete locale.fallback_code; | ||
} | ||
// this property shouldn't be sent back if it exists | ||
delete locale.default; | ||
@@ -100,2 +91,4 @@ return (0, _instanceActions.createUpdateEntity)({ | ||
delete locale.internal_code; | ||
// TODO this should be removed when the fallback locale issues are fixed | ||
delete locale.fallback_code; | ||
(0, _enhanceWithMethods2.default)(locale, createLocaleApi(http)); | ||
@@ -102,0 +95,0 @@ return (0, _freezeSys2.default)(locale); |
{ | ||
"name": "contentful-management", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Client for Contentful's Content Management API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.contentful.com/developers/documentation/content-management-api/", |
@@ -1,1 +0,1 @@ | ||
module.exports = '1.1.3' | ||
module.exports = '1.1.4' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
574537
13807