Skip to content

Commit

Permalink
undici verion upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinayak Parekh authored and Vinayak Parekh committed Oct 15, 2024
1 parent c1a2f2a commit 9a32cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/solr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export class Client {
acceptContentType: string
): Promise<T> {
const protocol = this.options.secure ? 'https' : 'http';
const url = `${protocol}://${this.options.host}:${this.options.port}${path}`;
const requestOptions: UndiciRequestOptions = {
...this.options.request,
method,
Expand All @@ -198,7 +197,7 @@ export class Client {

// Perform the request and handle results.
const response = await this.undiciClient.request({
path: url,
path,
...requestOptions,
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"proxy-agent": "^5.0.0",
"request": "^2.88.2",
"tslib": "^2.3.1",
"undici": "^4.7.1"
"undici": "^6.19.0"
},
"devDependencies": {
"@types/chai": "^4.2.22",
Expand Down

0 comments on commit 9a32cfe

Please sign in to comment.