rest-client-sdk 6.7.0 → 6.7.2
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/dist/index.es.js +8 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/AbstractClient.ts +8 -4
package/dist/index.es.js
CHANGED
|
@@ -1779,7 +1779,7 @@ var AbstractClient = /*#__PURE__*/function () {
|
|
|
1779
1779
|
if (this.sdk.mapping.idPrefix) {
|
|
1780
1780
|
var segments = url.segment();
|
|
1781
1781
|
|
|
1782
|
-
if (
|
|
1782
|
+
if (!url.pathname().startsWith(this.sdk.mapping.idPrefix)) {
|
|
1783
1783
|
segments.unshift(this.sdk.mapping.idPrefix);
|
|
1784
1784
|
url.segment(segments);
|
|
1785
1785
|
}
|
|
@@ -1912,9 +1912,13 @@ var AbstractClient = /*#__PURE__*/function () {
|
|
|
1912
1912
|
var _this6 = this;
|
|
1913
1913
|
|
|
1914
1914
|
var params = requestParams;
|
|
1915
|
-
var baseHeaders = {
|
|
1916
|
-
|
|
1917
|
-
|
|
1915
|
+
var baseHeaders = {};
|
|
1916
|
+
|
|
1917
|
+
if (params.method !== 'GET' || params.method !== 'GET' && params.method !== 'DELETE') {
|
|
1918
|
+
baseHeaders = {
|
|
1919
|
+
'Content-Type': 'application/json'
|
|
1920
|
+
};
|
|
1921
|
+
}
|
|
1918
1922
|
|
|
1919
1923
|
if (accessToken) {
|
|
1920
1924
|
baseHeaders.Authorization = "".concat(this.sdk.config.authorizationType, " ").concat(accessToken);
|