@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.cjs
CHANGED
|
@@ -1845,13 +1845,14 @@ class STSAxiosConfig {
|
|
|
1845
1845
|
return retVal;
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
+
function createAgentManager(agentManagerOptions) {
|
|
1849
|
+
return new AgentManager(agentManagerOptions);
|
|
1850
|
+
}
|
|
1848
1851
|
class AgentManager {
|
|
1849
1852
|
#options;
|
|
1850
1853
|
#agentResetInterval = null;
|
|
1851
1854
|
#requestCount = 0;
|
|
1852
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1853
1855
|
#httpAgent = void 0;
|
|
1854
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1855
1856
|
#httpsAgent = void 0;
|
|
1856
1857
|
constructor(agentManagerOptions) {
|
|
1857
1858
|
this.#options = agentManagerOptions;
|
|
@@ -1862,7 +1863,7 @@ class AgentManager {
|
|
|
1862
1863
|
get agentResetInterval() {
|
|
1863
1864
|
return this.#options.agentResetInterval;
|
|
1864
1865
|
}
|
|
1865
|
-
|
|
1866
|
+
UpdateAgentResetInterval(val) {
|
|
1866
1867
|
if (this.#agentResetInterval) {
|
|
1867
1868
|
clearTimeout(this.#agentResetInterval);
|
|
1868
1869
|
}
|
|
@@ -1872,7 +1873,7 @@ class AgentManager {
|
|
|
1872
1873
|
get agentResetCount() {
|
|
1873
1874
|
return this.#options.agentResetCount;
|
|
1874
1875
|
}
|
|
1875
|
-
|
|
1876
|
+
UpdateAgentResetCount(val) {
|
|
1876
1877
|
this.#options.agentResetCount = val;
|
|
1877
1878
|
}
|
|
1878
1879
|
#SetupResetInterval = () => {
|
|
@@ -1958,7 +1959,6 @@ class AgentManager {
|
|
|
1958
1959
|
}
|
|
1959
1960
|
}
|
|
1960
1961
|
exports.AddSchema = AddSchema;
|
|
1961
|
-
exports.AgentManager = AgentManager;
|
|
1962
1962
|
exports.CheckValidChar = CheckValidChar;
|
|
1963
1963
|
exports.GetErrorPayload = GetErrorPayload;
|
|
1964
1964
|
exports.JestSleep = JestSleep;
|
|
@@ -1972,6 +1972,7 @@ exports.STSOptionsBase = STSOptionsBase;
|
|
|
1972
1972
|
exports.Sleep = Sleep;
|
|
1973
1973
|
exports.Validate = Validate;
|
|
1974
1974
|
exports.compareParameterTypes = compareParameterTypes;
|
|
1975
|
+
exports.createAgentManager = createAgentManager;
|
|
1975
1976
|
exports.defaultLogger = defaultLogger;
|
|
1976
1977
|
exports.edbaction = edbaction;
|
|
1977
1978
|
exports.emptyLogger = emptyLogger;
|