@nsshunt/stsrest01client 1.0.6 → 1.0.7
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/stsrest01client.mjs
CHANGED
|
@@ -3613,7 +3613,10 @@ class AxiosClient {
|
|
|
3613
3613
|
} else {
|
|
3614
3614
|
accessToken = await __privateGet(this, _options).GetAccessToken();
|
|
3615
3615
|
}
|
|
3616
|
-
|
|
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
|
}
|