@io-orkes/conductor-javascript 1.2.1-rc.4 → 1.2.1
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.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3795,8 +3795,16 @@ var baseOrkesConductorClient = (fetchFn, baseRequestHandler = defaultRequestHand
|
|
|
3795
3795
|
|
|
3796
3796
|
// src/orkes/OrkesConductorClient.ts
|
|
3797
3797
|
import fetch2, { Headers as Headers2 } from "node-fetch";
|
|
3798
|
+
import http from "http";
|
|
3799
|
+
import https from "https";
|
|
3800
|
+
var httpAgent = new http.Agent({ keepAlive: true });
|
|
3801
|
+
var httpsAgent = new https.Agent({ keepAlive: true });
|
|
3802
|
+
var agent = (_parsedURL) => _parsedURL.protocol == "http:" ? httpAgent : httpsAgent;
|
|
3798
3803
|
var nodeFetchWrapper = async (input, options = {}) => {
|
|
3799
|
-
const res = await fetch2(input.toString(),
|
|
3804
|
+
const res = await fetch2(input.toString(), {
|
|
3805
|
+
...options,
|
|
3806
|
+
agent
|
|
3807
|
+
});
|
|
3800
3808
|
return res;
|
|
3801
3809
|
};
|
|
3802
3810
|
var fetchCache = fetchCatchDns(
|