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.js
CHANGED
|
@@ -1784,7 +1784,7 @@
|
|
|
1784
1784
|
if (this.sdk.mapping.idPrefix) {
|
|
1785
1785
|
var segments = url.segment();
|
|
1786
1786
|
|
|
1787
|
-
if (
|
|
1787
|
+
if (!url.pathname().startsWith(this.sdk.mapping.idPrefix)) {
|
|
1788
1788
|
segments.unshift(this.sdk.mapping.idPrefix);
|
|
1789
1789
|
url.segment(segments);
|
|
1790
1790
|
}
|
|
@@ -1917,9 +1917,13 @@
|
|
|
1917
1917
|
var _this6 = this;
|
|
1918
1918
|
|
|
1919
1919
|
var params = requestParams;
|
|
1920
|
-
var baseHeaders = {
|
|
1921
|
-
|
|
1922
|
-
|
|
1920
|
+
var baseHeaders = {};
|
|
1921
|
+
|
|
1922
|
+
if (params.method !== 'GET' || params.method !== 'GET' && params.method !== 'DELETE') {
|
|
1923
|
+
baseHeaders = {
|
|
1924
|
+
'Content-Type': 'application/json'
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1923
1927
|
|
|
1924
1928
|
if (accessToken) {
|
|
1925
1929
|
baseHeaders.Authorization = "".concat(this.sdk.config.authorizationType, " ").concat(accessToken);
|