Skip to content

Commit bed78d8

Browse files
authored
chore(deps): update dependencies manually (#4464)
* chore(deps): update Prettier and `audit fix` * chore: update all minor and patch dependencies
1 parent 508a731 commit bed78d8

11 files changed

Lines changed: 749 additions & 709 deletions

CLAUDE.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,11 @@ New tests prefer the promise-based API through `.promise()`. Callbacks stay for
156156
> A recommendation, not a strict rule.
157157
158158
```ts
159-
const connection = createConnection({
160-
/* ... */
161-
}).promise();
162-
const pool = createPool({
163-
/* ... */
164-
}).promise();
165-
166-
const cluster = createPoolCluster({
167-
/* ... */
168-
});
169-
cluster.add('node1', {
170-
/* ... */
171-
});
159+
const connection = createConnection({/* ... */}).promise();
160+
const pool = createPool({/* ... */}).promise();
161+
162+
const cluster = createPoolCluster({/* ... */});
163+
cluster.add('node1', {/* ... */});
172164
const clusterConnection = await cluster.promise().getConnection();
173165
```
174166

lib/base/connection.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,11 @@ class BaseConnection extends EventEmitter {
276276
// connection handshake is special because we allow it to be implicit
277277
// if error happened during handshake, but there are others commands in queue
278278
// then bubble error to other commands and not to connection
279-
} else if (
280-
!(
281-
this._command &&
282-
this._command.constructor === Commands.ClientHandshake &&
283-
this._commands.length > 0
284-
)
285-
) {
279+
} else if (!(
280+
this._command &&
281+
this._command.constructor === Commands.ClientHandshake &&
282+
this._commands.length > 0
283+
)) {
286284
bubbleErrorToConnection = true;
287285
}
288286
while ((command = this._commands.shift())) {

0 commit comments

Comments
 (0)