Skip to content

Commit 4fec967

Browse files
committed
fix: remove unnecessary address mapping in createBareConnector and update tsconfig to include node and jest types
1 parent 2c25d57 commit 4fec967

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

nodejs/test/client/wsConnector.failover.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ function createBareConnector(
4242
const connector = Object.create(WebSocketConnector.prototype) as any;
4343
connector._timeout = 5000;
4444
connector._dsn = parse(dsn);
45-
connector._dsn.addresses = connector._dsn.addresses.map(
46-
(address: any) => ({ ...address })
47-
);
4845
connector._currentAddress = connector._dsn.addresses[0];
4946
connector._retryConfig = new RetryConfig(1, 1, 8);
5047
connector._reconnectLock = null;

nodejs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
3434
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3535
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
36-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
36+
"types": ["node", "jest"], /* Explicitly include runtime and test globals for editor/tsserver consistency. */
3737
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3838
"resolveJsonModule": true, /* Enable importing .json files */
3939
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */

0 commit comments

Comments
 (0)