diff --git a/package.json b/package.json index 7b5d48d1..2359cf30 100644 --- a/package.json +++ b/package.json @@ -79,8 +79,8 @@ "sinon-stub-promise": "^4.0.0", "socksv5": "^0.0.6", "through": "^2.3.8", - "ts-node": "^10.2.1", - "typescript": "^4.4.3", + "ts-node": "^10.9.2", + "typescript": "^5.9.3", "typescript-eslint": "^8.20.0", "underscore": "^1.13.1", "ws": "^8.2.2" diff --git a/src/index.ts b/src/index.ts index f03c370f..54867287 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,4 +4,4 @@ export * from './utils/redact_url.js'; export * from './anonymize_proxy.js'; export * from './tcp_tunnel_tools.js'; -export { CustomResponse } from './custom_response.js'; +export type { CustomResponse } from './custom_response.js'; diff --git a/src/server.ts b/src/server.ts index d241b9d8..b12b98c7 100644 --- a/src/server.ts +++ b/src/server.ts @@ -45,7 +45,7 @@ const HTTPS_DEFAULT_OPTIONS = { // Disable TLS 1.0 and 1.1 (deprecated, insecure). // All other TLS settings use Node.js defaults for cipher selection (automatically updated). minVersion: 'TLSv1.2', -} as const; +} as const satisfies Partial; /** * Connection statistics for bandwidth tracking. diff --git a/tsconfig.json b/tsconfig.json index ab959c7c..05437273 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "outDir": "dist", "module": "NodeNext", "moduleResolution": "NodeNext", - "target": "ES2022" + "target": "ES2022", + "verbatimModuleSyntax": true }, "include": ["src"] }