@nsshunt/stsfhirclient 1.0.59 → 1.0.61
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/stsfhirclient.mjs
CHANGED
|
@@ -5164,16 +5164,11 @@ class FhirSocketClient {
|
|
|
5164
5164
|
body: {}
|
|
5165
5165
|
};
|
|
5166
5166
|
return new Promise((resolve, reject) => {
|
|
5167
|
-
const start = performance.now();
|
|
5168
5167
|
this.socket.timeout(__privateGet(this, _options2).timeout).emit("getFhirResources", resource, request, (err, res) => {
|
|
5169
5168
|
if (err) {
|
|
5170
|
-
const duration = (performance.now() - start) / 1e3;
|
|
5171
|
-
console.log(`FhirSocketClient:GetResources(): Duration for query (error): [${duration}]`);
|
|
5172
5169
|
__privateGet(this, _error).call(this, `FhirSocketClient:GetResources(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] Error: [${err}]`);
|
|
5173
5170
|
reject(err);
|
|
5174
5171
|
} else {
|
|
5175
|
-
const duration = (performance.now() - start) / 1e3;
|
|
5176
|
-
console.log(`FhirSocketClient:GetResources(): Duration for query: [${duration}]`);
|
|
5177
5172
|
resolve(res);
|
|
5178
5173
|
}
|
|
5179
5174
|
});
|
|
@@ -5491,6 +5486,8 @@ class FhirClient {
|
|
|
5491
5486
|
const accessToken = await __privateGet(this, _options3).GetAccessToken();
|
|
5492
5487
|
const requestConfig = new STSAxiosConfig(url2, httpVerb).withAuthHeaders(accessToken, __privateGet(this, _DUMMY_USER)).withData(filters ? filters : domainResource ? domainResource : void 0);
|
|
5493
5488
|
if (isNode$1 && __privateGet(this, _options3).agentManager) {
|
|
5489
|
+
console.log(`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`);
|
|
5490
|
+
console.log("using agentManager");
|
|
5494
5491
|
requestConfig.withAgentManager(__privateGet(this, _options3).agentManager);
|
|
5495
5492
|
}
|
|
5496
5493
|
return await axios(requestConfig.config);
|