@qite/tide-client 1.1.64 → 1.1.66
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.
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/common-client.ts +8 -0
- package/src/utils/web-client.ts +1 -1
package/build/index.js
CHANGED
|
@@ -6077,6 +6077,9 @@ var post = function (
|
|
|
6077
6077
|
return [4 /*yield*/, response.text()];
|
|
6078
6078
|
case 2:
|
|
6079
6079
|
responseBody = _a.sent();
|
|
6080
|
+
if (!responseBody) {
|
|
6081
|
+
return [2 /*return*/, null];
|
|
6082
|
+
}
|
|
6080
6083
|
result = skipReviver
|
|
6081
6084
|
? JSON.parse(responseBody)
|
|
6082
6085
|
: JSON.parse(responseBody, reviver);
|
|
@@ -6108,6 +6111,9 @@ var patch = function (
|
|
|
6108
6111
|
return [4 /*yield*/, response.text()];
|
|
6109
6112
|
case 2:
|
|
6110
6113
|
responseBody = _a.sent();
|
|
6114
|
+
if (!responseBody) {
|
|
6115
|
+
return [2 /*return*/, {}];
|
|
6116
|
+
}
|
|
6111
6117
|
result = skipReviver
|
|
6112
6118
|
? JSON.parse(responseBody)
|
|
6113
6119
|
: JSON.parse(responseBody, reviver);
|
|
@@ -6650,7 +6656,7 @@ var ContactForm = function (config, request, signal) {
|
|
|
6650
6656
|
var url = "" + config.host + ENDPOINT_CONTACT_FORM$1;
|
|
6651
6657
|
var apiKey = config.apiKey;
|
|
6652
6658
|
var body = JSON.stringify(request);
|
|
6653
|
-
return post(url, apiKey, body, config.token, signal);
|
|
6659
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6654
6660
|
};
|
|
6655
6661
|
/**
|
|
6656
6662
|
* api/web/affiliates
|