This commit is contained in:
2026-01-28 00:55:06 +03:00
parent fc033be6a5
commit 25fc82c14a
1642 changed files with 101122 additions and 0 deletions

34
node_modules/generic-pool/lib/PoolDefaults.js generated vendored Normal file
View File

@ -0,0 +1,34 @@
"use strict";
/**
* Create the default settings used by the pool
*
* @class
*/
class PoolDefaults {
constructor() {
this.fifo = true;
this.priorityRange = 1;
this.testOnBorrow = false;
this.testOnReturn = false;
this.autostart = true;
this.evictionRunIntervalMillis = 0;
this.numTestsPerEvictionRun = 3;
this.softIdleTimeoutMillis = -1;
this.idleTimeoutMillis = 30000;
// FIXME: no defaults!
this.acquireTimeoutMillis = null;
this.destroyTimeoutMillis = null;
this.maxWaitingClients = null;
this.min = null;
this.max = null;
// FIXME: this seems odd?
this.Promise = Promise;
}
}
module.exports = PoolDefaults;