@nsshunt/stsutils 1.19.85 → 1.19.90
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.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/types/agentManager.d.ts +7 -8
- package/types/agentManager.d.ts.map +1 -1
- package/types/stsAxiosConfig.d.ts +2 -2
- package/types/stsAxiosConfig.d.ts.map +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1843,13 +1843,14 @@ class STSAxiosConfig {
|
|
|
1843
1843
|
return retVal;
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
|
+
function createAgentManager(agentManagerOptions) {
|
|
1847
|
+
return new AgentManager(agentManagerOptions);
|
|
1848
|
+
}
|
|
1846
1849
|
class AgentManager {
|
|
1847
1850
|
#options;
|
|
1848
1851
|
#agentResetInterval = null;
|
|
1849
1852
|
#requestCount = 0;
|
|
1850
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1851
1853
|
#httpAgent = void 0;
|
|
1852
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1853
1854
|
#httpsAgent = void 0;
|
|
1854
1855
|
constructor(agentManagerOptions) {
|
|
1855
1856
|
this.#options = agentManagerOptions;
|
|
@@ -1860,7 +1861,7 @@ class AgentManager {
|
|
|
1860
1861
|
get agentResetInterval() {
|
|
1861
1862
|
return this.#options.agentResetInterval;
|
|
1862
1863
|
}
|
|
1863
|
-
|
|
1864
|
+
UpdateAgentResetInterval(val) {
|
|
1864
1865
|
if (this.#agentResetInterval) {
|
|
1865
1866
|
clearTimeout(this.#agentResetInterval);
|
|
1866
1867
|
}
|
|
@@ -1870,7 +1871,7 @@ class AgentManager {
|
|
|
1870
1871
|
get agentResetCount() {
|
|
1871
1872
|
return this.#options.agentResetCount;
|
|
1872
1873
|
}
|
|
1873
|
-
|
|
1874
|
+
UpdateAgentResetCount(val) {
|
|
1874
1875
|
this.#options.agentResetCount = val;
|
|
1875
1876
|
}
|
|
1876
1877
|
#SetupResetInterval = () => {
|
|
@@ -1957,7 +1958,6 @@ class AgentManager {
|
|
|
1957
1958
|
}
|
|
1958
1959
|
export {
|
|
1959
1960
|
AddSchema,
|
|
1960
|
-
AgentManager,
|
|
1961
1961
|
CheckValidChar,
|
|
1962
1962
|
GetErrorPayload,
|
|
1963
1963
|
JestSleep,
|
|
@@ -1971,6 +1971,7 @@ export {
|
|
|
1971
1971
|
Sleep,
|
|
1972
1972
|
Validate,
|
|
1973
1973
|
compareParameterTypes,
|
|
1974
|
+
createAgentManager,
|
|
1974
1975
|
defaultLogger,
|
|
1975
1976
|
edbaction,
|
|
1976
1977
|
emptyLogger
|