@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 CHANGED
@@ -3896,8 +3896,16 @@ var baseOrkesConductorClient = (fetchFn, baseRequestHandler = defaultRequestHand
3896
3896
 
3897
3897
  // src/orkes/OrkesConductorClient.ts
3898
3898
  var import_node_fetch = __toESM(require("node-fetch"));
3899
+ var import_http = __toESM(require("http"));
3900
+ var import_https = __toESM(require("https"));
3901
+ var httpAgent = new import_http.default.Agent({ keepAlive: true });
3902
+ var httpsAgent = new import_https.default.Agent({ keepAlive: true });
3903
+ var agent = (_parsedURL) => _parsedURL.protocol == "http:" ? httpAgent : httpsAgent;
3899
3904
  var nodeFetchWrapper = async (input, options = {}) => {
3900
- const res = await (0, import_node_fetch.default)(input.toString(), options);
3905
+ const res = await (0, import_node_fetch.default)(input.toString(), {
3906
+ ...options,
3907
+ agent
3908
+ });
3901
3909
  return res;
3902
3910
  };
3903
3911
  var fetchCache = fetchCatchDns(