@zohoim/client-sdk 1.0.0-poc67 → 1.0.0-poc68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default class ResponseUtils {
|
|
2
2
|
static adaptListResponse(response, adapter) {
|
|
3
|
-
if (!response) {
|
|
3
|
+
if (!response || !adapter) {
|
|
4
4
|
return response;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
if (!response.data) {
|
|
7
|
+
if (!response.data || !adapter) {
|
|
8
8
|
return response;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ export default class ResponseUtils {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
static adaptSingleResponse(response, adapter) {
|
|
17
|
-
if (!response) {
|
|
17
|
+
if (!response || !adapter) {
|
|
18
18
|
return response;
|
|
19
19
|
}
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/client-sdk",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-poc68",
|
|
4
4
|
"description": "To have the client sdk for the IM",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"docs": "react-cli docs"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@zohoim/http-client": "1.0.0
|
|
28
|
+
"@zohoim/http-client": "1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@zohodesk-private/client_dev_cert": "1.0.5",
|