@nsshunt/stsrest01client 1.0.6 → 1.0.8

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.
@@ -3613,7 +3613,10 @@ class AxiosClient {
3613
3613
  } else {
3614
3614
  accessToken = await __privateGet(this, _options).GetAccessToken();
3615
3615
  }
3616
- const requestConfig = new STSAxiosConfig(url, httpVerb).withAuthHeaders(accessToken, __privateGet(this, _DUMMY_USER)).withData(filters ? filters : resource ? resource : void 0);
3616
+ let requestConfig = new STSAxiosConfig(url, httpVerb).withAuthHeaders(accessToken, __privateGet(this, _DUMMY_USER));
3617
+ if (!(httpVerb.localeCompare("get") === 0 || httpVerb.localeCompare("head") === 0)) {
3618
+ requestConfig.withData(filters ? filters : resource ? resource : void 0);
3619
+ }
3617
3620
  if (isNode && __privateGet(this, _options).agentManager) {
3618
3621
  requestConfig.withAgentManager(__privateGet(this, _options).agentManager);
3619
3622
  }
@@ -3800,7 +3803,7 @@ class STSRest01Client {
3800
3803
  if (filters && filters.localeCompare("") !== 0) {
3801
3804
  url = `${url}?${filters}`;
3802
3805
  }
3803
- return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "get", resource, null, null, errorCb);
3806
+ return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "get", null, null, null, errorCb);
3804
3807
  });
3805
3808
  __publicField(this, "GetResourceDBR", async (resource, filters, errorCb) => {
3806
3809
  var _a;
@@ -3885,7 +3888,7 @@ class STSRest01Client {
3885
3888
  if (filters && filters.localeCompare("") !== 0) {
3886
3889
  url = `${url}?${filters}`;
3887
3890
  }
3888
- return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "get", resourceEntity, null, null, errorCb);
3891
+ return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "get", null, null, null, errorCb);
3889
3892
  });
3890
3893
  __publicField(this, "GetEntityDBR", async (resourceEntity, filters, errorCb) => {
3891
3894
  var _a;