@geodedb/client 1.0.0-alpha.19 → 1.0.0-alpha.20
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.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -80,9 +80,9 @@ interface GeodeConfig {
|
|
|
80
80
|
* Connection pool configuration.
|
|
81
81
|
*/
|
|
82
82
|
interface PoolConfig extends GeodeConfig {
|
|
83
|
-
/** Minimum number of connections in pool (default:
|
|
83
|
+
/** Minimum number of connections in pool (default: 1) */
|
|
84
84
|
minConnections?: number;
|
|
85
|
-
/** Maximum number of connections in pool (default:
|
|
85
|
+
/** Maximum number of connections in pool (default: 3) */
|
|
86
86
|
maxConnections?: number;
|
|
87
87
|
/** Time to wait for connection in milliseconds (default: 30000) */
|
|
88
88
|
acquireTimeout?: number;
|
package/dist/index.js
CHANGED
|
@@ -1208,9 +1208,9 @@ function protoValueToJS(val) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return {
|
|
1210
1210
|
id: typeof edge2.id === "bigint" ? edge2.id : BigInt(edge2.id),
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1211
|
+
startNode: typeof edge2.fromId === "bigint" ? edge2.fromId : BigInt(edge2.fromId),
|
|
1212
|
+
endNode: typeof edge2.toId === "bigint" ? edge2.toId : BigInt(edge2.toId),
|
|
1213
|
+
type: edge2.label,
|
|
1214
1214
|
properties: props
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
@@ -4616,7 +4616,7 @@ var Connection = class _Connection {
|
|
|
4616
4616
|
return null;
|
|
4617
4617
|
}
|
|
4618
4618
|
const controller = new AbortController();
|
|
4619
|
-
const timeoutId = setTimeout(() => controller.abort(),
|
|
4619
|
+
const timeoutId = setTimeout(() => controller.abort(), 5e3);
|
|
4620
4620
|
try {
|
|
4621
4621
|
const response = await this._transport.receiveProto(controller.signal);
|
|
4622
4622
|
return response;
|
|
@@ -4920,8 +4920,8 @@ var ConnectionPool = class _ConnectionPool {
|
|
|
4920
4920
|
_idleTimeout;
|
|
4921
4921
|
constructor(config, rateLimiterConfig) {
|
|
4922
4922
|
this._config = config;
|
|
4923
|
-
this._minConnections = config.minConnections ??
|
|
4924
|
-
this._maxConnections = config.maxConnections ??
|
|
4923
|
+
this._minConnections = config.minConnections ?? 1;
|
|
4924
|
+
this._maxConnections = config.maxConnections ?? 3;
|
|
4925
4925
|
this._acquireTimeout = config.acquireTimeout ?? 3e4;
|
|
4926
4926
|
this._idleTimeout = config.idleTimeout ?? 6e4;
|
|
4927
4927
|
this._rateLimiter = new RateLimiter(rateLimiterConfig);
|