Skip to content

Commit

Permalink
Upgrade Undici from 6 to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed Jan 17, 2025
1 parent 110977f commit ec1f49f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"ms": "^2.1.3",
"secure-json-parse": "^3.0.1",
"tslib": "^2.8.1",
"undici": "^6.21.0"
"undici": "^7.2.3"
},
"tap": {
"files": [
Expand Down
5 changes: 2 additions & 3 deletions src/connection/UndiciConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import BaseConnection, {
isCaFingerprintMatch,
isBinary
} from './BaseConnection'
import { Pool, buildConnector, Dispatcher } from 'undici'
import { Pool, buildConnector } from 'undici'
import {
ConfigurationError,
RequestAbortedError,
Expand Down Expand Up @@ -165,8 +165,7 @@ export default class Connection extends BaseConnection {
debug('Starting a new request', params)
let response
try {
// @ts-expect-error method it's fine as string
response = (await this.pool.request(requestParams)) as Dispatcher.ResponseData
response = await this.pool.request(requestParams)
if (timeoutId != null) clearTimeout(timeoutId)
} catch (err: any) {
if (timeoutId != null) clearTimeout(timeoutId)
Expand Down

0 comments on commit ec1f49f

Please sign in to comment.