@declaw/sdk 1.1.4 → 1.1.5

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
@@ -133,8 +133,10 @@ function getDispatcher() {
133
133
  return origEmit.call(process, warning, ...rest);
134
134
  });
135
135
  const undici = await import("undici");
136
+ const connOverride = parseInt(process.env.DECLAW_SDK_CONNECTIONS || "", 10);
137
+ const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 64;
136
138
  return new undici.Agent({
137
- connections: 10,
139
+ connections,
138
140
  keepAliveTimeout: 3e4,
139
141
  keepAliveMaxTimeout: 6e4,
140
142
  pipelining: 1,