@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/CHANGELOG.md +7 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
139
|
+
connections,
|
|
138
140
|
keepAliveTimeout: 3e4,
|
|
139
141
|
keepAliveMaxTimeout: 6e4,
|
|
140
142
|
pipelining: 1,
|