Skip to content

Commit 6874318

Browse files
committed
feat: upgrade typescript to version 5
1 parent e968101 commit 6874318

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
"sinon-stub-promise": "^4.0.0",
8080
"socksv5": "^0.0.6",
8181
"through": "^2.3.8",
82-
"ts-node": "^10.2.1",
83-
"typescript": "^4.4.3",
82+
"ts-node": "^10.9.2",
83+
"typescript": "^5.9.3",
8484
"typescript-eslint": "^8.20.0",
8585
"underscore": "^1.13.1",
8686
"ws": "^8.2.2"

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export * from './utils/redact_url.js';
44
export * from './anonymize_proxy.js';
55
export * from './tcp_tunnel_tools.js';
66

7-
export { CustomResponse } from './custom_response.js';
7+
export type { CustomResponse } from './custom_response.js';

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const HTTPS_DEFAULT_OPTIONS = {
4545
// Disable TLS 1.0 and 1.1 (deprecated, insecure).
4646
// All other TLS settings use Node.js defaults for cipher selection (automatically updated).
4747
minVersion: 'TLSv1.2',
48-
} as const;
48+
} as const satisfies Partial<https.ServerOptions>;
4949

5050
/**
5151
* Connection statistics for bandwidth tracking.

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"outDir": "dist",
55
"module": "NodeNext",
66
"moduleResolution": "NodeNext",
7-
"target": "ES2022"
7+
"target": "ES2022",
8+
"verbatimModuleSyntax": true
89
},
910
"include": ["src"]
1011
}

0 commit comments

Comments
 (0)