contensis-core-api
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -33,3 +33,5 @@ import { isBrowser } from '../utils'; | ||
.text() | ||
.then(text => !!text && text.length && text.length > 0 ? JSON.parse(text) : {}); | ||
.then(text => { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}); | ||
} | ||
@@ -53,3 +55,5 @@ let responseHandlerFunction = null; | ||
.text() | ||
.then(text => !!text && text.length && text.length > 0 ? JSON.parse(text) : {}) | ||
.then(text => { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}) | ||
.then(responseJson => { | ||
@@ -56,0 +60,0 @@ clientError.data = responseJson; |
export * from './AssetUpload'; | ||
export * from './ClientError'; | ||
export * from './ClientParams'; | ||
export * from './Component'; | ||
export * from './ContentType'; | ||
@@ -5,0 +6,0 @@ export * from './Editor'; |
@@ -34,3 +34,5 @@ import { isBrowser } from '../utils'; | ||
.text() | ||
.then(function (text) { return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; }); | ||
.then(function (text) { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}); | ||
} | ||
@@ -54,3 +56,5 @@ var responseHandlerFunction = null; | ||
.text() | ||
.then(function (text) { return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; }) | ||
.then(function (text) { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}) | ||
.then(function (responseJson) { | ||
@@ -57,0 +61,0 @@ clientError.data = responseJson; |
export * from './AssetUpload'; | ||
export * from './ClientError'; | ||
export * from './ClientParams'; | ||
export * from './Component'; | ||
export * from './ContentType'; | ||
@@ -5,0 +6,0 @@ export * from './Editor'; |
@@ -7,5 +7,9 @@ # Changelog | ||
## [1.0.0-beta.2] - 2019-12-11 | ||
### Added | ||
- Component model | ||
## [1.0.0-beta.1] - 2019-12-05 | ||
### Added | ||
- added Asset models | ||
- Asset models | ||
@@ -12,0 +16,0 @@ ## [1.0.0-beta.0] - 2019-11-29 |
@@ -36,3 +36,5 @@ "use strict"; | ||
.text() | ||
.then(function (text) { return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; }); | ||
.then(function (text) { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}); | ||
} | ||
@@ -56,3 +58,5 @@ var responseHandlerFunction = null; | ||
.text() | ||
.then(function (text) { return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; }) | ||
.then(function (text) { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}) | ||
.then(function (responseJson) { | ||
@@ -59,0 +63,0 @@ clientError.data = responseJson; |
export * from './AssetUpload'; | ||
export * from './ClientError'; | ||
export * from './ClientParams'; | ||
export * from './Component'; | ||
export * from './ContentType'; | ||
@@ -5,0 +6,0 @@ export * from './Editor'; |
{ | ||
"name": "contensis-core-api", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Contensis Core API Library ", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -40,3 +40,5 @@ import { IParamsProvider, ClientError, ResponseHandlerFunction, IHttpClient } from '../models'; | ||
.text() | ||
.then(text => !!text && text.length && text.length > 0 ? JSON.parse(text) : {}); | ||
.then(text => { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}); | ||
} | ||
@@ -64,3 +66,5 @@ | ||
.text() | ||
.then(text => !!text && text.length && text.length > 0 ? JSON.parse(text) : {}) | ||
.then(text => { | ||
return !!text && text.length && text.length > 0 ? JSON.parse(text) : {}; | ||
}) | ||
.then( | ||
@@ -67,0 +71,0 @@ responseJson => { |
export * from './AssetUpload'; | ||
export * from './ClientError'; | ||
export * from './ClientParams'; | ||
export * from './Component'; | ||
export * from './ContentType'; | ||
@@ -5,0 +6,0 @@ export * from './Editor'; |
Sorry, the diff of this file is not supported yet
75113
217
1836