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